eslint-plugin-qwik 2.0.0-beta.21 → 2.0.0-beta.24

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.
Files changed (2) hide show
  1. package/dist/index.js +45 -45
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";var Gp=Object.create;var De=Object.defineProperty;var Hp=Object.getOwnPropertyDescriptor;var Xp=Object.getOwnPropertyNames;var zp=Object.getPrototypeOf,Kp=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Qp=(r,e)=>{for(var t in e)De(r,t,{get:e[t],enumerable:!0})},Dn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Xp(e))!Kp.call(r,o)&&o!==t&&De(r,o,{get:()=>e[o],enumerable:!(n=Hp(e,o))||n.enumerable});return r};var Z=(r,e,t)=>(t=r!=null?Gp(zp(r)):{},Dn(e||!r||!r.__esModule?De(t,"default",{value:r,enumerable:!0}):t,r)),Yp=r=>Dn(De({},"__esModule",{value:!0}),r);var Ue=s(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=nc;function nc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.type||r.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return r.name.type==="JSXNamespacedName"?r.name.namespace.name+":"+r.name.name.name:r.name.name}});var Hn=s(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Pr;ge.hasAnyProp=ac;ge.hasEveryProp=sc;var oc=Ue(),Gn=ic(oc);function ic(r){return r&&r.__esModule?r:{default:r}}var Ar={spreadStrict:!0,ignoreCase:!0};function Pr(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,Gn.default)(o).toUpperCase():(0,Gn.default)(o);return n===i})}function ac(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return Pr(r,o,t)})}function sc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return Pr(r,o,t)})}});var zn=s(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=uc;function Xn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.type==="JSXMemberExpression"?Xn(r.object,r.property)+"."+e.name:r.name+"."+e.name}function uc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.name;if(r.type==="JSXOpeningFragment")return"<>";if(!e)throw new Error("The argument provided is not a JSXElement node.");if(e.type==="JSXMemberExpression"){var t=e.object,n=t===void 0?{}:t,o=e.property,i=o===void 0?{}:o;return Xn(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var Or=s((eS,Qn)=>{"use strict";var Kn=Object.prototype.toString;Qn.exports=function(e){var t=Kn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Kn.call(e.callee)==="[object Function]"),n}});var ao=s((rS,io)=>{"use strict";var oo;Object.keys||(ve=Object.prototype.hasOwnProperty,$r=Object.prototype.toString,Yn=Or(),kr=Object.prototype.propertyIsEnumerable,Zn=!kr.call({toString:null},"toString"),eo=kr.call(function(){},"prototype"),he=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Be=function(r){var e=r.constructor;return e&&e.prototype===r},ro={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},to=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!ro["$"+r]&&ve.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Be(window[r])}catch{return!0}}catch{return!0}return!1})(),no=function(r){if(typeof window>"u"||!to)return Be(r);try{return Be(r)}catch{return!1}},oo=function(e){var t=e!==null&&typeof e=="object",n=$r.call(e)==="[object Function]",o=Yn(e),i=t&&$r.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var l=eo&&n;if(i&&e.length>0&&!ve.call(e,0))for(var p=0;p<e.length;++p)a.push(String(p));if(o&&e.length>0)for(var u=0;u<e.length;++u)a.push(String(u));else for(var f in e)!(l&&f==="prototype")&&ve.call(e,f)&&a.push(String(f));if(Zn)for(var m=no(e),y=0;y<he.length;++y)!(m&&he[y]==="constructor")&&ve.call(e,he[y])&&a.push(he[y]);return a});var ve,$r,Yn,kr,Zn,eo,he,Be,ro,to,no;io.exports=oo});var Cr=s((tS,lo)=>{"use strict";var lc=Array.prototype.slice,pc=Or(),so=Object.keys,Je=so?function(e){return so(e)}:ao(),uo=Object.keys;Je.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return pc(n)?uo(lc.call(n)):uo(n)})}else Object.keys=Je;return Object.keys||Je};lo.exports=Je});var ee=s((nS,po)=>{"use strict";var We=Object.defineProperty||!1;if(We)try{We({},"a",{value:1})}catch{We=!1}po.exports=We});var be=s((oS,co)=>{"use strict";co.exports=SyntaxError});var S=s((iS,fo)=>{"use strict";fo.exports=TypeError});var mo=s((aS,yo)=>{"use strict";yo.exports=Object.getOwnPropertyDescriptor});var j=s((sS,go)=>{"use strict";var Ge=mo();if(Ge)try{Ge([],"length")}catch{Ge=null}go.exports=Ge});var He=s((uS,bo)=>{"use strict";var vo=ee(),cc=be(),re=S(),ho=j();bo.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new re("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new re("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new re("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new re("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new re("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new re("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,p=!!ho&&ho(e,t);if(vo)vo(e,t,{configurable:a===null&&p?p.configurable:!a,enumerable:o===null&&p?p.enumerable:!o,value:n,writable:i===null&&p?p.writable:!i});else if(l||!o&&!i&&!a)e[t]=n;else throw new cc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Se=s((lS,xo)=>{"use strict";var _r=ee(),So=function(){return!!_r};So.hasArrayLengthDefineBug=function(){if(!_r)return null;try{return _r([],"length",{value:1}).length!==1}catch{return!0}};xo.exports=So});var M=s((pS,To)=>{"use strict";var fc=Cr(),dc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",yc=Object.prototype.toString,mc=Array.prototype.concat,Eo=He(),gc=function(r){return typeof r=="function"&&yc.call(r)==="[object Function]"},wo=Se()(),vc=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!gc(n)||!n())return}wo?Eo(r,e,t,!0):Eo(r,e,t)},qo=function(r,e){var t=arguments.length>2?arguments[2]:{},n=fc(e);dc&&(n=mc.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)vc(r,n[o],e[n[o]],t[n[o]])};qo.supportsDescriptors=!!wo;To.exports=qo});var te=s((cS,Ao)=>{"use strict";Ao.exports=Object});var Io=s((fS,Po)=>{"use strict";Po.exports=Error});var $o=s((dS,Oo)=>{"use strict";Oo.exports=EvalError});var Fr=s((yS,ko)=>{"use strict";ko.exports=RangeError});var _o=s((mS,Co)=>{"use strict";Co.exports=ReferenceError});var No=s((gS,Fo)=>{"use strict";Fo.exports=URIError});var Nr=s((vS,Ro)=>{"use strict";Ro.exports=Math.abs});var Xe=s((hS,jo)=>{"use strict";jo.exports=Math.floor});var Lo=s((bS,Mo)=>{"use strict";Mo.exports=Math.max});var Do=s((SS,Vo)=>{"use strict";Vo.exports=Math.min});var Bo=s((xS,Uo)=>{"use strict";Uo.exports=Math.pow});var Wo=s((ES,Jo)=>{"use strict";Jo.exports=Math.round});var ne=s((wS,Go)=>{"use strict";Go.exports=Number.isNaN||function(e){return e!==e}});var Xo=s((qS,Ho)=>{"use strict";var hc=ne();Ho.exports=function(e){return hc(e)||e===0?e:e<0?-1:1}});var ze=s((TS,zo)=>{"use strict";zo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==o||l.enumerable!==!0)return!1}return!0}});var Rr=s((AS,Qo)=>{"use strict";var Ko=typeof Symbol<"u"&&Symbol,bc=ze();Qo.exports=function(){return typeof Ko!="function"||typeof Symbol!="function"||typeof Ko("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bc()}});var jr=s((PS,Yo)=>{"use strict";Yo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mr=s((IS,Zo)=>{"use strict";var Sc=te();Zo.exports=Sc.getPrototypeOf||null});var ti=s((OS,ri)=>{"use strict";var xc="Function.prototype.bind called on incompatible ",Ec=Object.prototype.toString,wc=Math.max,qc="[object Function]",ei=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},Tc=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},Ac=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};ri.exports=function(e){var t=this;if(typeof t!="function"||Ec.apply(t)!==qc)throw new TypeError(xc+t);for(var n=Tc(arguments,1),o,i=function(){if(this instanceof o){var f=t.apply(this,ei(n,arguments));return Object(f)===f?f:this}return t.apply(e,ei(n,arguments))},a=wc(0,t.length-n.length),l=[],p=0;p<a;p++)l[p]="$"+p;if(o=Function("binder","return function ("+Ac(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var u=function(){};u.prototype=t.prototype,o.prototype=new u,u.prototype=null}return o}});var oe=s(($S,ni)=>{"use strict";var Pc=ti();ni.exports=Function.prototype.bind||Pc});var Ke=s((kS,oi)=>{"use strict";oi.exports=Function.prototype.call});var Qe=s((CS,ii)=>{"use strict";ii.exports=Function.prototype.apply});var si=s((_S,ai)=>{"use strict";ai.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Lr=s((FS,ui)=>{"use strict";var Ic=oe(),Oc=Qe(),$c=Ke(),kc=si();ui.exports=kc||Ic.call($c,Oc)});var xe=s((NS,li)=>{"use strict";var Cc=oe(),_c=S(),Fc=Ke(),Nc=Lr();li.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new _c("a function is required");return Nc(Cc,Fc,e)}});var mi=s((RS,yi)=>{"use strict";var Rc=xe(),pi=j(),fi;try{fi=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Vr=!!fi&&pi&&pi(Object.prototype,"__proto__"),di=Object,ci=di.getPrototypeOf;yi.exports=Vr&&typeof Vr.get=="function"?Rc([Vr.get]):typeof ci=="function"?function(e){return ci(e==null?e:di(e))}:!1});var Si=s((jS,bi)=>{"use strict";var gi=jr(),vi=Mr(),hi=mi();bi.exports=gi?function(e){return gi(e)}:vi?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return vi(e)}:hi?function(e){return hi(e)}:null});var Ei=s((MS,xi)=>{"use strict";var jc=async function(){}.constructor;xi.exports=()=>jc});var qi=s((LS,wi)=>{"use strict";var Mc=function*(){}.constructor;wi.exports=()=>Mc});var Ai=s((VS,Ti)=>{"use strict";var Lc=async function*(){}.constructor;Ti.exports=()=>Lc});var L=s((DS,Pi)=>{"use strict";var Vc=Function.prototype.call,Dc=Object.prototype.hasOwnProperty,Uc=oe();Pi.exports=Uc.call(Vc,Dc)});var O=s((US,Ci)=>{"use strict";var b,Bc=te(),Jc=Io(),Wc=$o(),Gc=Fr(),Hc=_o(),ue=be(),se=S(),Xc=No(),zc=Nr(),Kc=Xe(),Qc=Lo(),Yc=Do(),Zc=Bo(),ef=Wo(),rf=Xo(),Ee=j(),tf=ee(),Dr=function(){throw new se},nf=Ee?(function(){try{return arguments.callee,Dr}catch{try{return Ee(arguments,"callee").get}catch{return Dr}}})():Dr,ie=Rr()(),A=Si(),of=Mr(),af=jr(),ki=Qe(),we=Ke(),ae={},sf=typeof Uint8Array>"u"||!A?b:A(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&A?A([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Jc,"%eval%":eval,"%EvalError%":Wc,"%Float16Array%":typeof Float16Array>"u"?b:Float16Array,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&A?A(A([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!A?b:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Bc,"%Object.getOwnPropertyDescriptor%":Ee,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":Gc,"%ReferenceError%":Hc,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ie||!A?b:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&A?A(""[Symbol.iterator]()):b,"%Symbol%":ie?Symbol:b,"%SyntaxError%":ue,"%ThrowTypeError%":nf,"%TypedArray%":sf,"%TypeError%":se,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":Xc,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet,"%Function.prototype.call%":we,"%Function.prototype.apply%":ki,"%Object.defineProperty%":tf,"%Object.getPrototypeOf%":of,"%Math.abs%":zc,"%Math.floor%":Kc,"%Math.max%":Qc,"%Math.min%":Yc,"%Math.pow%":Zc,"%Math.round%":ef,"%Math.sign%":rf,"%Reflect.getPrototypeOf%":af};if(A)try{null.error}catch(r){Ii=A(A(r)),z["%Error.prototype%"]=Ii}var Ii,uf=Ei(),lf=qi(),pf=Ai(),cf=function r(e){var t;if(e==="%AsyncFunction%")t=uf()||void 0;else if(e==="%GeneratorFunction%")t=lf()||void 0;else if(e==="%AsyncGeneratorFunction%")t=pf()||void 0;else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&A&&(t=A(o.prototype))}return z[e]=t,t},Oi={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qe=oe(),Ye=L(),ff=qe.call(we,Array.prototype.concat),df=qe.call(ki,Array.prototype.splice),$i=qe.call(we,String.prototype.replace),Ze=qe.call(we,String.prototype.slice),yf=qe.call(we,RegExp.prototype.exec),mf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gf=/\\(\\)?/g,vf=function(e){var t=Ze(e,0,1),n=Ze(e,-1);if(t==="%"&&n!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var o=[];return $i(e,mf,function(i,a,l,p){o[o.length]=l?$i(p,gf,"$1"):a||i}),o},hf=function(e,t){var n=e,o;if(Ye(Oi,n)&&(o=Oi[n],n="%"+o[0]+"%"),Ye(z,n)){var i=z[n];if(i===ae&&(i=cf(n)),typeof i>"u"&&!t)throw new se("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new ue("intrinsic "+e+" does not exist!")};Ci.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new se('"allowMissing" argument must be a boolean');if(yf(/^%?[^%]*%?$/,e)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vf(e),o=n.length>0?n[0]:"",i=hf("%"+o+"%",t),a=i.name,l=i.value,p=!1,u=i.alias;u&&(o=u[0],df(n,ff([0,1],u)));for(var f=1,m=!0;f<n.length;f+=1){var y=n[f],d=Ze(y,0,1),v=Ze(y,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new ue("property names with quotes must have matching quotes");if((y==="constructor"||!m)&&(p=!0),o+="."+y,a="%"+o+"%",Ye(z,a))l=z[a];else if(l!=null){if(!(y in l)){if(!t)throw new se("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ee&&f+1>=n.length){var c=Ee(l,y);m=!!c,m&&"get"in c&&!("originalValue"in c.get)?l=c.get:l=l[y]}else m=Ye(l,y),l=l[y];m&&!p&&(z[a]=l)}}return l}});var ji=s((BS,Ri)=>{"use strict";var bf=O(),_i=He(),Sf=Se()(),Fi=j(),Ni=S(),xf=bf("%Math.floor%");Ri.exports=function(e,t){if(typeof e!="function")throw new Ni("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||xf(t)!==t)throw new Ni("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Fi){var a=Fi(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Sf?_i(e,"length",t,!0,!0):_i(e,"length",t)),e}});var Li=s((JS,Mi)=>{"use strict";var Ef=oe(),wf=Qe(),qf=Lr();Mi.exports=function(){return qf(Ef,wf,arguments)}});var Te=s((WS,er)=>{"use strict";var Tf=ji(),Vi=ee(),Af=xe(),Di=Li();er.exports=function(e){var t=Af(arguments),n=e.length-(arguments.length-1);return Tf(t,1+(n>0?n:0),!0)};Vi?Vi(er.exports,"apply",{value:Di}):er.exports.apply=Di});var Ur=s((GS,Ui)=>{"use strict";var Pf=ne();Ui.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Pf(e)&&e!==1/0&&e!==-1/0}});var Br=s((HS,Bi)=>{"use strict";var If=Nr(),Of=Xe(),$f=ne(),kf=Ur();Bi.exports=function(e){if(typeof e!="number"||$f(e)||!kf(e))return!1;var t=If(e);return Of(t)===t}});var k=s((XS,Ji)=>{"use strict";Ji.exports=function(e){return!!e&&(typeof e=="function"||typeof e=="object")}});var Gi=s((zS,Wi)=>{"use strict";Wi.exports=4294967295});var Xi=s((KS,Hi)=>{"use strict";Hi.exports=typeof Reflect<"u"&&Reflect.setPrototypeOf||null});var Ki=s((QS,zi)=>{"use strict";var Cf=te();zi.exports=Cf.setPrototypeOf||null});var ea=s((YS,Zi)=>{"use strict";var _f=xe(),Qi=j(),Ff=S(),Yi={};try{Yi.__proto__=null}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Nf=!("toString"in Yi),Jr=Qi&&Qi(Object.prototype,"__proto__");Zi.exports=Nf&&(!!Jr&&typeof Jr.set=="function"&&_f([Jr.set])||function(e,t){if(e==null)throw new Ff("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})});var oa=s((ZS,na)=>{"use strict";var ra=Xi(),Rf=Ki(),ta=ea(),jf=S();na.exports=ra?function(e,t){if(ra(e,t))return e;throw new jf("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:Rf||(ta?function(e,t){return ta(e,t),e}:null)});var ua=s((ex,sa)=>{"use strict";var Mf=O(),ia=Mf("%Array.prototype%"),Lf=Fr(),Vf=be(),Df=S(),Uf=Br(),Bf=Gi(),aa=oa();sa.exports=function(e){if(!Uf(e)||e<0)throw new Df("Assertion failed: `length` must be an integer Number >= 0");if(e>Bf)throw new Lf("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:ia,n=[];if(t!==ia){if(!aa)throw new Vf("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");aa(n,t)}return e!==0&&(n.length=e),n}});var pa=s((rx,la)=>{la.exports=require("util").inspect});var ka=s((tx,$a)=>{var et=typeof Map=="function"&&Map.prototype,Wr=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tr=et&&Wr&&typeof Wr.get=="function"?Wr.get:null,ca=et&&Map.prototype.forEach,rt=typeof Set=="function"&&Set.prototype,Gr=Object.getOwnPropertyDescriptor&&rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,nr=rt&&Gr&&typeof Gr.get=="function"?Gr.get:null,fa=rt&&Set.prototype.forEach,Jf=typeof WeakMap=="function"&&WeakMap.prototype,Pe=Jf?WeakMap.prototype.has:null,Wf=typeof WeakSet=="function"&&WeakSet.prototype,Ie=Wf?WeakSet.prototype.has:null,Gf=typeof WeakRef=="function"&&WeakRef.prototype,da=Gf?WeakRef.prototype.deref:null,Hf=Boolean.prototype.valueOf,Xf=Object.prototype.toString,zf=Function.prototype.toString,Kf=String.prototype.match,tt=String.prototype.slice,V=String.prototype.replace,Qf=String.prototype.toUpperCase,ya=String.prototype.toLowerCase,wa=RegExp.prototype.test,ma=Array.prototype.concat,C=Array.prototype.join,Yf=Array.prototype.slice,ga=Math.floor,zr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Hr=Object.getOwnPropertySymbols,Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,le=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===le||!0)?Symbol.toStringTag:null,qa=Object.prototype.propertyIsEnumerable,va=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ha(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||wa.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ga(-r):ga(r);if(n!==r){var o=String(n),i=tt.call(e,o.length+1);return V.call(o,t,"$&_")+"."+V.call(V.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return V.call(e,t,"$&_")}var Qr=pa(),ba=Qr.custom,Sa=Pa(ba)?ba:null,Ta={__proto__:null,double:'"',single:"'"},Zf={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};$a.exports=function r(e,t,n,o){var i=t||{};if(N(i,"quoteStyle")&&!N(Ta,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(N(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=N(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(N(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(N(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Oa(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return l?ha(e,p):p}if(typeof e=="bigint"){var u=String(e)+"n";return l?ha(e,u):u}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Yr(e)?"[Array]":"[Object]";var m=vd(i,n);if(typeof o>"u")o=[];else if(Ia(o,e)>=0)return"[Circular]";function y(Y,Ve,Wp){if(Ve&&(o=Yf.call(o),o.push(Ve)),Wp){var Vn={depth:i.depth};return N(i,"quoteStyle")&&(Vn.quoteStyle=i.quoteStyle),r(Y,Vn,n+1,o)}return r(Y,i,n+1,o)}if(typeof e=="function"&&!xa(e)){var d=ud(e),v=rr(e,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+C.call(v,", ")+" }":"")}if(Pa(e)){var c=le?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Kr.call(e);return typeof e=="object"&&!le?Ae(c):c}if(yd(e)){for(var g="<"+ya.call(String(e.nodeName)),h=e.attributes||[],E=0;E<h.length;E++)g+=" "+h[E].name+"="+Aa(ed(h[E].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+ya.call(String(e.nodeName))+">",g}if(Yr(e)){if(e.length===0)return"[]";var I=rr(e,y);return m&&!gd(I)?"["+Zr(I,m)+"]":"[ "+C.call(I,", ")+" ]"}if(td(e)){var X=rr(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!qa.call(e,"cause")?"{ ["+String(e)+"] "+C.call(ma.call("[cause]: "+y(e.cause),X),", ")+" }":X.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call(X,", ")+" }"}if(typeof e=="object"&&a){if(Sa&&typeof e[Sa]=="function"&&Qr)return Qr(e,{depth:f-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ld(e)){var me=[];return ca&&ca.call(e,function(Y,Ve){me.push(y(Ve,e,!0)+" => "+y(Y,e))}),Ea("Map",tr.call(e),me,m)}if(fd(e)){var jn=[];return fa&&fa.call(e,function(Y){jn.push(y(Y,e))}),Ea("Set",nr.call(e),jn,m)}if(pd(e))return Xr("WeakMap");if(dd(e))return Xr("WeakSet");if(cd(e))return Xr("WeakRef");if(od(e))return Ae(y(Number(e)));if(ad(e))return Ae(y(zr.call(e)));if(id(e))return Ae(Hf.call(e));if(nd(e))return Ae(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!rd(e)&&!xa(e)){var Er=rr(e,y),Mn=va?va(e)===Object.prototype:e instanceof Object||e.constructor===Object,wr=e instanceof Object?"":"null prototype",Ln=!Mn&&Oe&&Object(e)===e&&Oe in e?tt.call(D(e),8,-1):wr?"Object":"",Jp=Mn||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",qr=Jp+(Ln||wr?"["+C.call(ma.call([],Ln||[],wr||[]),": ")+"] ":"");return Er.length===0?qr+"{}":m?qr+"{"+Zr(Er,m)+"}":qr+"{ "+C.call(Er,", ")+" }"}return String(e)};function Aa(r,e,t){var n=t.quoteStyle||e,o=Ta[n];return o+r+o}function ed(r){return V.call(String(r),/"/g,"&quot;")}function K(r){return!Oe||!(typeof r=="object"&&(Oe in r||typeof r[Oe]<"u"))}function Yr(r){return D(r)==="[object Array]"&&K(r)}function rd(r){return D(r)==="[object Date]"&&K(r)}function xa(r){return D(r)==="[object RegExp]"&&K(r)}function td(r){return D(r)==="[object Error]"&&K(r)}function nd(r){return D(r)==="[object String]"&&K(r)}function od(r){return D(r)==="[object Number]"&&K(r)}function id(r){return D(r)==="[object Boolean]"&&K(r)}function Pa(r){if(le)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Kr)return!1;try{return Kr.call(r),!0}catch{}return!1}function ad(r){if(!r||typeof r!="object"||!zr)return!1;try{return zr.call(r),!0}catch{}return!1}var sd=Object.prototype.hasOwnProperty||function(r){return r in this};function N(r,e){return sd.call(r,e)}function D(r){return Xf.call(r)}function ud(r){if(r.name)return r.name;var e=Kf.call(zf.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Ia(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function ld(r){if(!tr||!r||typeof r!="object")return!1;try{tr.call(r);try{nr.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function pd(r){if(!Pe||!r||typeof r!="object")return!1;try{Pe.call(r,Pe);try{Ie.call(r,Ie)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function cd(r){if(!da||!r||typeof r!="object")return!1;try{return da.call(r),!0}catch{}return!1}function fd(r){if(!nr||!r||typeof r!="object")return!1;try{nr.call(r);try{tr.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function dd(r){if(!Ie||!r||typeof r!="object")return!1;try{Ie.call(r,Ie);try{Pe.call(r,Pe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function yd(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Oa(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Oa(tt.call(r,0,e.maxStringLength),e)+n}var o=Zf[e.quoteStyle||"single"];o.lastIndex=0;var i=V.call(V.call(r,o,"\\$1"),/[\x00-\x1f]/g,md);return Aa(i,"single",e)}function md(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Qf.call(e.toString(16))}function Ae(r){return"Object("+r+")"}function Xr(r){return r+" { ? }"}function Ea(r,e,t,n){var o=n?Zr(t,n):C.call(t,", ");return r+" ("+e+") {"+o+"}"}function gd(r){for(var e=0;e<r.length;e++)if(Ia(r[e],`
2
- `)>=0)return!1;return!0}function vd(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=C.call(Array(r.indent+1)," ");else return null;return{base:t,prev:C.call(Array(e+1),t)}}function Zr(r,e){if(r.length===0)return"";var t=`
1
+ "use strict";var Xp=Object.create;var De=Object.defineProperty;var zp=Object.getOwnPropertyDescriptor;var Kp=Object.getOwnPropertyNames;var Qp=Object.getPrototypeOf,Yp=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Zp=(r,e)=>{for(var t in e)De(r,t,{get:e[t],enumerable:!0})},Dn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Kp(e))!Yp.call(r,o)&&o!==t&&De(r,o,{get:()=>e[o],enumerable:!(n=zp(e,o))||n.enumerable});return r};var Z=(r,e,t)=>(t=r!=null?Xp(Qp(r)):{},Dn(e||!r||!r.__esModule?De(t,"default",{value:r,enumerable:!0}):t,r)),ec=r=>Dn(De({},"__esModule",{value:!0}),r);var Ue=s(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=ic;function ic(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!r.type||r.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return r.name.type==="JSXNamespacedName"?r.name.namespace.name+":"+r.name.name.name:r.name.name}});var Hn=s(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Pr;ge.hasAnyProp=uc;ge.hasEveryProp=lc;var ac=Ue(),Gn=sc(ac);function sc(r){return r&&r.__esModule?r:{default:r}}var Ar={spreadStrict:!0,ignoreCase:!0};function Pr(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,Gn.default)(o).toUpperCase():(0,Gn.default)(o);return n===i})}function uc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return Pr(r,o,t)})}function lc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ar,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return Pr(r,o,t)})}});var zn=s(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=pc;function Xn(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.type==="JSXMemberExpression"?Xn(r.object,r.property)+"."+e.name:r.name+"."+e.name}function pc(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.name;if(r.type==="JSXOpeningFragment")return"<>";if(!e)throw new Error("The argument provided is not a JSXElement node.");if(e.type==="JSXMemberExpression"){var t=e.object,n=t===void 0?{}:t,o=e.property,i=o===void 0?{}:o;return Xn(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var Or=s((tS,Qn)=>{"use strict";var Kn=Object.prototype.toString;Qn.exports=function(e){var t=Kn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Kn.call(e.callee)==="[object Function]"),n}});var ao=s((nS,io)=>{"use strict";var oo;Object.keys||(ve=Object.prototype.hasOwnProperty,$r=Object.prototype.toString,Yn=Or(),kr=Object.prototype.propertyIsEnumerable,Zn=!kr.call({toString:null},"toString"),eo=kr.call(function(){},"prototype"),he=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Be=function(r){var e=r.constructor;return e&&e.prototype===r},ro={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},to=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!ro["$"+r]&&ve.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Be(window[r])}catch{return!0}}catch{return!0}return!1})(),no=function(r){if(typeof window>"u"||!to)return Be(r);try{return Be(r)}catch{return!1}},oo=function(e){var t=e!==null&&typeof e=="object",n=$r.call(e)==="[object Function]",o=Yn(e),i=t&&$r.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var l=eo&&n;if(i&&e.length>0&&!ve.call(e,0))for(var p=0;p<e.length;++p)a.push(String(p));if(o&&e.length>0)for(var u=0;u<e.length;++u)a.push(String(u));else for(var f in e)!(l&&f==="prototype")&&ve.call(e,f)&&a.push(String(f));if(Zn)for(var m=no(e),y=0;y<he.length;++y)!(m&&he[y]==="constructor")&&ve.call(e,he[y])&&a.push(he[y]);return a});var ve,$r,Yn,kr,Zn,eo,he,Be,ro,to,no;io.exports=oo});var Cr=s((oS,lo)=>{"use strict";var cc=Array.prototype.slice,fc=Or(),so=Object.keys,Je=so?function(e){return so(e)}:ao(),uo=Object.keys;Je.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return fc(n)?uo(cc.call(n)):uo(n)})}else Object.keys=Je;return Object.keys||Je};lo.exports=Je});var ee=s((iS,po)=>{"use strict";var We=Object.defineProperty||!1;if(We)try{We({},"a",{value:1})}catch{We=!1}po.exports=We});var be=s((aS,co)=>{"use strict";co.exports=SyntaxError});var S=s((sS,fo)=>{"use strict";fo.exports=TypeError});var mo=s((uS,yo)=>{"use strict";yo.exports=Object.getOwnPropertyDescriptor});var j=s((lS,go)=>{"use strict";var Ge=mo();if(Ge)try{Ge([],"length")}catch{Ge=null}go.exports=Ge});var He=s((pS,bo)=>{"use strict";var vo=ee(),dc=be(),re=S(),ho=j();bo.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new re("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new re("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new re("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new re("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new re("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new re("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,p=!!ho&&ho(e,t);if(vo)vo(e,t,{configurable:a===null&&p?p.configurable:!a,enumerable:o===null&&p?p.enumerable:!o,value:n,writable:i===null&&p?p.writable:!i});else if(l||!o&&!i&&!a)e[t]=n;else throw new dc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Se=s((cS,xo)=>{"use strict";var _r=ee(),So=function(){return!!_r};So.hasArrayLengthDefineBug=function(){if(!_r)return null;try{return _r([],"length",{value:1}).length!==1}catch{return!0}};xo.exports=So});var M=s((fS,To)=>{"use strict";var yc=Cr(),mc=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",gc=Object.prototype.toString,vc=Array.prototype.concat,Eo=He(),hc=function(r){return typeof r=="function"&&gc.call(r)==="[object Function]"},wo=Se()(),bc=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!hc(n)||!n())return}wo?Eo(r,e,t,!0):Eo(r,e,t)},qo=function(r,e){var t=arguments.length>2?arguments[2]:{},n=yc(e);mc&&(n=vc.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)bc(r,n[o],e[n[o]],t[n[o]])};qo.supportsDescriptors=!!wo;To.exports=qo});var te=s((dS,Ao)=>{"use strict";Ao.exports=Object});var Io=s((yS,Po)=>{"use strict";Po.exports=Error});var $o=s((mS,Oo)=>{"use strict";Oo.exports=EvalError});var Fr=s((gS,ko)=>{"use strict";ko.exports=RangeError});var _o=s((vS,Co)=>{"use strict";Co.exports=ReferenceError});var No=s((hS,Fo)=>{"use strict";Fo.exports=URIError});var Nr=s((bS,Ro)=>{"use strict";Ro.exports=Math.abs});var Xe=s((SS,jo)=>{"use strict";jo.exports=Math.floor});var Lo=s((xS,Mo)=>{"use strict";Mo.exports=Math.max});var Do=s((ES,Vo)=>{"use strict";Vo.exports=Math.min});var Bo=s((wS,Uo)=>{"use strict";Uo.exports=Math.pow});var Wo=s((qS,Jo)=>{"use strict";Jo.exports=Math.round});var ne=s((TS,Go)=>{"use strict";Go.exports=Number.isNaN||function(e){return e!==e}});var Xo=s((AS,Ho)=>{"use strict";var Sc=ne();Ho.exports=function(e){return Sc(e)||e===0?e:e<0?-1:1}});var ze=s((PS,zo)=>{"use strict";zo.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==o||l.enumerable!==!0)return!1}return!0}});var Rr=s((IS,Qo)=>{"use strict";var Ko=typeof Symbol<"u"&&Symbol,xc=ze();Qo.exports=function(){return typeof Ko!="function"||typeof Symbol!="function"||typeof Ko("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xc()}});var jr=s((OS,Yo)=>{"use strict";Yo.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mr=s(($S,Zo)=>{"use strict";var Ec=te();Zo.exports=Ec.getPrototypeOf||null});var ti=s((kS,ri)=>{"use strict";var wc="Function.prototype.bind called on incompatible ",qc=Object.prototype.toString,Tc=Math.max,Ac="[object Function]",ei=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},Pc=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},Ic=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};ri.exports=function(e){var t=this;if(typeof t!="function"||qc.apply(t)!==Ac)throw new TypeError(wc+t);for(var n=Pc(arguments,1),o,i=function(){if(this instanceof o){var f=t.apply(this,ei(n,arguments));return Object(f)===f?f:this}return t.apply(e,ei(n,arguments))},a=Tc(0,t.length-n.length),l=[],p=0;p<a;p++)l[p]="$"+p;if(o=Function("binder","return function ("+Ic(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var u=function(){};u.prototype=t.prototype,o.prototype=new u,u.prototype=null}return o}});var oe=s((CS,ni)=>{"use strict";var Oc=ti();ni.exports=Function.prototype.bind||Oc});var Ke=s((_S,oi)=>{"use strict";oi.exports=Function.prototype.call});var Qe=s((FS,ii)=>{"use strict";ii.exports=Function.prototype.apply});var si=s((NS,ai)=>{"use strict";ai.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Lr=s((RS,ui)=>{"use strict";var $c=oe(),kc=Qe(),Cc=Ke(),_c=si();ui.exports=_c||$c.call(Cc,kc)});var xe=s((jS,li)=>{"use strict";var Fc=oe(),Nc=S(),Rc=Ke(),jc=Lr();li.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Nc("a function is required");return jc(Fc,Rc,e)}});var mi=s((MS,yi)=>{"use strict";var Mc=xe(),pi=j(),fi;try{fi=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var Vr=!!fi&&pi&&pi(Object.prototype,"__proto__"),di=Object,ci=di.getPrototypeOf;yi.exports=Vr&&typeof Vr.get=="function"?Mc([Vr.get]):typeof ci=="function"?function(e){return ci(e==null?e:di(e))}:!1});var Si=s((LS,bi)=>{"use strict";var gi=jr(),vi=Mr(),hi=mi();bi.exports=gi?function(e){return gi(e)}:vi?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return vi(e)}:hi?function(e){return hi(e)}:null});var Ei=s((VS,xi)=>{"use strict";var Lc=async function(){}.constructor;xi.exports=()=>Lc});var qi=s((DS,wi)=>{"use strict";var Vc=function*(){}.constructor;wi.exports=()=>Vc});var Ai=s((US,Ti)=>{"use strict";var Dc=async function*(){}.constructor;Ti.exports=()=>Dc});var L=s((BS,Pi)=>{"use strict";var Uc=Function.prototype.call,Bc=Object.prototype.hasOwnProperty,Jc=oe();Pi.exports=Jc.call(Uc,Bc)});var O=s((JS,Ci)=>{"use strict";var b,Wc=te(),Gc=Io(),Hc=$o(),Xc=Fr(),zc=_o(),ue=be(),se=S(),Kc=No(),Qc=Nr(),Yc=Xe(),Zc=Lo(),ef=Do(),rf=Bo(),tf=Wo(),nf=Xo(),Ee=j(),of=ee(),Dr=function(){throw new se},af=Ee?(function(){try{return arguments.callee,Dr}catch{try{return Ee(arguments,"callee").get}catch{return Dr}}})():Dr,ie=Rr()(),A=Si(),sf=Mr(),uf=jr(),ki=Qe(),we=Ke(),ae={},lf=typeof Uint8Array>"u"||!A?b:A(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?b:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&A?A([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics>"u"?b:Atomics,"%BigInt%":typeof BigInt>"u"?b:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?b:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Gc,"%eval%":eval,"%EvalError%":Hc,"%Float16Array%":typeof Float16Array>"u"?b:Float16Array,"%Float32Array%":typeof Float32Array>"u"?b:Float32Array,"%Float64Array%":typeof Float64Array>"u"?b:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?b:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array>"u"?b:Int8Array,"%Int16Array%":typeof Int16Array>"u"?b:Int16Array,"%Int32Array%":typeof Int32Array>"u"?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&A?A(A([][Symbol.iterator]())):b,"%JSON%":typeof JSON=="object"?JSON:b,"%Map%":typeof Map>"u"?b:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!A?b:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Wc,"%Object.getOwnPropertyDescriptor%":Ee,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?b:Promise,"%Proxy%":typeof Proxy>"u"?b:Proxy,"%RangeError%":Xc,"%ReferenceError%":zc,"%Reflect%":typeof Reflect>"u"?b:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?b:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ie||!A?b:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&A?A(""[Symbol.iterator]()):b,"%Symbol%":ie?Symbol:b,"%SyntaxError%":ue,"%ThrowTypeError%":af,"%TypedArray%":lf,"%TypeError%":se,"%Uint8Array%":typeof Uint8Array>"u"?b:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?b:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?b:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?b:Uint32Array,"%URIError%":Kc,"%WeakMap%":typeof WeakMap>"u"?b:WeakMap,"%WeakRef%":typeof WeakRef>"u"?b:WeakRef,"%WeakSet%":typeof WeakSet>"u"?b:WeakSet,"%Function.prototype.call%":we,"%Function.prototype.apply%":ki,"%Object.defineProperty%":of,"%Object.getPrototypeOf%":sf,"%Math.abs%":Qc,"%Math.floor%":Yc,"%Math.max%":Zc,"%Math.min%":ef,"%Math.pow%":rf,"%Math.round%":tf,"%Math.sign%":nf,"%Reflect.getPrototypeOf%":uf};if(A)try{null.error}catch(r){Ii=A(A(r)),z["%Error.prototype%"]=Ii}var Ii,pf=Ei(),cf=qi(),ff=Ai(),df=function r(e){var t;if(e==="%AsyncFunction%")t=pf()||void 0;else if(e==="%GeneratorFunction%")t=cf()||void 0;else if(e==="%AsyncGeneratorFunction%")t=ff()||void 0;else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&A&&(t=A(o.prototype))}return z[e]=t,t},Oi={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qe=oe(),Ye=L(),yf=qe.call(we,Array.prototype.concat),mf=qe.call(ki,Array.prototype.splice),$i=qe.call(we,String.prototype.replace),Ze=qe.call(we,String.prototype.slice),gf=qe.call(we,RegExp.prototype.exec),vf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hf=/\\(\\)?/g,bf=function(e){var t=Ze(e,0,1),n=Ze(e,-1);if(t==="%"&&n!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var o=[];return $i(e,vf,function(i,a,l,p){o[o.length]=l?$i(p,hf,"$1"):a||i}),o},Sf=function(e,t){var n=e,o;if(Ye(Oi,n)&&(o=Oi[n],n="%"+o[0]+"%"),Ye(z,n)){var i=z[n];if(i===ae&&(i=df(n)),typeof i>"u"&&!t)throw new se("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new ue("intrinsic "+e+" does not exist!")};Ci.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new se('"allowMissing" argument must be a boolean');if(gf(/^%?[^%]*%?$/,e)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bf(e),o=n.length>0?n[0]:"",i=Sf("%"+o+"%",t),a=i.name,l=i.value,p=!1,u=i.alias;u&&(o=u[0],mf(n,yf([0,1],u)));for(var f=1,m=!0;f<n.length;f+=1){var y=n[f],d=Ze(y,0,1),v=Ze(y,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new ue("property names with quotes must have matching quotes");if((y==="constructor"||!m)&&(p=!0),o+="."+y,a="%"+o+"%",Ye(z,a))l=z[a];else if(l!=null){if(!(y in l)){if(!t)throw new se("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ee&&f+1>=n.length){var c=Ee(l,y);m=!!c,m&&"get"in c&&!("originalValue"in c.get)?l=c.get:l=l[y]}else m=Ye(l,y),l=l[y];m&&!p&&(z[a]=l)}}return l}});var ji=s((WS,Ri)=>{"use strict";var xf=O(),_i=He(),Ef=Se()(),Fi=j(),Ni=S(),wf=xf("%Math.floor%");Ri.exports=function(e,t){if(typeof e!="function")throw new Ni("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||wf(t)!==t)throw new Ni("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Fi){var a=Fi(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(Ef?_i(e,"length",t,!0,!0):_i(e,"length",t)),e}});var Li=s((GS,Mi)=>{"use strict";var qf=oe(),Tf=Qe(),Af=Lr();Mi.exports=function(){return Af(qf,Tf,arguments)}});var Te=s((HS,er)=>{"use strict";var Pf=ji(),Vi=ee(),If=xe(),Di=Li();er.exports=function(e){var t=If(arguments),n=e.length-(arguments.length-1);return Pf(t,1+(n>0?n:0),!0)};Vi?Vi(er.exports,"apply",{value:Di}):er.exports.apply=Di});var Ur=s((XS,Ui)=>{"use strict";var Of=ne();Ui.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!Of(e)&&e!==1/0&&e!==-1/0}});var Br=s((zS,Bi)=>{"use strict";var $f=Nr(),kf=Xe(),Cf=ne(),_f=Ur();Bi.exports=function(e){if(typeof e!="number"||Cf(e)||!_f(e))return!1;var t=$f(e);return kf(t)===t}});var k=s((KS,Ji)=>{"use strict";Ji.exports=function(e){return!!e&&(typeof e=="function"||typeof e=="object")}});var Gi=s((QS,Wi)=>{"use strict";Wi.exports=4294967295});var Xi=s((YS,Hi)=>{"use strict";Hi.exports=typeof Reflect<"u"&&Reflect.setPrototypeOf||null});var Ki=s((ZS,zi)=>{"use strict";var Ff=te();zi.exports=Ff.setPrototypeOf||null});var ea=s((ex,Zi)=>{"use strict";var Nf=xe(),Qi=j(),Rf=S(),Yi={};try{Yi.__proto__=null}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var jf=!("toString"in Yi),Jr=Qi&&Qi(Object.prototype,"__proto__");Zi.exports=jf&&(!!Jr&&typeof Jr.set=="function"&&Nf([Jr.set])||function(e,t){if(e==null)throw new Rf("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})});var oa=s((rx,na)=>{"use strict";var ra=Xi(),Mf=Ki(),ta=ea(),Lf=S();na.exports=ra?function(e,t){if(ra(e,t))return e;throw new Lf("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:Mf||(ta?function(e,t){return ta(e,t),e}:null)});var ua=s((tx,sa)=>{"use strict";var Vf=O(),ia=Vf("%Array.prototype%"),Df=Fr(),Uf=be(),Bf=S(),Jf=Br(),Wf=Gi(),aa=oa();sa.exports=function(e){if(!Jf(e)||e<0)throw new Bf("Assertion failed: `length` must be an integer Number >= 0");if(e>Wf)throw new Df("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:ia,n=[];if(t!==ia){if(!aa)throw new Uf("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");aa(n,t)}return e!==0&&(n.length=e),n}});var pa=s((nx,la)=>{la.exports=require("util").inspect});var ka=s((ox,$a)=>{var et=typeof Map=="function"&&Map.prototype,Wr=Object.getOwnPropertyDescriptor&&et?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tr=et&&Wr&&typeof Wr.get=="function"?Wr.get:null,ca=et&&Map.prototype.forEach,rt=typeof Set=="function"&&Set.prototype,Gr=Object.getOwnPropertyDescriptor&&rt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,nr=rt&&Gr&&typeof Gr.get=="function"?Gr.get:null,fa=rt&&Set.prototype.forEach,Gf=typeof WeakMap=="function"&&WeakMap.prototype,Pe=Gf?WeakMap.prototype.has:null,Hf=typeof WeakSet=="function"&&WeakSet.prototype,Ie=Hf?WeakSet.prototype.has:null,Xf=typeof WeakRef=="function"&&WeakRef.prototype,da=Xf?WeakRef.prototype.deref:null,zf=Boolean.prototype.valueOf,Kf=Object.prototype.toString,Qf=Function.prototype.toString,Yf=String.prototype.match,tt=String.prototype.slice,V=String.prototype.replace,Zf=String.prototype.toUpperCase,ya=String.prototype.toLowerCase,wa=RegExp.prototype.test,ma=Array.prototype.concat,C=Array.prototype.join,ed=Array.prototype.slice,ga=Math.floor,zr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Hr=Object.getOwnPropertySymbols,Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,le=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===le||!0)?Symbol.toStringTag:null,qa=Object.prototype.propertyIsEnumerable,va=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ha(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||wa.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ga(-r):ga(r);if(n!==r){var o=String(n),i=tt.call(e,o.length+1);return V.call(o,t,"$&_")+"."+V.call(V.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return V.call(e,t,"$&_")}var Qr=pa(),ba=Qr.custom,Sa=Pa(ba)?ba:null,Ta={__proto__:null,double:'"',single:"'"},rd={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};$a.exports=function r(e,t,n,o){var i=t||{};if(N(i,"quoteStyle")&&!N(Ta,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(N(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=N(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(N(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(N(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Oa(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var p=String(e);return l?ha(e,p):p}if(typeof e=="bigint"){var u=String(e)+"n";return l?ha(e,u):u}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return Yr(e)?"[Array]":"[Object]";var m=bd(i,n);if(typeof o>"u")o=[];else if(Ia(o,e)>=0)return"[Circular]";function y(Y,Ve,Hp){if(Ve&&(o=ed.call(o),o.push(Ve)),Hp){var Vn={depth:i.depth};return N(i,"quoteStyle")&&(Vn.quoteStyle=i.quoteStyle),r(Y,Vn,n+1,o)}return r(Y,i,n+1,o)}if(typeof e=="function"&&!xa(e)){var d=pd(e),v=rr(e,y);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+C.call(v,", ")+" }":"")}if(Pa(e)){var c=le?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Kr.call(e);return typeof e=="object"&&!le?Ae(c):c}if(gd(e)){for(var g="<"+ya.call(String(e.nodeName)),h=e.attributes||[],E=0;E<h.length;E++)g+=" "+h[E].name+"="+Aa(td(h[E].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+ya.call(String(e.nodeName))+">",g}if(Yr(e)){if(e.length===0)return"[]";var I=rr(e,y);return m&&!hd(I)?"["+Zr(I,m)+"]":"[ "+C.call(I,", ")+" ]"}if(od(e)){var X=rr(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!qa.call(e,"cause")?"{ ["+String(e)+"] "+C.call(ma.call("[cause]: "+y(e.cause),X),", ")+" }":X.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+C.call(X,", ")+" }"}if(typeof e=="object"&&a){if(Sa&&typeof e[Sa]=="function"&&Qr)return Qr(e,{depth:f-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(cd(e)){var me=[];return ca&&ca.call(e,function(Y,Ve){me.push(y(Ve,e,!0)+" => "+y(Y,e))}),Ea("Map",tr.call(e),me,m)}if(yd(e)){var jn=[];return fa&&fa.call(e,function(Y){jn.push(y(Y,e))}),Ea("Set",nr.call(e),jn,m)}if(fd(e))return Xr("WeakMap");if(md(e))return Xr("WeakSet");if(dd(e))return Xr("WeakRef");if(ad(e))return Ae(y(Number(e)));if(ud(e))return Ae(y(zr.call(e)));if(sd(e))return Ae(zf.call(e));if(id(e))return Ae(y(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!nd(e)&&!xa(e)){var Er=rr(e,y),Mn=va?va(e)===Object.prototype:e instanceof Object||e.constructor===Object,wr=e instanceof Object?"":"null prototype",Ln=!Mn&&Oe&&Object(e)===e&&Oe in e?tt.call(D(e),8,-1):wr?"Object":"",Gp=Mn||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",qr=Gp+(Ln||wr?"["+C.call(ma.call([],Ln||[],wr||[]),": ")+"] ":"");return Er.length===0?qr+"{}":m?qr+"{"+Zr(Er,m)+"}":qr+"{ "+C.call(Er,", ")+" }"}return String(e)};function Aa(r,e,t){var n=t.quoteStyle||e,o=Ta[n];return o+r+o}function td(r){return V.call(String(r),/"/g,"&quot;")}function K(r){return!Oe||!(typeof r=="object"&&(Oe in r||typeof r[Oe]<"u"))}function Yr(r){return D(r)==="[object Array]"&&K(r)}function nd(r){return D(r)==="[object Date]"&&K(r)}function xa(r){return D(r)==="[object RegExp]"&&K(r)}function od(r){return D(r)==="[object Error]"&&K(r)}function id(r){return D(r)==="[object String]"&&K(r)}function ad(r){return D(r)==="[object Number]"&&K(r)}function sd(r){return D(r)==="[object Boolean]"&&K(r)}function Pa(r){if(le)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Kr)return!1;try{return Kr.call(r),!0}catch{}return!1}function ud(r){if(!r||typeof r!="object"||!zr)return!1;try{return zr.call(r),!0}catch{}return!1}var ld=Object.prototype.hasOwnProperty||function(r){return r in this};function N(r,e){return ld.call(r,e)}function D(r){return Kf.call(r)}function pd(r){if(r.name)return r.name;var e=Yf.call(Qf.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Ia(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function cd(r){if(!tr||!r||typeof r!="object")return!1;try{tr.call(r);try{nr.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function fd(r){if(!Pe||!r||typeof r!="object")return!1;try{Pe.call(r,Pe);try{Ie.call(r,Ie)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function dd(r){if(!da||!r||typeof r!="object")return!1;try{return da.call(r),!0}catch{}return!1}function yd(r){if(!nr||!r||typeof r!="object")return!1;try{nr.call(r);try{tr.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function md(r){if(!Ie||!r||typeof r!="object")return!1;try{Ie.call(r,Ie);try{Pe.call(r,Pe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function gd(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Oa(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Oa(tt.call(r,0,e.maxStringLength),e)+n}var o=rd[e.quoteStyle||"single"];o.lastIndex=0;var i=V.call(V.call(r,o,"\\$1"),/[\x00-\x1f]/g,vd);return Aa(i,"single",e)}function vd(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Zf.call(e.toString(16))}function Ae(r){return"Object("+r+")"}function Xr(r){return r+" { ? }"}function Ea(r,e,t,n){var o=n?Zr(t,n):C.call(t,", ");return r+" ("+e+") {"+o+"}"}function hd(r){for(var e=0;e<r.length;e++)if(Ia(r[e],`
2
+ `)>=0)return!1;return!0}function bd(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=C.call(Array(r.indent+1)," ");else return null;return{base:t,prev:C.call(Array(e+1),t)}}function Zr(r,e){if(r.length===0)return"";var t=`
3
3
  `+e.prev+e.base;return t+C.call(r,","+t)+`
4
- `+e.prev}function rr(r,e){var t=Yr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=N(r,o)?e(r[o],r):""}var i=typeof Hr=="function"?Hr(r):[],a;if(le){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var p in r)N(r,p)&&(t&&String(Number(p))===p&&p<r.length||le&&a["$"+p]instanceof Symbol||(wa.call(/[^\w$]/,p)?n.push(e(p,r)+": "+e(r[p],r)):n.push(p+": "+e(r[p],r))));if(typeof Hr=="function")for(var u=0;u<i.length;u++)qa.call(r,i[u])&&n.push("["+e(i[u])+"]: "+e(r[i[u]],r));return n}});var U=s((nx,Ca)=>{"use strict";Ca.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var $e=s((ox,Fa)=>{"use strict";var _a=S(),hd=ka(),bd=U(),Sd=k();Fa.exports=function(e,t){if(!Sd(e))throw new _a("Assertion failed: Type(O) is not Object");if(!bd(t))throw new _a("Assertion failed: P is not a Property Key, got "+hd(t));return e[t]}});var $=s((ix,ja)=>{"use strict";var Na=O(),Ra=xe(),xd=Ra([Na("%String.prototype.indexOf%")]);ja.exports=function(e,t){var n=Na(e,!!t);return typeof n=="function"&&xd(e,".prototype.")>-1?Ra([n]):n}});var nt=s((ax,La)=>{"use strict";var Ed=O(),Ma=Ed("%Array%"),wd=!Ma.isArray&&$()("Object.prototype.toString");La.exports=Ma.isArray||function(e){return wd(e)==="[object Array]"}});var or=s((sx,Va)=>{"use strict";Va.exports=nt()});var Ua=s((ux,Da)=>{"use strict";Da.exports=O()});var R=s((lx,Ba)=>{"use strict";var qd=S(),ke=L(),Td={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Ba.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(ke(e,t)&&!Td[t])return!1;var n=ke(e,"[[Value]]")||ke(e,"[[Writable]]"),o=ke(e,"[[Get]]")||ke(e,"[[Set]]");if(n&&o)throw new qd("Property Descriptors may not be both accessor and data descriptors");return!0}});var ot=s((px,Ga)=>{"use strict";var Ad=Se(),Ja=ee(),Wa=Ad.hasArrayLengthDefineBug(),Pd=Wa&&nt(),Id=$(),Od=Id("Object.prototype.propertyIsEnumerable");Ga.exports=function(e,t,n,o,i,a){if(!Ja){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Od(o,i)!==!!a["[[Enumerable]]"])return!1;var l=a["[[Value]]"];return o[i]=l,t(o[i],l)}return Wa&&i==="length"&&"[[Value]]"in a&&Pd(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(Ja(o,i,n(a)),!0)}});var Xa=s((cx,Ha)=>{"use strict";Ha.exports=function(e){if(typeof e>"u")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}});var it=s((fx,za)=>{"use strict";var $d=S(),kd=R(),Cd=Xa();za.exports=function(e){if(typeof e<"u"&&!kd(e))throw new $d("Assertion failed: `Desc` must be a Property Descriptor");return Cd(e)}});var ir=s((dx,Qa)=>{"use strict";var _d=S(),Ka=L(),Fd=R();Qa.exports=function(e){if(typeof e>"u")return!1;if(!Fd(e))throw new _d("Assertion failed: `Desc` must be a Property Descriptor");return!(!Ka(e,"[[Value]]")&&!Ka(e,"[[Writable]]"))}});var ar=s((yx,Za)=>{"use strict";var Ya=ne();Za.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Ya(e)&&Ya(t)}});var pt=s((mx,ts)=>{"use strict";var rs=Function.prototype.toString,pe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,st,sr;if(typeof pe=="function"&&typeof Object.defineProperty=="function")try{st=Object.defineProperty({},"length",{get:function(){throw sr}}),sr={},pe(function(){throw 42},null,st)}catch(r){r!==sr&&(pe=null)}else pe=null;var Nd=/^\s*class\b/,ut=function(e){try{var t=rs.call(e);return Nd.test(t)}catch{return!1}},at=function(e){try{return ut(e)?!1:(rs.call(e),!0)}catch{return!1}},ur=Object.prototype.toString,Rd="[object Object]",jd="[object Function]",Md="[object GeneratorFunction]",Ld="[object HTMLAllCollection]",Vd="[object HTML document.all class]",Dd="[object HTMLCollection]",Ud=typeof Symbol=="function"&&!!Symbol.toStringTag,Bd=!(0 in[,]),lt=function(){return!1};typeof document=="object"&&(es=document.all,ur.call(es)===ur.call(document.all)&&(lt=function(e){if((Bd||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=ur.call(e);return(t===Ld||t===Vd||t===Dd||t===Rd)&&e("")==null}catch{}return!1}));var es;ts.exports=pe?function(e){if(lt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{pe(e,null,st)}catch(t){if(t!==sr)return!1}return!ut(e)&&at(e)}:function(e){if(lt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Ud)return at(e);if(ut(e))return!1;var t=ur.call(e);return t!==jd&&t!==Md&&!/^\[object HTML/.test(t)?!1:at(e)}});var os=s((gx,ns)=>{"use strict";ns.exports=pt()});var as=s((vx,is)=>{"use strict";is.exports=function(e){return!!e}});var ft=s((hx,us)=>{"use strict";var _=L(),lr=S(),Jd=k(),ss=os(),ct=as();us.exports=function(e){if(!Jd(e))throw new lr("ToPropertyDescriptor requires an object");var t={};if(_(e,"enumerable")&&(t["[[Enumerable]]"]=ct(e.enumerable)),_(e,"configurable")&&(t["[[Configurable]]"]=ct(e.configurable)),_(e,"value")&&(t["[[Value]]"]=e.value),_(e,"writable")&&(t["[[Writable]]"]=ct(e.writable)),_(e,"get")){var n=e.get;if(typeof n<"u"&&!ss(n))throw new lr("getter must be a function");t["[[Get]]"]=n}if(_(e,"set")){var o=e.set;if(typeof o<"u"&&!ss(o))throw new lr("setter must be a function");t["[[Set]]"]=o}if((_(t,"[[Get]]")||_(t,"[[Set]]"))&&(_(t,"[[Value]]")||_(t,"[[Writable]]")))throw new lr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var cs=s((bx,ps)=>{"use strict";var dt=S(),Wd=k(),ls=R(),Gd=ot(),Hd=it(),Xd=ir(),zd=U(),Kd=ar(),Qd=ft();ps.exports=function(e,t,n){if(!Wd(e))throw new dt("Assertion failed: Type(O) is not Object");if(!zd(t))throw new dt("Assertion failed: P is not a Property Key");var o=ls(n)?n:Qd(n);if(!ls(o))throw new dt("Assertion failed: Desc is not a valid Property Descriptor");return Gd(Xd,Kd,Hd,e,t,o)}});var ds=s((Sx,gt)=>{"use strict";var Yd=Ua(),fs=Yd("%Reflect.construct%",!0),pr=cs();try{pr({},"",{"[[Get]]":function(){}})}catch{pr=null}pr&&fs?(yt={},mt={},pr(mt,"length",{"[[Get]]":function(){throw yt},"[[Enumerable]]":!0}),gt.exports=function(e){try{fs(e,mt)}catch(t){return t===yt}}):gt.exports=function(e){return typeof e=="function"&&!!e.prototype};var yt,mt});var bs=s((xx,hs)=>{"use strict";var Zd=O(),ys=Zd("%Symbol.species%",!0),ms=S(),ey=Br(),ry=k(),gs=ua(),vs=$e(),ty=or(),ny=ds();hs.exports=function(e,t){if(!ey(t)||t<0)throw new ms("Assertion failed: length must be an integer >= 0");var n=ty(e);if(!n)return gs(t);var o=vs(e,"constructor");if(ys&&ry(o)&&(o=vs(o,ys),o===null&&(o=void 0)),typeof o>"u")return gs(t);if(!ny(o))throw new ms("C must be a constructor");return new o(t)}});var vt=s((Ex,Ss)=>{"use strict";Ss.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var Es=s((wx,xs)=>{"use strict";var oy=O(),iy=$(),ay=S(),sy=or(),uy=oy("%Reflect.apply%",!0)||iy("Function.prototype.apply");xs.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!sy(n))throw new ay("Assertion failed: optional `argumentsList`, if provided, must be a List");return uy(e,t,n)}});var cr=s((qx,qs)=>{"use strict";var ly=S(),ws=L(),py=R();qs.exports=function(e){if(typeof e>"u")return!1;if(!py(e))throw new ly("Assertion failed: `Desc` must be a Property Descriptor");return!(!ws(e,"[[Get]]")&&!ws(e,"[[Set]]"))}});var ht=s((Tx,Ts)=>{"use strict";Ts.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var Os=s((Ax,Is)=>{"use strict";var Ps=O(),cy=Ps("%Object.preventExtensions%",!0),fy=Ps("%Object.isExtensible%",!0),As=ht();Is.exports=cy?function(e){return!As(e)&&fy(e)}:function(e){return!As(e)}});var ks=s((Px,$s)=>{"use strict";var dy=R();$s.exports=function(e,t){return dy(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var _s=s((Ix,Cs)=>{"use strict";var yy=S(),my=cr(),gy=ir(),vy=R();Cs.exports=function(e){if(typeof e>"u")return!1;if(!vy(e))throw new yy("Assertion failed: `Desc` must be a Property Descriptor");return!my(e)&&!gy(e)}});var Rs=s((Ox,Ns)=>{"use strict";var ce=S(),hy=k(),Ce=ot(),by=ks(),Fs=R(),_e=it(),Q=cr(),B=ir(),Sy=_s(),xy=U(),F=ar();Ns.exports=function(e,t,n,o,i){if(typeof e<"u"&&!hy(e))throw new ce("Assertion failed: O must be undefined or an Object");if(!xy(t))throw new ce("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new ce("Assertion failed: extensible must be a Boolean");if(!Fs(o))throw new ce("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Fs(i))throw new ce("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?typeof e>"u"?!0:Q(o)?Ce(B,F,_e,e,t,o):Ce(B,F,_e,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!by({IsAccessorDescriptor:Q,IsDataDescriptor:B},i))throw new ce("`current`, when present, must be a fully populated and valid Property Descriptor");if(!i["[[Configurable]]"]){if("[[Configurable]]"in o&&o["[[Configurable]]"]||"[[Enumerable]]"in o&&!F(o["[[Enumerable]]"],i["[[Enumerable]]"])||!Sy(o)&&!F(Q(o),Q(i)))return!1;if(Q(i)){if("[[Get]]"in o&&!F(o["[[Get]]"],i["[[Get]]"])||"[[Set]]"in o&&!F(o["[[Set]]"],i["[[Set]]"]))return!1}else if(!i["[[Writable]]"]&&("[[Writable]]"in o&&o["[[Writable]]"]||"[[Value]]"in o&&!F(o["[[Value]]"],i["[[Value]]"])))return!1}if(typeof e<"u"){var a,l;return B(i)&&Q(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ce(B,F,_e,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!l,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):Q(i)&&B(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ce(B,F,_e,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!l,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):Ce(B,F,_e,e,t,o)}return!0}});var Vs=s(($x,Ls)=>{"use strict";var js=j(),Ms=be(),bt=S(),Ey=k(),wy=R(),qy=cr(),Ty=Os(),Ay=U(),Py=ft(),Iy=ar(),Oy=Rs();Ls.exports=function(e,t,n){if(!Ey(e))throw new bt("Assertion failed: O must be an Object");if(!Ay(t))throw new bt("Assertion failed: P must be a Property Key");if(!wy(n))throw new bt("Assertion failed: Desc must be a Property Descriptor");if(!js){if(qy(n))throw new Ms("This environment does not support accessor property descriptors.");var o=!(t in e)&&n["[[Writable]]"]&&n["[[Enumerable]]"]&&n["[[Configurable]]"]&&"[[Value]]"in n,i=t in e&&(!("[[Configurable]]"in n)||n["[[Configurable]]"])&&(!("[[Enumerable]]"in n)||n["[[Enumerable]]"])&&(!("[[Writable]]"in n)||n["[[Writable]]"])&&"[[Value]]"in n;if(o||i)return e[t]=n["[[Value]]"],Iy(e[t],n["[[Value]]"]);throw new Ms("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=js(e,t),l=a&&Py(a),p=Ty(e);return Oy(e,t,p,n,l)}});var Bs=s((kx,Us)=>{"use strict";var Ds=S(),$y=k(),ky=U(),Cy=Vs();Us.exports=function(e,t,n){if(!$y(e))throw new Ds("Assertion failed: Type(O) is not Object");if(!ky(t))throw new Ds("Assertion failed: P is not a Property Key");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Cy(e,t,o)}});var Ws=s((Cx,Js)=>{"use strict";var St=S(),_y=k(),Fy=Bs(),Ny=U();Js.exports=function(e,t,n){if(!_y(e))throw new St("Assertion failed: Type(O) is not Object");if(!Ny(t))throw new St("Assertion failed: P is not a Property Key");var o=Fy(e,t,n);if(!o)throw new St("unable to create data property")}});var Xs=s((_x,Hs)=>{"use strict";var Gs=S(),Ry=k(),jy=U();Hs.exports=function(e,t){if(!Ry(e))throw new Gs("Assertion failed: `O` must be an Object");if(!jy(t))throw new Gs("Assertion failed: `P` must be a Property Key");return t in e}});var Ks=s((Fx,zs)=>{"use strict";zs.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var xt=s((Nx,Qs)=>{"use strict";var My=ze();Qs.exports=function(){return My()&&!!Symbol.toStringTag}});var eu=s((Rx,Zs)=>{"use strict";var Ys=$(),Ly=Ys("Date.prototype.getDay"),Vy=function(e){try{return Ly(e),!0}catch{return!1}},Dy=Ys("Object.prototype.toString"),Uy="[object Date]",By=xt()();Zs.exports=function(e){return typeof e!="object"||e===null?!1:By?Vy(e):Dy(e)===Uy}});var au=s((jx,iu)=>{"use strict";var ru=$(),Jy=xt()(),Wy=L(),Gy=j(),qt;Jy?(tu=ru("RegExp.prototype.exec"),Et={},fr=function(){throw Et},wt={toString:fr,valueOf:fr},typeof Symbol.toPrimitive=="symbol"&&(wt[Symbol.toPrimitive]=fr),qt=function(e){if(!e||typeof e!="object")return!1;var t=Gy(e,"lastIndex"),n=t&&Wy(t,"value");if(!n)return!1;try{tu(e,wt)}catch(o){return o===Et}}):(nu=ru("Object.prototype.toString"),ou="[object RegExp]",qt=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:nu(e)===ou});var tu,Et,fr,wt,nu,ou;iu.exports=qt});var Tt=s((Mx,su)=>{"use strict";var Hy=$(),Xy=au(),zy=Hy("RegExp.prototype.exec"),Ky=S();su.exports=function(e){if(!Xy(e))throw new Ky("`regex` must be a RegExp");return function(n){return zy(e,n)!==null}}});var fu=s((Lx,At)=>{"use strict";var cu=$(),Qy=cu("Object.prototype.toString"),Yy=Rr()(),Zy=Tt();Yy?(uu=cu("Symbol.prototype.toString"),lu=Zy(/^Symbol\(.*\)$/),pu=function(e){return typeof e.valueOf()!="symbol"?!1:lu(uu(e))},At.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Qy(e)!=="[object Symbol]")return!1;try{return pu(e)}catch{return!1}}):At.exports=function(e){return!1};var uu,lu,pu});var gu=s((Vx,mu)=>{"use strict";var em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Pt=Ks(),yu=pt(),rm=eu(),du=fu(),tm=function(e,t){if(typeof e>"u"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var n=t==="string"?["toString","valueOf"]:["valueOf","toString"],o,i,a;for(a=0;a<n.length;++a)if(o=e[n[a]],yu(o)&&(i=o.call(e),Pt(i)))return i;throw new TypeError("No default value")},nm=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!yu(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}};mu.exports=function(e){if(Pt(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(em&&(Symbol.toPrimitive?n=nm(e,Symbol.toPrimitive):du(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(Pt(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(rm(e)||du(e))&&(t="string"),tm(e,t==="default"?"number":t)}});var bu=s((Dx,hu)=>{"use strict";var vu=gu();hu.exports=function(e){return arguments.length>1?vu(e,arguments[1]):vu(e)}});var Fe=s((Ux,Su)=>{"use strict";var om=S();Su.exports=function(e){if(e==null)throw new om(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var It=s((Bx,xu)=>{"use strict";var im=O(),am=im("%String%"),sm=S();xu.exports=function(e){if(typeof e=="symbol")throw new sm("Cannot convert a Symbol value to a string");return am(e)}});var Ot=s((Jx,qu)=>{"use strict";var um=Fe(),lm=It(),pm=$(),Eu=pm("String.prototype.replace"),wu=/^\s$/.test("\u180E"),cm=wu?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,fm=wu?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;qu.exports=function(){var e=lm(um(this));return Eu(Eu(e,cm,""),fm,"")}});var $t=s((Wx,Au)=>{"use strict";var dm=Ot(),Tu="\u200B",fe="\u180E";Au.exports=function(){return String.prototype.trim&&Tu.trim()===Tu&&fe.trim()===fe&&("_"+fe).trim()==="_"+fe&&(fe+"_").trim()===fe+"_"?String.prototype.trim:dm}});var Ou=s((Gx,Iu)=>{"use strict";var ym=Se()(),Pu=He(),mm=$t();Iu.exports=function(){var e=mm();return String.prototype.trim!==e&&(ym?Pu(String.prototype,"trim",e,!0):Pu(String.prototype,"trim",e)),e}});var _u=s((Hx,Cu)=>{"use strict";var gm=Te(),vm=M(),hm=Fe(),bm=Ot(),$u=$t(),Sm=Ou(),xm=gm($u()),ku=function(e){return hm(e),xm(e)};vm(ku,{getPolyfill:$u,implementation:bm,shim:Sm});Cu.exports=ku});var Mu=s((Xx,ju)=>{"use strict";var Ru=O(),Em=Ru("%RegExp%"),wm=S(),Fu=Ru("%parseInt%"),qm=$(),dr=Tt(),Nu=qm("String.prototype.slice"),Tm=dr(/^0b[01]+$/i),Am=dr(/^0o[0-7]+$/i),Pm=dr(/^[-+]0x[0-9a-f]+$/i),Im=["\x85","\u200B","\uFFFE"].join(""),Om=new Em("["+Im+"]","g"),$m=dr(Om),km=_u();ju.exports=function r(e){if(typeof e!="string")throw new wm("Assertion failed: `argument` is not a String");if(Tm(e))return+Fu(Nu(e,2),2);if(Am(e))return+Fu(Nu(e,2),8);if($m(e)||Pm(e))return NaN;var t=km(e);return t!==e?r(t):+e}});var Du=s((zx,Vu)=>{"use strict";var Cm=O(),Lu=S(),_m=Cm("%Number%"),Fm=ht(),Nm=bu(),Rm=Mu();Vu.exports=function(e){var t=Fm(e)?e:Nm(e,_m);if(typeof t=="symbol")throw new Lu("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Lu("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?Rm(t):+t}});var Bu=s((Kx,Uu)=>{"use strict";var jm=Xe();Uu.exports=function(e){return typeof e=="bigint"?e:jm(e)}});var Gu=s((Qx,Wu)=>{"use strict";var Ju=Bu(),Mm=S();Wu.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Mm("argument must be a Number or a BigInt");var t=e<0?-Ju(-e):Ju(e);return t===0?0:t}});var kt=s((Yx,Hu)=>{"use strict";var Lm=Du(),Vm=Gu(),Dm=ne(),Um=Ur();Hu.exports=function(e){var t=Lm(e);return Dm(t)||t===0?0:Um(t)?Vm(t):t}});var Ct=s((Zx,zu)=>{"use strict";var Xu=vt(),Bm=kt();zu.exports=function(e){var t=Bm(e);return t<=0?0:t>Xu?Xu:t}});var Qu=s((eE,Ku)=>{"use strict";var Jm=S(),Wm=k(),Gm=$e(),Hm=Ct();Ku.exports=function(e){if(!Wm(e))throw new Jm("Assertion failed: `obj` must be an Object");return Hm(Gm(e,"length"))}});var rl=s((rE,el)=>{"use strict";var Yu=S(),Xm=vt(),zm=Es(),Km=Ws(),Qm=$e(),Ym=Xs(),Zm=or(),eg=Qu(),Zu=It();el.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var l=o,p=0;p<n;){var u=Zu(p),f=Ym(t,u);if(f===!0){var m=Qm(t,u);if(typeof a<"u"){if(arguments.length<=6)throw new Yu("Assertion failed: thisArg is required when mapperFunction is provided");m=zm(a,arguments[6],[m,p,t])}var y=!1;if(i>0&&(y=Zm(m)),y){var d=eg(m);l=r(e,m,d,l,i-1)}else{if(l>=Xm)throw new Yu("index too large");Km(e,Zu(l),m),l+=1}}p+=1}return l}});var nl=s((tE,tl)=>{"use strict";var rg=te(),tg=Fe();tl.exports=function(e){return tg(e),rg(e)}});var il=s((nE,ol)=>{"use strict";ol.exports=nl()});var _t=s((oE,al)=>{"use strict";var ng=bs(),og=rl(),ig=$e(),ag=kt(),sg=Ct(),ug=il();al.exports=function(){var e=ug(this),t=sg(ig(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=ag(arguments[0]));var o=ng(e,0);return og(o,e,t,0,n),o}});var Ft=s((iE,sl)=>{"use strict";var lg=_t();sl.exports=function(){return Array.prototype.flat||lg}});var fl=s((aE,cl)=>{"use strict";var pg=L(),pl=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",ul=pl&&Array.prototype[Symbol.unscopables],ll=TypeError;cl.exports=function(e){if(typeof e!="string"||!e)throw new ll("method must be a non-empty string");if(!pg(Array.prototype,e))throw new ll("method must be on Array.prototype");pl&&ul&&(ul[e]=!0)}});var yl=s((sE,dl)=>{"use strict";var cg=M(),fg=fl(),dg=Ft();dl.exports=function(){var e=dg();return cg(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),fg("flat"),e}});var hl=s((uE,vl)=>{"use strict";var yg=M(),mg=Te(),gg=_t(),ml=Ft(),vg=ml(),hg=yl(),gl=mg(vg);yg(gl,{getPolyfill:ml,implementation:gg,shim:hg});vl.exports=gl});var Nt=s((lE,bl)=>{"use strict";var bg=Fe(),Sg=$(),xg=Sg("Object.prototype.propertyIsEnumerable");bl.exports=function(e){var t=bg(e),n=[];for(var o in t)xg(t,o)&&(n[n.length]=t[o]);return n}});var Rt=s((pE,Sl)=>{"use strict";var Eg=Nt();Sl.exports=function(){return typeof Object.values=="function"?Object.values:Eg}});var El=s((cE,xl)=>{"use strict";var wg=Rt(),qg=M();xl.exports=function(){var e=wg();return qg(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var Al=s((fE,Tl)=>{"use strict";var Tg=M(),Ag=Te(),Pg=Nt(),wl=Rt(),Ig=El(),ql=Ag(wl(),Object);Tg(ql,{getPolyfill:wl,implementation:Pg,shim:Ig});Tl.exports=ql});var Ol=s(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.eventHandlersByType=void 0;var Og=hl(),$g=Pl(Og),kg=Al(),Cg=Pl(kg);function Pl(r){return r&&r.__esModule?r:{default:r}}var Il={clipboard:["onCopy","onCut","onPaste"],composition:["onCompositionEnd","onCompositionStart","onCompositionUpdate"],keyboard:["onKeyDown","onKeyPress","onKeyUp"],focus:["onFocus","onBlur"],form:["onChange","onInput","onSubmit"],mouse:["onClick","onContextMenu","onDblClick","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],selection:["onSelect"],touch:["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],ui:["onScroll"],wheel:["onWheel"],media:["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],image:["onLoad","onError"],animation:["onAnimationStart","onAnimationEnd","onAnimationIteration"],transition:["onTransitionEnd"]};Ne.default=(0,$g.default)((0,Cg.default)(Il));Ne.eventHandlersByType=Il});var kl=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});var _g=(function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var l=e[Symbol.iterator](),p;!(o=(p=l.next()).done)&&(n.push(p.value),!(t&&n.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Mt.default=Mg;var Fg=Ue(),Ng=Rg(Fg);function Rg(r){return r&&r.__esModule?r:{default:r}}function $l(r,e){var t={};for(var n in r)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}var jg={ignoreCase:!0};function Mg(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:jg;function n(l){return t.ignoreCase?l.toUpperCase():l}var o=n(e);function i(l){return l.type==="Property"&&l.key.type==="Identifier"&&o===n(l.key.name)}var a=r.find(function(l){return l.type==="JSXSpreadAttribute"?l.argument.type==="ObjectExpression"&&o!==n("key")&&l.argument.properties.some(i):o===n((0,Ng.default)(l))});return a&&a.type==="JSXSpreadAttribute"?Lg(a.argument.properties.find(i)):a}function Lg(r){var e=r.key,t=r.value;return de({type:"JSXAttribute",name:de({type:"JSXIdentifier",name:e.name},jt(e)),value:t.type==="Literal"?Re(t):de({type:"JSXExpressionContainer",expression:Vg(t)},jt(t))},jt(r))}function Re(r){var e=r.range||[r.start,r.end],t=_g(e,2),n=t[0],o=t[1];return de({},r,{end:void 0,range:[n,o],start:void 0})}function Vg(r){var e=r.expressions,t=r.quasis,n=$l(r,["expressions","quasis"]);return de({},Re(n),e?{expressions:e.map(Re)}:{},t?{quasis:t.map(Re)}:{})}function jt(r){var e=r.loc,t=$l(r,["loc"]),n=Re(t),o=n.range;return{loc:Dg(e),range:o}}function Dg(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return de({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Vt=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.default=Ug;function Ug(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var Ut=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=Bg;function Bg(r){var e=yr().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var Jt=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=Jg;function Jg(r){return r.raw}});var Gt=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=Wg;function Wg(r){var e=yr().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var _l=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=Gg;var Cl={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Gg(r){var e=r.name;return Object.hasOwnProperty.call(Cl,e)?Cl[e]:e}});var zt=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.default=Xg;function Hg(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function Xg(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(Hg).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var l=a.raw,p=o.name;return i==="TemplateElement"?l:i==="Identifier"?p==="undefined"?p:"{"+p+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Fl=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=Yg;var zg=zt(),Kg=Qg(zg);function Qg(r){return r&&r.__esModule?r:{default:r}}function Yg(r){return(0,Kg.default)(r.quasi)}});var Nl=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=Zg;function Zg(r){return function(){return r}}});var Rl=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=ev;function ev(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);return t==="&&"?i&&a:t==="??"?i===null||typeof i>"u"?a:i:i||a}});var jl=s(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=rv;function rv(r){var e=P().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Ml=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=tv;function tv(r){var e=P().default;return e(r.expression||r)}});var Ll=s(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=nv;function nv(r){var e=P().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var Vl=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=ov;function ov(r){var e=P().default;return e(r.object)+"?."+e(r.property)}});var on=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=iv;function iv(r){var e=P().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var Dl=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=av;function av(r){var e=P().default,t=r.operator,n=r.argument;switch(t){case"-":return-e(n);case"+":return+e(n);case"!":return!e(n);case"~":return~e(n);case"delete":return!0;default:return}}});var un=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=sv;function sv(){return"this"}});var Ul=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=uv;function uv(r){var e=P().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var Bl=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=lv;function lv(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);switch(t){case"==":return i==a;case"!=":return i!=a;case"===":return i===a;case"!==":return i!==a;case"<":return i<a;case"<=":return i<=a;case">":return i>a;case">=":return i>=a;case"<<":return i<<a;case">>":return i>>a;case">>>":return i>>>a;case"+":return i+a;case"-":return i-a;case"*":return i*a;case"/":return i/a;case"%":return i%a;case"|":return i|a;case"^":return i^a;case"&":return i&a;case"in":try{return i in a}catch{return!1}case"instanceof":return typeof a!="function"?!1:i instanceof a;default:return}}});var cn=s((_E,Hl)=>{"use strict";var pv=Cr(),Wl=ze()(),Gl=$(),mr=te(),cv=Gl("Array.prototype.push"),Jl=Gl("Object.prototype.propertyIsEnumerable"),fv=Wl?mr.getOwnPropertySymbols:null;Hl.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=mr(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=mr(arguments[o]),a=pv(i),l=Wl&&(mr.getOwnPropertySymbols||fv);if(l)for(var p=l(i),u=0;u<p.length;++u){var f=p[u];Jl(i,f)&&cv(a,f)}for(var m=0;m<a.length;++m){var y=a[m];if(Jl(i,y)){var d=i[y];n[y]=d}}}return n}});var dn=s((FE,Xl)=>{"use strict";var fn=cn(),dv=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},n=0;n<e.length;++n)t[e[n]]=e[n];var o=Object.assign({},t),i="";for(var a in o)i+=a;return r!==i},yv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};Xl.exports=function(){return!Object.assign||dv()||yv()?fn:Object.assign}});var Kl=s((NE,zl)=>{"use strict";var mv=M(),gv=dn();zl.exports=function(){var e=gv();return mv(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var ep=s((RE,Zl)=>{"use strict";var vv=M(),hv=Te(),bv=cn(),Ql=dn(),Sv=Kl(),xv=hv.apply(Ql()),Yl=function(e,t){return xv(Object,arguments)};vv(Yl,{getPolyfill:Ql,implementation:bv,shim:Sv});Zl.exports=Yl});var np=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=tp;var Ev=ep(),rp=wv(Ev);function wv(r){return r&&r.__esModule?r:{default:r}}function qv(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function tp(r){var e=P().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,rp.default)({},t,tp(n.argument))}else return(0,rp.default)({},t,qv({},e(n.key),e(n.value)));return t},{})}});var op=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=Tv;function Tv(){return new Object}});var ip=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=Av;function Av(r){var e=P().default,t=r.operator,n=r.argument,o=r.prefix,i=e(n);switch(t){case"++":return o?++i:i++;case"--":return o?--i:i--;default:return}}});var ap=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=Pv;function Pv(r){var e=P().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var sp=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=Iv;function Iv(r){var e=P().default,t=e(r.callee),n=r.object===null?e(r.callee.object):e(r.object);return r.object&&r.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var up=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=Ov;function Ov(){}});var lp=s(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=$v;function $v(r){var e=P().default;return e(r.expression)}});var pp=s(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=kv;function kv(r){var e=P().default;return r.expressions.map(function(t){return e(t)})}});var fp=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=J;var Cv=un().default,_v=on().default;function cp(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function J(r){var e="The prop value with an expression type of TSNonNullExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.";if(r.type==="Identifier"){var t=r.name;return t}if(r.type==="Literal")return r.value;if(r.type==="TSAsExpression")return J(r.expression);if(r.type==="CallExpression")return _v(r);if(r.type==="ThisExpression")return Cv();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return J(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+J(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return cp(J(r.object),J(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=cp(J(r.object),J(r.property),r);return"("+i+")"}}if(r.expression)for(var a=r.expression;a;){if(a.type==="Identifier")return console.error(e),a.name;var l=a;a=l.expression}return console.error(e),""}});var dp=s(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Fv;function Fv(r){var e=P().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var P=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});var Nv=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};gr.default=jh;gr.extractLiteral=Mh;var Rv=Vt(),jv=w(Rv),Mv=Ut(),Lv=w(Mv),Vv=Gt(),Dv=w(Vv),Uv=Jt(),Bv=w(Uv),Jv=_l(),Wv=w(Jv),Gv=Fl(),Hv=w(Gv),Xv=zt(),zv=w(Xv),Kv=Nl(),yp=w(Kv),Qv=Rl(),Yv=w(Qv),Zv=jl(),eh=w(Zv),rh=Ml(),th=w(rh),nh=Ll(),oh=w(nh),ih=Vl(),ah=w(ih),sh=on(),uh=w(sh),lh=Dl(),ph=w(lh),ch=un(),fh=w(ch),dh=Ul(),yh=w(dh),mh=Bl(),gh=w(mh),vh=np(),hh=w(vh),bh=op(),Sh=w(bh),xh=ip(),Eh=w(xh),wh=ap(),qh=w(wh),Th=sp(),Ah=w(Th),Ph=up(),Ih=w(Ph),Oh=lp(),$h=w(Oh),kh=pp(),Ch=w(kh),_h=fp(),Fh=w(_h),Nh=dp(),Rh=w(Nh);function w(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:Wv.default,Literal:jv.default,JSXElement:Lv.default,JSXFragment:Dv.default,JSXText:Bv.default,TaggedTemplateExpression:Hv.default,TemplateLiteral:zv.default,ArrowFunctionExpression:yp.default,FunctionExpression:yp.default,LogicalExpression:Yv.default,MemberExpression:eh.default,ChainExpression:th.default,OptionalCallExpression:oh.default,OptionalMemberExpression:ah.default,CallExpression:uh.default,UnaryExpression:ph.default,ThisExpression:fh.default,ConditionalExpression:yh.default,BinaryExpression:gh.default,ObjectExpression:hh.default,NewExpression:Sh.default,UpdateExpression:Eh.default,ArrayExpression:qh.default,BindExpression:Ah.default,SpreadElement:Ih.default,TypeCastExpression:$h.default,SequenceExpression:Ch.default,TSNonNullExpression:Fh.default,AssignmentExpression:Rh.default},q=function(){return null},gp=function(e){return"The prop value with an expression type of "+e+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function jh(r){var e=void 0;typeof r.expression!="boolean"&&r.expression?e=r.expression:e=r;var t=e,n=t.type;for(e.object&&e.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=e;if(n=o.type,e.expression){var i=e;e=i.expression}}return W[n]===void 0?(console.error(gp(n)),null):W[n](e)}var mp=Nv({},W,{Literal:function(e){var t=W.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=W.Identifier.call(void 0,e)===void 0;return t?void 0:null},JSXElement:q,JSXFragment:q,JSXText:q,ArrowFunctionExpression:q,FunctionExpression:q,LogicalExpression:q,MemberExpression:q,OptionalCallExpression:q,OptionalMemberExpression:q,CallExpression:q,UnaryExpression:function(e){var t=W.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=W.UpdateExpression.call(void 0,e);return t===void 0?null:t},ThisExpression:q,ConditionalExpression:q,BinaryExpression:q,ObjectExpression:q,NewExpression:q,ArrayExpression:function(e){var t=W.ArrayExpression.call(void 0,e);return t.filter(function(n){return n!==null})},BindExpression:q,SpreadElement:q,TSNonNullExpression:q,TSAsExpression:q,TypeCastExpression:q,SequenceExpression:q,ChainExpression:q});function Mh(r){var e=r.expression||r,t=e.type;return mp[t]===void 0?(console.error(gp(t)),null):mp[t](e)}});var yr=s(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var Lh=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};vr.default=Kh;vr.getLiteralValue=Qh;var Vh=Vt(),Dh=je(Vh),Uh=Ut(),Bh=je(Uh),Jh=Jt(),Wh=je(Jh),Gh=Gt(),Hh=je(Gh),vp=P(),Xh=je(vp);function je(r){return r&&r.__esModule?r:{default:r}}var qn={Literal:Dh.default,JSXElement:Bh.default,JSXExpressionContainer:Xh.default,JSXText:Wh.default,JSXFragment:Hh.default},zh=Lh({},qn,{JSXElement:function(){return null},JSXExpressionContainer:vp.extractLiteral});function Kh(r){return qn[r.type]||console.log(r.type),qn[r.type](r)}function Qh(r){return zh[r.type](r)}});var Sp=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=eb;hr.getLiteralPropValue=rb;var hp=yr(),Yh=Zh(hp);function Zh(r){return r&&r.__esModule?r:{default:r}}var bp=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function eb(r){return bp(r,Yh.default)}function rb(r){return bp(r,hp.getLiteralValue)}});var br=s((KE,wp)=>{"use strict";var Tn=Hn(),tb=ye(Tn),nb=zn(),ob=ye(nb),xp=Ol(),ib=ye(xp),ab=kl(),sb=ye(ab),Ep=Sp(),ub=ye(Ep),lb=Ue(),pb=ye(lb);function ye(r){return r&&r.__esModule?r:{default:r}}wp.exports={hasProp:tb.default,hasAnyProp:Tn.hasAnyProp,hasEveryProp:Tn.hasEveryProp,elementType:ob.default,eventHandlers:ib.default,eventHandlersByType:xp.eventHandlersByType,getProp:sb.default,getPropValue:ub.default,getLiteralPropValue:Ep.getLiteralPropValue,propName:pb.default}});var Db={};Qp(Db,{configs:()=>Mb,qwikEslint9Plugin:()=>Rn,rules:()=>Dp});module.exports=Yp(Db);var Un=require("@typescript-eslint/utils"),Zp=Un.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),Bn=Zp({defaultOptions:[],name:"jsx-a-tag",meta:{type:"problem",docs:{description:"For a perfect SEO score, always provide href attribute for <a> elements.",recommended:"warn"},fixable:"code",schema:[],messages:{noHref:"For a perfect SEO score, always provide href attribute for <a> elements."}},create(r){return{JSXElement(e){e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="a"&&(e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")||e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&o.name.name==="href")||r.report({node:e,messageId:"noHref"}))}}}});var Jn=require("@typescript-eslint/utils"),ec=Jn.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Wn=ec({defaultOptions:[],name:"jsx-img",meta:{type:"problem",docs:{description:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.",recommended:"warn"},fixable:"code",schema:[],messages:{noLocalSrc:`Local images can be optimized by importing using ESM, like this:
4
+ `+e.prev}function rr(r,e){var t=Yr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=N(r,o)?e(r[o],r):""}var i=typeof Hr=="function"?Hr(r):[],a;if(le){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var p in r)N(r,p)&&(t&&String(Number(p))===p&&p<r.length||le&&a["$"+p]instanceof Symbol||(wa.call(/[^\w$]/,p)?n.push(e(p,r)+": "+e(r[p],r)):n.push(p+": "+e(r[p],r))));if(typeof Hr=="function")for(var u=0;u<i.length;u++)qa.call(r,i[u])&&n.push("["+e(i[u])+"]: "+e(r[i[u]],r));return n}});var U=s((ix,Ca)=>{"use strict";Ca.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var $e=s((ax,Fa)=>{"use strict";var _a=S(),Sd=ka(),xd=U(),Ed=k();Fa.exports=function(e,t){if(!Ed(e))throw new _a("Assertion failed: Type(O) is not Object");if(!xd(t))throw new _a("Assertion failed: P is not a Property Key, got "+Sd(t));return e[t]}});var $=s((sx,ja)=>{"use strict";var Na=O(),Ra=xe(),wd=Ra([Na("%String.prototype.indexOf%")]);ja.exports=function(e,t){var n=Na(e,!!t);return typeof n=="function"&&wd(e,".prototype.")>-1?Ra([n]):n}});var nt=s((ux,La)=>{"use strict";var qd=O(),Ma=qd("%Array%"),Td=!Ma.isArray&&$()("Object.prototype.toString");La.exports=Ma.isArray||function(e){return Td(e)==="[object Array]"}});var or=s((lx,Va)=>{"use strict";Va.exports=nt()});var Ua=s((px,Da)=>{"use strict";Da.exports=O()});var R=s((cx,Ba)=>{"use strict";var Ad=S(),ke=L(),Pd={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Ba.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(ke(e,t)&&!Pd[t])return!1;var n=ke(e,"[[Value]]")||ke(e,"[[Writable]]"),o=ke(e,"[[Get]]")||ke(e,"[[Set]]");if(n&&o)throw new Ad("Property Descriptors may not be both accessor and data descriptors");return!0}});var ot=s((fx,Ga)=>{"use strict";var Id=Se(),Ja=ee(),Wa=Id.hasArrayLengthDefineBug(),Od=Wa&&nt(),$d=$(),kd=$d("Object.prototype.propertyIsEnumerable");Ga.exports=function(e,t,n,o,i,a){if(!Ja){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&kd(o,i)!==!!a["[[Enumerable]]"])return!1;var l=a["[[Value]]"];return o[i]=l,t(o[i],l)}return Wa&&i==="length"&&"[[Value]]"in a&&Od(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(Ja(o,i,n(a)),!0)}});var Xa=s((dx,Ha)=>{"use strict";Ha.exports=function(e){if(typeof e>"u")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}});var it=s((yx,za)=>{"use strict";var Cd=S(),_d=R(),Fd=Xa();za.exports=function(e){if(typeof e<"u"&&!_d(e))throw new Cd("Assertion failed: `Desc` must be a Property Descriptor");return Fd(e)}});var ir=s((mx,Qa)=>{"use strict";var Nd=S(),Ka=L(),Rd=R();Qa.exports=function(e){if(typeof e>"u")return!1;if(!Rd(e))throw new Nd("Assertion failed: `Desc` must be a Property Descriptor");return!(!Ka(e,"[[Value]]")&&!Ka(e,"[[Writable]]"))}});var ar=s((gx,Za)=>{"use strict";var Ya=ne();Za.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Ya(e)&&Ya(t)}});var pt=s((vx,ts)=>{"use strict";var rs=Function.prototype.toString,pe=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,st,sr;if(typeof pe=="function"&&typeof Object.defineProperty=="function")try{st=Object.defineProperty({},"length",{get:function(){throw sr}}),sr={},pe(function(){throw 42},null,st)}catch(r){r!==sr&&(pe=null)}else pe=null;var jd=/^\s*class\b/,ut=function(e){try{var t=rs.call(e);return jd.test(t)}catch{return!1}},at=function(e){try{return ut(e)?!1:(rs.call(e),!0)}catch{return!1}},ur=Object.prototype.toString,Md="[object Object]",Ld="[object Function]",Vd="[object GeneratorFunction]",Dd="[object HTMLAllCollection]",Ud="[object HTML document.all class]",Bd="[object HTMLCollection]",Jd=typeof Symbol=="function"&&!!Symbol.toStringTag,Wd=!(0 in[,]),lt=function(){return!1};typeof document=="object"&&(es=document.all,ur.call(es)===ur.call(document.all)&&(lt=function(e){if((Wd||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=ur.call(e);return(t===Dd||t===Ud||t===Bd||t===Md)&&e("")==null}catch{}return!1}));var es;ts.exports=pe?function(e){if(lt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{pe(e,null,st)}catch(t){if(t!==sr)return!1}return!ut(e)&&at(e)}:function(e){if(lt(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Jd)return at(e);if(ut(e))return!1;var t=ur.call(e);return t!==Ld&&t!==Vd&&!/^\[object HTML/.test(t)?!1:at(e)}});var os=s((hx,ns)=>{"use strict";ns.exports=pt()});var as=s((bx,is)=>{"use strict";is.exports=function(e){return!!e}});var ft=s((Sx,us)=>{"use strict";var _=L(),lr=S(),Gd=k(),ss=os(),ct=as();us.exports=function(e){if(!Gd(e))throw new lr("ToPropertyDescriptor requires an object");var t={};if(_(e,"enumerable")&&(t["[[Enumerable]]"]=ct(e.enumerable)),_(e,"configurable")&&(t["[[Configurable]]"]=ct(e.configurable)),_(e,"value")&&(t["[[Value]]"]=e.value),_(e,"writable")&&(t["[[Writable]]"]=ct(e.writable)),_(e,"get")){var n=e.get;if(typeof n<"u"&&!ss(n))throw new lr("getter must be a function");t["[[Get]]"]=n}if(_(e,"set")){var o=e.set;if(typeof o<"u"&&!ss(o))throw new lr("setter must be a function");t["[[Set]]"]=o}if((_(t,"[[Get]]")||_(t,"[[Set]]"))&&(_(t,"[[Value]]")||_(t,"[[Writable]]")))throw new lr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var cs=s((xx,ps)=>{"use strict";var dt=S(),Hd=k(),ls=R(),Xd=ot(),zd=it(),Kd=ir(),Qd=U(),Yd=ar(),Zd=ft();ps.exports=function(e,t,n){if(!Hd(e))throw new dt("Assertion failed: Type(O) is not Object");if(!Qd(t))throw new dt("Assertion failed: P is not a Property Key");var o=ls(n)?n:Zd(n);if(!ls(o))throw new dt("Assertion failed: Desc is not a valid Property Descriptor");return Xd(Kd,Yd,zd,e,t,o)}});var ds=s((Ex,gt)=>{"use strict";var ey=Ua(),fs=ey("%Reflect.construct%",!0),pr=cs();try{pr({},"",{"[[Get]]":function(){}})}catch{pr=null}pr&&fs?(yt={},mt={},pr(mt,"length",{"[[Get]]":function(){throw yt},"[[Enumerable]]":!0}),gt.exports=function(e){try{fs(e,mt)}catch(t){return t===yt}}):gt.exports=function(e){return typeof e=="function"&&!!e.prototype};var yt,mt});var bs=s((wx,hs)=>{"use strict";var ry=O(),ys=ry("%Symbol.species%",!0),ms=S(),ty=Br(),ny=k(),gs=ua(),vs=$e(),oy=or(),iy=ds();hs.exports=function(e,t){if(!ty(t)||t<0)throw new ms("Assertion failed: length must be an integer >= 0");var n=oy(e);if(!n)return gs(t);var o=vs(e,"constructor");if(ys&&ny(o)&&(o=vs(o,ys),o===null&&(o=void 0)),typeof o>"u")return gs(t);if(!iy(o))throw new ms("C must be a constructor");return new o(t)}});var vt=s((qx,Ss)=>{"use strict";Ss.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var Es=s((Tx,xs)=>{"use strict";var ay=O(),sy=$(),uy=S(),ly=or(),py=ay("%Reflect.apply%",!0)||sy("Function.prototype.apply");xs.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!ly(n))throw new uy("Assertion failed: optional `argumentsList`, if provided, must be a List");return py(e,t,n)}});var cr=s((Ax,qs)=>{"use strict";var cy=S(),ws=L(),fy=R();qs.exports=function(e){if(typeof e>"u")return!1;if(!fy(e))throw new cy("Assertion failed: `Desc` must be a Property Descriptor");return!(!ws(e,"[[Get]]")&&!ws(e,"[[Set]]"))}});var ht=s((Px,Ts)=>{"use strict";Ts.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var Os=s((Ix,Is)=>{"use strict";var Ps=O(),dy=Ps("%Object.preventExtensions%",!0),yy=Ps("%Object.isExtensible%",!0),As=ht();Is.exports=dy?function(e){return!As(e)&&yy(e)}:function(e){return!As(e)}});var ks=s((Ox,$s)=>{"use strict";var my=R();$s.exports=function(e,t){return my(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var _s=s(($x,Cs)=>{"use strict";var gy=S(),vy=cr(),hy=ir(),by=R();Cs.exports=function(e){if(typeof e>"u")return!1;if(!by(e))throw new gy("Assertion failed: `Desc` must be a Property Descriptor");return!vy(e)&&!hy(e)}});var Rs=s((kx,Ns)=>{"use strict";var ce=S(),Sy=k(),Ce=ot(),xy=ks(),Fs=R(),_e=it(),Q=cr(),B=ir(),Ey=_s(),wy=U(),F=ar();Ns.exports=function(e,t,n,o,i){if(typeof e<"u"&&!Sy(e))throw new ce("Assertion failed: O must be undefined or an Object");if(!wy(t))throw new ce("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new ce("Assertion failed: extensible must be a Boolean");if(!Fs(o))throw new ce("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Fs(i))throw new ce("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?typeof e>"u"?!0:Q(o)?Ce(B,F,_e,e,t,o):Ce(B,F,_e,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!xy({IsAccessorDescriptor:Q,IsDataDescriptor:B},i))throw new ce("`current`, when present, must be a fully populated and valid Property Descriptor");if(!i["[[Configurable]]"]){if("[[Configurable]]"in o&&o["[[Configurable]]"]||"[[Enumerable]]"in o&&!F(o["[[Enumerable]]"],i["[[Enumerable]]"])||!Ey(o)&&!F(Q(o),Q(i)))return!1;if(Q(i)){if("[[Get]]"in o&&!F(o["[[Get]]"],i["[[Get]]"])||"[[Set]]"in o&&!F(o["[[Set]]"],i["[[Set]]"]))return!1}else if(!i["[[Writable]]"]&&("[[Writable]]"in o&&o["[[Writable]]"]||"[[Value]]"in o&&!F(o["[[Value]]"],i["[[Value]]"])))return!1}if(typeof e<"u"){var a,l;return B(i)&&Q(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ce(B,F,_e,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!l,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):Q(i)&&B(o)?(a=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],Ce(B,F,_e,e,t,{"[[Configurable]]":!!a,"[[Enumerable]]":!!l,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):Ce(B,F,_e,e,t,o)}return!0}});var Vs=s((Cx,Ls)=>{"use strict";var js=j(),Ms=be(),bt=S(),qy=k(),Ty=R(),Ay=cr(),Py=Os(),Iy=U(),Oy=ft(),$y=ar(),ky=Rs();Ls.exports=function(e,t,n){if(!qy(e))throw new bt("Assertion failed: O must be an Object");if(!Iy(t))throw new bt("Assertion failed: P must be a Property Key");if(!Ty(n))throw new bt("Assertion failed: Desc must be a Property Descriptor");if(!js){if(Ay(n))throw new Ms("This environment does not support accessor property descriptors.");var o=!(t in e)&&n["[[Writable]]"]&&n["[[Enumerable]]"]&&n["[[Configurable]]"]&&"[[Value]]"in n,i=t in e&&(!("[[Configurable]]"in n)||n["[[Configurable]]"])&&(!("[[Enumerable]]"in n)||n["[[Enumerable]]"])&&(!("[[Writable]]"in n)||n["[[Writable]]"])&&"[[Value]]"in n;if(o||i)return e[t]=n["[[Value]]"],$y(e[t],n["[[Value]]"]);throw new Ms("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=js(e,t),l=a&&Oy(a),p=Py(e);return ky(e,t,p,n,l)}});var Bs=s((_x,Us)=>{"use strict";var Ds=S(),Cy=k(),_y=U(),Fy=Vs();Us.exports=function(e,t,n){if(!Cy(e))throw new Ds("Assertion failed: Type(O) is not Object");if(!_y(t))throw new Ds("Assertion failed: P is not a Property Key");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Fy(e,t,o)}});var Ws=s((Fx,Js)=>{"use strict";var St=S(),Ny=k(),Ry=Bs(),jy=U();Js.exports=function(e,t,n){if(!Ny(e))throw new St("Assertion failed: Type(O) is not Object");if(!jy(t))throw new St("Assertion failed: P is not a Property Key");var o=Ry(e,t,n);if(!o)throw new St("unable to create data property")}});var Xs=s((Nx,Hs)=>{"use strict";var Gs=S(),My=k(),Ly=U();Hs.exports=function(e,t){if(!My(e))throw new Gs("Assertion failed: `O` must be an Object");if(!Ly(t))throw new Gs("Assertion failed: `P` must be a Property Key");return t in e}});var Ks=s((Rx,zs)=>{"use strict";zs.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var xt=s((jx,Qs)=>{"use strict";var Vy=ze();Qs.exports=function(){return Vy()&&!!Symbol.toStringTag}});var eu=s((Mx,Zs)=>{"use strict";var Ys=$(),Dy=Ys("Date.prototype.getDay"),Uy=function(e){try{return Dy(e),!0}catch{return!1}},By=Ys("Object.prototype.toString"),Jy="[object Date]",Wy=xt()();Zs.exports=function(e){return typeof e!="object"||e===null?!1:Wy?Uy(e):By(e)===Jy}});var au=s((Lx,iu)=>{"use strict";var ru=$(),Gy=xt()(),Hy=L(),Xy=j(),qt;Gy?(tu=ru("RegExp.prototype.exec"),Et={},fr=function(){throw Et},wt={toString:fr,valueOf:fr},typeof Symbol.toPrimitive=="symbol"&&(wt[Symbol.toPrimitive]=fr),qt=function(e){if(!e||typeof e!="object")return!1;var t=Xy(e,"lastIndex"),n=t&&Hy(t,"value");if(!n)return!1;try{tu(e,wt)}catch(o){return o===Et}}):(nu=ru("Object.prototype.toString"),ou="[object RegExp]",qt=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:nu(e)===ou});var tu,Et,fr,wt,nu,ou;iu.exports=qt});var Tt=s((Vx,su)=>{"use strict";var zy=$(),Ky=au(),Qy=zy("RegExp.prototype.exec"),Yy=S();su.exports=function(e){if(!Ky(e))throw new Yy("`regex` must be a RegExp");return function(n){return Qy(e,n)!==null}}});var fu=s((Dx,At)=>{"use strict";var cu=$(),Zy=cu("Object.prototype.toString"),em=Rr()(),rm=Tt();em?(uu=cu("Symbol.prototype.toString"),lu=rm(/^Symbol\(.*\)$/),pu=function(e){return typeof e.valueOf()!="symbol"?!1:lu(uu(e))},At.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Zy(e)!=="[object Symbol]")return!1;try{return pu(e)}catch{return!1}}):At.exports=function(e){return!1};var uu,lu,pu});var gu=s((Ux,mu)=>{"use strict";var tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",Pt=Ks(),yu=pt(),nm=eu(),du=fu(),om=function(e,t){if(typeof e>"u"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var n=t==="string"?["toString","valueOf"]:["valueOf","toString"],o,i,a;for(a=0;a<n.length;++a)if(o=e[n[a]],yu(o)&&(i=o.call(e),Pt(i)))return i;throw new TypeError("No default value")},im=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!yu(n))throw new TypeError(n+" returned for property "+String(t)+" of object "+e+" is not a function");return n}};mu.exports=function(e){if(Pt(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(tm&&(Symbol.toPrimitive?n=im(e,Symbol.toPrimitive):du(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(Pt(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(nm(e)||du(e))&&(t="string"),om(e,t==="default"?"number":t)}});var bu=s((Bx,hu)=>{"use strict";var vu=gu();hu.exports=function(e){return arguments.length>1?vu(e,arguments[1]):vu(e)}});var Fe=s((Jx,Su)=>{"use strict";var am=S();Su.exports=function(e){if(e==null)throw new am(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var It=s((Wx,xu)=>{"use strict";var sm=O(),um=sm("%String%"),lm=S();xu.exports=function(e){if(typeof e=="symbol")throw new lm("Cannot convert a Symbol value to a string");return um(e)}});var Ot=s((Gx,qu)=>{"use strict";var pm=Fe(),cm=It(),fm=$(),Eu=fm("String.prototype.replace"),wu=/^\s$/.test("\u180E"),dm=wu?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ym=wu?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;qu.exports=function(){var e=cm(pm(this));return Eu(Eu(e,dm,""),ym,"")}});var $t=s((Hx,Au)=>{"use strict";var mm=Ot(),Tu="\u200B",fe="\u180E";Au.exports=function(){return String.prototype.trim&&Tu.trim()===Tu&&fe.trim()===fe&&("_"+fe).trim()==="_"+fe&&(fe+"_").trim()===fe+"_"?String.prototype.trim:mm}});var Ou=s((Xx,Iu)=>{"use strict";var gm=Se()(),Pu=He(),vm=$t();Iu.exports=function(){var e=vm();return String.prototype.trim!==e&&(gm?Pu(String.prototype,"trim",e,!0):Pu(String.prototype,"trim",e)),e}});var _u=s((zx,Cu)=>{"use strict";var hm=Te(),bm=M(),Sm=Fe(),xm=Ot(),$u=$t(),Em=Ou(),wm=hm($u()),ku=function(e){return Sm(e),wm(e)};bm(ku,{getPolyfill:$u,implementation:xm,shim:Em});Cu.exports=ku});var Mu=s((Kx,ju)=>{"use strict";var Ru=O(),qm=Ru("%RegExp%"),Tm=S(),Fu=Ru("%parseInt%"),Am=$(),dr=Tt(),Nu=Am("String.prototype.slice"),Pm=dr(/^0b[01]+$/i),Im=dr(/^0o[0-7]+$/i),Om=dr(/^[-+]0x[0-9a-f]+$/i),$m=["\x85","\u200B","\uFFFE"].join(""),km=new qm("["+$m+"]","g"),Cm=dr(km),_m=_u();ju.exports=function r(e){if(typeof e!="string")throw new Tm("Assertion failed: `argument` is not a String");if(Pm(e))return+Fu(Nu(e,2),2);if(Im(e))return+Fu(Nu(e,2),8);if(Cm(e)||Om(e))return NaN;var t=_m(e);return t!==e?r(t):+e}});var Du=s((Qx,Vu)=>{"use strict";var Fm=O(),Lu=S(),Nm=Fm("%Number%"),Rm=ht(),jm=bu(),Mm=Mu();Vu.exports=function(e){var t=Rm(e)?e:jm(e,Nm);if(typeof t=="symbol")throw new Lu("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Lu("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?Mm(t):+t}});var Bu=s((Yx,Uu)=>{"use strict";var Lm=Xe();Uu.exports=function(e){return typeof e=="bigint"?e:Lm(e)}});var Gu=s((Zx,Wu)=>{"use strict";var Ju=Bu(),Vm=S();Wu.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Vm("argument must be a Number or a BigInt");var t=e<0?-Ju(-e):Ju(e);return t===0?0:t}});var kt=s((eE,Hu)=>{"use strict";var Dm=Du(),Um=Gu(),Bm=ne(),Jm=Ur();Hu.exports=function(e){var t=Dm(e);return Bm(t)||t===0?0:Jm(t)?Um(t):t}});var Ct=s((rE,zu)=>{"use strict";var Xu=vt(),Wm=kt();zu.exports=function(e){var t=Wm(e);return t<=0?0:t>Xu?Xu:t}});var Qu=s((tE,Ku)=>{"use strict";var Gm=S(),Hm=k(),Xm=$e(),zm=Ct();Ku.exports=function(e){if(!Hm(e))throw new Gm("Assertion failed: `obj` must be an Object");return zm(Xm(e,"length"))}});var rl=s((nE,el)=>{"use strict";var Yu=S(),Km=vt(),Qm=Es(),Ym=Ws(),Zm=$e(),eg=Xs(),rg=or(),tg=Qu(),Zu=It();el.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var l=o,p=0;p<n;){var u=Zu(p),f=eg(t,u);if(f===!0){var m=Zm(t,u);if(typeof a<"u"){if(arguments.length<=6)throw new Yu("Assertion failed: thisArg is required when mapperFunction is provided");m=Qm(a,arguments[6],[m,p,t])}var y=!1;if(i>0&&(y=rg(m)),y){var d=tg(m);l=r(e,m,d,l,i-1)}else{if(l>=Km)throw new Yu("index too large");Ym(e,Zu(l),m),l+=1}}p+=1}return l}});var nl=s((oE,tl)=>{"use strict";var ng=te(),og=Fe();tl.exports=function(e){return og(e),ng(e)}});var il=s((iE,ol)=>{"use strict";ol.exports=nl()});var _t=s((aE,al)=>{"use strict";var ig=bs(),ag=rl(),sg=$e(),ug=kt(),lg=Ct(),pg=il();al.exports=function(){var e=pg(this),t=lg(sg(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=ug(arguments[0]));var o=ig(e,0);return ag(o,e,t,0,n),o}});var Ft=s((sE,sl)=>{"use strict";var cg=_t();sl.exports=function(){return Array.prototype.flat||cg}});var fl=s((uE,cl)=>{"use strict";var fg=L(),pl=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",ul=pl&&Array.prototype[Symbol.unscopables],ll=TypeError;cl.exports=function(e){if(typeof e!="string"||!e)throw new ll("method must be a non-empty string");if(!fg(Array.prototype,e))throw new ll("method must be on Array.prototype");pl&&ul&&(ul[e]=!0)}});var yl=s((lE,dl)=>{"use strict";var dg=M(),yg=fl(),mg=Ft();dl.exports=function(){var e=mg();return dg(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),yg("flat"),e}});var hl=s((pE,vl)=>{"use strict";var gg=M(),vg=Te(),hg=_t(),ml=Ft(),bg=ml(),Sg=yl(),gl=vg(bg);gg(gl,{getPolyfill:ml,implementation:hg,shim:Sg});vl.exports=gl});var Nt=s((cE,bl)=>{"use strict";var xg=Fe(),Eg=$(),wg=Eg("Object.prototype.propertyIsEnumerable");bl.exports=function(e){var t=xg(e),n=[];for(var o in t)wg(t,o)&&(n[n.length]=t[o]);return n}});var Rt=s((fE,Sl)=>{"use strict";var qg=Nt();Sl.exports=function(){return typeof Object.values=="function"?Object.values:qg}});var El=s((dE,xl)=>{"use strict";var Tg=Rt(),Ag=M();xl.exports=function(){var e=Tg();return Ag(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var Al=s((yE,Tl)=>{"use strict";var Pg=M(),Ig=Te(),Og=Nt(),wl=Rt(),$g=El(),ql=Ig(wl(),Object);Pg(ql,{getPolyfill:wl,implementation:Og,shim:$g});Tl.exports=ql});var Ol=s(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.eventHandlersByType=void 0;var kg=hl(),Cg=Pl(kg),_g=Al(),Fg=Pl(_g);function Pl(r){return r&&r.__esModule?r:{default:r}}var Il={clipboard:["onCopy","onCut","onPaste"],composition:["onCompositionEnd","onCompositionStart","onCompositionUpdate"],keyboard:["onKeyDown","onKeyPress","onKeyUp"],focus:["onFocus","onBlur"],form:["onChange","onInput","onSubmit"],mouse:["onClick","onContextMenu","onDblClick","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],selection:["onSelect"],touch:["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],ui:["onScroll"],wheel:["onWheel"],media:["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],image:["onLoad","onError"],animation:["onAnimationStart","onAnimationEnd","onAnimationIteration"],transition:["onTransitionEnd"]};Ne.default=(0,Cg.default)((0,Fg.default)(Il));Ne.eventHandlersByType=Il});var kl=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});var Ng=(function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var l=e[Symbol.iterator](),p;!(o=(p=l.next()).done)&&(n.push(p.value),!(t&&n.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return n}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),de=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};Mt.default=Vg;var Rg=Ue(),jg=Mg(Rg);function Mg(r){return r&&r.__esModule?r:{default:r}}function $l(r,e){var t={};for(var n in r)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}var Lg={ignoreCase:!0};function Vg(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Lg;function n(l){return t.ignoreCase?l.toUpperCase():l}var o=n(e);function i(l){return l.type==="Property"&&l.key.type==="Identifier"&&o===n(l.key.name)}var a=r.find(function(l){return l.type==="JSXSpreadAttribute"?l.argument.type==="ObjectExpression"&&o!==n("key")&&l.argument.properties.some(i):o===n((0,jg.default)(l))});return a&&a.type==="JSXSpreadAttribute"?Dg(a.argument.properties.find(i)):a}function Dg(r){var e=r.key,t=r.value;return de({type:"JSXAttribute",name:de({type:"JSXIdentifier",name:e.name},jt(e)),value:t.type==="Literal"?Re(t):de({type:"JSXExpressionContainer",expression:Ug(t)},jt(t))},jt(r))}function Re(r){var e=r.range||[r.start,r.end],t=Ng(e,2),n=t[0],o=t[1];return de({},r,{end:void 0,range:[n,o],start:void 0})}function Ug(r){var e=r.expressions,t=r.quasis,n=$l(r,["expressions","quasis"]);return de({},Re(n),e?{expressions:e.map(Re)}:{},t?{quasis:t.map(Re)}:{})}function jt(r){var e=r.loc,t=$l(r,["loc"]),n=Re(t),o=n.range;return{loc:Bg(e),range:o}}function Bg(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return de({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Vt=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.default=Jg;function Jg(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var Ut=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=Wg;function Wg(r){var e=yr().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var Jt=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=Gg;function Gg(r){return r.raw}});var Gt=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=Hg;function Hg(r){var e=yr().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var _l=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=Xg;var Cl={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Xg(r){var e=r.name;return Object.hasOwnProperty.call(Cl,e)?Cl[e]:e}});var zt=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.default=Kg;function zg(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function Kg(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(zg).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var l=a.raw,p=o.name;return i==="TemplateElement"?l:i==="Identifier"?p==="undefined"?p:"{"+p+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Fl=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=ev;var Qg=zt(),Yg=Zg(Qg);function Zg(r){return r&&r.__esModule?r:{default:r}}function ev(r){return(0,Yg.default)(r.quasi)}});var Nl=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=rv;function rv(r){return function(){return r}}});var Rl=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=tv;function tv(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);return t==="&&"?i&&a:t==="??"?i===null||typeof i>"u"?a:i:i||a}});var jl=s(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=nv;function nv(r){var e=P().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Ml=s(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.default=ov;function ov(r){var e=P().default;return e(r.expression||r)}});var Ll=s(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.default=iv;function iv(r){var e=P().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var Vl=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=av;function av(r){var e=P().default;return e(r.object)+"?."+e(r.property)}});var on=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=sv;function sv(r){var e=P().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var Dl=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=uv;function uv(r){var e=P().default,t=r.operator,n=r.argument;switch(t){case"-":return-e(n);case"+":return+e(n);case"!":return!e(n);case"~":return~e(n);case"delete":return!0;default:return}}});var un=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=lv;function lv(){return"this"}});var Ul=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=pv;function pv(r){var e=P().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var Bl=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=cv;function cv(r){var e=P().default,t=r.operator,n=r.left,o=r.right,i=e(n),a=e(o);switch(t){case"==":return i==a;case"!=":return i!=a;case"===":return i===a;case"!==":return i!==a;case"<":return i<a;case"<=":return i<=a;case">":return i>a;case">=":return i>=a;case"<<":return i<<a;case">>":return i>>a;case">>>":return i>>>a;case"+":return i+a;case"-":return i-a;case"*":return i*a;case"/":return i/a;case"%":return i%a;case"|":return i|a;case"^":return i^a;case"&":return i&a;case"in":try{return i in a}catch{return!1}case"instanceof":return typeof a!="function"?!1:i instanceof a;default:return}}});var cn=s((NE,Hl)=>{"use strict";var fv=Cr(),Wl=ze()(),Gl=$(),mr=te(),dv=Gl("Array.prototype.push"),Jl=Gl("Object.prototype.propertyIsEnumerable"),yv=Wl?mr.getOwnPropertySymbols:null;Hl.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=mr(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=mr(arguments[o]),a=fv(i),l=Wl&&(mr.getOwnPropertySymbols||yv);if(l)for(var p=l(i),u=0;u<p.length;++u){var f=p[u];Jl(i,f)&&dv(a,f)}for(var m=0;m<a.length;++m){var y=a[m];if(Jl(i,y)){var d=i[y];n[y]=d}}}return n}});var dn=s((RE,Xl)=>{"use strict";var fn=cn(),mv=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},n=0;n<e.length;++n)t[e[n]]=e[n];var o=Object.assign({},t),i="";for(var a in o)i+=a;return r!==i},gv=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1};Xl.exports=function(){return!Object.assign||mv()||gv()?fn:Object.assign}});var Kl=s((jE,zl)=>{"use strict";var vv=M(),hv=dn();zl.exports=function(){var e=hv();return vv(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var ep=s((ME,Zl)=>{"use strict";var bv=M(),Sv=Te(),xv=cn(),Ql=dn(),Ev=Kl(),wv=Sv.apply(Ql()),Yl=function(e,t){return wv(Object,arguments)};bv(Yl,{getPolyfill:Ql,implementation:xv,shim:Ev});Zl.exports=Yl});var np=s(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=tp;var qv=ep(),rp=Tv(qv);function Tv(r){return r&&r.__esModule?r:{default:r}}function Av(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function tp(r){var e=P().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,rp.default)({},t,tp(n.argument))}else return(0,rp.default)({},t,Av({},e(n.key),e(n.value)));return t},{})}});var op=s(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.default=Pv;function Pv(){return new Object}});var ip=s(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=Iv;function Iv(r){var e=P().default,t=r.operator,n=r.argument,o=r.prefix,i=e(n);switch(t){case"++":return o?++i:i++;case"--":return o?--i:i--;default:return}}});var ap=s(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=Ov;function Ov(r){var e=P().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var sp=s(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.default=$v;function $v(r){var e=P().default,t=e(r.callee),n=r.object===null?e(r.callee.object):e(r.object);return r.object&&r.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var up=s(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.default=kv;function kv(){}});var lp=s(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.default=Cv;function Cv(r){var e=P().default;return e(r.expression)}});var pp=s(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=_v;function _v(r){var e=P().default;return r.expressions.map(function(t){return e(t)})}});var fp=s(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=J;var Fv=un().default,Nv=on().default;function cp(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function J(r){var e="The prop value with an expression type of TSNonNullExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.";if(r.type==="Identifier"){var t=r.name;return t}if(r.type==="Literal")return r.value;if(r.type==="TSAsExpression")return J(r.expression);if(r.type==="CallExpression")return Nv(r);if(r.type==="ThisExpression")return Fv();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return J(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+J(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return cp(J(r.object),J(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=cp(J(r.object),J(r.property),r);return"("+i+")"}}if(r.expression)for(var a=r.expression;a;){if(a.type==="Identifier")return console.error(e),a.name;var l=a;a=l.expression}return console.error(e),""}});var dp=s(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Rv;function Rv(r){var e=P().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var P=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});var jv=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};gr.default=Lh;gr.extractLiteral=Vh;var Mv=Vt(),Lv=w(Mv),Vv=Ut(),Dv=w(Vv),Uv=Gt(),Bv=w(Uv),Jv=Jt(),Wv=w(Jv),Gv=_l(),Hv=w(Gv),Xv=Fl(),zv=w(Xv),Kv=zt(),Qv=w(Kv),Yv=Nl(),yp=w(Yv),Zv=Rl(),eh=w(Zv),rh=jl(),th=w(rh),nh=Ml(),oh=w(nh),ih=Ll(),ah=w(ih),sh=Vl(),uh=w(sh),lh=on(),ph=w(lh),ch=Dl(),fh=w(ch),dh=un(),yh=w(dh),mh=Ul(),gh=w(mh),vh=Bl(),hh=w(vh),bh=np(),Sh=w(bh),xh=op(),Eh=w(xh),wh=ip(),qh=w(wh),Th=ap(),Ah=w(Th),Ph=sp(),Ih=w(Ph),Oh=up(),$h=w(Oh),kh=lp(),Ch=w(kh),_h=pp(),Fh=w(_h),Nh=fp(),Rh=w(Nh),jh=dp(),Mh=w(jh);function w(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:Hv.default,Literal:Lv.default,JSXElement:Dv.default,JSXFragment:Bv.default,JSXText:Wv.default,TaggedTemplateExpression:zv.default,TemplateLiteral:Qv.default,ArrowFunctionExpression:yp.default,FunctionExpression:yp.default,LogicalExpression:eh.default,MemberExpression:th.default,ChainExpression:oh.default,OptionalCallExpression:ah.default,OptionalMemberExpression:uh.default,CallExpression:ph.default,UnaryExpression:fh.default,ThisExpression:yh.default,ConditionalExpression:gh.default,BinaryExpression:hh.default,ObjectExpression:Sh.default,NewExpression:Eh.default,UpdateExpression:qh.default,ArrayExpression:Ah.default,BindExpression:Ih.default,SpreadElement:$h.default,TypeCastExpression:Ch.default,SequenceExpression:Fh.default,TSNonNullExpression:Rh.default,AssignmentExpression:Mh.default},q=function(){return null},gp=function(e){return"The prop value with an expression type of "+e+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function Lh(r){var e=void 0;typeof r.expression!="boolean"&&r.expression?e=r.expression:e=r;var t=e,n=t.type;for(e.object&&e.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=e;if(n=o.type,e.expression){var i=e;e=i.expression}}return W[n]===void 0?(console.error(gp(n)),null):W[n](e)}var mp=jv({},W,{Literal:function(e){var t=W.Literal.call(void 0,e),n=t===null;return n?"null":t},Identifier:function(e){var t=W.Identifier.call(void 0,e)===void 0;return t?void 0:null},JSXElement:q,JSXFragment:q,JSXText:q,ArrowFunctionExpression:q,FunctionExpression:q,LogicalExpression:q,MemberExpression:q,OptionalCallExpression:q,OptionalMemberExpression:q,CallExpression:q,UnaryExpression:function(e){var t=W.UnaryExpression.call(void 0,e);return t===void 0?null:t},UpdateExpression:function(e){var t=W.UpdateExpression.call(void 0,e);return t===void 0?null:t},ThisExpression:q,ConditionalExpression:q,BinaryExpression:q,ObjectExpression:q,NewExpression:q,ArrayExpression:function(e){var t=W.ArrayExpression.call(void 0,e);return t.filter(function(n){return n!==null})},BindExpression:q,SpreadElement:q,TSNonNullExpression:q,TSAsExpression:q,TypeCastExpression:q,SequenceExpression:q,ChainExpression:q});function Vh(r){var e=r.expression||r,t=e.type;return mp[t]===void 0?(console.error(gp(t)),null):mp[t](e)}});var yr=s(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var Dh=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r};vr.default=Yh;vr.getLiteralValue=Zh;var Uh=Vt(),Bh=je(Uh),Jh=Ut(),Wh=je(Jh),Gh=Jt(),Hh=je(Gh),Xh=Gt(),zh=je(Xh),vp=P(),Kh=je(vp);function je(r){return r&&r.__esModule?r:{default:r}}var qn={Literal:Bh.default,JSXElement:Wh.default,JSXExpressionContainer:Kh.default,JSXText:Hh.default,JSXFragment:zh.default},Qh=Dh({},qn,{JSXElement:function(){return null},JSXExpressionContainer:vp.extractLiteral});function Yh(r){return qn[r.type]||console.log(r.type),qn[r.type](r)}function Zh(r){return Qh[r.type](r)}});var Sp=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=tb;hr.getLiteralPropValue=nb;var hp=yr(),eb=rb(hp);function rb(r){return r&&r.__esModule?r:{default:r}}var bp=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function tb(r){return bp(r,eb.default)}function nb(r){return bp(r,hp.getLiteralValue)}});var br=s((YE,wp)=>{"use strict";var Tn=Hn(),ob=ye(Tn),ib=zn(),ab=ye(ib),xp=Ol(),sb=ye(xp),ub=kl(),lb=ye(ub),Ep=Sp(),pb=ye(Ep),cb=Ue(),fb=ye(cb);function ye(r){return r&&r.__esModule?r:{default:r}}wp.exports={hasProp:ob.default,hasAnyProp:Tn.hasAnyProp,hasEveryProp:Tn.hasEveryProp,elementType:ab.default,eventHandlers:sb.default,eventHandlersByType:xp.eventHandlersByType,getProp:lb.default,getPropValue:pb.default,getLiteralPropValue:Ep.getLiteralPropValue,propName:fb.default}});var Bb={};Zp(Bb,{configs:()=>Vb,qwikEslint9Plugin:()=>Rn,rules:()=>Bp});module.exports=ec(Bb);var Un=require("@typescript-eslint/utils"),rc=Un.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),Bn=rc({defaultOptions:[],name:"jsx-a-tag",meta:{type:"problem",docs:{description:"For a perfect SEO score, always provide href attribute for <a> elements.",recommended:"warn"},fixable:"code",schema:[],messages:{noHref:"For a perfect SEO score, always provide href attribute for <a> elements."}},create(r){return{JSXElement(e){e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="a"&&(e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")||e.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&o.name.name==="href")||r.report({node:e,messageId:"noHref"}))}}}});var Jn=require("@typescript-eslint/utils"),tc=Jn.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Wn=tc({defaultOptions:[],name:"jsx-img",meta:{type:"problem",docs:{description:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.",recommended:"warn"},fixable:"code",schema:[],messages:{noLocalSrc:`Local images can be optimized by importing using ESM, like this:
5
5
 
6
6
  import {{importName}} from '{{importSrc}}';
7
7
  <{{importName}} />
8
8
 
9
9
  See https://qwik.dev/docs/integrations/image-optimization/#responsive-images`,noWidthHeight:`Missing "width" or "height" attribute.
10
- For performance reasons, always provide width and height attributes for <img> elements, it will prevent layout shifts, boosting performance and UX.`}},create(r){return{JSXElement(e){if(e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="img"&&!e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=e.openingElement.attributes.find(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="src");if(n&&n.value){let a=n.value.type==="Literal"?n.value:n.value.type==="JSXExpressionContainer"&&n.value.expression.type==="Literal"?n.value.expression:void 0;if(a&&typeof a.value=="string"&&a.value.startsWith("/")){let p=`~/media${a.value}?jsx`,u=rc(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:p,importName:u}});return}}let o=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),i=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!o||!i)&&r.report({node:e,messageId:"noWidthHeight"})}}}}}),Gb=`
10
+ For performance reasons, always provide width and height attributes for <img> elements, it will prevent layout shifts, boosting performance and UX.`}},create(r){return{JSXElement(e){if(e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="img"&&!e.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=e.openingElement.attributes.find(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="src");if(n&&n.value){let a=n.value.type==="Literal"?n.value:n.value.type==="JSXExpressionContainer"&&n.value.expression.type==="Literal"?n.value.expression:void 0;if(a&&typeof a.value=="string"&&a.value.startsWith("/")){let p=`~/media${a.value}?jsx`,u=nc(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:p,importName:u}});return}}let o=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),i=e.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!o||!i)&&r.report({node:e,messageId:"noWidthHeight"})}}}}}),Xb=`
11
11
  import Image from '~/media/image.png';
12
- <Image />`.trim(),Hb=`
13
- <img src="/image.png">`.trim(),Xb=`
14
- <img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),zb=`
15
- <img src="/static/images/portrait-01.webp">`.trim();function rc(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${tc(r)}`}function tc(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var Pn=Z(br());function An(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var Sr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},cb={missingIterKey:'Missing "key" prop for element in iterator.',missingIterKeyUsePrag:'Missing "key" prop for element in iterator. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',missingArrayKey:'Missing "key" prop for element in array. The key prop allows for improved rendering performance.',missingArrayKeyUsePrag:'Missing "key" prop for element in array. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',nonUniqueKeys:"`key` prop must be unique"},qp={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#jsx-key"},messages:cb,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:Sr.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:Sr.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:Sr.warnOnDuplicates}},additionalProperties:!1}]},create(r){if((r.sourceCode??r.getSourceCode()).getAllComments().some(c=>c.value.includes("@jsxImportSource")))return{};let n=Object.assign({},Sr,r.options[0]),o=n.checkFragmentShorthand,i=n.checkKeyMustBeforeSpread,a=n.warnOnDuplicates;function l(c){c.type==="JSXElement"&&!Pn.default.hasProp(c.openingElement.attributes,"key")?r.report({node:c,messageId:"missingIterKey"}):o&&c.type==="JSXFragment"&&r.report({node:c,messageId:"missingIterKeyUsePrag"})}function p(c,g=[]){return c.type==="IfStatement"?(c.consequent&&p(c.consequent,g),c.alternate&&p(c.alternate,g)):Array.isArray(c.body)&&c.body.forEach(h=>{h.type==="IfStatement"&&p(h,g),h.type==="ReturnStatement"&&g.push(h)}),g}function u(c){let g=!1;return c.some(h=>h.type==="JSXSpreadAttribute"?(g=!0,!1):h.type!=="JSXAttribute"?!1:g&&Pn.default.propName(h)==="key")}function f(c){An(c)&&c.body.type==="BlockStatement"&&p(c.body).filter(g=>g&&g.argument).forEach(g=>{l(g.argument)})}function m(c){let g=c&&c.type==="ArrowFunctionExpression",h=E=>E&&(E.type==="JSXElement"||E.type==="JSXFragment");g&&h(c.body)&&l(c.body),c.body.type==="ConditionalExpression"?(h(c.body.consequent)&&l(c.body.consequent),h(c.body.alternate)&&l(c.body.alternate)):c.body.type==="LogicalExpression"&&h(c.body.right)&&l(c.body.right)}let y=`:matches(
12
+ <Image />`.trim(),zb=`
13
+ <img src="/image.png">`.trim(),Kb=`
14
+ <img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),Qb=`
15
+ <img src="/static/images/portrait-01.webp">`.trim();function nc(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${oc(r)}`}function oc(r){return`${r}`.toLowerCase().replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,t,n)=>`${t.toUpperCase()+n}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}var Pn=Z(br());function An(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var Sr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},db={missingIterKey:'Missing "key" prop for element in iterator.',missingIterKeyUsePrag:'Missing "key" prop for element in iterator. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',missingArrayKey:'Missing "key" prop for element in array. The key prop allows for improved rendering performance.',missingArrayKeyUsePrag:'Missing "key" prop for element in array. The key prop allows for improved rendering performance. Shorthand fragment syntax does not support providing keys. Use <Fragment> instead',nonUniqueKeys:"`key` prop must be unique"},qp={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#jsx-key"},messages:db,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:Sr.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:Sr.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:Sr.warnOnDuplicates}},additionalProperties:!1}]},create(r){if((r.sourceCode??r.getSourceCode()).getAllComments().some(c=>c.value.includes("@jsxImportSource")))return{};let n=Object.assign({},Sr,r.options[0]),o=n.checkFragmentShorthand,i=n.checkKeyMustBeforeSpread,a=n.warnOnDuplicates;function l(c){c.type==="JSXElement"&&!Pn.default.hasProp(c.openingElement.attributes,"key")?r.report({node:c,messageId:"missingIterKey"}):o&&c.type==="JSXFragment"&&r.report({node:c,messageId:"missingIterKeyUsePrag"})}function p(c,g=[]){return c.type==="IfStatement"?(c.consequent&&p(c.consequent,g),c.alternate&&p(c.alternate,g)):Array.isArray(c.body)&&c.body.forEach(h=>{h.type==="IfStatement"&&p(h,g),h.type==="ReturnStatement"&&g.push(h)}),g}function u(c){let g=!1;return c.some(h=>h.type==="JSXSpreadAttribute"?(g=!0,!1):h.type!=="JSXAttribute"?!1:g&&Pn.default.propName(h)==="key")}function f(c){An(c)&&c.body.type==="BlockStatement"&&p(c.body).filter(g=>g&&g.argument).forEach(g=>{l(g.argument)})}function m(c){let g=c&&c.type==="ArrowFunctionExpression",h=E=>E&&(E.type==="JSXElement"||E.type==="JSXFragment");g&&h(c.body)&&l(c.body),c.body.type==="ConditionalExpression"?(h(c.body.consequent)&&l(c.body.consequent),h(c.body.alternate)&&l(c.body.alternate)):c.body.type==="LogicalExpression"&&h(c.body.right)&&l(c.body.right)}let y=`:matches(
16
16
  CallExpression
17
17
  [callee.object.object.name=Fragment]
18
18
  [callee.object.property.name=Children]
@@ -20,7 +20,7 @@ import Image from '~/media/image.png';
20
20
  CallExpression
21
21
  [callee.object.name=Children]
22
22
  [callee.property.name=toArray]
23
- )`.replace(/\s/g,""),d=!1,v=new WeakSet;return{[y](){d=!0},[`${y}:exit`](){d=!1},"ArrayExpression, JSXElement > JSXElement"(c){if(d)return;let g=(c.type==="ArrayExpression"?c.elements:c.parent.children).filter(E=>E&&E.type==="JSXElement");if(g.length===0)return;let h={};g.forEach(E=>{E.openingElement.attributes.filter(me=>me.name&&me.name.name==="key").length===0&&c.type==="ArrayExpression"&&r.report({node:E,messageId:"missingArrayKey"})}),a&&Object.values(h).filter(E=>E.length>1).forEach(E=>{E.forEach(I=>{v.has(I)||(v.add(I),r.report({node:I,messageId:"nonUniqueKeys"}))})})},JSXFragment(c){!o||d||c.parent.type==="ArrayExpression"&&r.report({node:c,messageId:"missingArrayKeyUsePrag"})},'CallExpression[callee.type="MemberExpression"][callee.property.name="map"], CallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="MemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"]'(c){if(d)return;let g=c.arguments.length>0&&c.arguments[0];!g||!An(g)||(m(g),f(g))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(c){if(d)return;let g=c.arguments.length>1&&c.arguments[1];An(g)&&(m(g),f(g))}}}},QE=`
23
+ )`.replace(/\s/g,""),d=!1,v=new WeakSet;return{[y](){d=!0},[`${y}:exit`](){d=!1},"ArrayExpression, JSXElement > JSXElement"(c){if(d)return;let g=(c.type==="ArrayExpression"?c.elements:c.parent.children).filter(E=>E&&E.type==="JSXElement");if(g.length===0)return;let h={};g.forEach(E=>{E.openingElement.attributes.filter(me=>me.name&&me.name.name==="key").length===0&&c.type==="ArrayExpression"&&r.report({node:E,messageId:"missingArrayKey"})}),a&&Object.values(h).filter(E=>E.length>1).forEach(E=>{E.forEach(I=>{v.has(I)||(v.add(I),r.report({node:I,messageId:"nonUniqueKeys"}))})})},JSXFragment(c){!o||d||c.parent.type==="ArrayExpression"&&r.report({node:c,messageId:"missingArrayKeyUsePrag"})},'CallExpression[callee.type="MemberExpression"][callee.property.name="map"], CallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="MemberExpression"][callee.property.name="map"], OptionalCallExpression[callee.type="OptionalMemberExpression"][callee.property.name="map"]'(c){if(d)return;let g=c.arguments.length>0&&c.arguments[0];!g||!An(g)||(m(g),f(g))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(c){if(d)return;let g=c.arguments.length>1&&c.arguments[1];An(g)&&(m(g),f(g))}}}},ZE=`
24
24
  import { component$ } from '@qwik.dev/core';
25
25
 
26
26
  export const Person = component$(() => {
@@ -37,7 +37,7 @@ export const Person = component$(() => {
37
37
  ))}
38
38
  </ul>
39
39
  );
40
- });`.trim(),YE=`
40
+ });`.trim(),ew=`
41
41
  import { component$ } from '@qwik.dev/core';
42
42
 
43
43
  export const Person = component$(() => {
@@ -54,7 +54,7 @@ export const Person = component$(() => {
54
54
  ))}
55
55
  </ul>
56
56
  );
57
- });`.trim(),ZE=`
57
+ });`.trim(),rw=`
58
58
  import { component$ } from '@qwik.dev/core';
59
59
  import Card from './Card';
60
60
  import Summary from './Summary';
@@ -74,7 +74,7 @@ export const Person = component$(() => {
74
74
  </Fragment>
75
75
  ))}
76
76
  );
77
- });`.trim(),ew=`
77
+ });`.trim(),tw=`
78
78
  import { component$ } from '@qwik.dev/core';
79
79
  import Card from './Card';
80
80
  import Summary from './Summary';
@@ -94,7 +94,7 @@ export const Person = component$(() => {
94
94
  </>
95
95
  ))}
96
96
  );
97
- });`.trim(),rw=`
97
+ });`.trim(),nw=`
98
98
  import { component$ } from '@qwik.dev/core';
99
99
 
100
100
  export const ColorList = component$(() => {
@@ -107,7 +107,7 @@ export const ColorList = component$(() => {
107
107
  ))}
108
108
  </ul>
109
109
  );
110
- });`.trim(),tw=`
110
+ });`.trim(),ow=`
111
111
  import { component$ } from '@qwik.dev/core';
112
112
 
113
113
  export const ColorList = component$(() => {
@@ -120,7 +120,7 @@ export const ColorList = component$(() => {
120
120
  ))}
121
121
  </ul>
122
122
  );
123
- });`.trim(),nw=`
123
+ });`.trim(),iw=`
124
124
  import { component$, Fragment } from '@qwik.dev/core';
125
125
 
126
126
  export const ColorList = component$(() => {
@@ -134,7 +134,7 @@ export const ColorList = component$(() => {
134
134
  </Fragment>
135
135
  ))}
136
136
  );
137
- });`.trim(),ow=`
137
+ });`.trim(),aw=`
138
138
  import { component$ } from '@qwik.dev/core';
139
139
 
140
140
  export const ColorList = component$(() => {
@@ -148,7 +148,7 @@ export const ColorList = component$(() => {
148
148
  </>
149
149
  ))}
150
150
  );
151
- });`.trim();var iw=`
151
+ });`.trim();var sw=`
152
152
  import { component$ } from '@qwik.dev/core';
153
153
 
154
154
  export const ColorList = component$(() => {
@@ -161,9 +161,9 @@ export const ColorList = component$(() => {
161
161
  ))}
162
162
  </ul>
163
163
  );
164
- });`.trim();var Tp=require("@typescript-eslint/utils"),{getStaticValue:fb}=Tp.ASTUtils,db=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Ap={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(r){let e=r.sourceCode??r.getSourceCode();return{JSXAttribute(t){if(t.name.type==="JSXIdentifier"&&t.value){let n=fb(t.value.type==="JSXExpressionContainer"?t.value.expression:t.value,e.getScope?e.getScope(t):r.getScope());n&&typeof n.value=="string"&&db.test(n.value)&&r.report({node:t.value,messageId:"noJSURL"})}}}}},sw=`
165
- <button onClick$={() => alert('open the door please')}>ring</button>`.trim(),uw=`
166
- <button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var Pp={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},yb={...Pp,action$:!0,globalAction$:!0},Ip={meta:{type:"problem",docs:{description:"Detect declaration location of loader$.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#loader-location"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:`'{{fnName}}() are typically declared in route boundary files such as layout.tsx, index.tsx and plugin.tsx inside the {{routesDir}} directory
164
+ });`.trim();var Tp=require("@typescript-eslint/utils"),{getStaticValue:yb}=Tp.ASTUtils,mb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Ap={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(r){let e=r.sourceCode??r.getSourceCode();return{JSXAttribute(t){if(t.name.type==="JSXIdentifier"&&t.value){let n=yb(t.value.type==="JSXExpressionContainer"?t.value.expression:t.value,e.getScope?e.getScope(t):r.getScope());n&&typeof n.value=="string"&&mb.test(n.value)&&r.report({node:t.value,messageId:"noJSURL"})}}}}},lw=`
165
+ <button onClick$={() => alert('open the door please')}>ring</button>`.trim(),pw=`
166
+ <button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var Pp={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},gb={...Pp,action$:!0,globalAction$:!0},Ip={meta:{type:"problem",docs:{description:"Detect declaration location of loader$.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#loader-location"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:`'{{fnName}}() are typically declared in route boundary files such as layout.tsx, index.tsx and plugin.tsx inside the {{routesDir}} directory
167
167
  (docs: https://qwik.dev/docs/route-loader/).
168
168
 
169
169
  This {{fnName}}() is declared outside of the route boundaries. This may be useful when you want to create reusable logic or a library. In such a case, it is essential that this function is re-exported from within the router boundary otherwise it will not run.
@@ -171,28 +171,28 @@ This {{fnName}}() is declared outside of the route boundaries. This may be usefu
171
171
 
172
172
  If you understand this, you can disable this warning with:
173
173
  // eslint-disable-next-line qwik/loader-location
174
- `,missingExport:"The return of `{{fnName}}()` needs to be exported in the same module, like this\n```\nexport const {{id}} = {{fnName}}(() => { ... });\n```",wrongName:"The named export of `{{fnName}}()` needs to follow the `use*` naming convention. It must start with `use`, like this:\n```\nexport const {{fixed}} = {{fnName}}(() => { ... });\n```\nInstead it was named:\n```\nexport const {{id}} = ...\n```",recommendedValue:"For `{{fnName}}()` it is recommended to inline the arrow function. Instead of:\n```\nexport const {{id}} = {{fnName}}({{arg}});\n```\nDo this:\n```\nexport const {{id}} = {{fnName}}(() => { ...logic here... });\n```\nThis will help the optimizer make sure that no server code is leaked to the client build."}},create(r){let e=r.options?.[0]?.routesDir??"src/routes",t=mb(r.filename??r.getFilename()),n=/\/layout(|!|-[^/]+)\.(j|t)sx?$/.test(t),o=/\/index(|!|@[^/]+)\.(j|t)sx?$/.test(t),i=/\/plugin(|@[^/]+)\.(j|t)sx?$/.test(t),l=new RegExp(`/${e}/`).test(t)&&(o||n||i);return{CallExpression(p){if(p.callee.type!=="Identifier")return;let u=p.callee.name;if(!yb[u])return;if(!l&&Pp[u]){r.report({node:p.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:u,path:t}});return}let f=p.parent;if(f.type!=="VariableDeclarator"){r.report({node:p.callee,messageId:"missingExport",data:{fnName:u,id:"useStuff"}});return}if(f.id.type!=="Identifier"){r.report({node:p.callee,messageId:"missingExport",data:{fnName:u,id:"useStuff"}});return}if(!/^use/.test(f.id.name)){let m="use"+f.id.name[0].toUpperCase()+f.id.name.slice(1);r.report({node:f.id,messageId:"wrongName",data:{fnName:u,id:f.id.name,fixed:m}});return}if(!gb(f)){r.report({node:f.id,messageId:"missingExport",data:{fnName:u,id:f.id.name}});return}if(p.arguments.length>0&&p.arguments[0].type==="Identifier"){r.report({node:p.arguments[0],messageId:"recommendedValue",data:{fnName:u,id:f.id.name,arg:p.arguments[0].name}});return}}}}};function mb(r){let e=/^\\\\\?\\/.test(r),t=/[^\u0000-\u0080]+/.test(r);return e||t||(r=r.replace(/\\/g,"/"),r.endsWith("/")&&(r=r.slice(0,r.length-1))),r}var pw=`
174
+ `,missingExport:"The return of `{{fnName}}()` needs to be exported in the same module, like this\n```\nexport const {{id}} = {{fnName}}(() => { ... });\n```",wrongName:"The named export of `{{fnName}}()` needs to follow the `use*` naming convention. It must start with `use`, like this:\n```\nexport const {{fixed}} = {{fnName}}(() => { ... });\n```\nInstead it was named:\n```\nexport const {{id}} = ...\n```",recommendedValue:"For `{{fnName}}()` it is recommended to inline the arrow function. Instead of:\n```\nexport const {{id}} = {{fnName}}({{arg}});\n```\nDo this:\n```\nexport const {{id}} = {{fnName}}(() => { ...logic here... });\n```\nThis will help the optimizer make sure that no server code is leaked to the client build."}},create(r){let e=r.options?.[0]?.routesDir??"src/routes",t=vb(r.filename??r.getFilename()),n=/\/layout(|!|-[^/]+)\.(j|t)sx?$/.test(t),o=/\/index(|!|@[^/]+)\.(j|t)sx?$/.test(t),i=/\/plugin(|@[^/]+)\.(j|t)sx?$/.test(t),l=new RegExp(`/${e}/`).test(t)&&(o||n||i);return{CallExpression(p){if(p.callee.type!=="Identifier")return;let u=p.callee.name;if(!gb[u])return;if(!l&&Pp[u]){r.report({node:p.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:u,path:t}});return}let f=p.parent;if(f.type!=="VariableDeclarator"){r.report({node:p.callee,messageId:"missingExport",data:{fnName:u,id:"useStuff"}});return}if(f.id.type!=="Identifier"){r.report({node:p.callee,messageId:"missingExport",data:{fnName:u,id:"useStuff"}});return}if(!/^use/.test(f.id.name)){let m="use"+f.id.name[0].toUpperCase()+f.id.name.slice(1);r.report({node:f.id,messageId:"wrongName",data:{fnName:u,id:f.id.name,fixed:m}});return}if(!hb(f)){r.report({node:f.id,messageId:"missingExport",data:{fnName:u,id:f.id.name}});return}if(p.arguments.length>0&&p.arguments[0].type==="Identifier"){r.report({node:p.arguments[0],messageId:"recommendedValue",data:{fnName:u,id:f.id.name,arg:p.arguments[0].name}});return}}}}};function vb(r){let e=/^\\\\\?\\/.test(r),t=/[^\u0000-\u0080]+/.test(r);return e||t||(r=r.replace(/\\/g,"/"),r.endsWith("/")&&(r=r.slice(0,r.length-1))),r}var fw=`
175
175
  import { routeLoader$ } from '@qwik.dev/router';
176
176
 
177
177
  export const useProductDetails = routeLoader$(async (requestEvent) => {
178
178
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
179
179
  const product = await res.json();
180
180
  return product as Product;
181
- });`.trim();var cw=`
181
+ });`.trim();var dw=`
182
182
  import { routeLoader$ } from '@qwik.dev/router';
183
183
 
184
184
  const useProductDetails = routeLoader$(async (requestEvent) => {
185
185
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
186
186
  const product = await res.json();
187
187
  return product as Product;
188
- });`.trim();var fw=`
188
+ });`.trim();var yw=`
189
189
  import { routeLoader$ } from '@qwik.dev/router';
190
190
 
191
191
  export const getProductDetails = routeLoader$(async (requestEvent) => {
192
192
  const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
193
193
  const product = await res.json();
194
194
  return product as Product;
195
- });`.trim();var dw=`
195
+ });`.trim();var mw=`
196
196
  import { routeLoader$ } from '@qwik.dev/router';
197
197
 
198
198
  async function fetcher() {
@@ -202,9 +202,9 @@ async function fetcher() {
202
202
  }
203
203
 
204
204
  export const useProductDetails = routeLoader$(fetcher);
205
- `.trim();function gb(r){if(r.parent.parent.type==="ExportNamedDeclaration")return!0;if(r.type==="VariableDeclarator"){let e=r.id;if("name"in e){let t=e.name,n=vb(r);for(let o=0;o<n.length;o++){let i=n[o];if(i.type=="ExportNamedDeclaration"){let a=i.specifiers;for(let l=0;l<a.length;l++){let p=a[l];if(p.type=="ExportSpecifier"&&p.exported.type=="Identifier"&&p.exported.name===t)return!0}}}}}return!1}function vb(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var In=Z(br()),hb=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var Op={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props.",url:"https://qwik.dev/docs/advanced/eslint/#no-react-props"},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(r){return r.sourceCode.getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of hb){let i=In.default.getProp(t.attributes,n);if(i){let a=In.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:l=>l.replaceText(i.name,o);r.report({node:i,messageId:"prefer",data:{from:n,to:o},fix:a})}}}}}},mw=`
206
- <MyReactComponent class="foo" for="#password" />;`.trim(),gw=`
207
- <MyReactComponent className="foo" htmlFor="#password" />;`.trim();var $p={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var On=Z(br()),kp={meta:{type:"problem",docs:{recommended:!1,description:"Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.",url:"https://qwik.dev/docs/advanced/eslint/#prefer-classlist"},fixable:"code",schema:[{type:"object",properties:{classnames:{type:"array",description:"An array of names to treat as `classnames` functions",default:["cn","clsx","classnames"],items:{type:"string",minItems:1,uniqueItems:!0}}},additionalProperties:!1}],messages:{preferClasslist:"The classlist prop should be used instead of {{ classnames }} to efficiently set classes based on an object."}},create(r){if(r.sourceCode.getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=r.options[0]?.classnames??["cn","clsx","classnames"];return{JSXAttribute(n){if(!(["class","className"].indexOf(On.default.propName(n))===-1||On.default.hasProp(n.parent?.attributes,"classlist",{ignoreCase:!1}))&&n.value?.type==="JSXExpressionContainer"){let o=n.value.expression;o.type==="CallExpression"&&o.callee.type==="Identifier"&&t.indexOf(o.callee.name)!==-1&&o.arguments.length===1&&o.arguments[0].type==="ObjectExpression"&&r.report({node:n,messageId:"preferClasslist",data:{classnames:o.callee.name},fix:i=>{let a=n.range,l=o.arguments[0].range;return[i.replaceTextRange([a[0],l[0]],"classlist={"),i.replaceTextRange([l[1],a[1]],"}")]}})}}}}},bw=`
205
+ `.trim();function hb(r){if(r.parent.parent.type==="ExportNamedDeclaration")return!0;if(r.type==="VariableDeclarator"){let e=r.id;if("name"in e){let t=e.name,n=bb(r);for(let o=0;o<n.length;o++){let i=n[o];if(i.type=="ExportNamedDeclaration"){let a=i.specifiers;for(let l=0;l<a.length;l++){let p=a[l];if(p.type=="ExportSpecifier"&&p.exported.type=="Identifier"&&p.exported.name===t)return!0}}}}}return!1}function bb(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var In=Z(br()),Sb=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var Op={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props.",url:"https://qwik.dev/docs/advanced/eslint/#no-react-props"},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(r){return r.sourceCode.getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of Sb){let i=In.default.getProp(t.attributes,n);if(i){let a=In.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:l=>l.replaceText(i.name,o);r.report({node:i,messageId:"prefer",data:{from:n,to:o},fix:a})}}}}}},vw=`
206
+ <MyReactComponent class="foo" for="#password" />;`.trim(),hw=`
207
+ <MyReactComponent className="foo" htmlFor="#password" />;`.trim();var $p={meta:{type:"suggestion",docs:{description:"Detect useVisibleTask$() functions.",recommended:!0,url:"https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort"},messages:{noUseVisibleTask:"useVisibleTask$() runs eagerly and blocks the main thread, preventing user interaction until the task is finished. Consider using useTask$(), useOn(), useOnDocument(), or useOnWindow() instead. If you have to use a useVisibleTask$(), you can disable the warning with a '// eslint-disable-next-line qwik/no-use-visible-task' comment."}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;e.callee.name==="useVisibleTask$"&&r.report({node:e.callee,messageId:"noUseVisibleTask"})}}}};var On=Z(br()),kp={meta:{type:"problem",docs:{recommended:!1,description:"Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.",url:"https://qwik.dev/docs/advanced/eslint/#prefer-classlist"},fixable:"code",schema:[{type:"object",properties:{classnames:{type:"array",description:"An array of names to treat as `classnames` functions",default:["cn","clsx","classnames"],items:{type:"string",minItems:1,uniqueItems:!0}}},additionalProperties:!1}],messages:{preferClasslist:"The classlist prop should be used instead of {{ classnames }} to efficiently set classes based on an object."}},create(r){if(r.sourceCode.getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=r.options[0]?.classnames??["cn","clsx","classnames"];return{JSXAttribute(n){if(!(["class","className"].indexOf(On.default.propName(n))===-1||On.default.hasProp(n.parent?.attributes,"classlist",{ignoreCase:!1}))&&n.value?.type==="JSXExpressionContainer"){let o=n.value.expression;o.type==="CallExpression"&&o.callee.type==="Identifier"&&t.indexOf(o.callee.name)!==-1&&o.arguments.length===1&&o.arguments[0].type==="ObjectExpression"&&r.report({node:n,messageId:"preferClasslist",data:{classnames:o.callee.name},fix:i=>{let a=n.range,l=o.arguments[0].range;return[i.replaceTextRange([a[0],l[0]],"classlist={"),i.replaceTextRange([l[1],a[1]],"}")]}})}}}}},xw=`
208
208
  import { component$ } from '@qwik.dev/core';
209
209
  import styles from './MyComponent.module.css';
210
210
 
@@ -222,7 +222,7 @@ export default component$((props) => {
222
222
  'text-green-500': props.isHighAttention,
223
223
  'p-4': true
224
224
  }}>Hello world</div>;
225
- });`.trim(),Sw=`
225
+ });`.trim(),Ew=`
226
226
  import { component$ } from '@qwik.dev/core';
227
227
  import classnames from 'classnames';
228
228
  import styles from './MyComponent.module.css';
@@ -240,7 +240,7 @@ export default component$((props) => {
240
240
  });`.trim();var Cp={meta:{type:"problem",docs:{description:"Detect unused server$() functions.",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#unused-server"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do:
241
241
 
242
242
  {{ suggestion }}`}},create(r){return{CallExpression(e){if(e.callee.type!=="Identifier")return;if(e.callee.name==="server$"){let n=!1;(e.parent.type==="ExpressionStatement"||e.parent.type==="AwaitExpression"&&e.parent.parent.type==="ExpressionStatement")&&(n=!0),n&&r.report({node:e.callee,messageId:"unusedServer",data:{suggestion:`const serverFn = server$(...);
243
- await serverFn(...);`}})}}}}},Ew=`
243
+ await serverFn(...);`}})}}}}},qw=`
244
244
  import { component$ } from '@qwik.dev/core';
245
245
  import { server$ } from '@qwik.dev/router';
246
246
 
@@ -259,7 +259,7 @@ export default component$(() => (
259
259
  greet
260
260
  </button>
261
261
  );
262
- );`.trim(),ww=`
262
+ );`.trim(),Tw=`
263
263
  import { component$ } from '@qwik.dev/core';
264
264
  import { server$ } from '@qwik.dev/router';
265
265
 
@@ -278,35 +278,35 @@ export default component$(() => (
278
278
  greet
279
279
  </button>
280
280
  );
281
- );`.trim();var _p={meta:{type:"problem",docs:{description:"Detect invalid use of use hooks.",category:"Variables",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#use-method-usage"},messages:{useWrongFunction:"Calling use* methods in wrong function."}},create(r){return(r.sourceCode??r.getSourceCode()).getAllComments().some(n=>n.value.includes("@jsxImportSource"))?{}:{"CallExpression[callee.name=/^use[A-Z]/]"(n){let o=n;for(;o=o.parent;)switch(o.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":case"TSAsExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(o.parent.type==="VariableDeclarator"&&o.parent.id?.type==="Identifier"&&o.parent.id.name.startsWith("use")||o.parent.type==="CallExpression"&&o.parent.callee.type==="Identifier"&&o.parent.callee.name==="component$")return;r.report({node:n,messageId:"useWrongFunction"});return;case"FunctionDeclaration":o.id?.name.startsWith("use")||r.report({node:n,messageId:"useWrongFunction"});return;default:r.report({node:n,messageId:"useWrongFunction"});return}}}}},Tw=`
281
+ );`.trim();var _p={meta:{type:"problem",docs:{description:"Detect invalid use of use hooks.",category:"Variables",recommended:!0,url:"https://qwik.dev/docs/advanced/eslint/#use-method-usage"},messages:{useWrongFunction:"Calling use* methods in wrong function."}},create(r){return(r.sourceCode??r.getSourceCode()).getAllComments().some(n=>n.value.includes("@jsxImportSource"))?{}:{"CallExpression[callee.name=/^use[A-Z]/]"(n){let o=n;for(;o=o.parent;)switch(o.type){case"VariableDeclarator":case"VariableDeclaration":case"ExpressionStatement":case"MemberExpression":case"BinaryExpression":case"UnaryExpression":case"ReturnStatement":case"BlockStatement":case"ChainExpression":case"Property":case"ObjectExpression":case"CallExpression":case"TSAsExpression":break;case"ArrowFunctionExpression":case"FunctionExpression":if(o.parent.type==="VariableDeclarator"&&o.parent.id?.type==="Identifier"&&o.parent.id.name.startsWith("use")||o.parent.type==="CallExpression"&&o.parent.callee.type==="Identifier"&&o.parent.callee.name==="component$")return;r.report({node:n,messageId:"useWrongFunction"});return;case"FunctionDeclaration":o.id?.name.startsWith("use")||r.report({node:n,messageId:"useWrongFunction"});return;default:r.report({node:n,messageId:"useWrongFunction"});return}}}}},Pw=`
282
282
  export const Counter = component$(() => {
283
283
  const count = useSignal(0);
284
284
  });
285
- `.trim(),Aw=`
285
+ `.trim(),Iw=`
286
286
  export const useCounter = () => {
287
287
  const count = useSignal(0);
288
288
  return count;
289
289
  };
290
- `.trim(),Pw=`
290
+ `.trim(),Ow=`
291
291
  export const Counter = (() => {
292
292
  const count = useSignal(0);
293
293
  });
294
- `.trim();var xr=Z(require("@typescript-eslint/utils/eslint-utils")),G=Z(require("typescript"));function $n(r){let e=r.match(/^[ \t]*(?=\S)/gm);if(!e)return r;let t=Number.POSITIVE_INFINITY;for(let n of e)t=Math.min(t,n.length);return t===0||t===Number.POSITIVE_INFINITY?r:r.replace(new RegExp(`^[ \\t]{${t}}`,"gm"),"")}function kn(r,e=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return r;let i=o?/^/gm:/^(?!\s*$)/gm;return r.replace(i,n.repeat(e))}function Cn(r,e=0,t={}){return kn($n(r),e,t)}var bb=xr.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Fp=bb({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"recommended"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},additionalProperties:!1,default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
294
+ `.trim();var xr=Z(require("@typescript-eslint/utils/eslint-utils")),G=Z(require("typescript"));function $n(r){let e=r.match(/^[ \t]*(?=\S)/gm);if(!e)return r;let t=Number.POSITIVE_INFINITY;for(let n of e)t=Math.min(t,n.length);return t===0||t===Number.POSITIVE_INFINITY?r:r.replace(new RegExp(`^[ \\t]{${t}}`,"gm"),"")}function kn(r,e=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(e<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${e}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(e===0)return r;let i=o?/^/gm:/^(?!\s*$)/gm;return r.replace(i,n.repeat(e))}function Cn(r,e=0,t={}){return kn($n(r),e,t)}var xb=xr.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Fp=xb({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"recommended"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},additionalProperties:!1,default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
295
295
  Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Using "{{varName}}" as an event handler, however functions are not serializable.
296
296
  Did you mean to wrap it in \`$()\`?
297
297
 
298
298
  {{solution}}
299
299
  Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,mutableIdentifier:`Mutating let "{{varName}}" within the ({{dollarName}}) closure is not allowed, instead create an object/store/signal and mutate one of its properties.
300
- Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){let t={allowAny:r.options[0]?.allowAny??!0},n=r.sourceCode.scopeManager,o=xr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),l=new Map;function p(u){u.references.forEach(f=>{let m=f.resolved,y=f.resolved?.scope;if(m&&y){let d=m.defs.at(0)?.type;if(d==="Type"||d==="ImportBinding"||Ab(m,r))return;let v=f.from,c;for(;v&&(c=l.get(v),!c);)v=v.upper;if(v&&c){let g=y.type;if(g==="global"||g==="module")return;let h=f.identifier,E=i.get(h),I=y;for(;I&&!l.has(I);)I=I.upper;if(I!==v){h.parent&&h.parent.type==="AssignmentExpression"&&h.parent.left===h&&r.report({messageId:"mutableIdentifier",node:f.identifier,data:{varName:f.identifier.name,dollarName:c}});let X=Sb(r,a,E,f.identifier,t);X&&r.report({messageId:"referencesOutside",node:f.identifier,data:{varName:f.identifier.name,dollarName:c,reason:xb(X)}})}}}}),u.childScopes.forEach(p)}return{CallExpression(u){if(u.callee.type==="Identifier"&&u.callee.name.endsWith("$")){let f=u.arguments.at(0);if(f&&f.type==="ArrowFunctionExpression"){let m=n.acquire(f);m&&l.set(m,u.callee.name)}}},JSXAttribute(u){let f=u.name,m=f.type==="JSXIdentifier"?f.name:f.name.name;if(m.endsWith("$")){let y=u.value;if(y&&y.type==="JSXExpressionContainer"){let d=n.acquire(y.expression);if(d)l.set(d,m);else if(y.expression.type==="Identifier"){let v=i.get(y.expression),c=a.getTypeAtLocation(v).getNonNullableType();if(!Np(c))if(c.isUnionOrIntersection())c.types.every(g=>g.symbol?g.symbol.name==="Component"||g.symbol.name==="PropFnInterface":!1)||r.report({messageId:"invalidJsxDollar",node:y.expression,data:{varName:y.expression.name,solution:`Fix the type of ${y.expression.name} to be QRL`}});else{if(c.symbol?.name==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:y.expression,data:{varName:y.expression.name,solution:`const ${y.expression.name} = $(
300
+ Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){let t={allowAny:r.options[0]?.allowAny??!0},n=r.sourceCode.scopeManager,o=xr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),l=new Map;function p(u){u.references.forEach(f=>{let m=f.resolved,y=f.resolved?.scope;if(m&&y){let d=m.defs.at(0)?.type;if(d==="Type"||d==="ImportBinding"||Ib(m,r))return;let v=f.from,c;for(;v&&(c=l.get(v),!c);)v=v.upper;if(v&&c){let g=y.type;if(g==="global"||g==="module")return;let h=f.identifier,E=i.get(h),I=y;for(;I&&!l.has(I);)I=I.upper;if(I!==v){h.parent&&h.parent.type==="AssignmentExpression"&&h.parent.left===h&&r.report({messageId:"mutableIdentifier",node:f.identifier,data:{varName:f.identifier.name,dollarName:c}});let X=Eb(r,a,E,f.identifier,t);X&&r.report({messageId:"referencesOutside",node:f.identifier,data:{varName:f.identifier.name,dollarName:c,reason:wb(X)}})}}}}),u.childScopes.forEach(p)}return{CallExpression(u){if(u.callee.type==="Identifier"&&u.callee.name.endsWith("$")){let f=u.arguments.at(0);if(f&&f.type==="ArrowFunctionExpression"){let m=n.acquire(f);m&&l.set(m,u.callee.name)}}},JSXAttribute(u){let f=u.name,m=f.type==="JSXIdentifier"?f.name:f.name.name;if(m.endsWith("$")){let y=u.value;if(y&&y.type==="JSXExpressionContainer"){let d=n.acquire(y.expression);if(d)l.set(d,m);else if(y.expression.type==="Identifier"){let v=i.get(y.expression),c=a.getTypeAtLocation(v).getNonNullableType();if(!Np(c))if(c.isUnionOrIntersection())c.types.every(g=>g.symbol?g.symbol.name==="Component"||g.symbol.name==="PropFnInterface":!1)||r.report({messageId:"invalidJsxDollar",node:y.expression,data:{varName:y.expression.name,solution:`Fix the type of ${y.expression.name} to be QRL`}});else{if(c.symbol?.name==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:y.expression,data:{varName:y.expression.name,solution:`const ${y.expression.name} = $(
301
301
  ${Rp(c.symbol,r.sourceCode.text)}
302
302
  );
303
- `}})}}}}},Program(u){let f=i.get(u),m=a.getSymbolAtLocation(f);m&&(exports=a.getExportsOfModule(m))},"Program:exit"(){p(n.globalScope)}}}});function Sb(r,e,t,n,o){let i=e.getTypeAtLocation(t);return Eb(r,e,i,t,n,o,new Set)}function xb(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function Eb(r,e,t,n,o,i,a){let l=Me(r,e,t,n,i,0,a);if(l){let p=l.location;return p&&(l.location=`${o.name}.${p}`),l}return l}function Me(r,e,t,n,o,i,a){if(a.has(t)||(a.add(t),t.getProperties().some(d=>/(__no_serialize__|__qwik_serializable__|NoSerializeSymbol|SerializerSymbol)/i.test(d.escapedName))))return;if(t.flags&G.default.TypeFlags.Unknown)return{type:t,typeStr:e.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type more specific"};let p=t.flags&G.default.TypeFlags.Any;if(!o.allowAny&&p)return{type:t,typeStr:e.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&G.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:e.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&G.default.TypeFlags.Enum)return{type:t,typeStr:e.typeToString(t),reason:"is an enum, use an string or a number instead"};if(Np(t)||t.symbol?.name==="JSXNode")return;if(t.getCallSignatures().length>0){let d=t.symbol.name;if(d==="PropFnInterface"||d==="RefFnInterface"||d==="bivarianceHack"||d==="FunctionComponent")return;let v="is a function, which is not serializable";if(i===0&&G.default.isIdentifier(n)){let c=`const ${n.text} = $(
303
+ `}})}}}}},Program(u){let f=i.get(u),m=a.getSymbolAtLocation(f);m&&(exports=a.getExportsOfModule(m))},"Program:exit"(){p(n.globalScope)}}}});function Eb(r,e,t,n,o){let i=e.getTypeAtLocation(t);return qb(r,e,i,t,n,o,new Set)}function wb(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function qb(r,e,t,n,o,i,a){let l=Me(r,e,t,n,i,0,a);if(l){let p=l.location;return p&&(l.location=`${o.name}.${p}`),l}return l}function Me(r,e,t,n,o,i,a){if(a.has(t)||(a.add(t),t.getProperties().some(d=>/(__no_serialize__|__qwik_serializable__|NoSerializeSymbol|SerializerSymbol)/i.test(d.escapedName))))return;if(t.flags&G.default.TypeFlags.Unknown)return{type:t,typeStr:e.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type more specific"};let p=t.flags&G.default.TypeFlags.Any;if(!o.allowAny&&p)return{type:t,typeStr:e.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&G.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:e.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&G.default.TypeFlags.Enum)return{type:t,typeStr:e.typeToString(t),reason:"is an enum, use an string or a number instead"};if(Np(t)||t.symbol?.name==="JSXNode")return;if(t.getCallSignatures().length>0){let d=t.symbol.name;if(d==="PropFnInterface"||d==="RefFnInterface"||d==="bivarianceHack"||d==="FunctionComponent")return;let v="is a function, which is not serializable";if(i===0&&G.default.isIdentifier(n)){let c=`const ${n.text} = $(
304
304
  ${Rp(t.symbol,r.sourceCode.text)}
305
305
  );`;v+=`.
306
306
  Did you mean to wrap it in \`$()\`?
307
307
 
308
308
  ${c}
309
- `}return{type:t,typeStr:e.typeToString(t),reason:v}}if(t.isUnion()){for(let d of t.types){let v=Me(r,e,d,n,o,i+1,a);if(v)return v}return}if((t.flags&G.default.TypeFlags.Object)!==0){let d=qb(t,e);if(d)return Me(r,e,d,n,o,i+1,a);let v=Tb(t,e);if(v){for(let h of v){let E=Me(r,e,h,n,o,i+1,a);if(E)return E}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||c in Ib)return;if(t.isClass())return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let g=t.getProperty("prototype");if(g){let h=e.getTypeOfSymbolAtLocation(g,n);if(h.isClass())return{type:h,typeStr:e.typeToString(h),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let h of t.getProperties()){let E=wb(r,e,h,n,o,i+1,a);if(E){let I=E.location;return E.location=`${h.name}${I?`.${I}`:""}`,E}}}}function wb(r,e,t,n,o,i,a){let l=e.getTypeOfSymbolAtLocation(t,n);return Me(r,e,l,n,o,i,a)}function qb(r,e){return e.getElementTypeOfArrayType(r)}function Tb(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function Np(r){return!!(r.flags&G.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function Rp(r,e){if(r&&r.declarations&&r.declarations.length>0){let t=r.declarations[0],n=e.slice(t.pos,t.end).replace(/^\s*$/gm,"");return Cn(n,2)}return""}function Ab(r,e){let t=r.defs[0];if(!t||t.type!=="Variable")return!1;let n=t.node.init;if(n?.type==="CallExpression"&&n.callee.type==="Identifier"&&/^use[A-Z]/.test(n.callee.name)){let o=n.callee.name,a=e.sourceCode.getScope(t.node).references.find(l=>l.identifier.name===o);return a?.resolved&&Pb(a.resolved)}return!1}function Pb(r){return r.defs.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}var Ib={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0},Nw=`
309
+ `}return{type:t,typeStr:e.typeToString(t),reason:v}}if(t.isUnion()){for(let d of t.types){let v=Me(r,e,d,n,o,i+1,a);if(v)return v}return}if((t.flags&G.default.TypeFlags.Object)!==0){let d=Ab(t,e);if(d)return Me(r,e,d,n,o,i+1,a);let v=Pb(t,e);if(v){for(let h of v){let E=Me(r,e,h,n,o,i+1,a);if(E)return E}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||c in $b)return;if(t.isClass())return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let g=t.getProperty("prototype");if(g){let h=e.getTypeOfSymbolAtLocation(g,n);if(h.isClass())return{type:h,typeStr:e.typeToString(h),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:e.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let h of t.getProperties()){let E=Tb(r,e,h,n,o,i+1,a);if(E){let I=E.location;return E.location=`${h.name}${I?`.${I}`:""}`,E}}}}function Tb(r,e,t,n,o,i,a){let l=e.getTypeOfSymbolAtLocation(t,n);return Me(r,e,l,n,o,i,a)}function Ab(r,e){return e.getElementTypeOfArrayType(r)}function Pb(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function Np(r){return!!(r.flags&G.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function Rp(r,e){if(r&&r.declarations&&r.declarations.length>0){let t=r.declarations[0],n=e.slice(t.pos,t.end).replace(/^\s*$/gm,"");return Cn(n,2)}return""}function Ib(r,e){let t=r.defs[0];if(!t||t.type!=="Variable")return!1;let n=t.node.init;if(n?.type==="CallExpression"&&n.callee.type==="Identifier"&&/^use[A-Z]/.test(n.callee.name)){let o=n.callee.name,a=e.sourceCode.getScope(t.node).references.find(l=>l.identifier.name===o);return a?.resolved&&Ob(a.resolved)}return!1}function Ob(r){return r.defs.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}var $b={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0},jw=`
310
310
  import { component$, useTask$, $ } from '@qwik.dev/core';
311
311
 
312
312
  export const HelloWorld = component$(() => {
@@ -319,7 +319,7 @@ export const HelloWorld = component$(() => {
319
319
  });
320
320
 
321
321
  return <h1>Hello</h1>;
322
- });`.trim(),Rw=`
322
+ });`.trim(),Mw=`
323
323
  import { component$, useTask$ } from '@qwik.dev/core';
324
324
 
325
325
  export const HelloWorld = component$(() => {
@@ -332,7 +332,7 @@ export const HelloWorld = component$(() => {
332
332
  });
333
333
 
334
334
  return <h1>Hello</h1>;
335
- });`.trim(),jw=`
335
+ });`.trim(),Lw=`
336
336
  import { component$, $ } from '@qwik.dev/core';
337
337
 
338
338
  export const HelloWorld = component$(() => {
@@ -340,7 +340,7 @@ export const HelloWorld = component$(() => {
340
340
  return (
341
341
  <button onClick$={click}>log it</button>
342
342
  );
343
- });`.trim(),Mw=`
343
+ });`.trim(),Vw=`
344
344
  import { component$ } from '@qwik.dev/core';
345
345
 
346
346
  export const HelloWorld = component$(() => {
@@ -348,7 +348,7 @@ export const HelloWorld = component$(() => {
348
348
  return (
349
349
  <button onClick$={click}>log it</button>
350
350
  );
351
- });`.trim(),Lw=`
351
+ });`.trim(),Dw=`
352
352
  import { component$ } from '@qwik.dev/core';
353
353
 
354
354
  export const HelloWorld = component$(() => {
@@ -361,7 +361,7 @@ export const HelloWorld = component$(() => {
361
361
  {person.name}
362
362
  </button>
363
363
  );
364
- });`.trim(),Vw=`
364
+ });`.trim(),Uw=`
365
365
  import { component$ } from '@qwik.dev/core';
366
366
 
367
367
  export const HelloWorld = component$(() => {
@@ -374,7 +374,7 @@ export const HelloWorld = component$(() => {
374
374
  {personName}
375
375
  </button>
376
376
  );
377
- });`.trim();var jp=require("@typescript-eslint/utils"),Ob=jp.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Mp=Ob({name:"serializer-signal-usage",meta:{type:"problem",docs:{description:"Ensure signals used in update() are also used in deserialize()"},schema:[],messages:{serializerSignalMismatch:"Signals/Stores used in update() must also be used in deserialize(). Missing: {{signals}}"}},defaultOptions:[],create(r){function e(n){return n.endsWith("Signal")||n.endsWith("Store")||n==="signal"||n==="store"}function t(n){let o=new Set,i=new WeakSet,a=new Set;"params"in n&&Array.isArray(n.params)&&n.params.forEach(u=>{u.type==="Identifier"&&a.add(u.name)});function l(u){let f=u.parent;return f?f.type==="AssignmentExpression"&&f.left===u||f.type==="UpdateExpression"&&f.argument===u:!1}function p(u){if(!(!u||typeof u!="object"||i.has(u))){i.add(u),u.type==="MemberExpression"&&!l(u)&&u.object.type==="Identifier"&&!a.has(u.object.name)&&(u.property.type==="Identifier"&&u.property.name==="value"?o.add(u.object.name):u.property.type==="Identifier"&&e(u.object.name)&&o.add(`${u.object.name}.${u.property.name}`)),u.type==="Identifier"&&!a.has(u.name)&&e(u.name)&&o.add(u.name);for(let f in u){if(f==="parent")continue;let m=u[f];Array.isArray(m)?m.forEach(p):m&&typeof m=="object"&&(m.parent=u,p(m))}}}return n.type==="BlockStatement"?n.body.forEach(p):p(n),o}return{CallExpression(n){if(n.callee.type==="Identifier"&&(n.callee.name==="useSerializer$"||n.callee.name==="createSerializer$")){let o=n.arguments[0];if(o&&(o.type==="ArrowFunctionExpression"||o.type==="FunctionExpression")){let i;if(o.body.type==="BlockStatement"){let a=o.body.body.find(l=>l.type==="ReturnStatement");a&&a.argument&&a.argument.type==="ObjectExpression"&&(i=a.argument)}else o.body.type==="ObjectExpression"&&(i=o.body);if(i){let a=i.properties.find(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="update"),l=i.properties.find(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="deserialize");if(a&&l){let p=a.value,u=l.value;if((p.type==="ArrowFunctionExpression"||p.type==="FunctionExpression")&&(u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression")){let f=t(p.body),m=t(u.body),y=Array.from(f).filter(c=>!m.has(c)),d=Array.from(m).filter(c=>!f.has(c)),v=[...y,...d];v.length>0&&r.report({node:a,messageId:"serializerSignalMismatch",data:{signals:v.join(", ")}})}}}}}}}}}),Bw=`
377
+ });`.trim();var jp=require("@typescript-eslint/utils"),kb=jp.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Mp=kb({name:"serializer-signal-usage",meta:{type:"problem",docs:{description:"Ensure signals used in update() are also used in deserialize()"},schema:[],messages:{serializerSignalMismatch:"Signals/Stores used in update() must also be used in deserialize(). Missing: {{signals}}"}},defaultOptions:[],create(r){function e(n){return n.endsWith("Signal")||n.endsWith("Store")||n==="signal"||n==="store"}function t(n){let o=new Set,i=new WeakSet,a=new Set;"params"in n&&Array.isArray(n.params)&&n.params.forEach(u=>{u.type==="Identifier"&&a.add(u.name)});function l(u){let f=u.parent;return f?f.type==="AssignmentExpression"&&f.left===u||f.type==="UpdateExpression"&&f.argument===u:!1}function p(u){if(!(!u||typeof u!="object"||i.has(u))){i.add(u),u.type==="MemberExpression"&&!l(u)&&u.object.type==="Identifier"&&!a.has(u.object.name)&&(u.property.type==="Identifier"&&u.property.name==="value"?o.add(u.object.name):u.property.type==="Identifier"&&e(u.object.name)&&o.add(`${u.object.name}.${u.property.name}`)),u.type==="Identifier"&&!a.has(u.name)&&e(u.name)&&o.add(u.name);for(let f in u){if(f==="parent")continue;let m=u[f];Array.isArray(m)?m.forEach(p):m&&typeof m=="object"&&(m.parent=u,p(m))}}}return n.type==="BlockStatement"?n.body.forEach(p):p(n),o}return{CallExpression(n){if(n.callee.type==="Identifier"&&(n.callee.name==="useSerializer$"||n.callee.name==="createSerializer$")){let o=n.arguments[0];if(o&&(o.type==="ArrowFunctionExpression"||o.type==="FunctionExpression")){let i;if(o.body.type==="BlockStatement"){let a=o.body.body.find(l=>l.type==="ReturnStatement");a&&a.argument&&a.argument.type==="ObjectExpression"&&(i=a.argument)}else o.body.type==="ObjectExpression"&&(i=o.body);if(i){let a=i.properties.find(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="update"),l=i.properties.find(p=>p.type==="Property"&&p.key.type==="Identifier"&&p.key.name==="deserialize");if(a&&l){let p=a.value,u=l.value;if((p.type==="ArrowFunctionExpression"||p.type==="FunctionExpression")&&(u.type==="ArrowFunctionExpression"||u.type==="FunctionExpression")){let f=t(p.body),m=t(u.body),y=Array.from(f).filter(c=>!m.has(c)),d=Array.from(m).filter(c=>!f.has(c)),v=[...y,...d];v.length>0&&r.report({node:a,messageId:"serializerSignalMismatch",data:{signals:v.join(", ")}})}}}}}}}}}),Ww=`
378
378
  import { useSignal, useSerializer$ } from '@qwik.dev/core';
379
379
  import MyClass from './my-class';
380
380
 
@@ -390,7 +390,7 @@ export default component$(() => {
390
390
  }));
391
391
 
392
392
  return <div>{myClass.count}</div>;
393
- });`.trim(),Jw=`
393
+ });`.trim(),Gw=`
394
394
  import { useSignal, useSerializer$ } from '@qwik.dev/core';
395
395
  import MyClass from './my-class';
396
396
 
@@ -407,4 +407,4 @@ export default component$(() => {
407
407
  }));
408
408
 
409
409
  return <div>{myClass.count}</div>;
410
- });`.trim();var _n={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-beta.21",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.52.0","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/estree":"1.0.8","@typescript-eslint/rule-tester":"8.38.0",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["eslint","qwik"],license:"MIT",main:"dist/index.js",peerDependencies:{eslint:"^8.57.0 || ^9.0.0"},repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var T=require("@typescript-eslint/utils"),kb="isServer";function Fn(r,e){if(!e)return!1;let t=r.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}var Lp={meta:{type:"problem",docs:{description:"Disallow direct or indirect (via one-level function call) Node.js API usage in useTask$ without a server guard (e.g., isServer).",category:"Best Practices",recommended:!0,url:""},fixable:void 0,schema:[{type:"object",properties:{forbiddenApis:{type:"array",items:{type:"string"},default:["process","fs","os","path","child_process","http","https","Buffer","__dirname","__filename"]}},additionalProperties:!1}],messages:{unsafeApiUsage:"Node.js API '{{apiName}}' should only be used inside an '{{guardName}}' block within useTask$. Example: if ({{guardName}}) { {{apiName}}.call(); }",unsafeApiUsageInCalledFunction:"Node.js API '{{apiName}}' used in function '{{calledFunctionName}}' (called from useTask$) needs '{{guardName}}' protection. Either guard the call site or protect the API usage within '{{calledFunctionName}}'."}},create(r){let e=r.options[0]||{},t=new Set(e.forbiddenApis||["process","fs","os","path","child_process","http","https","Buffer","__dirname","__filename"]),n=kb,o=r.sourceCode,i=null;function a(u,f){let m=u.parent;for(;m&&m!==f.body&&m!==f;){if(m.type===T.AST_NODE_TYPES.IfStatement){let y=m;if(Fn(u,y.consequent)||u===y.consequent){let d=y.test;if(d.type===T.AST_NODE_TYPES.Identifier&&d.name===n||d.type===T.AST_NODE_TYPES.BinaryExpression&&d.operator==="==="&&(d.left.type===T.AST_NODE_TYPES.Identifier&&d.left.name===n&&d.right.type===T.AST_NODE_TYPES.Literal&&d.right.value===!0||d.right.type===T.AST_NODE_TYPES.Identifier&&d.right.name===n&&d.left.type===T.AST_NODE_TYPES.Literal&&d.left.value===!0)||d.type===T.AST_NODE_TYPES.UnaryExpression&&d.operator==="!"&&d.argument.type===T.AST_NODE_TYPES.UnaryExpression&&d.argument.operator==="!"&&d.argument.argument.type===T.AST_NODE_TYPES.Identifier&&d.argument.argument.name===n)return!0}}m=m.parent}return!1}function l(u){let f=o.getScope(u),m=null,y=f;for(;y;){let d=y.variables.find(v=>v.name===u.name);if(d){m=d;break}if(y.type==="global"){m=y.variables.find(v=>v.name===u.name);break}y=y.upper}return!m||m.defs.length===0?!1:m.defs.some(d=>d.type==="Variable"||d.type==="Parameter"||d.type==="FunctionName"||d.type==="ClassName"||d.type==="ImportBinding")}function p(u,f,m){function y(d){if(!d)return!1;if(d.type===T.AST_NODE_TYPES.Identifier&&t.has(d.name)&&!l(d)&&!a(d,f))return r.report({node:m,messageId:"unsafeApiUsageInCalledFunction",data:{apiName:d.name,calledFunctionName:f.id?.name||(m.type===T.AST_NODE_TYPES.Identifier?m.name:"[anonymous]"),guardName:n}}),!0;for(let v in d){if(v==="parent"||v==="range"||v==="loc")continue;let c=d[v];if(Array.isArray(c)){for(let g of c)if(g&&typeof g=="object"&&"type"in g&&y(g))return!0}else if(c&&typeof c=="object"&&"type"in c&&y(c))return!0}return!1}y(u)}return{":function"(u){let f=u.parent;f&&f.type===T.AST_NODE_TYPES.CallExpression&&f.callee.type===T.AST_NODE_TYPES.Identifier&&f.callee.name==="useTask$"&&f.arguments.length>0&&f.arguments[0]===u&&(i=u)},":function:exit"(u){i===u&&(i=null)},Identifier(u){if(i&&!(i.body!==u&&!Fn(u,i.body))&&!(u.parent&&u.parent.type===T.AST_NODE_TYPES.CallExpression&&u.parent.callee===u)&&t.has(u.name)){if(l(u))return;a(u,i)||r.report({node:u,messageId:"unsafeApiUsage",data:{apiName:u.name,guardName:n}})}},CallExpression(u){if(i&&Fn(u,i.body)&&!a(u,i)&&u.callee.type===T.AST_NODE_TYPES.Identifier){let f=u.callee,m=o.getScope(f),y=null,d=m.references.find(c=>c.identifier===f);if(d&&d.resolved)y=d.resolved;else{let c=m;for(;c;){let g=c.variables.find(h=>h.name===f.name);if(g&&g.defs.length>0){y=g;break}if(c.type==="global"&&!g){let h=c.type==="global"?c.variables.find(E=>E.name===f.name):null;h&&(y=h);break}if(!c.upper)break;c=c.upper}}let v=y;if(v&&v.defs.length>0){let c=v.defs[0],g=null;if(c.node.type===T.AST_NODE_TYPES.FunctionDeclaration?g=c.node:c.node.type===T.AST_NODE_TYPES.VariableDeclarator&&c.node.init&&(c.node.init.type===T.AST_NODE_TYPES.FunctionExpression||c.node.init.type===T.AST_NODE_TYPES.ArrowFunctionExpression)&&(g=c.node.init),g){let h=(g.body.type===T.AST_NODE_TYPES.BlockStatement,g.body);p(h,g,u)}}}}}}};var x=require("@typescript-eslint/utils"),H=Z(require("typescript"));function Nn(r){return r?.defs?.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}function Le(r,e){let t=r.sourceCode.getScope(e),n=t.references.find(i=>i.identifier===e);if(n&&n.resolved)return n.resolved;let o=t;for(;o;){let i=o.variables.find(a=>a.name===e.name);if(i)return i;o=o.upper}return null}function Cb(r,e){if(!e||e.type!==x.AST_NODE_TYPES.Identifier||!e.name.endsWith("$"))return!1;let t=Le(r,e);return Nn(t)}function _b(r){let e=r.body[0];if(!e||e.type!==x.AST_NODE_TYPES.ExpressionStatement)return null;let t=e.expression;return t.type===x.AST_NODE_TYPES.MemberExpression&&!t.computed&&t.property.type===x.AST_NODE_TYPES.Identifier&&t.property.name==="value"?e:null}function Fb(r,e){let t=Le(r,e);if(!t||t.defs&&t.defs.length===0)return!1;let n=r.sourceCode.parserServices,o=n?.program?.getTypeChecker(),i=n?.esTreeNodeToTSNodeMap;function a(l){if(!l)return!1;if(H.default.isVariableDeclaration(l)&&l.initializer&&H.default.isCallExpression(l.initializer)){let p=l.initializer.expression;if(H.default.isIdentifier(p)){let u=p.text;return u==="createAsync$"||u==="useAsync$"||u==="routeLoader$"}}return H.default.isExportSpecifier(l)||H.default.isImportSpecifier(l),!1}for(let l of t.defs){if(l.type==="Variable"&&l.node.type===x.AST_NODE_TYPES.VariableDeclarator){let p=l.node.init;if(p&&p.type===x.AST_NODE_TYPES.CallExpression){let u=p.callee;if(u.type===x.AST_NODE_TYPES.Identifier){let f=u.name;if((f==="useAsync$"||f==="createAsync$"||f==="routeLoader$")&&Nn(Le(r,u)))return!0;let m=Le(r,u);if(m&&m.defs){for(let y of m.defs)if(y.type==="Variable"&&y.node.type===x.AST_NODE_TYPES.VariableDeclarator){let d=y.node.init;if(d&&d.type===x.AST_NODE_TYPES.CallExpression){let v=d.callee;if(v.type===x.AST_NODE_TYPES.Identifier&&v.name==="routeLoader$"&&Nn(Le(r,v)))return!0}}}}}}if(l.type==="ImportBinding"&&o&&i)try{let p=i.get(e);if(p){let u=o.getSymbolAtLocation(p);if(u&&u.flags&H.default.SymbolFlags.Alias&&(u=o.getAliasedSymbol(u)),u){for(let y of u.declarations??[]){if(a(y))return!0;if(H.default.isVariableStatement(y)){for(let d of y.declarationList.declarations)if(a(d))return!0}}let f=o.getTypeOfSymbolAtLocation(u,p),m=o.typeToString(f.getNonNullableType());if(/Async/i.test(m))return!0}}}catch{}}if(o&&i)try{let l=i.get(e),p=o.getTypeAtLocation(l),u=o.typeToString(p.getNonNullableType());if(/Async|LoaderSignal/i.test(u))return!0}catch{}return!1}function Nb(r,e,t){for(let n of r.body){if(n===e)break;if(n.type!==x.AST_NODE_TYPES.ExpressionStatement)continue;let o=n.expression;if(o.type!==x.AST_NODE_TYPES.AwaitExpression)continue;let i=o.argument;if(i.type===x.AST_NODE_TYPES.CallExpression&&(i=i.callee),i.type===x.AST_NODE_TYPES.MemberExpression&&!i.computed&&i.object.type===x.AST_NODE_TYPES.Identifier&&i.object.name===t&&i.property.type===x.AST_NODE_TYPES.Identifier&&i.property.name==="promise")return!0}return!1}function Rb(r){let e=r;for(;e;){if(e.type===x.AST_NODE_TYPES.FunctionDeclaration||e.type===x.AST_NODE_TYPES.FunctionExpression||e.type===x.AST_NODE_TYPES.ArrowFunctionExpression)return e;e=e.parent}return null}function jb(r,e,t){let n=e.parent;if(n&&n.type===x.AST_NODE_TYPES.CallExpression&&n.callee.type===x.AST_NODE_TYPES.Identifier&&Cb(r,n.callee)){for(let o of n.arguments)if(o===e)return!0}if(e.async){for(let o of e.params)if(o.type===x.AST_NODE_TYPES.Identifier&&o.name===t.name)return!0}return!1}var Vp={meta:{type:"problem",docs:{description:"Warn when an async computed signal '.value' is read not at the top of a QRL callback.",recommended:!1,url:""},schema:[],messages:{asyncComputedNotTop:"Async computed '{{name}}.value' must be first, or use 'await {{name}}.promise()' beforehand."}},create(r){return{MemberExpression(e){if(e.computed||e.property.type!==x.AST_NODE_TYPES.Identifier||e.property.name!=="value")return;let t=e.object;if(t.type!==x.AST_NODE_TYPES.Identifier||!Fb(r,t))return;let n=Rb(e);if(!n||!jb(r,n,t))return;let o=e.parent;if(!o||o.type!==x.AST_NODE_TYPES.ExpressionStatement&&o.type!==x.AST_NODE_TYPES.ReturnStatement)return;let i=n.body&&n.body.type===x.AST_NODE_TYPES.BlockStatement?n.body:null;if(!i)return n.body.type===x.AST_NODE_TYPES.MemberExpression&&n.body===e,void 0;o.parent!==i||i.body[0]===o||_b(i)===o||(o.type===x.AST_NODE_TYPES.ExpressionStatement||o.type===x.AST_NODE_TYPES.ReturnStatement)&&Nb(i,o,t.name)||r.report({node:e,messageId:"asyncComputedNotTop",data:{name:t.name}})}}}};var Dp={"valid-lexical-scope":Fp,"use-method-usage":_p,"no-react-props":Op,"loader-location":Ip,"prefer-classlist":kp,"jsx-no-script-url":Ap,"jsx-key":qp,"unused-server":Cp,"jsx-img":Wn,"jsx-a":Bn,"no-use-visible-task":$p,"serializer-signal-usage":Mp,"scope-use-task":Lp,"use-async-top":Vp},Up={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"warn","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn"},Bp={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn"},Mb={recommended:{plugins:["qwik"],rules:Up},strict:{plugins:["qwik"],rules:Bp}},Rn={configs:{get recommended(){return Lb},get strict(){return Vb}},meta:{name:_n.name,version:_n.version},rules:Dp},Lb=[{plugins:{qwik:Rn},rules:Up}],Vb=[{plugins:{qwik:Rn},rules:Bp}];0&&(module.exports={configs,qwikEslint9Plugin,rules});
410
+ });`.trim();var _n={name:"eslint-plugin-qwik",description:"An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",version:"2.0.0-beta.24",author:"Qwik Team",bugs:"https://github.com/QwikDev/qwik/issues",dependencies:{"@typescript-eslint/utils":"^8.52.0","jsx-ast-utils":"^3.3.5"},devDependencies:{"@qwik.dev/core":"workspace:*","@qwik.dev/router":"workspace:*","@types/estree":"1.0.8","@typescript-eslint/rule-tester":"8.38.0",redent:"4.0.0"},engines:{node:"^18.17.0 || ^20.3.0 || >=21.0.0"},files:["README.md","dist"],homepage:"https://github.com/QwikDev/qwik#readme",keywords:["eslint","qwik"],license:"MIT",main:"dist/index.js",peerDependencies:{eslint:"^8.57.0 || ^9.0.0"},repository:{type:"git",url:"https://github.com/QwikDev/qwik.git",directory:"packages/eslint-rules"},scripts:{test:"cd ../..; ./node_modules/.bin/vitest packages/eslint-plugin-qwik/qwik.unit.ts"}};var T=require("@typescript-eslint/utils"),_b="isServer",Lp=["process","__dirname","__filename","module"],Vp=["fs","os","path","child_process","http","https","Buffer"];function Fn(r,e){if(!e)return!1;let t=r.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}var Dp={meta:{type:"problem",docs:{description:"Disallow direct or indirect (via one-level function call) Node.js API usage in useTask$ without a server guard (e.g., isServer).",category:"Best Practices",recommended:!0,url:""},fixable:void 0,schema:[{type:"object",properties:{forbiddenApis:{type:"array",items:{type:"string"},default:Vp}},additionalProperties:!1}],messages:{unsafeApiUsage:"Node.js API '{{apiName}}' should only be used inside an '{{guardName}}' block within useTask$. Example: if ({{guardName}}) { {{apiName}}.call(); }",unsafeApiUsageInCalledFunction:"Node.js API '{{apiName}}' used in function '{{calledFunctionName}}' (called from useTask$) needs '{{guardName}}' protection. Either guard the call site or protect the API usage within '{{calledFunctionName}}'."}},create(r){let e=r.options[0]||{},t=new Set(e.forbiddenApis||Vp.concat(Lp)),n=_b,o=r.sourceCode,i=null;function a(u,f){let m=u.parent;for(;m&&m!==f.body&&m!==f;){if(m.type===T.AST_NODE_TYPES.IfStatement){let y=m;if(Fn(u,y.consequent)||u===y.consequent){let d=y.test;if(d.type===T.AST_NODE_TYPES.Identifier&&d.name===n||d.type===T.AST_NODE_TYPES.BinaryExpression&&d.operator==="==="&&(d.left.type===T.AST_NODE_TYPES.Identifier&&d.left.name===n&&d.right.type===T.AST_NODE_TYPES.Literal&&d.right.value===!0||d.right.type===T.AST_NODE_TYPES.Identifier&&d.right.name===n&&d.left.type===T.AST_NODE_TYPES.Literal&&d.left.value===!0)||d.type===T.AST_NODE_TYPES.UnaryExpression&&d.operator==="!"&&d.argument.type===T.AST_NODE_TYPES.UnaryExpression&&d.argument.operator==="!"&&d.argument.argument.type===T.AST_NODE_TYPES.Identifier&&d.argument.argument.name===n)return!0}}m=m.parent}return!1}function l(u){let f=o.getScope(u),m=null,y=f;if(!Lp.includes(u.name))return!0;for(;y;){let d=y.variables.find(v=>v.name===u.name);if(d){m=d;break}if(y.type==="global"){m=y.variables.find(v=>v.name===u.name);break}y=y.upper}return!m||m.defs.length===0?!1:m.defs.some(d=>d.type==="Variable"||d.type==="Parameter"||d.type==="FunctionName"||d.type==="ClassName"||d.type==="ImportBinding")}function p(u,f,m){function y(d){if(!d)return!1;if(d.type===T.AST_NODE_TYPES.Identifier&&t.has(d.name)&&!l(d)&&!a(d,f))return r.report({node:m,messageId:"unsafeApiUsageInCalledFunction",data:{apiName:d.name,calledFunctionName:f.id?.name||(m.type===T.AST_NODE_TYPES.Identifier?m.name:"[anonymous]"),guardName:n}}),!0;for(let v in d){if(v==="parent"||v==="range"||v==="loc")continue;let c=d[v];if(Array.isArray(c)){for(let g of c)if(g&&typeof g=="object"&&"type"in g&&y(g))return!0}else if(c&&typeof c=="object"&&"type"in c&&y(c))return!0}return!1}y(u)}return{":function"(u){let f=u.parent;f&&f.type===T.AST_NODE_TYPES.CallExpression&&f.callee.type===T.AST_NODE_TYPES.Identifier&&f.callee.name==="useTask$"&&f.arguments.length>0&&f.arguments[0]===u&&(i=u)},":function:exit"(u){i===u&&(i=null)},Identifier(u){if(i&&!(i.body!==u&&!Fn(u,i.body))&&!(u.parent&&u.parent.type===T.AST_NODE_TYPES.CallExpression&&u.parent.callee===u)&&t.has(u.name)){if(l(u))return;a(u,i)||r.report({node:u,messageId:"unsafeApiUsage",data:{apiName:u.name,guardName:n}})}},CallExpression(u){if(i&&Fn(u,i.body)&&!a(u,i)&&u.callee.type===T.AST_NODE_TYPES.Identifier){let f=u.callee,m=o.getScope(f),y=null,d=m.references.find(c=>c.identifier===f);if(d&&d.resolved)y=d.resolved;else{let c=m;for(;c;){let g=c.variables.find(h=>h.name===f.name);if(g&&g.defs.length>0){y=g;break}if(c.type==="global"&&!g){let h=c.type==="global"?c.variables.find(E=>E.name===f.name):null;h&&(y=h);break}if(!c.upper)break;c=c.upper}}let v=y;if(v&&v.defs.length>0){let c=v.defs[0],g=null;if(c.node.type===T.AST_NODE_TYPES.FunctionDeclaration?g=c.node:c.node.type===T.AST_NODE_TYPES.VariableDeclarator&&c.node.init&&(c.node.init.type===T.AST_NODE_TYPES.FunctionExpression||c.node.init.type===T.AST_NODE_TYPES.ArrowFunctionExpression)&&(g=c.node.init),g){let h=(g.body.type===T.AST_NODE_TYPES.BlockStatement,g.body);p(h,g,u)}}}}}}};var x=require("@typescript-eslint/utils"),H=Z(require("typescript"));function Nn(r){return r?.defs?.some(e=>{if(e.type!=="ImportBinding")return!1;let t=e.parent.source.value;return t.startsWith("@qwik.dev/core")||t.startsWith("@qwik.dev/router")||t.startsWith("@builder.io/qwik")||t.startsWith("@builder.io/qwik-city")})}function Le(r,e){let t=r.sourceCode.getScope(e),n=t.references.find(i=>i.identifier===e);if(n&&n.resolved)return n.resolved;let o=t;for(;o;){let i=o.variables.find(a=>a.name===e.name);if(i)return i;o=o.upper}return null}function Fb(r,e){if(!e||e.type!==x.AST_NODE_TYPES.Identifier||!e.name.endsWith("$"))return!1;let t=Le(r,e);return Nn(t)}function Nb(r){let e=r.body[0];if(!e||e.type!==x.AST_NODE_TYPES.ExpressionStatement)return null;let t=e.expression;return t.type===x.AST_NODE_TYPES.MemberExpression&&!t.computed&&t.property.type===x.AST_NODE_TYPES.Identifier&&t.property.name==="value"?e:null}function Rb(r,e){let t=Le(r,e);if(!t||t.defs&&t.defs.length===0)return!1;let n=r.sourceCode.parserServices,o=n?.program?.getTypeChecker(),i=n?.esTreeNodeToTSNodeMap;function a(l){if(!l)return!1;if(H.default.isVariableDeclaration(l)&&l.initializer&&H.default.isCallExpression(l.initializer)){let p=l.initializer.expression;if(H.default.isIdentifier(p)){let u=p.text;return u==="createAsync$"||u==="useAsync$"||u==="routeLoader$"}}return H.default.isExportSpecifier(l)||H.default.isImportSpecifier(l),!1}for(let l of t.defs){if(l.type==="Variable"&&l.node.type===x.AST_NODE_TYPES.VariableDeclarator){let p=l.node.init;if(p&&p.type===x.AST_NODE_TYPES.CallExpression){let u=p.callee;if(u.type===x.AST_NODE_TYPES.Identifier){let f=u.name;if((f==="useAsync$"||f==="createAsync$"||f==="routeLoader$")&&Nn(Le(r,u)))return!0;let m=Le(r,u);if(m&&m.defs){for(let y of m.defs)if(y.type==="Variable"&&y.node.type===x.AST_NODE_TYPES.VariableDeclarator){let d=y.node.init;if(d&&d.type===x.AST_NODE_TYPES.CallExpression){let v=d.callee;if(v.type===x.AST_NODE_TYPES.Identifier&&v.name==="routeLoader$"&&Nn(Le(r,v)))return!0}}}}}}if(l.type==="ImportBinding"&&o&&i)try{let p=i.get(e);if(p){let u=o.getSymbolAtLocation(p);if(u&&u.flags&H.default.SymbolFlags.Alias&&(u=o.getAliasedSymbol(u)),u){for(let y of u.declarations??[]){if(a(y))return!0;if(H.default.isVariableStatement(y)){for(let d of y.declarationList.declarations)if(a(d))return!0}}let f=o.getTypeOfSymbolAtLocation(u,p),m=o.typeToString(f.getNonNullableType());if(/Async/i.test(m))return!0}}}catch{}}if(o&&i)try{let l=i.get(e),p=o.getTypeAtLocation(l),u=o.typeToString(p.getNonNullableType());if(/Async|LoaderSignal/i.test(u))return!0}catch{}return!1}function jb(r,e,t){for(let n of r.body){if(n===e)break;if(n.type!==x.AST_NODE_TYPES.ExpressionStatement)continue;let o=n.expression;if(o.type!==x.AST_NODE_TYPES.AwaitExpression)continue;let i=o.argument;if(i.type===x.AST_NODE_TYPES.CallExpression&&(i=i.callee),i.type===x.AST_NODE_TYPES.MemberExpression&&!i.computed&&i.object.type===x.AST_NODE_TYPES.Identifier&&i.object.name===t&&i.property.type===x.AST_NODE_TYPES.Identifier&&i.property.name==="promise")return!0}return!1}function Mb(r){let e=r;for(;e;){if(e.type===x.AST_NODE_TYPES.FunctionDeclaration||e.type===x.AST_NODE_TYPES.FunctionExpression||e.type===x.AST_NODE_TYPES.ArrowFunctionExpression)return e;e=e.parent}return null}function Lb(r,e,t){let n=e.parent;if(n&&n.type===x.AST_NODE_TYPES.CallExpression&&n.callee.type===x.AST_NODE_TYPES.Identifier&&Fb(r,n.callee)){for(let o of n.arguments)if(o===e)return!0}if(e.async){for(let o of e.params)if(o.type===x.AST_NODE_TYPES.Identifier&&o.name===t.name)return!0}return!1}var Up={meta:{type:"problem",docs:{description:"Warn when an async computed signal '.value' is read not at the top of a QRL callback.",recommended:!1,url:""},schema:[],messages:{asyncComputedNotTop:"Async computed '{{name}}.value' must be first, or use 'await {{name}}.promise()' beforehand."}},create(r){return{MemberExpression(e){if(e.computed||e.property.type!==x.AST_NODE_TYPES.Identifier||e.property.name!=="value")return;let t=e.object;if(t.type!==x.AST_NODE_TYPES.Identifier||!Rb(r,t))return;let n=Mb(e);if(!n||!Lb(r,n,t))return;let o=e.parent;if(!o||o.type!==x.AST_NODE_TYPES.ExpressionStatement&&o.type!==x.AST_NODE_TYPES.ReturnStatement)return;let i=n.body&&n.body.type===x.AST_NODE_TYPES.BlockStatement?n.body:null;if(!i)return n.body.type===x.AST_NODE_TYPES.MemberExpression&&n.body===e,void 0;o.parent!==i||i.body[0]===o||Nb(i)===o||(o.type===x.AST_NODE_TYPES.ExpressionStatement||o.type===x.AST_NODE_TYPES.ReturnStatement)&&jb(i,o,t.name)||r.report({node:e,messageId:"asyncComputedNotTop",data:{name:t.name}})}}}};var Bp={"valid-lexical-scope":Fp,"use-method-usage":_p,"no-react-props":Op,"loader-location":Ip,"prefer-classlist":kp,"jsx-no-script-url":Ap,"jsx-key":qp,"unused-server":Cp,"jsx-img":Wn,"jsx-a":Bn,"no-use-visible-task":$p,"serializer-signal-usage":Mp,"scope-use-task":Dp,"use-async-top":Up},Jp={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"warn","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn"},Wp={"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/no-react-props":"error","qwik/loader-location":"error","qwik/prefer-classlist":"error","qwik/jsx-no-script-url":"error","qwik/jsx-key":"error","qwik/unused-server":"error","qwik/jsx-img":"error","qwik/jsx-a":"error","qwik/no-use-visible-task":"warn","qwik/serializer-signal-usage":"error","qwik/scope-use-task":"error","qwik/use-async-top":"warn"},Vb={recommended:{plugins:["qwik"],rules:Jp},strict:{plugins:["qwik"],rules:Wp}},Rn={configs:{get recommended(){return Db},get strict(){return Ub}},meta:{name:_n.name,version:_n.version},rules:Bp},Db=[{plugins:{qwik:Rn},rules:Jp}],Ub=[{plugins:{qwik:Rn},rules:Wp}];0&&(module.exports={configs,qwikEslint9Plugin,rules});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-qwik",
3
3
  "description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
4
- "version": "2.0.0-beta.21",
4
+ "version": "2.0.0-beta.24",
5
5
  "author": "Qwik Team",
6
6
  "bugs": "https://github.com/QwikDev/qwik/issues",
7
7
  "dependencies": {
@@ -12,8 +12,8 @@
12
12
  "@types/estree": "1.0.8",
13
13
  "@typescript-eslint/rule-tester": "8.38.0",
14
14
  "redent": "4.0.0",
15
- "@qwik.dev/core": "2.0.0-beta.21",
16
- "@qwik.dev/router": "2.0.0-beta.21"
15
+ "@qwik.dev/core": "2.0.0-beta.24",
16
+ "@qwik.dev/router": "2.0.0-beta.24"
17
17
  },
18
18
  "engines": {
19
19
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"