eslint-plugin-qwik 1.9.1 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +71 -71
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var $l=Object.create;var ke=Object.defineProperty;var Il=Object.getOwnPropertyDescriptor;var _l=Object.getOwnPropertyNames;var Cl=Object.getPrototypeOf,kl=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Fl=(r,e)=>{for(var t in e)ke(r,t,{get:e[t],enumerable:!0})},Tn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of _l(e))!kl.call(r,o)&&o!==t&&ke(r,o,{get:()=>e[o],enumerable:!(n=Il(e,o))||n.enumerable});return r};var Y=(r,e,t)=>(t=r!=null?$l(Cl(r)):{},Tn(e||!r||!r.__esModule?ke(t,"default",{value:r,enumerable:!0}):t,r)),Nl=r=>Tn(ke({},"__esModule",{value:!0}),r);var Fe=s(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ll;function Ll(){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 $n=s(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.default=vr;fe.hasAnyProp=Vl;fe.hasEveryProp=Ul;var Rl=Fe(),On=Ml(Rl);function Ml(r){return r&&r.__esModule?r:{default:r}}var gr={spreadStrict:!0,ignoreCase:!0};function vr(){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]:gr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,On.default)(o).toUpperCase():(0,On.default)(o);return n===i})}function Vl(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return vr(r,o,t)})}function Ul(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return vr(r,o,t)})}});var _n=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=Dl;function In(){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"?In(r.object,r.property)+"."+e.name:r.name+"."+e.name}function Dl(){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 In(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var br=s((Uv,kn)=>{"use strict";var Cn=Object.prototype.toString;kn.exports=function(e){var t=Cn.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Cn.call(e.callee)==="[object Function]"),n}});var Dn=s((Dv,Un)=>{"use strict";var Vn;Object.keys||(de=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,Fn=br(),Sr=Object.prototype.propertyIsEnumerable,Nn=!Sr.call({toString:null},"toString"),jn=Sr.call(function(){},"prototype"),me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ne=function(r){var e=r.constructor;return e&&e.prototype===r},Ln={$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},Rn=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!Ln["$"+r]&&de.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Ne(window[r])}catch{return!0}}catch{return!0}return!1}(),Mn=function(r){if(typeof window>"u"||!Rn)return Ne(r);try{return Ne(r)}catch{return!1}},Vn=function(e){var t=e!==null&&typeof e=="object",n=xr.call(e)==="[object Function]",o=Fn(e),i=t&&xr.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=jn&&n;if(i&&e.length>0&&!de.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(o&&e.length>0)for(var m=0;m<e.length;++m)a.push(String(m));else for(var y in e)!(u&&y==="prototype")&&de.call(e,y)&&a.push(String(y));if(Nn)for(var d=Mn(e),p=0;p<me.length;++p)!(d&&me[p]==="constructor")&&de.call(e,me[p])&&a.push(me[p]);return a});var de,xr,Fn,Sr,Nn,jn,me,Ne,Ln,Rn,Mn;Un.exports=Vn});var Er=s((Jv,Wn)=>{"use strict";var Jl=Array.prototype.slice,Bl=br(),Jn=Object.keys,je=Jn?function(e){return Jn(e)}:Dn(),Bn=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 Bl(n)?Bn(Jl.call(n)):Bn(n)})}else Object.keys=je;return Object.keys||je};Wn.exports=je});var Xn=s((Bv,Gn)=>{"use strict";Gn.exports=Error});var Kn=s((Wv,Hn)=>{"use strict";Hn.exports=EvalError});var wr=s((Gv,zn)=>{"use strict";zn.exports=RangeError});var Yn=s((Xv,Qn)=>{"use strict";Qn.exports=ReferenceError});var ye=s((Hv,Zn)=>{"use strict";Zn.exports=SyntaxError});var x=s((Kv,eo)=>{"use strict";eo.exports=TypeError});var to=s((zv,ro)=>{"use strict";ro.exports=URIError});var Le=s((Qv,no)=>{"use strict";no.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(t 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 i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var qr=s((Yv,io)=>{"use strict";var oo=typeof Symbol<"u"&&Symbol,Wl=Le();io.exports=function(){return typeof oo!="function"||typeof Symbol!="function"||typeof oo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Wl()}});var Ar=s((Zv,ao)=>{"use strict";var Tr={__proto__:null,foo:{}},Gl=Object;ao.exports=function(){return{__proto__:Tr}.foo===Tr.foo&&!(Tr instanceof Gl)}});var lo=s((eh,uo)=>{"use strict";var Xl="Function.prototype.bind called on incompatible ",Hl=Object.prototype.toString,Kl=Math.max,zl="[object Function]",so=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},Ql=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},Yl=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};uo.exports=function(e){var t=this;if(typeof t!="function"||Hl.apply(t)!==zl)throw new TypeError(Xl+t);for(var n=Ql(arguments,1),o,i=function(){if(this instanceof o){var y=t.apply(this,so(n,arguments));return Object(y)===y?y:this}return t.apply(e,so(n,arguments))},a=Kl(0,t.length-n.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(o=Function("binder","return function ("+Yl(u,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var m=function(){};m.prototype=t.prototype,o.prototype=new m,m.prototype=null}return o}});var Re=s((rh,po)=>{"use strict";var Zl=lo();po.exports=Function.prototype.bind||Zl});var X=s((th,co)=>{"use strict";var ep=Function.prototype.call,rp=Object.prototype.hasOwnProperty,tp=Re();co.exports=tp.call(ep,rp)});var P=s((nh,vo)=>{"use strict";var g,np=Xn(),op=Kn(),ip=wr(),ap=Yn(),te=ye(),re=x(),sp=to(),go=Function,Pr=function(r){try{return go('"use strict"; return ('+r+").constructor;")()}catch{}},H=Object.getOwnPropertyDescriptor;if(H)try{H({},"")}catch{H=null}var Or=function(){throw new re},up=H?function(){try{return arguments.callee,Or}catch{try{return H(arguments,"callee").get}catch{return Or}}}():Or,Z=qr()(),lp=Ar()(),T=Object.getPrototypeOf||(lp?function(r){return r.__proto__}:null),ee={},pp=typeof Uint8Array>"u"||!T?g:T(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&T?T([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":np,"%eval%":eval,"%EvalError%":op,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":go,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&T?T(T([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!T?g:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":ip,"%ReferenceError%":ap,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!T?g:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&T?T(""[Symbol.iterator]()):g,"%Symbol%":Z?Symbol:g,"%SyntaxError%":te,"%ThrowTypeError%":up,"%TypedArray%":pp,"%TypeError%":re,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":sp,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(T)try{null.error}catch(r){fo=T(T(r)),K["%Error.prototype%"]=fo}var fo,cp=function r(e){var t;if(e==="%AsyncFunction%")t=Pr("async function () {}");else if(e==="%GeneratorFunction%")t=Pr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Pr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&T&&(t=T(o.prototype))}return K[e]=t,t},mo={__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"]},ge=Re(),Me=X(),fp=ge.call(Function.call,Array.prototype.concat),dp=ge.call(Function.apply,Array.prototype.splice),yo=ge.call(Function.call,String.prototype.replace),Ve=ge.call(Function.call,String.prototype.slice),mp=ge.call(Function.call,RegExp.prototype.exec),yp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gp=/\\(\\)?/g,vp=function(e){var t=Ve(e,0,1),n=Ve(e,-1);if(t==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return yo(e,yp,function(i,a,u,l){o[o.length]=u?yo(l,gp,"$1"):a||i}),o},hp=function(e,t){var n=e,o;if(Me(mo,n)&&(o=mo[n],n="%"+o[0]+"%"),Me(K,n)){var i=K[n];if(i===ee&&(i=cp(n)),typeof i>"u"&&!t)throw new re("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new te("intrinsic "+e+" does not exist!")};vo.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new re("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new re('"allowMissing" argument must be a boolean');if(mp(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vp(e),o=n.length>0?n[0]:"",i=hp("%"+o+"%",t),a=i.name,u=i.value,l=!1,m=i.alias;m&&(o=m[0],dp(n,fp([0,1],m)));for(var y=1,d=!0;y<n.length;y+=1){var p=n[y],h=Ve(p,0,1),c=Ve(p,-1);if((h==='"'||h==="'"||h==="`"||c==='"'||c==="'"||c==="`")&&h!==c)throw new te("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(l=!0),o+="."+p,a="%"+o+"%",Me(K,a))u=K[a];else if(u!=null){if(!(p in u)){if(!t)throw new re("base intrinsic for "+e+" exists, but the property is not available.");return}if(H&&y+1>=n.length){var f=H(u,p);d=!!f,d&&"get"in f&&!("originalValue"in f.get)?u=f.get:u=u[p]}else d=Me(u,p),u=u[p];d&&!l&&(K[a]=u)}}return u}});var ve=s((oh,ho)=>{"use strict";var bp=P(),Ue=bp("%Object.defineProperty%",!0)||!1;if(Ue)try{Ue({},"a",{value:1})}catch{Ue=!1}ho.exports=Ue});var Je=s((ih,bo)=>{"use strict";var xp=P(),De=xp("%Object.getOwnPropertyDescriptor%",!0);if(De)try{De([],"length")}catch{De=null}bo.exports=De});var $r=s((ah,Eo)=>{"use strict";var xo=ve(),Sp=ye(),ne=x(),So=Je();Eo.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new ne("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ne("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ne("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ne("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ne("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ne("`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,u=arguments.length>6?arguments[6]:!1,l=!!So&&So(e,t);if(xo)xo(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new Sp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Be=s((sh,qo)=>{"use strict";var Ir=ve(),wo=function(){return!!Ir};wo.hasArrayLengthDefineBug=function(){if(!Ir)return null;try{return Ir([],"length",{value:1}).length!==1}catch{return!0}};qo.exports=wo});var j=s((uh,Oo)=>{"use strict";var Ep=Er(),wp=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",qp=Object.prototype.toString,Tp=Array.prototype.concat,To=$r(),Ap=function(r){return typeof r=="function"&&qp.call(r)==="[object Function]"},Ao=Be()(),Pp=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Ap(n)||!n())return}Ao?To(r,e,t,!0):To(r,e,t)},Po=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ep(e);wp&&(n=Tp.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Pp(r,n[o],e[n[o]],t[n[o]])};Po.supportsDescriptors=!!Ao;Oo.exports=Po});var ko=s((lh,Co)=>{"use strict";var Op=P(),$o=$r(),$p=Be()(),Io=Je(),_o=x(),Ip=Op("%Math.floor%");Co.exports=function(e,t){if(typeof e!="function")throw new _o("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Ip(t)!==t)throw new _o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&Io){var a=Io(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&($p?$o(e,"length",t,!0,!0):$o(e,"length",t)),e}});var oe=s((ph,We)=>{"use strict";var _r=Re(),Ge=P(),_p=ko(),Cp=x(),jo=Ge("%Function.prototype.apply%"),Lo=Ge("%Function.prototype.call%"),Ro=Ge("%Reflect.apply%",!0)||_r.call(Lo,jo),Fo=ve(),kp=Ge("%Math.max%");We.exports=function(e){if(typeof e!="function")throw new Cp("a function is required");var t=Ro(_r,Lo,arguments);return _p(t,1+kp(0,e.length-(arguments.length-1)),!0)};var No=function(){return Ro(_r,jo,arguments)};Fo?Fo(We.exports,"apply",{value:No}):We.exports.apply=No});var he=s((ch,Mo)=>{"use strict";Mo.exports=Number.isNaN||function(e){return e!==e}});var Cr=s((fh,Vo)=>{"use strict";var Fp=he();Vo.exports=function(r){return(typeof r=="number"||typeof r=="bigint")&&!Fp(r)&&r!==1/0&&r!==-1/0}});var kr=s((dh,Do)=>{"use strict";var Uo=P(),Np=Uo("%Math.abs%"),jp=Uo("%Math.floor%"),Lp=he(),Rp=Cr();Do.exports=function(e){if(typeof e!="number"||Lp(e)||!Rp(e))return!1;var t=Np(e);return jp(t)===t}});var Xo=s((mh,Go)=>{"use strict";var Wo=P(),Jo=Wo("%Array.prototype%"),Mp=wr(),Vp=ye(),Up=x(),Dp=kr(),Jp=Math.pow(2,32)-1,Bp=Ar()(),Bo=Wo("%Object.setPrototypeOf%",!0)||(Bp?function(r,e){return r.__proto__=e,r}:null);Go.exports=function(e){if(!Dp(e)||e<0)throw new Up("Assertion failed: `length` must be an integer Number >= 0");if(e>Jp)throw new Mp("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:Jo,n=[];if(t!==Jo){if(!Bo)throw new Vp("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");Bo(n,t)}return e!==0&&(n.length=e),n}});var Ko=s((yh,Ho)=>{Ho.exports=require("util").inspect});var yi=s((gh,mi)=>{var Jr=typeof Map=="function"&&Map.prototype,Fr=Object.getOwnPropertyDescriptor&&Jr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,He=Jr&&Fr&&typeof Fr.get=="function"?Fr.get:null,zo=Jr&&Map.prototype.forEach,Br=typeof Set=="function"&&Set.prototype,Nr=Object.getOwnPropertyDescriptor&&Br?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ke=Br&&Nr&&typeof Nr.get=="function"?Nr.get:null,Qo=Br&&Set.prototype.forEach,Wp=typeof WeakMap=="function"&&WeakMap.prototype,xe=Wp?WeakMap.prototype.has:null,Gp=typeof WeakSet=="function"&&WeakSet.prototype,Se=Gp?WeakSet.prototype.has:null,Xp=typeof WeakRef=="function"&&WeakRef.prototype,Yo=Xp?WeakRef.prototype.deref:null,Hp=Boolean.prototype.valueOf,Kp=Object.prototype.toString,zp=Function.prototype.toString,Qp=String.prototype.match,Wr=String.prototype.slice,V=String.prototype.replace,Yp=String.prototype.toUpperCase,Zo=String.prototype.toLowerCase,ui=RegExp.prototype.test,ei=Array.prototype.concat,_=Array.prototype.join,Zp=Array.prototype.slice,ri=Math.floor,Rr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jr=Object.getOwnPropertySymbols,Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,li=Object.prototype.propertyIsEnumerable,ti=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ni(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||ui.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ri(-r):ri(r);if(n!==r){var o=String(n),i=Wr.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 Vr=Ko(),oi=Vr.custom,ii=ci(oi)?oi:null;mi.exports=function r(e,t,n,o){var i=t||{};if(M(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(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=M(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(M(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(M(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=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 di(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?ni(e,l):l}if(typeof e=="bigint"){var m=String(e)+"n";return u?ni(e,m):m}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Ur(e)?"[Array]":"[Object]";var d=vc(i,n);if(typeof o>"u")o=[];else if(fi(o,e)>=0)return"[Circular]";function p(Q,Ce,Ol){if(Ce&&(o=Zp.call(o),o.push(Ce)),Ol){var qn={depth:i.depth};return M(i,"quoteStyle")&&(qn.quoteStyle=i.quoteStyle),r(Q,qn,n+1,o)}return r(Q,i,n+1,o)}if(typeof e=="function"&&!ai(e)){var h=uc(e),c=Xe(e,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(c.length>0?" { "+_.call(c,", ")+" }":"")}if(ci(e)){var f=ie?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Mr.call(e);return typeof e=="object"&&!ie?be(f):f}if(mc(e)){for(var v="<"+Zo.call(String(e.nodeName)),E=e.attributes||[],b=0;b<E.length;b++)v+=" "+E[b].name+"="+pi(ec(E[b].value),"double",i);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+Zo.call(String(e.nodeName))+">",v}if(Ur(e)){if(e.length===0)return"[]";var w=Xe(e,p);return d&&!gc(w)?"["+Dr(w,d)+"]":"[ "+_.call(w,", ")+" ]"}if(tc(e)){var $=Xe(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!li.call(e,"cause")?"{ ["+String(e)+"] "+_.call(ei.call("[cause]: "+p(e.cause),$),", ")+" }":$.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+_.call($,", ")+" }"}if(typeof e=="object"&&a){if(ii&&typeof e[ii]=="function"&&Vr)return Vr(e,{depth:y-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(lc(e)){var R=[];return zo&&zo.call(e,function(Q,Ce){R.push(p(Ce,e,!0)+" => "+p(Q,e))}),si("Map",He.call(e),R,d)}if(fc(e)){var _e=[];return Qo&&Qo.call(e,function(Q){_e.push(p(Q,e))}),si("Set",Ke.call(e),_e,d)}if(pc(e))return Lr("WeakMap");if(dc(e))return Lr("WeakSet");if(cc(e))return Lr("WeakRef");if(oc(e))return be(p(Number(e)));if(ac(e))return be(p(Rr.call(e)));if(ic(e))return be(Hp.call(e));if(nc(e))return be(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!rc(e)&&!ai(e)){var N=Xe(e,p),ce=ti?ti(e)===Object.prototype:e instanceof Object||e.constructor===Object,dr=e instanceof Object?"":"null prototype",wn=!ce&&O&&Object(e)===e&&O in e?Wr.call(U(e),8,-1):dr?"Object":"",Pl=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",mr=Pl+(wn||dr?"["+_.call(ei.call([],wn||[],dr||[]),": ")+"] ":"");return N.length===0?mr+"{}":d?mr+"{"+Dr(N,d)+"}":mr+"{ "+_.call(N,", ")+" }"}return String(e)};function pi(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function ec(r){return V.call(String(r),/"/g,""")}function Ur(r){return U(r)==="[object Array]"&&(!O||!(typeof r=="object"&&O in r))}function rc(r){return U(r)==="[object Date]"&&(!O||!(typeof r=="object"&&O in r))}function ai(r){return U(r)==="[object RegExp]"&&(!O||!(typeof r=="object"&&O in r))}function tc(r){return U(r)==="[object Error]"&&(!O||!(typeof r=="object"&&O in r))}function nc(r){return U(r)==="[object String]"&&(!O||!(typeof r=="object"&&O in r))}function oc(r){return U(r)==="[object Number]"&&(!O||!(typeof r=="object"&&O in r))}function ic(r){return U(r)==="[object Boolean]"&&(!O||!(typeof r=="object"&&O in r))}function ci(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Mr)return!1;try{return Mr.call(r),!0}catch{}return!1}function ac(r){if(!r||typeof r!="object"||!Rr)return!1;try{return Rr.call(r),!0}catch{}return!1}var sc=Object.prototype.hasOwnProperty||function(r){return r in this};function M(r,e){return sc.call(r,e)}function U(r){return Kp.call(r)}function uc(r){if(r.name)return r.name;var e=Qp.call(zp.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function fi(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 lc(r){if(!He||!r||typeof r!="object")return!1;try{He.call(r);try{Ke.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function pc(r){if(!xe||!r||typeof r!="object")return!1;try{xe.call(r,xe);try{Se.call(r,Se)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function cc(r){if(!Yo||!r||typeof r!="object")return!1;try{return Yo.call(r),!0}catch{}return!1}function fc(r){if(!Ke||!r||typeof r!="object")return!1;try{Ke.call(r);try{He.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function dc(r){if(!Se||!r||typeof r!="object")return!1;try{Se.call(r,Se);try{xe.call(r,xe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function mc(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function di(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return di(Wr.call(r,0,e.maxStringLength),e)+n}var o=V.call(V.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,yc);return pi(o,"single",e)}function yc(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":"")+Yp.call(e.toString(16))}function be(r){return"Object("+r+")"}function Lr(r){return r+" { ? }"}function si(r,e,t,n){var o=n?Dr(t,n):_.call(t,", ");return r+" ("+e+") {"+o+"}"}function gc(r){for(var e=0;e<r.length;e++)if(fi(r[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";var kl=Object.create;var ke=Object.defineProperty;var Fl=Object.getOwnPropertyDescriptor;var Nl=Object.getOwnPropertyNames;var jl=Object.getPrototypeOf,Rl=Object.prototype.hasOwnProperty;var s=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Ll=(r,e)=>{for(var t in e)ke(r,t,{get:e[t],enumerable:!0})},qn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Nl(e))!Rl.call(r,o)&&o!==t&&ke(r,o,{get:()=>e[o],enumerable:!(n=Fl(e,o))||n.enumerable});return r};var Y=(r,e,t)=>(t=r!=null?kl(jl(r)):{},qn(e||!r||!r.__esModule?ke(t,"default",{value:r,enumerable:!0}):t,r)),Ml=r=>qn(ke({},"__esModule",{value:!0}),r);var Fe=s(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ul;function Ul(){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 On=s(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.default=vr;fe.hasAnyProp=Bl;fe.hasEveryProp=Wl;var Dl=Fe(),Pn=Jl(Dl);function Jl(r){return r&&r.__esModule?r:{default:r}}var gr={spreadStrict:!0,ignoreCase:!0};function vr(){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]:gr,n=t.ignoreCase?e.toUpperCase():e;return r.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var i=t.ignoreCase?(0,Pn.default)(o).toUpperCase():(0,Pn.default)(o);return n===i})}function Bl(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.some(function(o){return vr(r,o,t)})}function Wl(){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]:gr,n=typeof e=="string"?e.split(" "):e;return n.every(function(o){return vr(r,o,t)})}});var In=s(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=Gl;function $n(){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"?$n(r.object,r.property)+"."+e.name:r.name+"."+e.name}function Gl(){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 $n(n,i)}return e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:r.name.name}});var br=s((Xv,Cn)=>{"use strict";var _n=Object.prototype.toString;Cn.exports=function(e){var t=_n.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&_n.call(e.callee)==="[object Function]"),n}});var Un=s((Hv,Vn)=>{"use strict";var Mn;Object.keys||(de=Object.prototype.hasOwnProperty,xr=Object.prototype.toString,kn=br(),Sr=Object.prototype.propertyIsEnumerable,Fn=!Sr.call({toString:null},"toString"),Nn=Sr.call(function(){},"prototype"),me=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ne=function(r){var e=r.constructor;return e&&e.prototype===r},jn={$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},Rn=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!jn["$"+r]&&de.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{Ne(window[r])}catch{return!0}}catch{return!0}return!1}(),Ln=function(r){if(typeof window>"u"||!Rn)return Ne(r);try{return Ne(r)}catch{return!1}},Mn=function(e){var t=e!==null&&typeof e=="object",n=xr.call(e)==="[object Function]",o=kn(e),i=t&&xr.call(e)==="[object String]",a=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var u=Nn&&n;if(i&&e.length>0&&!de.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(o&&e.length>0)for(var m=0;m<e.length;++m)a.push(String(m));else for(var y in e)!(u&&y==="prototype")&&de.call(e,y)&&a.push(String(y));if(Fn)for(var d=Ln(e),p=0;p<me.length;++p)!(d&&me[p]==="constructor")&&de.call(e,me[p])&&a.push(me[p]);return a});var de,xr,kn,Sr,Fn,Nn,me,Ne,jn,Rn,Ln;Vn.exports=Mn});var Er=s((Kv,Bn)=>{"use strict";var Xl=Array.prototype.slice,Hl=br(),Dn=Object.keys,je=Dn?function(e){return Dn(e)}:Un(),Jn=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 Hl(n)?Jn(Xl.call(n)):Jn(n)})}else Object.keys=je;return Object.keys||je};Bn.exports=je});var Gn=s((zv,Wn)=>{"use strict";Wn.exports=Error});var Hn=s((Qv,Xn)=>{"use strict";Xn.exports=EvalError});var wr=s((Yv,Kn)=>{"use strict";Kn.exports=RangeError});var Qn=s((Zv,zn)=>{"use strict";zn.exports=ReferenceError});var ye=s((eh,Yn)=>{"use strict";Yn.exports=SyntaxError});var x=s((rh,Zn)=>{"use strict";Zn.exports=TypeError});var ro=s((th,eo)=>{"use strict";eo.exports=URIError});var Re=s((nh,to)=>{"use strict";to.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(t 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 i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var qr=s((oh,oo)=>{"use strict";var no=typeof Symbol<"u"&&Symbol,Kl=Re();oo.exports=function(){return typeof no!="function"||typeof Symbol!="function"||typeof no("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Kl()}});var Ar=s((ih,io)=>{"use strict";var Tr={__proto__:null,foo:{}},zl=Object;io.exports=function(){return{__proto__:Tr}.foo===Tr.foo&&!(Tr instanceof zl)}});var uo=s((ah,so)=>{"use strict";var Ql="Function.prototype.bind called on incompatible ",Yl=Object.prototype.toString,Zl=Math.max,ep="[object Function]",ao=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},rp=function(e,t){for(var n=[],o=t||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},tp=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};so.exports=function(e){var t=this;if(typeof t!="function"||Yl.apply(t)!==ep)throw new TypeError(Ql+t);for(var n=rp(arguments,1),o,i=function(){if(this instanceof o){var y=t.apply(this,ao(n,arguments));return Object(y)===y?y:this}return t.apply(e,ao(n,arguments))},a=Zl(0,t.length-n.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(o=Function("binder","return function ("+tp(u,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var m=function(){};m.prototype=t.prototype,o.prototype=new m,m.prototype=null}return o}});var Le=s((sh,lo)=>{"use strict";var np=uo();lo.exports=Function.prototype.bind||np});var X=s((uh,po)=>{"use strict";var op=Function.prototype.call,ip=Object.prototype.hasOwnProperty,ap=Le();po.exports=ap.call(op,ip)});var P=s((lh,go)=>{"use strict";var g,sp=Gn(),up=Hn(),lp=wr(),pp=Qn(),te=ye(),re=x(),cp=ro(),yo=Function,Pr=function(r){try{return yo('"use strict"; return ('+r+").constructor;")()}catch{}},H=Object.getOwnPropertyDescriptor;if(H)try{H({},"")}catch{H=null}var Or=function(){throw new re},fp=H?function(){try{return arguments.callee,Or}catch{try{return H(arguments,"callee").get}catch{return Or}}}():Or,Z=qr()(),dp=Ar()(),T=Object.getPrototypeOf||(dp?function(r){return r.__proto__}:null),ee={},mp=typeof Uint8Array>"u"||!T?g:T(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&T?T([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":sp,"%eval%":eval,"%EvalError%":up,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":yo,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&T?T(T([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!T?g:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":lp,"%ReferenceError%":pp,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!T?g:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&T?T(""[Symbol.iterator]()):g,"%Symbol%":Z?Symbol:g,"%SyntaxError%":te,"%ThrowTypeError%":fp,"%TypedArray%":mp,"%TypeError%":re,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":cp,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};if(T)try{null.error}catch(r){co=T(T(r)),K["%Error.prototype%"]=co}var co,yp=function r(e){var t;if(e==="%AsyncFunction%")t=Pr("async function () {}");else if(e==="%GeneratorFunction%")t=Pr("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Pr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&T&&(t=T(o.prototype))}return K[e]=t,t},fo={__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"]},ge=Le(),Me=X(),gp=ge.call(Function.call,Array.prototype.concat),vp=ge.call(Function.apply,Array.prototype.splice),mo=ge.call(Function.call,String.prototype.replace),Ve=ge.call(Function.call,String.prototype.slice),hp=ge.call(Function.call,RegExp.prototype.exec),bp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xp=/\\(\\)?/g,Sp=function(e){var t=Ve(e,0,1),n=Ve(e,-1);if(t==="%"&&n!=="%")throw new te("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new te("invalid intrinsic syntax, expected opening `%`");var o=[];return mo(e,bp,function(i,a,u,l){o[o.length]=u?mo(l,xp,"$1"):a||i}),o},Ep=function(e,t){var n=e,o;if(Me(fo,n)&&(o=fo[n],n="%"+o[0]+"%"),Me(K,n)){var i=K[n];if(i===ee&&(i=yp(n)),typeof i>"u"&&!t)throw new re("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new te("intrinsic "+e+" does not exist!")};go.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new re("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new re('"allowMissing" argument must be a boolean');if(hp(/^%?[^%]*%?$/,e)===null)throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Sp(e),o=n.length>0?n[0]:"",i=Ep("%"+o+"%",t),a=i.name,u=i.value,l=!1,m=i.alias;m&&(o=m[0],vp(n,gp([0,1],m)));for(var y=1,d=!0;y<n.length;y+=1){var p=n[y],h=Ve(p,0,1),c=Ve(p,-1);if((h==='"'||h==="'"||h==="`"||c==='"'||c==="'"||c==="`")&&h!==c)throw new te("property names with quotes must have matching quotes");if((p==="constructor"||!d)&&(l=!0),o+="."+p,a="%"+o+"%",Me(K,a))u=K[a];else if(u!=null){if(!(p in u)){if(!t)throw new re("base intrinsic for "+e+" exists, but the property is not available.");return}if(H&&y+1>=n.length){var f=H(u,p);d=!!f,d&&"get"in f&&!("originalValue"in f.get)?u=f.get:u=u[p]}else d=Me(u,p),u=u[p];d&&!l&&(K[a]=u)}}return u}});var ve=s((ph,vo)=>{"use strict";var wp=P(),Ue=wp("%Object.defineProperty%",!0)||!1;if(Ue)try{Ue({},"a",{value:1})}catch{Ue=!1}vo.exports=Ue});var Je=s((ch,ho)=>{"use strict";var qp=P(),De=qp("%Object.getOwnPropertyDescriptor%",!0);if(De)try{De([],"length")}catch{De=null}ho.exports=De});var $r=s((fh,So)=>{"use strict";var bo=ve(),Tp=ye(),ne=x(),xo=Je();So.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new ne("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ne("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ne("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ne("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ne("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ne("`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,u=arguments.length>6?arguments[6]:!1,l=!!xo&&xo(e,t);if(bo)bo(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(u||!o&&!i&&!a)e[t]=n;else throw new Tp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Be=s((dh,wo)=>{"use strict";var Ir=ve(),Eo=function(){return!!Ir};Eo.hasArrayLengthDefineBug=function(){if(!Ir)return null;try{return Ir([],"length",{value:1}).length!==1}catch{return!0}};wo.exports=Eo});var j=s((mh,Po)=>{"use strict";var Ap=Er(),Pp=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Op=Object.prototype.toString,$p=Array.prototype.concat,qo=$r(),Ip=function(r){return typeof r=="function"&&Op.call(r)==="[object Function]"},To=Be()(),_p=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Ip(n)||!n())return}To?qo(r,e,t,!0):qo(r,e,t)},Ao=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ap(e);Pp&&(n=$p.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)_p(r,n[o],e[n[o]],t[n[o]])};Ao.supportsDescriptors=!!To;Po.exports=Ao});var Co=s((yh,_o)=>{"use strict";var Cp=P(),Oo=$r(),kp=Be()(),$o=Je(),Io=x(),Fp=Cp("%Math.floor%");_o.exports=function(e,t){if(typeof e!="function")throw new Io("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Fp(t)!==t)throw new Io("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&$o){var a=$o(e,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!n)&&(kp?Oo(e,"length",t,!0,!0):Oo(e,"length",t)),e}});var oe=s((gh,We)=>{"use strict";var _r=Le(),Ge=P(),Np=Co(),jp=x(),No=Ge("%Function.prototype.apply%"),jo=Ge("%Function.prototype.call%"),Ro=Ge("%Reflect.apply%",!0)||_r.call(jo,No),ko=ve(),Rp=Ge("%Math.max%");We.exports=function(e){if(typeof e!="function")throw new jp("a function is required");var t=Ro(_r,jo,arguments);return Np(t,1+Rp(0,e.length-(arguments.length-1)),!0)};var Fo=function(){return Ro(_r,No,arguments)};ko?ko(We.exports,"apply",{value:Fo}):We.exports.apply=Fo});var he=s((vh,Lo)=>{"use strict";Lo.exports=Number.isNaN||function(e){return e!==e}});var Cr=s((hh,Mo)=>{"use strict";var Lp=he();Mo.exports=function(r){return(typeof r=="number"||typeof r=="bigint")&&!Lp(r)&&r!==1/0&&r!==-1/0}});var kr=s((bh,Uo)=>{"use strict";var Vo=P(),Mp=Vo("%Math.abs%"),Vp=Vo("%Math.floor%"),Up=he(),Dp=Cr();Uo.exports=function(e){if(typeof e!="number"||Up(e)||!Dp(e))return!1;var t=Mp(e);return Vp(t)===t}});var Go=s((xh,Wo)=>{"use strict";var Bo=P(),Do=Bo("%Array.prototype%"),Jp=wr(),Bp=ye(),Wp=x(),Gp=kr(),Xp=Math.pow(2,32)-1,Hp=Ar()(),Jo=Bo("%Object.setPrototypeOf%",!0)||(Hp?function(r,e){return r.__proto__=e,r}:null);Wo.exports=function(e){if(!Gp(e)||e<0)throw new Wp("Assertion failed: `length` must be an integer Number >= 0");if(e>Xp)throw new Jp("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:Do,n=[];if(t!==Do){if(!Jo)throw new Bp("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");Jo(n,t)}return e!==0&&(n.length=e),n}});var Ho=s((Sh,Xo)=>{Xo.exports=require("util").inspect});var mi=s((Eh,di)=>{var Jr=typeof Map=="function"&&Map.prototype,Fr=Object.getOwnPropertyDescriptor&&Jr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,He=Jr&&Fr&&typeof Fr.get=="function"?Fr.get:null,Ko=Jr&&Map.prototype.forEach,Br=typeof Set=="function"&&Set.prototype,Nr=Object.getOwnPropertyDescriptor&&Br?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ke=Br&&Nr&&typeof Nr.get=="function"?Nr.get:null,zo=Br&&Set.prototype.forEach,Kp=typeof WeakMap=="function"&&WeakMap.prototype,xe=Kp?WeakMap.prototype.has:null,zp=typeof WeakSet=="function"&&WeakSet.prototype,Se=zp?WeakSet.prototype.has:null,Qp=typeof WeakRef=="function"&&WeakRef.prototype,Qo=Qp?WeakRef.prototype.deref:null,Yp=Boolean.prototype.valueOf,Zp=Object.prototype.toString,ec=Function.prototype.toString,rc=String.prototype.match,Wr=String.prototype.slice,V=String.prototype.replace,tc=String.prototype.toUpperCase,Yo=String.prototype.toLowerCase,si=RegExp.prototype.test,Zo=Array.prototype.concat,_=Array.prototype.join,nc=Array.prototype.slice,ei=Math.floor,Lr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jr=Object.getOwnPropertySymbols,Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",O=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,ui=Object.prototype.propertyIsEnumerable,ri=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ti(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||si.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ei(-r):ei(r);if(n!==r){var o=String(n),i=Wr.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 Vr=Ho(),ni=Vr.custom,oi=pi(ni)?ni:null;di.exports=function r(e,t,n,o){var i=t||{};if(M(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(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=M(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(M(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(M(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=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 fi(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return u?ti(e,l):l}if(typeof e=="bigint"){var m=String(e)+"n";return u?ti(e,m):m}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return Ur(e)?"[Array]":"[Object]";var d=Sc(i,n);if(typeof o>"u")o=[];else if(ci(o,e)>=0)return"[Circular]";function p(Q,Ce,Cl){if(Ce&&(o=nc.call(o),o.push(Ce)),Cl){var wn={depth:i.depth};return M(i,"quoteStyle")&&(wn.quoteStyle=i.quoteStyle),r(Q,wn,n+1,o)}return r(Q,i,n+1,o)}if(typeof e=="function"&&!ii(e)){var h=fc(e),c=Xe(e,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(c.length>0?" { "+_.call(c,", ")+" }":"")}if(pi(e)){var f=ie?V.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Mr.call(e);return typeof e=="object"&&!ie?be(f):f}if(hc(e)){for(var v="<"+Yo.call(String(e.nodeName)),E=e.attributes||[],b=0;b<E.length;b++)v+=" "+E[b].name+"="+li(oc(E[b].value),"double",i);return v+=">",e.childNodes&&e.childNodes.length&&(v+="..."),v+="</"+Yo.call(String(e.nodeName))+">",v}if(Ur(e)){if(e.length===0)return"[]";var w=Xe(e,p);return d&&!xc(w)?"["+Dr(w,d)+"]":"[ "+_.call(w,", ")+" ]"}if(ac(e)){var $=Xe(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!ui.call(e,"cause")?"{ ["+String(e)+"] "+_.call(Zo.call("[cause]: "+p(e.cause),$),", ")+" }":$.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+_.call($,", ")+" }"}if(typeof e=="object"&&a){if(oi&&typeof e[oi]=="function"&&Vr)return Vr(e,{depth:y-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(dc(e)){var L=[];return Ko&&Ko.call(e,function(Q,Ce){L.push(p(Ce,e,!0)+" => "+p(Q,e))}),ai("Map",He.call(e),L,d)}if(gc(e)){var _e=[];return zo&&zo.call(e,function(Q){_e.push(p(Q,e))}),ai("Set",Ke.call(e),_e,d)}if(mc(e))return Rr("WeakMap");if(vc(e))return Rr("WeakSet");if(yc(e))return Rr("WeakRef");if(uc(e))return be(p(Number(e)));if(pc(e))return be(p(Lr.call(e)));if(lc(e))return be(Yp.call(e));if(sc(e))return be(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!ic(e)&&!ii(e)){var N=Xe(e,p),ce=ri?ri(e)===Object.prototype:e instanceof Object||e.constructor===Object,dr=e instanceof Object?"":"null prototype",En=!ce&&O&&Object(e)===e&&O in e?Wr.call(U(e),8,-1):dr?"Object":"",_l=ce||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",mr=_l+(En||dr?"["+_.call(Zo.call([],En||[],dr||[]),": ")+"] ":"");return N.length===0?mr+"{}":d?mr+"{"+Dr(N,d)+"}":mr+"{ "+_.call(N,", ")+" }"}return String(e)};function li(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function oc(r){return V.call(String(r),/"/g,""")}function Ur(r){return U(r)==="[object Array]"&&(!O||!(typeof r=="object"&&O in r))}function ic(r){return U(r)==="[object Date]"&&(!O||!(typeof r=="object"&&O in r))}function ii(r){return U(r)==="[object RegExp]"&&(!O||!(typeof r=="object"&&O in r))}function ac(r){return U(r)==="[object Error]"&&(!O||!(typeof r=="object"&&O in r))}function sc(r){return U(r)==="[object String]"&&(!O||!(typeof r=="object"&&O in r))}function uc(r){return U(r)==="[object Number]"&&(!O||!(typeof r=="object"&&O in r))}function lc(r){return U(r)==="[object Boolean]"&&(!O||!(typeof r=="object"&&O in r))}function pi(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Mr)return!1;try{return Mr.call(r),!0}catch{}return!1}function pc(r){if(!r||typeof r!="object"||!Lr)return!1;try{return Lr.call(r),!0}catch{}return!1}var cc=Object.prototype.hasOwnProperty||function(r){return r in this};function M(r,e){return cc.call(r,e)}function U(r){return Zp.call(r)}function fc(r){if(r.name)return r.name;var e=rc.call(ec.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function ci(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 dc(r){if(!He||!r||typeof r!="object")return!1;try{He.call(r);try{Ke.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function mc(r){if(!xe||!r||typeof r!="object")return!1;try{xe.call(r,xe);try{Se.call(r,Se)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function yc(r){if(!Qo||!r||typeof r!="object")return!1;try{return Qo.call(r),!0}catch{}return!1}function gc(r){if(!Ke||!r||typeof r!="object")return!1;try{Ke.call(r);try{He.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function vc(r){if(!Se||!r||typeof r!="object")return!1;try{Se.call(r,Se);try{xe.call(r,xe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function hc(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function fi(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return fi(Wr.call(r,0,e.maxStringLength),e)+n}var o=V.call(V.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,bc);return li(o,"single",e)}function bc(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":"")+tc.call(e.toString(16))}function be(r){return"Object("+r+")"}function Rr(r){return r+" { ? }"}function ai(r,e,t,n){var o=n?Dr(t,n):_.call(t,", ");return r+" ("+e+") {"+o+"}"}function xc(r){for(var e=0;e<r.length;e++)if(ci(r[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Sc(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=_.call(Array(r.indent+1)," ");else return null;return{base:t,prev:_.call(Array(e+1),t)}}function Dr(r,e){if(r.length===0)return"";var t=`
|
|
3
3
|
`+e.prev+e.base;return t+_.call(r,","+t)+`
|
|
4
|
-
`+e.prev}function Xe(r,e){var t=Ur(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=M(r,o)?e(r[o],r):""}var i=typeof jr=="function"?jr(r):[],a;if(ie){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var l in r)M(r,l)&&(t&&String(Number(l))===l&&l<r.length||ie&&a["$"+l]instanceof Symbol||(ui.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof jr=="function")for(var m=0;m<i.length;m++)li.call(r,i[m])&&n.push("["+e(i[m])+"]: "+e(r[i[m]],r));return n}});var D=s((vh,gi)=>{"use strict";gi.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var hi=s((hh,vi)=>{"use strict";vi.exports=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var I=s((bh,bi)=>{"use strict";var hc=hi();bi.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":hc(e)}});var Ee=s((xh,Si)=>{"use strict";var xi=x(),bc=yi(),xc=D(),Sc=I();Si.exports=function(e,t){if(Sc(e)!=="Object")throw new xi("Assertion failed: Type(O) is not Object");if(!xc(t))throw new xi("Assertion failed: IsPropertyKey(P) is not true, got "+bc(t));return e[t]}});var C=s((Sh,qi)=>{"use strict";var Ei=P(),wi=oe(),Ec=wi(Ei("String.prototype.indexOf"));qi.exports=function(e,t){var n=Ei(e,!!t);return typeof n=="function"&&Ec(e,".prototype.")>-1?wi(n):n}});var Gr=s((Eh,Ai)=>{"use strict";var wc=P(),Ti=wc("%Array%"),qc=!Ti.isArray&&C()("Object.prototype.toString");Ai.exports=Ti.isArray||function(e){return qc(e)==="[object Array]"}});var ze=s((wh,Pi)=>{"use strict";Pi.exports=Gr()});var $i=s((qh,Oi)=>{"use strict";Oi.exports=P()});var L=s((Th,Ii)=>{"use strict";var Tc=x(),we=X(),Ac={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Ii.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(we(e,t)&&!Ac[t])return!1;var n=we(e,"[[Value]]")||we(e,"[[Writable]]"),o=we(e,"[[Get]]")||we(e,"[[Set]]");if(n&&o)throw new Tc("Property Descriptors may not be both accessor and data descriptors");return!0}});var Xr=s((Ah,ki)=>{"use strict";var Pc=Be(),_i=ve(),Ci=Pc.hasArrayLengthDefineBug(),Oc=Ci&&Gr(),$c=C(),Ic=$c("Object.prototype.propertyIsEnumerable");ki.exports=function(e,t,n,o,i,a){if(!_i){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Ic(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return Ci&&i==="length"&&"[[Value]]"in a&&Oc(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(_i(o,i,n(a)),!0)}});var Ni=s((Ph,Fi)=>{"use strict";Fi.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 Hr=s((Oh,ji)=>{"use strict";var _c=x(),Cc=L(),kc=Ni();ji.exports=function(e){if(typeof e<"u"&&!Cc(e))throw new _c("Assertion failed: `Desc` must be a Property Descriptor");return kc(e)}});var Qe=s(($h,Ri)=>{"use strict";var Fc=x(),Li=X(),Nc=L();Ri.exports=function(e){if(typeof e>"u")return!1;if(!Nc(e))throw new Fc("Assertion failed: `Desc` must be a Property Descriptor");return!(!Li(e,"[[Value]]")&&!Li(e,"[[Writable]]"))}});var Ye=s((Ih,Vi)=>{"use strict";var Mi=he();Vi.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Mi(e)&&Mi(t)}});var Di=s((_h,Ui)=>{"use strict";Ui.exports=function(e){return!!e}});var Zr=s((Ch,Wi)=>{"use strict";var Bi=Function.prototype.toString,ae=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zr,Ze;if(typeof ae=="function"&&typeof Object.defineProperty=="function")try{zr=Object.defineProperty({},"length",{get:function(){throw Ze}}),Ze={},ae(function(){throw 42},null,zr)}catch(r){r!==Ze&&(ae=null)}else ae=null;var jc=/^\s*class\b/,Qr=function(e){try{var t=Bi.call(e);return jc.test(t)}catch{return!1}},Kr=function(e){try{return Qr(e)?!1:(Bi.call(e),!0)}catch{return!1}},er=Object.prototype.toString,Lc="[object Object]",Rc="[object Function]",Mc="[object GeneratorFunction]",Vc="[object HTMLAllCollection]",Uc="[object HTML document.all class]",Dc="[object HTMLCollection]",Jc=typeof Symbol=="function"&&!!Symbol.toStringTag,Bc=!(0 in[,]),Yr=function(){return!1};typeof document=="object"&&(Ji=document.all,er.call(Ji)===er.call(document.all)&&(Yr=function(e){if((Bc||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=er.call(e);return(t===Vc||t===Uc||t===Dc||t===Lc)&&e("")==null}catch{}return!1}));var Ji;Wi.exports=ae?function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ae(e,null,zr)}catch(t){if(t!==Ze)return!1}return!Qr(e)&&Kr(e)}:function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Jc)return Kr(e);if(Qr(e))return!1;var t=er.call(e);return t!==Rc&&t!==Mc&&!/^\[object HTML/.test(t)?!1:Kr(e)}});var Xi=s((kh,Gi)=>{"use strict";Gi.exports=Zr()});var rt=s((Fh,Ki)=>{"use strict";var k=X(),rr=x(),Wc=I(),et=Di(),Hi=Xi();Ki.exports=function(e){if(Wc(e)!=="Object")throw new rr("ToPropertyDescriptor requires an object");var t={};if(k(e,"enumerable")&&(t["[[Enumerable]]"]=et(e.enumerable)),k(e,"configurable")&&(t["[[Configurable]]"]=et(e.configurable)),k(e,"value")&&(t["[[Value]]"]=e.value),k(e,"writable")&&(t["[[Writable]]"]=et(e.writable)),k(e,"get")){var n=e.get;if(typeof n<"u"&&!Hi(n))throw new rr("getter must be a function");t["[[Get]]"]=n}if(k(e,"set")){var o=e.set;if(typeof o<"u"&&!Hi(o))throw new rr("setter must be a function");t["[[Set]]"]=o}if((k(t,"[[Get]]")||k(t,"[[Set]]"))&&(k(t,"[[Value]]")||k(t,"[[Writable]]")))throw new rr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var Yi=s((Nh,Qi)=>{"use strict";var tt=x(),zi=L(),Gc=Xr(),Xc=Hr(),Hc=Qe(),Kc=D(),zc=Ye(),Qc=rt(),Yc=I();Qi.exports=function(e,t,n){if(Yc(e)!=="Object")throw new tt("Assertion failed: Type(O) is not Object");if(!Kc(t))throw new tt("Assertion failed: IsPropertyKey(P) is not true");var o=zi(n)?n:Qc(n);if(!zi(o))throw new tt("Assertion failed: Desc is not a valid Property Descriptor");return Gc(Hc,zc,Xc,e,t,o)}});var ea=s((jh,it)=>{"use strict";var Zc=$i(),Zi=Zc("%Reflect.construct%",!0),tr=Yi();try{tr({},"",{"[[Get]]":function(){}})}catch{tr=null}tr&&Zi?(nt={},ot={},tr(ot,"length",{"[[Get]]":function(){throw nt},"[[Enumerable]]":!0}),it.exports=function(e){try{Zi(e,ot)}catch(t){return t===nt}}):it.exports=function(e){return typeof e=="function"&&!!e.prototype};var nt,ot});var aa=s((Lh,ia)=>{"use strict";var ef=P(),ra=ef("%Symbol.species%",!0),ta=x(),na=Xo(),oa=Ee(),rf=ze(),tf=ea(),nf=I(),of=kr();ia.exports=function(e,t){if(!of(t)||t<0)throw new ta("Assertion failed: length must be an integer >= 0");var n=rf(e);if(!n)return na(t);var o=oa(e,"constructor");if(ra&&nf(o)==="Object"&&(o=oa(o,ra),o===null&&(o=void 0)),typeof o>"u")return na(t);if(!tf(o))throw new ta("C must be a constructor");return new o(t)}});var at=s((Rh,sa)=>{"use strict";sa.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var la=s((Mh,ua)=>{"use strict";var af=P(),sf=C(),uf=x(),lf=ze(),pf=af("%Reflect.apply%",!0)||sf("Function.prototype.apply");ua.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!lf(n))throw new uf("Assertion failed: optional `argumentsList`, if provided, must be a List");return pf(e,t,n)}});var nr=s((Vh,ca)=>{"use strict";var cf=x(),pa=X(),ff=L();ca.exports=function(e){if(typeof e>"u")return!1;if(!ff(e))throw new cf("Assertion failed: `Desc` must be a Property Descriptor");return!(!pa(e,"[[Get]]")&&!pa(e,"[[Set]]"))}});var st=s((Uh,fa)=>{"use strict";fa.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var ga=s((Dh,ya)=>{"use strict";var ma=P(),df=ma("%Object.preventExtensions%",!0),mf=ma("%Object.isExtensible%",!0),da=st();ya.exports=df?function(e){return!da(e)&&mf(e)}:function(e){return!da(e)}});var ha=s((Jh,va)=>{"use strict";var yf=L();va.exports=function(e,t){return yf(t)&&typeof t=="object"&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var xa=s((Bh,ba)=>{"use strict";var gf=x(),vf=nr(),hf=Qe(),bf=L();ba.exports=function(e){if(typeof e>"u")return!1;if(!bf(e))throw new gf("Assertion failed: `Desc` must be a Property Descriptor");return!vf(e)&&!hf(e)}});var wa=s((Wh,Ea)=>{"use strict";var se=x(),qe=Xr(),xf=ha(),Sa=L(),Te=Hr(),z=nr(),J=Qe(),Sf=xa(),Ef=D(),F=Ye(),wf=I();Ea.exports=function(e,t,n,o,i){var a=wf(e);if(a!=="Undefined"&&a!=="Object")throw new se("Assertion failed: O must be undefined or an Object");if(!Ef(t))throw new se("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new se("Assertion failed: extensible must be a Boolean");if(!Sa(o))throw new se("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!Sa(i))throw new se("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?a==="Undefined"?!0:z(o)?qe(J,F,Te,e,t,o):qe(J,F,Te,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!xf({IsAccessorDescriptor:z,IsDataDescriptor:J},i))throw new se("`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]]"])||!Sf(o)&&!F(z(o),z(i)))return!1;if(z(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(a!=="Undefined"){var u,l;return J(i)&&z(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,F,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):z(i)&&J(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,F,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):qe(J,F,Te,e,t,o)}return!0}});var Pa=s((Gh,Aa)=>{"use strict";var qa=Je(),Ta=ye(),ut=x(),qf=L(),Tf=nr(),Af=ga(),Pf=D(),Of=rt(),$f=Ye(),If=I(),_f=wa();Aa.exports=function(e,t,n){if(If(e)!=="Object")throw new ut("Assertion failed: O must be an Object");if(!Pf(t))throw new ut("Assertion failed: P must be a Property Key");if(!qf(n))throw new ut("Assertion failed: Desc must be a Property Descriptor");if(!qa){if(Tf(n))throw new Ta("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]]"],$f(e[t],n["[[Value]]"]);throw new Ta("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=qa(e,t),u=a&&Of(a),l=Af(e);return _f(e,t,l,n,u)}});var Ia=s((Xh,$a)=>{"use strict";var Oa=x(),Cf=D(),kf=Pa(),Ff=I();$a.exports=function(e,t,n){if(Ff(e)!=="Object")throw new Oa("Assertion failed: Type(O) is not Object");if(!Cf(t))throw new Oa("Assertion failed: IsPropertyKey(P) is not true");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return kf(e,t,o)}});var Ca=s((Hh,_a)=>{"use strict";var lt=x(),Nf=Ia(),jf=D(),Lf=I();_a.exports=function(e,t,n){if(Lf(e)!=="Object")throw new lt("Assertion failed: Type(O) is not Object");if(!jf(t))throw new lt("Assertion failed: IsPropertyKey(P) is not true");var o=Nf(e,t,n);if(!o)throw new lt("unable to create data property")}});var Na=s((Kh,Fa)=>{"use strict";var ka=x(),Rf=D(),Mf=I();Fa.exports=function(e,t){if(Mf(e)!=="Object")throw new ka("Assertion failed: `O` must be an Object");if(!Rf(t))throw new ka("Assertion failed: `P` must be a Property Key");return t in e}});var La=s((zh,ja)=>{"use strict";ja.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var pt=s((Qh,Ra)=>{"use strict";var Vf=Le();Ra.exports=function(){return Vf()&&!!Symbol.toStringTag}});var Va=s((Yh,Ma)=>{"use strict";var Uf=Date.prototype.getDay,Df=function(e){try{return Uf.call(e),!0}catch{return!1}},Jf=Object.prototype.toString,Bf="[object Date]",Wf=pt()();Ma.exports=function(e){return typeof e!="object"||e===null?!1:Wf?Df(e):Jf.call(e)===Bf}});var Ba=s((Zh,ct)=>{"use strict";var Gf=Object.prototype.toString,Xf=qr()();Xf?(Ua=Symbol.prototype.toString,Da=/^Symbol\(.*\)$/,Ja=function(e){return typeof e.valueOf()!="symbol"?!1:Da.test(Ua.call(e))},ct.exports=function(e){if(typeof e=="symbol")return!0;if(Gf.call(e)!=="[object Symbol]")return!1;try{return Ja(e)}catch{return!1}}):ct.exports=function(e){return!1};var Ua,Da,Ja});var Ha=s((eb,Xa)=>{"use strict";var Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",ft=La(),Ga=Zr(),Kf=Va(),Wa=Ba(),zf=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]],Ga(o)&&(i=o.call(e),ft(i)))return i;throw new TypeError("No default value")},Qf=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!Ga(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};Xa.exports=function(e){if(ft(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(Hf&&(Symbol.toPrimitive?n=Qf(e,Symbol.toPrimitive):Wa(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(ft(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(Kf(e)||Wa(e))&&(t="string"),zf(e,t==="default"?"number":t)}});var Qa=s((rb,za)=>{"use strict";var Ka=Ha();za.exports=function(e){return arguments.length>1?Ka(e,arguments[1]):Ka(e)}});var ts=s((tb,rs)=>{"use strict";var dt=C(),Ya=pt()(),Za,es,mt,yt;Ya&&(Za=dt("Object.prototype.hasOwnProperty"),es=dt("RegExp.prototype.exec"),mt={},or=function(){throw mt},yt={toString:or,valueOf:or},typeof Symbol.toPrimitive=="symbol"&&(yt[Symbol.toPrimitive]=or));var or,Yf=dt("Object.prototype.toString"),Zf=Object.getOwnPropertyDescriptor,ed="[object RegExp]";rs.exports=Ya?function(e){if(!e||typeof e!="object")return!1;var t=Zf(e,"lastIndex"),n=t&&Za(t,"value");if(!n)return!1;try{es(e,yt)}catch(o){return o===mt}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Yf(e)===ed}});var os=s((nb,ns)=>{"use strict";var rd=C(),td=ts(),nd=rd("RegExp.prototype.exec"),od=x();ns.exports=function(e){if(!td(e))throw new od("`regex` must be a RegExp");return function(n){return nd(e,n)!==null}}});var as=s((ob,is)=>{"use strict";var id=x();is.exports=function(e,t){if(e==null)throw new id(t||"Cannot call method on "+e);return e}});var Ae=s((ib,ss)=>{"use strict";ss.exports=as()});var gt=s((ab,us)=>{"use strict";var ad=P(),sd=ad("%String%"),ud=x();us.exports=function(e){if(typeof e=="symbol")throw new ud("Cannot convert a Symbol value to a string");return sd(e)}});var vt=s((sb,cs)=>{"use strict";var ld=Ae(),pd=gt(),cd=C(),ls=cd("String.prototype.replace"),ps=/^\s$/.test("\u180E"),fd=ps?/^[\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]+/,dd=ps?/[\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]+$/;cs.exports=function(){var e=pd(ld(this));return ls(ls(e,fd,""),dd,"")}});var ht=s((ub,ds)=>{"use strict";var md=vt(),fs="\u200B",ue="\u180E";ds.exports=function(){return String.prototype.trim&&fs.trim()===fs&&ue.trim()===ue&&("_"+ue).trim()==="_"+ue&&(ue+"_").trim()===ue+"_"?String.prototype.trim:md}});var ys=s((lb,ms)=>{"use strict";var yd=j(),gd=ht();ms.exports=function(){var e=gd();return yd(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var bs=s((pb,hs)=>{"use strict";var vd=oe(),hd=j(),bd=Ae(),xd=vt(),gs=ht(),Sd=ys(),Ed=vd(gs()),vs=function(e){return bd(e),Ed(e)};hd(vs,{getPolyfill:gs,implementation:xd,shim:Sd});hs.exports=vs});var ws=s((cb,Es)=>{"use strict";var xt=P(),bt=xt("%Number%"),wd=xt("%RegExp%"),qd=x(),xs=xt("%parseInt%"),Td=C(),ir=os(),Ss=Td("String.prototype.slice"),Ad=ir(/^0b[01]+$/i),Pd=ir(/^0o[0-7]+$/i),Od=ir(/^[-+]0x[0-9a-f]+$/i),$d=["\x85","\u200B","\uFFFE"].join(""),Id=new wd("["+$d+"]","g"),_d=ir(Id),Cd=bs();Es.exports=function r(e){if(typeof e!="string")throw new qd("Assertion failed: `argument` is not a String");if(Ad(e))return bt(xs(Ss(e,2),2));if(Pd(e))return bt(xs(Ss(e,2),8));if(_d(e)||Od(e))return NaN;var t=Cd(e);return t!==e?r(t):bt(e)}});var Ps=s((fb,As)=>{"use strict";var kd=P(),qs=x(),Ts=kd("%Number%"),Fd=st(),Nd=Qa(),jd=ws();As.exports=function(e){var t=Fd(e)?e:Nd(e,Ts);if(typeof t=="symbol")throw new qs("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new qs("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?jd(t):Ts(t)}});var $s=s((db,Os)=>{"use strict";var Ld=Math.floor;Os.exports=function(e){return typeof e=="bigint"?e:Ld(e)}});var Cs=s((mb,_s)=>{"use strict";var Is=$s(),Rd=x();_s.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Rd("argument must be a Number or a BigInt");var t=e<0?-Is(-e):Is(e);return t===0?0:t}});var St=s((yb,ks)=>{"use strict";var Md=Ps(),Vd=Cs(),Ud=he(),Dd=Cr();ks.exports=function(e){var t=Md(e);return Ud(t)||t===0?0:Dd(t)?Vd(t):t}});var Et=s((gb,Ns)=>{"use strict";var Fs=at(),Jd=St();Ns.exports=function(e){var t=Jd(e);return t<=0?0:t>Fs?Fs:t}});var Ls=s((vb,js)=>{"use strict";var Bd=x(),Wd=Ee(),Gd=Et(),Xd=I();js.exports=function(e){if(Xd(e)!=="Object")throw new Bd("Assertion failed: `obj` must be an Object");return Gd(Wd(e,"length"))}});var Us=s((hb,Vs)=>{"use strict";var Rs=x(),Hd=at(),Kd=la(),zd=Ca(),Qd=Ee(),Yd=Na(),Zd=ze(),em=Ls(),Ms=gt();Vs.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,l=0;l<n;){var m=Ms(l),y=Yd(t,m);if(y===!0){var d=Qd(t,m);if(typeof a<"u"){if(arguments.length<=6)throw new Rs("Assertion failed: thisArg is required when mapperFunction is provided");d=Kd(a,arguments[6],[d,l,t])}var p=!1;if(i>0&&(p=Zd(d)),p){var h=em(d);u=r(e,d,h,u,i-1)}else{if(u>=Hd)throw new Rs("index too large");zd(e,Ms(u),d),u+=1}}l+=1}return u}});var Js=s((bb,Ds)=>{"use strict";var rm=P(),tm=rm("%Object%"),nm=Ae();Ds.exports=function(e){return nm(e),tm(e)}});var wt=s((xb,Bs)=>{"use strict";var om=aa(),im=Us(),am=Ee(),sm=St(),um=Et(),lm=Js();Bs.exports=function(){var e=lm(this),t=um(am(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=sm(arguments[0]));var o=om(e,0);return im(o,e,t,0,n),o}});var qt=s((Sb,Ws)=>{"use strict";var pm=wt();Ws.exports=function(){return Array.prototype.flat||pm}});var Ks=s((Eb,Hs)=>{"use strict";var cm=X(),Xs=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",fm=Xs&&Array.prototype[Symbol.unscopables],Gs=TypeError;Hs.exports=function(e){if(typeof e!="string"||!e)throw new Gs("method must be a non-empty string");if(!cm(Array.prototype,e))throw new Gs("method must be on Array.prototype");Xs&&(fm[e]=!0)}});var Qs=s((wb,zs)=>{"use strict";var dm=j(),mm=Ks(),ym=qt();zs.exports=function(){var e=ym();return dm(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),mm("flat"),e}});var ru=s((qb,eu)=>{"use strict";var gm=j(),vm=oe(),hm=wt(),Ys=qt(),bm=Ys(),xm=Qs(),Zs=vm(bm);gm(Zs,{getPolyfill:Ys,implementation:hm,shim:xm});eu.exports=Zs});var Tt=s((Tb,nu)=>{"use strict";var Sm=Ae(),tu=C(),Em=tu("Object.prototype.propertyIsEnumerable"),wm=tu("Array.prototype.push");nu.exports=function(e){var t=Sm(e),n=[];for(var o in t)Em(t,o)&&wm(n,t[o]);return n}});var At=s((Ab,ou)=>{"use strict";var qm=Tt();ou.exports=function(){return typeof Object.values=="function"?Object.values:qm}});var au=s((Pb,iu)=>{"use strict";var Tm=At(),Am=j();iu.exports=function(){var e=Tm();return Am(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var pu=s((Ob,lu)=>{"use strict";var Pm=j(),Om=oe(),$m=Tt(),su=At(),Im=au(),uu=Om(su(),Object);Pm(uu,{getPolyfill:su,implementation:$m,shim:Im});lu.exports=uu});var du=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.eventHandlersByType=void 0;var _m=ru(),Cm=cu(_m),km=pu(),Fm=cu(km);function cu(r){return r&&r.__esModule?r:{default:r}}var fu={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"]};Pe.default=(0,Cm.default)((0,Fm.default)(fu));Pe.eventHandlersByType=fu});var yu=s(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});var Nm=function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(o=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(m){i=!0,a=m}finally{try{!o&&u.return&&u.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")}}(),le=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};Ot.default=Vm;var jm=Fe(),Lm=Rm(jm);function Rm(r){return r&&r.__esModule?r:{default:r}}function mu(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 Mm={ignoreCase:!0};function Vm(){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]:Mm;function n(u){return t.ignoreCase?u.toUpperCase():u}var o=n(e);function i(u){return u.type==="Property"&&u.key.type==="Identifier"&&o===n(u.key.name)}var a=r.find(function(u){return u.type==="JSXSpreadAttribute"?u.argument.type==="ObjectExpression"&&o!==n("key")&&u.argument.properties.some(i):o===n((0,Lm.default)(u))});return a&&a.type==="JSXSpreadAttribute"?Um(a.argument.properties.find(i)):a}function Um(r){var e=r.key,t=r.value;return le({type:"JSXAttribute",name:le({type:"JSXIdentifier",name:e.name},Pt(e)),value:t.type==="Literal"?Oe(t):le({type:"JSXExpressionContainer",expression:Dm(t)},Pt(t))},Pt(r))}function Oe(r){var e=r.range||[r.start,r.end],t=Nm(e,2),n=t[0],o=t[1];return le({},r,{end:void 0,range:[n,o],start:void 0})}function Dm(r){var e=r.expressions,t=r.quasis,n=mu(r,["expressions","quasis"]);return le({},Oe(n),e?{expressions:e.map(Oe)}:{},t?{quasis:t.map(Oe)}:{})}function Pt(r){var e=r.loc,t=mu(r,["loc"]),n=Oe(t),o=n.range;return{loc:Jm(e),range:o}}function Jm(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return le({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var It=s($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.default=Bm;function Bm(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var Ct=s(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.default=Wm;function Wm(r){var e=ar().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var Ft=s(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.default=Gm;function Gm(r){return r.raw}});var jt=s(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.default=Xm;function Xm(r){var e=ar().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var vu=s(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.default=Hm;var gu={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Hm(r){var e=r.name;return Object.hasOwnProperty.call(gu,e)?gu[e]:e}});var Mt=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=zm;function Km(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function zm(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(Km).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,l=o.name;return i==="TemplateElement"?u:i==="Identifier"?l==="undefined"?l:"{"+l+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var hu=s(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=ey;var Qm=Mt(),Ym=Zm(Qm);function Zm(r){return r&&r.__esModule?r:{default:r}}function ey(r){return(0,Ym.default)(r.quasi)}});var bu=s(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=ry;function ry(r){return function(){return r}}});var xu=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=ty;function ty(r){var e=A().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 Su=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=ny;function ny(r){var e=A().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Eu=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=oy;function oy(r){var e=A().default;return e(r.expression||r)}});var wu=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=iy;function iy(r){var e=A().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var qu=s(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=ay;function ay(r){var e=A().default;return e(r.object)+"?."+e(r.property)}});var Ht=s(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.default=sy;function sy(r){var e=A().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var Tu=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=uy;function uy(r){var e=A().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;case"typeof":case"void":default:return}}});var Qt=s(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.default=ly;function ly(){return"this"}});var Au=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=py;function py(r){var e=A().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var Pu=s(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=cy;function cy(r){var e=A().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 en=s((Kb,Cu)=>{"use strict";var fy=Er(),Iu=Le()(),_u=C(),Ou=Object,dy=_u("Array.prototype.push"),$u=_u("Object.prototype.propertyIsEnumerable"),my=Iu?Object.getOwnPropertySymbols:null;Cu.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=Ou(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=Ou(arguments[o]),a=fy(i),u=Iu&&(Object.getOwnPropertySymbols||my);if(u)for(var l=u(i),m=0;m<l.length;++m){var y=l[m];$u(i,y)&&dy(a,y)}for(var d=0;d<a.length;++d){var p=a[d];if($u(i,p)){var h=i[p];n[p]=h}}}return n}});var tn=s((zb,ku)=>{"use strict";var rn=en(),yy=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},gy=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};ku.exports=function(){return!Object.assign||yy()||gy()?rn:Object.assign}});var Nu=s((Qb,Fu)=>{"use strict";var vy=j(),hy=tn();Fu.exports=function(){var e=hy();return vy(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var Mu=s((Yb,Ru)=>{"use strict";var by=j(),xy=oe(),Sy=en(),ju=tn(),Ey=Nu(),wy=xy.apply(ju()),Lu=function(e,t){return wy(Object,arguments)};by(Lu,{getPolyfill:ju,implementation:Sy,shim:Ey});Ru.exports=Lu});var Du=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=Uu;var qy=Mu(),Vu=Ty(qy);function Ty(r){return r&&r.__esModule?r:{default:r}}function Ay(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Uu(r){var e=A().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Vu.default)({},t,Uu(n.argument))}else return(0,Vu.default)({},t,Ay({},e(n.key),e(n.value)));return t},{})}});var Ju=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=Py;function Py(){return new Object}});var Bu=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=Oy;function Oy(r){var e=A().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 Wu=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=$y;function $y(r){var e=A().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var Gu=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Iy;function Iy(r){var e=A().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 Xu=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=_y;function _y(){}});var Hu=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=Cy;function Cy(r){var e=A().default;return e(r.expression)}});var Ku=s(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=ky;function ky(r){var e=A().default;return r.expressions.map(function(t){return e(t)})}});var Qu=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=B;var Fy=Qt().default,Ny=Ht().default;function zu(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function B(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 B(r.expression);if(r.type==="CallExpression")return Ny(r);if(r.type==="ThisExpression")return Fy();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return B(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+B(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return zu(B(r.object),B(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=zu(B(r.object),B(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 u=a;a=u.expression}return console.error(e),""}});var Yu=s(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.default=jy;function jy(r){var e=A().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var A=s(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Ly=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};sr.default=Mg;sr.extractLiteral=Vg;var Ry=It(),My=S(Ry),Vy=Ct(),Uy=S(Vy),Dy=jt(),Jy=S(Dy),By=Ft(),Wy=S(By),Gy=vu(),Xy=S(Gy),Hy=hu(),Ky=S(Hy),zy=Mt(),Qy=S(zy),Yy=bu(),Zu=S(Yy),Zy=xu(),eg=S(Zy),rg=Su(),tg=S(rg),ng=Eu(),og=S(ng),ig=wu(),ag=S(ig),sg=qu(),ug=S(sg),lg=Ht(),pg=S(lg),cg=Tu(),fg=S(cg),dg=Qt(),mg=S(dg),yg=Au(),gg=S(yg),vg=Pu(),hg=S(vg),bg=Du(),xg=S(bg),Sg=Ju(),Eg=S(Sg),wg=Bu(),qg=S(wg),Tg=Wu(),Ag=S(Tg),Pg=Gu(),Og=S(Pg),$g=Xu(),Ig=S($g),_g=Hu(),Cg=S(_g),kg=Ku(),Fg=S(kg),Ng=Qu(),jg=S(Ng),Lg=Yu(),Rg=S(Lg);function S(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:Xy.default,Literal:My.default,JSXElement:Uy.default,JSXFragment:Jy.default,JSXText:Wy.default,TaggedTemplateExpression:Ky.default,TemplateLiteral:Qy.default,ArrowFunctionExpression:Zu.default,FunctionExpression:Zu.default,LogicalExpression:eg.default,MemberExpression:tg.default,ChainExpression:og.default,OptionalCallExpression:ag.default,OptionalMemberExpression:ug.default,CallExpression:pg.default,UnaryExpression:fg.default,ThisExpression:mg.default,ConditionalExpression:gg.default,BinaryExpression:hg.default,ObjectExpression:xg.default,NewExpression:Eg.default,UpdateExpression:qg.default,ArrayExpression:Ag.default,BindExpression:Og.default,SpreadElement:Ig.default,TypeCastExpression:Cg.default,SequenceExpression:Fg.default,TSNonNullExpression:jg.default,AssignmentExpression:Rg.default},q=function(){return null},rl=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 Mg(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(rl(n)),null):W[n](e)}var el=Ly({},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 Vg(r){var e=r.expression||r,t=e.type;return el[t]===void 0?(console.error(rl(t)),null):el[t](e)}});var ar=s(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Ug=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};ur.default=Yg;ur.getLiteralValue=Zg;var Dg=It(),Jg=$e(Dg),Bg=Ct(),Wg=$e(Bg),Gg=Ft(),Xg=$e(Gg),Hg=jt(),Kg=$e(Hg),tl=A(),zg=$e(tl);function $e(r){return r&&r.__esModule?r:{default:r}}var mn={Literal:Jg.default,JSXElement:Wg.default,JSXExpressionContainer:zg.default,JSXText:Xg.default,JSXFragment:Kg.default},Qg=Ug({},mn,{JSXElement:function(){return null},JSXExpressionContainer:tl.extractLiteral});function Yg(r){return mn[r.type]||console.log(r.type),mn[r.type](r)}function Zg(r){return Qg[r.type](r)}});var il=s(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=tv;lr.getLiteralPropValue=nv;var nl=ar(),ev=rv(nl);function rv(r){return r&&r.__esModule?r:{default:r}}var ol=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function tv(r){return ol(r,ev.default)}function nv(r){return ol(r,nl.getLiteralValue)}});var pr=s((fx,ul)=>{"use strict";var yn=$n(),ov=pe(yn),iv=_n(),av=pe(iv),al=du(),sv=pe(al),uv=yu(),lv=pe(uv),sl=il(),pv=pe(sl),cv=Fe(),fv=pe(cv);function pe(r){return r&&r.__esModule?r:{default:r}}ul.exports={hasProp:ov.default,hasAnyProp:yn.hasAnyProp,hasEveryProp:yn.hasEveryProp,elementType:av.default,eventHandlers:sv.default,eventHandlersByType:al.eventHandlersByType,getProp:lv.default,getPropValue:pv.default,getLiteralPropValue:sl.getLiteralPropValue,propName:fv.default}});var bl=s((tS,hl)=>{"use strict";hl.exports=r=>{let e=r.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var Fv={};Fl(Fv,{configs:()=>kv,rules:()=>Cv});module.exports=Nl(Fv);var An=require("@typescript-eslint/utils"),jl=An.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),Pn=jl({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 ql=require("@typescript-eslint/utils");var vn=Y(pr());function gn(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var cr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},dv={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"},ll={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:dv,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:cr.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:cr.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:cr.warnOnDuplicates}},additionalProperties:!1}]},create(r){if(r.sourceCode.getAllComments().some(c=>c.value.includes("@jsxImportSource")))return{};let t=Object.assign({},cr,r.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,i=t.warnOnDuplicates;function a(c){c.type==="JSXElement"&&!vn.default.hasProp(c.openingElement.attributes,"key")?r.report({node:c,messageId:"missingIterKey"}):n&&c.type==="JSXFragment"&&r.report({node:c,messageId:"missingIterKeyUsePrag"})}function u(c,f=[]){return c.type==="IfStatement"?(c.consequent&&u(c.consequent,f),c.alternate&&u(c.alternate,f)):Array.isArray(c.body)&&c.body.forEach(v=>{v.type==="IfStatement"&&u(v,f),v.type==="ReturnStatement"&&f.push(v)}),f}function l(c){let f=!1;return c.some(v=>v.type==="JSXSpreadAttribute"?(f=!0,!1):v.type!=="JSXAttribute"?!1:f&&vn.default.propName(v)==="key")}function m(c){gn(c)&&c.body.type==="BlockStatement"&&u(c.body).filter(f=>f&&f.argument).forEach(f=>{a(f.argument)})}function y(c){let f=c&&c.type==="ArrowFunctionExpression",v=E=>E&&(E.type==="JSXElement"||E.type==="JSXFragment");f&&v(c.body)&&a(c.body),c.body.type==="ConditionalExpression"?(v(c.body.consequent)&&a(c.body.consequent),v(c.body.alternate)&&a(c.body.alternate)):c.body.type==="LogicalExpression"&&v(c.body.right)&&a(c.body.right)}let d=`:matches(
|
|
4
|
+
`+e.prev}function Xe(r,e){var t=Ur(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=M(r,o)?e(r[o],r):""}var i=typeof jr=="function"?jr(r):[],a;if(ie){a={};for(var u=0;u<i.length;u++)a["$"+i[u]]=i[u]}for(var l in r)M(r,l)&&(t&&String(Number(l))===l&&l<r.length||ie&&a["$"+l]instanceof Symbol||(si.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof jr=="function")for(var m=0;m<i.length;m++)ui.call(r,i[m])&&n.push("["+e(i[m])+"]: "+e(r[i[m]],r));return n}});var D=s((wh,yi)=>{"use strict";yi.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var vi=s((qh,gi)=>{"use strict";gi.exports=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var I=s((Th,hi)=>{"use strict";var Ec=vi();hi.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":Ec(e)}});var Ee=s((Ah,xi)=>{"use strict";var bi=x(),wc=mi(),qc=D(),Tc=I();xi.exports=function(e,t){if(Tc(e)!=="Object")throw new bi("Assertion failed: Type(O) is not Object");if(!qc(t))throw new bi("Assertion failed: IsPropertyKey(P) is not true, got "+wc(t));return e[t]}});var C=s((Ph,wi)=>{"use strict";var Si=P(),Ei=oe(),Ac=Ei(Si("String.prototype.indexOf"));wi.exports=function(e,t){var n=Si(e,!!t);return typeof n=="function"&&Ac(e,".prototype.")>-1?Ei(n):n}});var Gr=s((Oh,Ti)=>{"use strict";var Pc=P(),qi=Pc("%Array%"),Oc=!qi.isArray&&C()("Object.prototype.toString");Ti.exports=qi.isArray||function(e){return Oc(e)==="[object Array]"}});var ze=s(($h,Ai)=>{"use strict";Ai.exports=Gr()});var Oi=s((Ih,Pi)=>{"use strict";Pi.exports=P()});var R=s((_h,$i)=>{"use strict";var $c=x(),we=X(),Ic={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};$i.exports=function(e){if(!e||typeof e!="object")return!1;for(var t in e)if(we(e,t)&&!Ic[t])return!1;var n=we(e,"[[Value]]")||we(e,"[[Writable]]"),o=we(e,"[[Get]]")||we(e,"[[Set]]");if(n&&o)throw new $c("Property Descriptors may not be both accessor and data descriptors");return!0}});var Xr=s((Ch,Ci)=>{"use strict";var _c=Be(),Ii=ve(),_i=_c.hasArrayLengthDefineBug(),Cc=_i&&Gr(),kc=C(),Fc=kc("Object.prototype.propertyIsEnumerable");Ci.exports=function(e,t,n,o,i,a){if(!Ii){if(!e(a)||!a["[[Configurable]]"]||!a["[[Writable]]"]||i in o&&Fc(o,i)!==!!a["[[Enumerable]]"])return!1;var u=a["[[Value]]"];return o[i]=u,t(o[i],u)}return _i&&i==="length"&&"[[Value]]"in a&&Cc(o)&&o.length!==a["[[Value]]"]?(o.length=a["[[Value]]"],o.length===a["[[Value]]"]):(Ii(o,i,n(a)),!0)}});var Fi=s((kh,ki)=>{"use strict";ki.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 Hr=s((Fh,Ni)=>{"use strict";var Nc=x(),jc=R(),Rc=Fi();Ni.exports=function(e){if(typeof e<"u"&&!jc(e))throw new Nc("Assertion failed: `Desc` must be a Property Descriptor");return Rc(e)}});var Qe=s((Nh,Ri)=>{"use strict";var Lc=x(),ji=X(),Mc=R();Ri.exports=function(e){if(typeof e>"u")return!1;if(!Mc(e))throw new Lc("Assertion failed: `Desc` must be a Property Descriptor");return!(!ji(e,"[[Value]]")&&!ji(e,"[[Writable]]"))}});var Ye=s((jh,Mi)=>{"use strict";var Li=he();Mi.exports=function(e,t){return e===t?e===0?1/e===1/t:!0:Li(e)&&Li(t)}});var Ui=s((Rh,Vi)=>{"use strict";Vi.exports=function(e){return!!e}});var Zr=s((Lh,Bi)=>{"use strict";var Ji=Function.prototype.toString,ae=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,zr,Ze;if(typeof ae=="function"&&typeof Object.defineProperty=="function")try{zr=Object.defineProperty({},"length",{get:function(){throw Ze}}),Ze={},ae(function(){throw 42},null,zr)}catch(r){r!==Ze&&(ae=null)}else ae=null;var Vc=/^\s*class\b/,Qr=function(e){try{var t=Ji.call(e);return Vc.test(t)}catch{return!1}},Kr=function(e){try{return Qr(e)?!1:(Ji.call(e),!0)}catch{return!1}},er=Object.prototype.toString,Uc="[object Object]",Dc="[object Function]",Jc="[object GeneratorFunction]",Bc="[object HTMLAllCollection]",Wc="[object HTML document.all class]",Gc="[object HTMLCollection]",Xc=typeof Symbol=="function"&&!!Symbol.toStringTag,Hc=!(0 in[,]),Yr=function(){return!1};typeof document=="object"&&(Di=document.all,er.call(Di)===er.call(document.all)&&(Yr=function(e){if((Hc||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=er.call(e);return(t===Bc||t===Wc||t===Gc||t===Uc)&&e("")==null}catch{}return!1}));var Di;Bi.exports=ae?function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{ae(e,null,zr)}catch(t){if(t!==Ze)return!1}return!Qr(e)&&Kr(e)}:function(e){if(Yr(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Xc)return Kr(e);if(Qr(e))return!1;var t=er.call(e);return t!==Dc&&t!==Jc&&!/^\[object HTML/.test(t)?!1:Kr(e)}});var Gi=s((Mh,Wi)=>{"use strict";Wi.exports=Zr()});var rt=s((Vh,Hi)=>{"use strict";var k=X(),rr=x(),Kc=I(),et=Ui(),Xi=Gi();Hi.exports=function(e){if(Kc(e)!=="Object")throw new rr("ToPropertyDescriptor requires an object");var t={};if(k(e,"enumerable")&&(t["[[Enumerable]]"]=et(e.enumerable)),k(e,"configurable")&&(t["[[Configurable]]"]=et(e.configurable)),k(e,"value")&&(t["[[Value]]"]=e.value),k(e,"writable")&&(t["[[Writable]]"]=et(e.writable)),k(e,"get")){var n=e.get;if(typeof n<"u"&&!Xi(n))throw new rr("getter must be a function");t["[[Get]]"]=n}if(k(e,"set")){var o=e.set;if(typeof o<"u"&&!Xi(o))throw new rr("setter must be a function");t["[[Set]]"]=o}if((k(t,"[[Get]]")||k(t,"[[Set]]"))&&(k(t,"[[Value]]")||k(t,"[[Writable]]")))throw new rr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var Qi=s((Uh,zi)=>{"use strict";var tt=x(),Ki=R(),zc=Xr(),Qc=Hr(),Yc=Qe(),Zc=D(),ef=Ye(),rf=rt(),tf=I();zi.exports=function(e,t,n){if(tf(e)!=="Object")throw new tt("Assertion failed: Type(O) is not Object");if(!Zc(t))throw new tt("Assertion failed: IsPropertyKey(P) is not true");var o=Ki(n)?n:rf(n);if(!Ki(o))throw new tt("Assertion failed: Desc is not a valid Property Descriptor");return zc(Yc,ef,Qc,e,t,o)}});var Zi=s((Dh,it)=>{"use strict";var nf=Oi(),Yi=nf("%Reflect.construct%",!0),tr=Qi();try{tr({},"",{"[[Get]]":function(){}})}catch{tr=null}tr&&Yi?(nt={},ot={},tr(ot,"length",{"[[Get]]":function(){throw nt},"[[Enumerable]]":!0}),it.exports=function(e){try{Yi(e,ot)}catch(t){return t===nt}}):it.exports=function(e){return typeof e=="function"&&!!e.prototype};var nt,ot});var ia=s((Jh,oa)=>{"use strict";var of=P(),ea=of("%Symbol.species%",!0),ra=x(),ta=Go(),na=Ee(),af=ze(),sf=Zi(),uf=I(),lf=kr();oa.exports=function(e,t){if(!lf(t)||t<0)throw new ra("Assertion failed: length must be an integer >= 0");var n=af(e);if(!n)return ta(t);var o=na(e,"constructor");if(ea&&uf(o)==="Object"&&(o=na(o,ea),o===null&&(o=void 0)),typeof o>"u")return ta(t);if(!sf(o))throw new ra("C must be a constructor");return new o(t)}});var at=s((Bh,aa)=>{"use strict";aa.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var ua=s((Wh,sa)=>{"use strict";var pf=P(),cf=C(),ff=x(),df=ze(),mf=pf("%Reflect.apply%",!0)||cf("Function.prototype.apply");sa.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!df(n))throw new ff("Assertion failed: optional `argumentsList`, if provided, must be a List");return mf(e,t,n)}});var nr=s((Gh,pa)=>{"use strict";var yf=x(),la=X(),gf=R();pa.exports=function(e){if(typeof e>"u")return!1;if(!gf(e))throw new yf("Assertion failed: `Desc` must be a Property Descriptor");return!(!la(e,"[[Get]]")&&!la(e,"[[Set]]"))}});var st=s((Xh,ca)=>{"use strict";ca.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var ya=s((Hh,ma)=>{"use strict";var da=P(),vf=da("%Object.preventExtensions%",!0),hf=da("%Object.isExtensible%",!0),fa=st();ma.exports=vf?function(e){return!fa(e)&&hf(e)}:function(e){return!fa(e)}});var va=s((Kh,ga)=>{"use strict";var bf=R();ga.exports=function(e,t){return bf(t)&&typeof t=="object"&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}});var ba=s((zh,ha)=>{"use strict";var xf=x(),Sf=nr(),Ef=Qe(),wf=R();ha.exports=function(e){if(typeof e>"u")return!1;if(!wf(e))throw new xf("Assertion failed: `Desc` must be a Property Descriptor");return!Sf(e)&&!Ef(e)}});var Ea=s((Qh,Sa)=>{"use strict";var se=x(),qe=Xr(),qf=va(),xa=R(),Te=Hr(),z=nr(),J=Qe(),Tf=ba(),Af=D(),F=Ye(),Pf=I();Sa.exports=function(e,t,n,o,i){var a=Pf(e);if(a!=="Undefined"&&a!=="Object")throw new se("Assertion failed: O must be undefined or an Object");if(!Af(t))throw new se("Assertion failed: P must be a Property Key");if(typeof n!="boolean")throw new se("Assertion failed: extensible must be a Boolean");if(!xa(o))throw new se("Assertion failed: Desc must be a Property Descriptor");if(typeof i<"u"&&!xa(i))throw new se("Assertion failed: current must be a Property Descriptor, or undefined");if(typeof i>"u")return n?a==="Undefined"?!0:z(o)?qe(J,F,Te,e,t,o):qe(J,F,Te,e,t,{"[[Configurable]]":!!o["[[Configurable]]"],"[[Enumerable]]":!!o["[[Enumerable]]"],"[[Value]]":o["[[Value]]"],"[[Writable]]":!!o["[[Writable]]"]}):!1;if(!qf({IsAccessorDescriptor:z,IsDataDescriptor:J},i))throw new se("`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]]"])||!Tf(o)&&!F(z(o),z(i)))return!1;if(z(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(a!=="Undefined"){var u,l;return J(i)&&z(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,F,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Get]]":("[[Get]]"in o?o:i)["[[Get]]"],"[[Set]]":("[[Set]]"in o?o:i)["[[Set]]"]})):z(i)&&J(o)?(u=("[[Configurable]]"in o?o:i)["[[Configurable]]"],l=("[[Enumerable]]"in o?o:i)["[[Enumerable]]"],qe(J,F,Te,e,t,{"[[Configurable]]":!!u,"[[Enumerable]]":!!l,"[[Value]]":("[[Value]]"in o?o:i)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in o?o:i)["[[Writable]]"]})):qe(J,F,Te,e,t,o)}return!0}});var Aa=s((Yh,Ta)=>{"use strict";var wa=Je(),qa=ye(),ut=x(),Of=R(),$f=nr(),If=ya(),_f=D(),Cf=rt(),kf=Ye(),Ff=I(),Nf=Ea();Ta.exports=function(e,t,n){if(Ff(e)!=="Object")throw new ut("Assertion failed: O must be an Object");if(!_f(t))throw new ut("Assertion failed: P must be a Property Key");if(!Of(n))throw new ut("Assertion failed: Desc must be a Property Descriptor");if(!wa){if($f(n))throw new qa("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]]"],kf(e[t],n["[[Value]]"]);throw new qa("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var a=wa(e,t),u=a&&Cf(a),l=If(e);return Nf(e,t,l,n,u)}});var $a=s((Zh,Oa)=>{"use strict";var Pa=x(),jf=D(),Rf=Aa(),Lf=I();Oa.exports=function(e,t,n){if(Lf(e)!=="Object")throw new Pa("Assertion failed: Type(O) is not Object");if(!jf(t))throw new Pa("Assertion failed: IsPropertyKey(P) is not true");var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0};return Rf(e,t,o)}});var _a=s((eb,Ia)=>{"use strict";var lt=x(),Mf=$a(),Vf=D(),Uf=I();Ia.exports=function(e,t,n){if(Uf(e)!=="Object")throw new lt("Assertion failed: Type(O) is not Object");if(!Vf(t))throw new lt("Assertion failed: IsPropertyKey(P) is not true");var o=Mf(e,t,n);if(!o)throw new lt("unable to create data property")}});var Fa=s((rb,ka)=>{"use strict";var Ca=x(),Df=D(),Jf=I();ka.exports=function(e,t){if(Jf(e)!=="Object")throw new Ca("Assertion failed: `O` must be an Object");if(!Df(t))throw new Ca("Assertion failed: `P` must be a Property Key");return t in e}});var ja=s((tb,Na)=>{"use strict";Na.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var pt=s((nb,Ra)=>{"use strict";var Bf=Re();Ra.exports=function(){return Bf()&&!!Symbol.toStringTag}});var Ma=s((ob,La)=>{"use strict";var Wf=Date.prototype.getDay,Gf=function(e){try{return Wf.call(e),!0}catch{return!1}},Xf=Object.prototype.toString,Hf="[object Date]",Kf=pt()();La.exports=function(e){return typeof e!="object"||e===null?!1:Kf?Gf(e):Xf.call(e)===Hf}});var Ja=s((ib,ct)=>{"use strict";var zf=Object.prototype.toString,Qf=qr()();Qf?(Va=Symbol.prototype.toString,Ua=/^Symbol\(.*\)$/,Da=function(e){return typeof e.valueOf()!="symbol"?!1:Ua.test(Va.call(e))},ct.exports=function(e){if(typeof e=="symbol")return!0;if(zf.call(e)!=="[object Symbol]")return!1;try{return Da(e)}catch{return!1}}):ct.exports=function(e){return!1};var Va,Ua,Da});var Xa=s((ab,Ga)=>{"use strict";var Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",ft=ja(),Wa=Zr(),Zf=Ma(),Ba=Ja(),ed=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]],Wa(o)&&(i=o.call(e),ft(i)))return i;throw new TypeError("No default value")},rd=function(e,t){var n=e[t];if(n!==null&&typeof n<"u"){if(!Wa(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};Ga.exports=function(e){if(ft(e))return e;var t="default";arguments.length>1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var n;if(Yf&&(Symbol.toPrimitive?n=rd(e,Symbol.toPrimitive):Ba(e)&&(n=Symbol.prototype.valueOf)),typeof n<"u"){var o=n.call(e,t);if(ft(o))return o;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(Zf(e)||Ba(e))&&(t="string"),ed(e,t==="default"?"number":t)}});var za=s((sb,Ka)=>{"use strict";var Ha=Xa();Ka.exports=function(e){return arguments.length>1?Ha(e,arguments[1]):Ha(e)}});var rs=s((ub,es)=>{"use strict";var dt=C(),Qa=pt()(),Ya,Za,mt,yt;Qa&&(Ya=dt("Object.prototype.hasOwnProperty"),Za=dt("RegExp.prototype.exec"),mt={},or=function(){throw mt},yt={toString:or,valueOf:or},typeof Symbol.toPrimitive=="symbol"&&(yt[Symbol.toPrimitive]=or));var or,td=dt("Object.prototype.toString"),nd=Object.getOwnPropertyDescriptor,od="[object RegExp]";es.exports=Qa?function(e){if(!e||typeof e!="object")return!1;var t=nd(e,"lastIndex"),n=t&&Ya(t,"value");if(!n)return!1;try{Za(e,yt)}catch(o){return o===mt}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:td(e)===od}});var ns=s((lb,ts)=>{"use strict";var id=C(),ad=rs(),sd=id("RegExp.prototype.exec"),ud=x();ts.exports=function(e){if(!ad(e))throw new ud("`regex` must be a RegExp");return function(n){return sd(e,n)!==null}}});var Ae=s((pb,os)=>{"use strict";var ld=x();os.exports=function(e){if(e==null)throw new ld(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}});var as=s((cb,is)=>{"use strict";var pd=P(),cd=pd("%String%"),fd=x();is.exports=function(e){if(typeof e=="symbol")throw new fd("Cannot convert a Symbol value to a string");return cd(e)}});var gt=s((fb,ls)=>{"use strict";var dd=Ae(),md=as(),yd=C(),ss=yd("String.prototype.replace"),us=/^\s$/.test("\u180E"),gd=us?/^[\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]+/,vd=us?/[\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]+$/;ls.exports=function(){var e=md(dd(this));return ss(ss(e,gd,""),vd,"")}});var vt=s((db,cs)=>{"use strict";var hd=gt(),ps="\u200B",ue="\u180E";cs.exports=function(){return String.prototype.trim&&ps.trim()===ps&&ue.trim()===ue&&("_"+ue).trim()==="_"+ue&&(ue+"_").trim()===ue+"_"?String.prototype.trim:hd}});var ds=s((mb,fs)=>{"use strict";var bd=j(),xd=vt();fs.exports=function(){var e=xd();return bd(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var vs=s((yb,gs)=>{"use strict";var Sd=oe(),Ed=j(),wd=Ae(),qd=gt(),ms=vt(),Td=ds(),Ad=Sd(ms()),ys=function(e){return wd(e),Ad(e)};Ed(ys,{getPolyfill:ms,implementation:qd,shim:Td});gs.exports=ys});var Ss=s((gb,xs)=>{"use strict";var bt=P(),ht=bt("%Number%"),Pd=bt("%RegExp%"),Od=x(),hs=bt("%parseInt%"),$d=C(),ir=ns(),bs=$d("String.prototype.slice"),Id=ir(/^0b[01]+$/i),_d=ir(/^0o[0-7]+$/i),Cd=ir(/^[-+]0x[0-9a-f]+$/i),kd=["\x85","\u200B","\uFFFE"].join(""),Fd=new Pd("["+kd+"]","g"),Nd=ir(Fd),jd=vs();xs.exports=function r(e){if(typeof e!="string")throw new Od("Assertion failed: `argument` is not a String");if(Id(e))return ht(hs(bs(e,2),2));if(_d(e))return ht(hs(bs(e,2),8));if(Nd(e)||Cd(e))return NaN;var t=jd(e);return t!==e?r(t):ht(e)}});var Ts=s((vb,qs)=>{"use strict";var Rd=P(),Es=x(),ws=Rd("%Number%"),Ld=st(),Md=za(),Vd=Ss();qs.exports=function(e){var t=Ld(e)?e:Md(e,ws);if(typeof t=="symbol")throw new Es("Cannot convert a Symbol value to a number");if(typeof t=="bigint")throw new Es("Conversion from 'BigInt' to 'number' is not allowed.");return typeof t=="string"?Vd(t):ws(t)}});var Ps=s((hb,As)=>{"use strict";var Ud=Math.floor;As.exports=function(e){return typeof e=="bigint"?e:Ud(e)}});var Is=s((bb,$s)=>{"use strict";var Os=Ps(),Dd=x();$s.exports=function(e){if(typeof e!="number"&&typeof e!="bigint")throw new Dd("argument must be a Number or a BigInt");var t=e<0?-Os(-e):Os(e);return t===0?0:t}});var xt=s((xb,_s)=>{"use strict";var Jd=Ts(),Bd=Is(),Wd=he(),Gd=Cr();_s.exports=function(e){var t=Jd(e);return Wd(t)||t===0?0:Gd(t)?Bd(t):t}});var St=s((Sb,ks)=>{"use strict";var Cs=at(),Xd=xt();ks.exports=function(e){var t=Xd(e);return t<=0?0:t>Cs?Cs:t}});var Ns=s((Eb,Fs)=>{"use strict";var Hd=x(),Kd=Ee(),zd=St(),Qd=I();Fs.exports=function(e){if(Qd(e)!=="Object")throw new Hd("Assertion failed: `obj` must be an Object");return zd(Kd(e,"length"))}});var Rs=s((wb,js)=>{"use strict";var Yd=P(),Zd=Yd("%String%"),em=x();js.exports=function(e){if(typeof e=="symbol")throw new em("Cannot convert a Symbol value to a string");return Zd(e)}});var Us=s((qb,Vs)=>{"use strict";var Ls=x(),rm=at(),tm=ua(),nm=_a(),om=Ee(),im=Fa(),am=ze(),sm=Ns(),Ms=Rs();Vs.exports=function r(e,t,n,o,i){var a;arguments.length>5&&(a=arguments[5]);for(var u=o,l=0;l<n;){var m=Ms(l),y=im(t,m);if(y===!0){var d=om(t,m);if(typeof a<"u"){if(arguments.length<=6)throw new Ls("Assertion failed: thisArg is required when mapperFunction is provided");d=tm(a,arguments[6],[d,l,t])}var p=!1;if(i>0&&(p=am(d)),p){var h=sm(d);u=r(e,d,h,u,i-1)}else{if(u>=rm)throw new Ls("index too large");nm(e,Ms(u),d),u+=1}}l+=1}return u}});var Js=s((Tb,Ds)=>{"use strict";Ds.exports=Object});var Ws=s((Ab,Bs)=>{"use strict";var um=Js(),lm=Ae();Bs.exports=function(e){return lm(e),um(e)}});var Xs=s((Pb,Gs)=>{"use strict";Gs.exports=Ws()});var Et=s((Ob,Hs)=>{"use strict";var pm=ia(),cm=Us(),fm=Ee(),dm=xt(),mm=St(),ym=Xs();Hs.exports=function(){var e=ym(this),t=mm(fm(e,"length")),n=1;arguments.length>0&&typeof arguments[0]<"u"&&(n=dm(arguments[0]));var o=pm(e,0);return cm(o,e,t,0,n),o}});var wt=s(($b,Ks)=>{"use strict";var gm=Et();Ks.exports=function(){return Array.prototype.flat||gm}});var Zs=s((Ib,Ys)=>{"use strict";var vm=X(),Qs=typeof Symbol=="function"&&typeof Symbol.unscopables=="symbol",hm=Qs&&Array.prototype[Symbol.unscopables],zs=TypeError;Ys.exports=function(e){if(typeof e!="string"||!e)throw new zs("method must be a non-empty string");if(!vm(Array.prototype,e))throw new zs("method must be on Array.prototype");Qs&&(hm[e]=!0)}});var ru=s((_b,eu)=>{"use strict";var bm=j(),xm=Zs(),Sm=wt();eu.exports=function(){var e=Sm();return bm(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),xm("flat"),e}});var iu=s((Cb,ou)=>{"use strict";var Em=j(),wm=oe(),qm=Et(),tu=wt(),Tm=tu(),Am=ru(),nu=wm(Tm);Em(nu,{getPolyfill:tu,implementation:qm,shim:Am});ou.exports=nu});var qt=s((kb,su)=>{"use strict";var Pm=Ae(),au=C(),Om=au("Object.prototype.propertyIsEnumerable"),$m=au("Array.prototype.push");su.exports=function(e){var t=Pm(e),n=[];for(var o in t)Om(t,o)&&$m(n,t[o]);return n}});var Tt=s((Fb,uu)=>{"use strict";var Im=qt();uu.exports=function(){return typeof Object.values=="function"?Object.values:Im}});var pu=s((Nb,lu)=>{"use strict";var _m=Tt(),Cm=j();lu.exports=function(){var e=_m();return Cm(Object,{values:e},{values:function(){return Object.values!==e}}),e}});var mu=s((jb,du)=>{"use strict";var km=j(),Fm=oe(),Nm=qt(),cu=Tt(),jm=pu(),fu=Fm(cu(),Object);km(fu,{getPolyfill:cu,implementation:Nm,shim:jm});du.exports=fu});var vu=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.eventHandlersByType=void 0;var Rm=iu(),Lm=yu(Rm),Mm=mu(),Vm=yu(Mm);function yu(r){return r&&r.__esModule?r:{default:r}}var gu={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"]};Pe.default=(0,Lm.default)((0,Vm.default)(gu));Pe.eventHandlersByType=gu});var bu=s(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});var Um=function(){function r(e,t){var n=[],o=!0,i=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(o=(l=u.next()).done)&&(n.push(l.value),!(t&&n.length===t));o=!0);}catch(m){i=!0,a=m}finally{try{!o&&u.return&&u.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")}}(),le=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};Pt.default=Gm;var Dm=Fe(),Jm=Bm(Dm);function Bm(r){return r&&r.__esModule?r:{default:r}}function hu(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 Wm={ignoreCase:!0};function Gm(){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]:Wm;function n(u){return t.ignoreCase?u.toUpperCase():u}var o=n(e);function i(u){return u.type==="Property"&&u.key.type==="Identifier"&&o===n(u.key.name)}var a=r.find(function(u){return u.type==="JSXSpreadAttribute"?u.argument.type==="ObjectExpression"&&o!==n("key")&&u.argument.properties.some(i):o===n((0,Jm.default)(u))});return a&&a.type==="JSXSpreadAttribute"?Xm(a.argument.properties.find(i)):a}function Xm(r){var e=r.key,t=r.value;return le({type:"JSXAttribute",name:le({type:"JSXIdentifier",name:e.name},At(e)),value:t.type==="Literal"?Oe(t):le({type:"JSXExpressionContainer",expression:Hm(t)},At(t))},At(r))}function Oe(r){var e=r.range||[r.start,r.end],t=Um(e,2),n=t[0],o=t[1];return le({},r,{end:void 0,range:[n,o],start:void 0})}function Hm(r){var e=r.expressions,t=r.quasis,n=hu(r,["expressions","quasis"]);return le({},Oe(n),e?{expressions:e.map(Oe)}:{},t?{quasis:t.map(Oe)}:{})}function At(r){var e=r.loc,t=hu(r,["loc"]),n=Oe(t),o=n.range;return{loc:Km(e),range:o}}function Km(r){var e=r.start,t=r.end,n=r.source,o=r.filename;return le({start:e,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var $t=s(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.default=zm;function zm(r){var e=r.value,t=typeof e=="string"&&e.toLowerCase();return t==="true"?!0:t==="false"?!1:e}});var _t=s(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.default=Qm;function Qm(r){var e=ar().default,t=r.openingElement.name.name;return r.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(r.children).map(function(n){return e(n)}).join("")+"</"+t+">"}});var kt=s(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=Ym;function Ym(r){return r.raw}});var Nt=s(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.default=Zm;function Zm(r){var e=ar().default;return r.children.length===0?"<></>":"<>"+[].concat(r.children).map(function(t){return e(t)}).join("")+"</>"}});var Su=s(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.default=ey;var xu={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function ey(r){var e=r.name;return Object.hasOwnProperty.call(xu,e)?xu[e]:e}});var Lt=s(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=ty;function ry(r,e){return(r.range?r.range[0]:r.start)-(e.range?e.range[0]:e.start)}function ty(r){var e=r.quasis,t=r.expressions,n=e.concat(t);return n.sort(ry).map(function(o){var i=o.type,a=o.value;a=a===void 0?{}:a;var u=a.raw,l=o.name;return i==="TemplateElement"?u:i==="Identifier"?l==="undefined"?l:"{"+l+"}":i.indexOf("Expression")>-1?"{"+i+"}":""}).join("")}});var Eu=s(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.default=ay;var ny=Lt(),oy=iy(ny);function iy(r){return r&&r.__esModule?r:{default:r}}function ay(r){return(0,oy.default)(r.quasi)}});var wu=s(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=sy;function sy(r){return function(){return r}}});var qu=s(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=uy;function uy(r){var e=A().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 Tu=s(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.default=ly;function ly(r){var e=A().default;return""+e(r.object)+(r.optional?"?.":".")+e(r.property)}});var Au=s(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=py;function py(r){var e=A().default;return e(r.expression||r)}});var Pu=s(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.default=cy;function cy(r){var e=A().default;return e(r.callee)+"?.("+r.arguments.map(function(t){return e(t)}).join(", ")+")"}});var Ou=s(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=fy;function fy(r){var e=A().default;return e(r.object)+"?."+e(r.property)}});var Xt=s(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=dy;function dy(r){var e=A().default,t=Array.isArray(r.arguments)?r.arguments.map(function(n){return e(n)}).join(", "):"";return""+e(r.callee)+(r.optional?"?.":"")+"("+t+")"}});var $u=s(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=my;function my(r){var e=A().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;case"typeof":case"void":default:return}}});var zt=s(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=yy;function yy(){return"this"}});var Iu=s(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=gy;function gy(r){var e=A().default,t=r.test,n=r.alternate,o=r.consequent;return e(t)?e(o):e(n)}});var _u=s(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=vy;function vy(r){var e=A().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 Zt=s((nx,ju)=>{"use strict";var hy=Er(),Fu=Re()(),Nu=C(),Cu=Object,by=Nu("Array.prototype.push"),ku=Nu("Object.prototype.propertyIsEnumerable"),xy=Fu?Object.getOwnPropertySymbols:null;ju.exports=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=Cu(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=Cu(arguments[o]),a=hy(i),u=Fu&&(Object.getOwnPropertySymbols||xy);if(u)for(var l=u(i),m=0;m<l.length;++m){var y=l[m];ku(i,y)&&by(a,y)}for(var d=0;d<a.length;++d){var p=a[d];if(ku(i,p)){var h=i[p];n[p]=h}}}return n}});var rn=s((ox,Ru)=>{"use strict";var en=Zt(),Sy=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},Ey=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};Ru.exports=function(){return!Object.assign||Sy()||Ey()?en:Object.assign}});var Mu=s((ix,Lu)=>{"use strict";var wy=j(),qy=rn();Lu.exports=function(){var e=qy();return wy(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}});var Ju=s((ax,Du)=>{"use strict";var Ty=j(),Ay=oe(),Py=Zt(),Vu=rn(),Oy=Mu(),$y=Ay.apply(Vu()),Uu=function(e,t){return $y(Object,arguments)};Ty(Uu,{getPolyfill:Vu,implementation:Py,shim:Oy});Du.exports=Uu});var Gu=s(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.default=Wu;var Iy=Ju(),Bu=_y(Iy);function _y(r){return r&&r.__esModule?r:{default:r}}function Cy(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Wu(r){var e=A().default;return r.properties.reduce(function(t,n){if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Bu.default)({},t,Wu(n.argument))}else return(0,Bu.default)({},t,Cy({},e(n.key),e(n.value)));return t},{})}});var Xu=s(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=ky;function ky(){return new Object}});var Hu=s(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=Fy;function Fy(r){var e=A().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 Ku=s(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=Ny;function Ny(r){var e=A().default;return r.elements.map(function(t){if(t!==null)return e(t)})}});var zu=s(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=jy;function jy(r){var e=A().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 Qu=s(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.default=Ry;function Ry(){}});var Yu=s(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=Ly;function Ly(r){var e=A().default;return e(r.expression)}});var Zu=s(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.default=My;function My(r){var e=A().default;return r.expressions.map(function(t){return e(t)})}});var rl=s(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.default=B;var Vy=zt().default,Uy=Xt().default;function el(r,e,t){return t.computed?t.optional?r+"?.["+e+"]":r+"["+e+"]":t.optional?r+"?."+e:r+"."+e}function B(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 B(r.expression);if(r.type==="CallExpression")return Uy(r);if(r.type==="ThisExpression")return Vy();if(r.type==="TSNonNullExpression"&&(!r.extra||r.extra.parenthesized===!1)){var n=r.expression;return B(n)+"!"}if(r.type==="TSNonNullExpression"&&r.extra&&r.extra.parenthesized===!0){var o=r.expression;return"("+B(o)+"!)"}if(r.type==="MemberExpression"){if(!r.extra||r.extra.parenthesized===!1)return el(B(r.object),B(r.property),r);if(r.extra&&r.extra.parenthesized===!0){var i=el(B(r.object),B(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 u=a;a=u.expression}return console.error(e),""}});var tl=s(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.default=Dy;function Dy(r){var e=A().default;return e(r.left)+" "+r.operator+" "+e(r.right)}});var A=s(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Jy=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};sr.default=Wg;sr.extractLiteral=Gg;var By=$t(),Wy=S(By),Gy=_t(),Xy=S(Gy),Hy=Nt(),Ky=S(Hy),zy=kt(),Qy=S(zy),Yy=Su(),Zy=S(Yy),eg=Eu(),rg=S(eg),tg=Lt(),ng=S(tg),og=wu(),nl=S(og),ig=qu(),ag=S(ig),sg=Tu(),ug=S(sg),lg=Au(),pg=S(lg),cg=Pu(),fg=S(cg),dg=Ou(),mg=S(dg),yg=Xt(),gg=S(yg),vg=$u(),hg=S(vg),bg=zt(),xg=S(bg),Sg=Iu(),Eg=S(Sg),wg=_u(),qg=S(wg),Tg=Gu(),Ag=S(Tg),Pg=Xu(),Og=S(Pg),$g=Hu(),Ig=S($g),_g=Ku(),Cg=S(_g),kg=zu(),Fg=S(kg),Ng=Qu(),jg=S(Ng),Rg=Yu(),Lg=S(Rg),Mg=Zu(),Vg=S(Mg),Ug=rl(),Dg=S(Ug),Jg=tl(),Bg=S(Jg);function S(r){return r&&r.__esModule?r:{default:r}}var W={Identifier:Zy.default,Literal:Wy.default,JSXElement:Xy.default,JSXFragment:Ky.default,JSXText:Qy.default,TaggedTemplateExpression:rg.default,TemplateLiteral:ng.default,ArrowFunctionExpression:nl.default,FunctionExpression:nl.default,LogicalExpression:ag.default,MemberExpression:ug.default,ChainExpression:pg.default,OptionalCallExpression:fg.default,OptionalMemberExpression:mg.default,CallExpression:gg.default,UnaryExpression:hg.default,ThisExpression:xg.default,ConditionalExpression:Eg.default,BinaryExpression:qg.default,ObjectExpression:Ag.default,NewExpression:Og.default,UpdateExpression:Ig.default,ArrayExpression:Cg.default,BindExpression:Fg.default,SpreadElement:jg.default,TypeCastExpression:Lg.default,SequenceExpression:Vg.default,TSNonNullExpression:Dg.default,AssignmentExpression:Bg.default},q=function(){return null},il=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 Wg(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(il(n)),null):W[n](e)}var ol=Jy({},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 Gg(r){var e=r.expression||r,t=e.type;return ol[t]===void 0?(console.error(il(t)),null):ol[t](e)}});var ar=s(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Xg=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};ur.default=ov;ur.getLiteralValue=iv;var Hg=$t(),Kg=$e(Hg),zg=_t(),Qg=$e(zg),Yg=kt(),Zg=$e(Yg),ev=Nt(),rv=$e(ev),al=A(),tv=$e(al);function $e(r){return r&&r.__esModule?r:{default:r}}var dn={Literal:Kg.default,JSXElement:Qg.default,JSXExpressionContainer:tv.default,JSXText:Zg.default,JSXFragment:rv.default},nv=Xg({},dn,{JSXElement:function(){return null},JSXExpressionContainer:al.extractLiteral});function ov(r){return dn[r.type]||console.log(r.type),dn[r.type](r)}function iv(r){return nv[r.type](r)}});var ll=s(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=uv;lr.getLiteralPropValue=lv;var sl=ar(),av=sv(sl);function sv(r){return r&&r.__esModule?r:{default:r}}var ul=function(e,t){if(e&&e.type==="JSXAttribute")return e.value===null?!0:t(e.value)};function uv(r){return ul(r,av.default)}function lv(r){return ul(r,sl.getLiteralValue)}});var pr=s((xx,fl)=>{"use strict";var mn=On(),pv=pe(mn),cv=In(),fv=pe(cv),pl=vu(),dv=pe(pl),mv=bu(),yv=pe(mv),cl=ll(),gv=pe(cl),vv=Fe(),hv=pe(vv);function pe(r){return r&&r.__esModule?r:{default:r}}fl.exports={hasProp:pv.default,hasAnyProp:mn.hasAnyProp,hasEveryProp:mn.hasEveryProp,elementType:fv.default,eventHandlers:dv.default,eventHandlersByType:pl.eventHandlersByType,getProp:yv.default,getPropValue:gv.default,getLiteralPropValue:cl.getLiteralPropValue,propName:hv.default}});var wl=s((pS,El)=>{"use strict";El.exports=r=>{let e=r.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var Vv={};Ll(Vv,{configs:()=>Mv,rules:()=>Lv});module.exports=Ml(Vv);var Tn=require("@typescript-eslint/utils"),Vl=Tn.ESLintUtils.RuleCreator(()=>"https://qwik.dev/docs/advanced/dollar/"),An=Vl({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 Ol=require("@typescript-eslint/utils");var gn=Y(pr());function yn(r){return r.type==="FunctionExpression"||r.type==="ArrowFunctionExpression"}var cr={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},bv={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"},dl={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:bv,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:cr.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:cr.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:cr.warnOnDuplicates}},additionalProperties:!1}]},create(r){if(r.sourceCode.getAllComments().some(c=>c.value.includes("@jsxImportSource")))return{};let t=Object.assign({},cr,r.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,i=t.warnOnDuplicates;function a(c){c.type==="JSXElement"&&!gn.default.hasProp(c.openingElement.attributes,"key")?r.report({node:c,messageId:"missingIterKey"}):n&&c.type==="JSXFragment"&&r.report({node:c,messageId:"missingIterKeyUsePrag"})}function u(c,f=[]){return c.type==="IfStatement"?(c.consequent&&u(c.consequent,f),c.alternate&&u(c.alternate,f)):Array.isArray(c.body)&&c.body.forEach(v=>{v.type==="IfStatement"&&u(v,f),v.type==="ReturnStatement"&&f.push(v)}),f}function l(c){let f=!1;return c.some(v=>v.type==="JSXSpreadAttribute"?(f=!0,!1):v.type!=="JSXAttribute"?!1:f&&gn.default.propName(v)==="key")}function m(c){yn(c)&&c.body.type==="BlockStatement"&&u(c.body).filter(f=>f&&f.argument).forEach(f=>{a(f.argument)})}function y(c){let f=c&&c.type==="ArrowFunctionExpression",v=E=>E&&(E.type==="JSXElement"||E.type==="JSXFragment");f&&v(c.body)&&a(c.body),c.body.type==="ConditionalExpression"?(v(c.body.consequent)&&a(c.body.consequent),v(c.body.alternate)&&a(c.body.alternate)):c.body.type==="LogicalExpression"&&v(c.body.right)&&a(c.body.right)}let d=`:matches(
|
|
5
5
|
CallExpression
|
|
6
6
|
[callee.object.object.name=Fragment]
|
|
7
7
|
[callee.object.property.name=Children]
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
CallExpression
|
|
10
10
|
[callee.object.name=Children]
|
|
11
11
|
[callee.property.name=toArray]
|
|
12
|
-
)`.replace(/\s/g,""),p=!1,h=new WeakSet;return{[d](){p=!0},[`${d}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(c){if(p)return;let f=(c.type==="ArrayExpression"?c.elements:c.parent.children).filter(E=>E&&E.type==="JSXElement");if(f.length===0)return;let v={};f.forEach(E=>{E.openingElement.attributes.filter($=>$.name&&$.name.name==="key").length===0&&c.type==="ArrayExpression"&&r.report({node:E,messageId:"missingArrayKey"})}),i&&Object.values(v).filter(E=>E.length>1).forEach(E=>{E.forEach(b=>{h.has(b)||(h.add(b),r.report({node:b,messageId:"nonUniqueKeys"}))})})},JSXFragment(c){!n||p||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(p)return;let f=c.arguments.length>0&&c.arguments[0];!f||!
|
|
13
|
-
import { component$ } from '@
|
|
12
|
+
)`.replace(/\s/g,""),p=!1,h=new WeakSet;return{[d](){p=!0},[`${d}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(c){if(p)return;let f=(c.type==="ArrayExpression"?c.elements:c.parent.children).filter(E=>E&&E.type==="JSXElement");if(f.length===0)return;let v={};f.forEach(E=>{E.openingElement.attributes.filter($=>$.name&&$.name.name==="key").length===0&&c.type==="ArrayExpression"&&r.report({node:E,messageId:"missingArrayKey"})}),i&&Object.values(v).filter(E=>E.length>1).forEach(E=>{E.forEach(b=>{h.has(b)||(h.add(b),r.report({node:b,messageId:"nonUniqueKeys"}))})})},JSXFragment(c){!n||p||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(p)return;let f=c.arguments.length>0&&c.arguments[0];!f||!yn(f)||(y(f),m(f))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(c){if(p)return;let f=c.arguments.length>1&&c.arguments[1];yn(f)&&(y(f),m(f))}}}},wx=`
|
|
13
|
+
import { component$ } from '@qwik.dev/core';
|
|
14
14
|
|
|
15
15
|
export const Person = component$(() => {
|
|
16
16
|
const person = {
|
|
@@ -26,8 +26,8 @@ export const Person = component$(() => {
|
|
|
26
26
|
)}
|
|
27
27
|
</ul>
|
|
28
28
|
);
|
|
29
|
-
});`.trim(),
|
|
30
|
-
import { component$ } from '@
|
|
29
|
+
});`.trim(),qx=`
|
|
30
|
+
import { component$ } from '@qwik.dev/core';
|
|
31
31
|
|
|
32
32
|
export const Person = component$(() => {
|
|
33
33
|
const person = {
|
|
@@ -43,8 +43,8 @@ export const Person = component$(() => {
|
|
|
43
43
|
)}
|
|
44
44
|
</ul>
|
|
45
45
|
);
|
|
46
|
-
});`.trim(),
|
|
47
|
-
import { component$ } from '@
|
|
46
|
+
});`.trim(),Tx=`
|
|
47
|
+
import { component$ } from '@qwik.dev/core';
|
|
48
48
|
import Card from './Card';
|
|
49
49
|
import Summary from './Summary';
|
|
50
50
|
|
|
@@ -63,8 +63,8 @@ export const Person = component$(() => {
|
|
|
63
63
|
</Fragment>
|
|
64
64
|
)}
|
|
65
65
|
);
|
|
66
|
-
});`.trim(),
|
|
67
|
-
import { component$ } from '@
|
|
66
|
+
});`.trim(),Ax=`
|
|
67
|
+
import { component$ } from '@qwik.dev/core';
|
|
68
68
|
import Card from './Card';
|
|
69
69
|
import Summary from './Summary';
|
|
70
70
|
|
|
@@ -83,8 +83,8 @@ export const Person = component$(() => {
|
|
|
83
83
|
</>
|
|
84
84
|
)}
|
|
85
85
|
);
|
|
86
|
-
});`.trim(),
|
|
87
|
-
import { component$ } from '@
|
|
86
|
+
});`.trim(),Px=`
|
|
87
|
+
import { component$ } from '@qwik.dev/core';
|
|
88
88
|
|
|
89
89
|
export const ColorList = component$(() => {
|
|
90
90
|
const colors = ['red', 'green', 'blue'];
|
|
@@ -96,8 +96,8 @@ export const ColorList = component$(() => {
|
|
|
96
96
|
)}
|
|
97
97
|
</ul>
|
|
98
98
|
);
|
|
99
|
-
});`.trim(),
|
|
100
|
-
import { component$ } from '@
|
|
99
|
+
});`.trim(),Ox=`
|
|
100
|
+
import { component$ } from '@qwik.dev/core';
|
|
101
101
|
|
|
102
102
|
export const ColorList = component$(() => {
|
|
103
103
|
const colors = ['red', 'green', 'blue'];
|
|
@@ -109,8 +109,8 @@ export const ColorList = component$(() => {
|
|
|
109
109
|
)}
|
|
110
110
|
</ul>
|
|
111
111
|
);
|
|
112
|
-
});`.trim()
|
|
113
|
-
import { component$, Fragment } from '@
|
|
112
|
+
});`.trim(),$x=`
|
|
113
|
+
import { component$, Fragment } from '@qwik.dev/core';
|
|
114
114
|
|
|
115
115
|
export const ColorList = component$(() => {
|
|
116
116
|
const colors = ['red', 'green', 'blue'];
|
|
@@ -123,8 +123,8 @@ export const ColorList = component$(() => {
|
|
|
123
123
|
</Fragment>
|
|
124
124
|
)}
|
|
125
125
|
);
|
|
126
|
-
});`.trim(),
|
|
127
|
-
import { component$ } from '@
|
|
126
|
+
});`.trim(),Ix=`
|
|
127
|
+
import { component$ } from '@qwik.dev/core';
|
|
128
128
|
|
|
129
129
|
export const ColorList = component$(() => {
|
|
130
130
|
const colors = ['red', 'green', 'blue'];
|
|
@@ -137,8 +137,8 @@ export const ColorList = component$(() => {
|
|
|
137
137
|
</>
|
|
138
138
|
)}
|
|
139
139
|
);
|
|
140
|
-
});`.trim();var
|
|
141
|
-
import { component$ } from '@
|
|
140
|
+
});`.trim();var _x=`
|
|
141
|
+
import { component$ } from '@qwik.dev/core';
|
|
142
142
|
|
|
143
143
|
export const ColorList = component$(() => {
|
|
144
144
|
const colors = ['red', 'green', 'blue'];
|
|
@@ -150,9 +150,9 @@ export const ColorList = component$(() => {
|
|
|
150
150
|
)}
|
|
151
151
|
</ul>
|
|
152
152
|
);
|
|
153
|
-
});`.trim();var
|
|
154
|
-
<button onClick$={() => alert('open the door please')>ring</button>`.trim(),
|
|
155
|
-
<button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var
|
|
153
|
+
});`.trim();var ml=require("@typescript-eslint/utils");var{getStaticValue:xv}=ml.ASTUtils,Sv=/^[\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,yl={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){return{JSXAttribute(e){if(e.name.type==="JSXIdentifier"&&e.value){let t=xv(e.value.type==="JSXExpressionContainer"?e.value.expression:e.value,r.getScope());t&&typeof t.value=="string"&&Sv.test(t.value)&&r.report({node:e.value,messageId:"noJSURL"})}}}}},Nx=`
|
|
154
|
+
<button onClick$={() => alert('open the door please')>ring</button>`.trim(),jx=`
|
|
155
|
+
<button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var gl={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Ev={...gl,action$:!0,globalAction$:!0},vl={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
|
|
156
156
|
(docs: https://qwik.dev/docs/route-loader/).
|
|
157
157
|
|
|
158
158
|
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.
|
|
@@ -160,29 +160,29 @@ This {{fnName}}() is declared outside of the route boundaries. This may be usefu
|
|
|
160
160
|
|
|
161
161
|
If you understand this, you can disable this warning with:
|
|
162
162
|
// eslint-disable-next-line qwik/loader-location
|
|
163
|
-
`,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){var l,m;let e=((m=(l=r.options)==null?void 0:l[0])==null?void 0:m.routesDir)??"src/routes",t=
|
|
164
|
-
import { routeLoader$ } from '@
|
|
163
|
+
`,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){var l,m;let e=((m=(l=r.options)==null?void 0:l[0])==null?void 0:m.routesDir)??"src/routes",t=wv(r.getFilename()),n=/\/layout(|!|-.+)\.(j|t)sx?$/.test(t),o=/\/index(|!|@.+)\.(j|t)sx?$/.test(t),i=/\/plugin(|@.+)\.(j|t)sx?$/.test(t),u=new RegExp(`/${e}/`).test(t)&&(o||n||i);return{CallExpression(y){if(y.callee.type!=="Identifier")return;let d=y.callee.name;if(!Ev[d])return;if(!u&&gl[d]){r.report({node:y.callee,messageId:"invalidLoaderLocation",data:{routesDir:e,fnName:d,path:t}});return}let p=y.parent;if(p.type!=="VariableDeclarator"){r.report({node:y.callee,messageId:"missingExport",data:{fnName:d,id:"useStuff"}});return}if(p.id.type!=="Identifier"){r.report({node:y.callee,messageId:"missingExport",data:{fnName:d,id:"useStuff"}});return}if(!/^use/.test(p.id.name)){let h="use"+p.id.name[0].toUpperCase()+p.id.name.slice(1);r.report({node:p.id,messageId:"wrongName",data:{fnName:d,id:p.id.name,fixed:h}});return}if(!qv(p)){r.report({node:p.id,messageId:"missingExport",data:{fnName:d,id:p.id.name}});return}if(y.arguments.length>0&&y.arguments[0].type==="Identifier"){r.report({node:y.arguments[0],messageId:"recommendedValue",data:{fnName:d,id:p.id.name,arg:y.arguments[0].name}});return}}}}};function wv(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 Vx=`
|
|
164
|
+
import { routeLoader$ } from '@qwik.dev/router';
|
|
165
165
|
|
|
166
166
|
export const useProductDetails = routeLoader$(async (requestEvent) => {
|
|
167
167
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
168
168
|
const product = await res.json();
|
|
169
169
|
return product as Product;
|
|
170
|
-
});`.trim();var
|
|
171
|
-
import { routeLoader$ } from '@
|
|
170
|
+
});`.trim();var Ux=`
|
|
171
|
+
import { routeLoader$ } from '@qwik.dev/router';
|
|
172
172
|
|
|
173
173
|
const useProductDetails = routeLoader$(async (requestEvent) => {
|
|
174
174
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
175
175
|
const product = await res.json();
|
|
176
176
|
return product as Product;
|
|
177
|
-
});`.trim();var
|
|
178
|
-
import { routeLoader$ } from '@
|
|
177
|
+
});`.trim();var Dx=`
|
|
178
|
+
import { routeLoader$ } from '@qwik.dev/router';
|
|
179
179
|
|
|
180
180
|
export const getProductDetails = routeLoader$(async (requestEvent) => {
|
|
181
181
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
182
182
|
const product = await res.json();
|
|
183
183
|
return product as Product;
|
|
184
|
-
});`.trim();var
|
|
185
|
-
import { routeLoader$ } from '@
|
|
184
|
+
});`.trim();var Jx=`
|
|
185
|
+
import { routeLoader$ } from '@qwik.dev/router';
|
|
186
186
|
|
|
187
187
|
async function fetcher() {
|
|
188
188
|
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`);
|
|
@@ -191,10 +191,10 @@ async function fetcher() {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
export const useProductDetails = routeLoader$(fetcher);
|
|
194
|
-
`.trim();function
|
|
195
|
-
<MyReactComponent class="foo" for="#password" />;`.trim(),
|
|
196
|
-
<MyReactComponent className="foo" htmlFor="#password" />;`.trim();var
|
|
197
|
-
import { component$ } from '@
|
|
194
|
+
`.trim();function qv(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=Tv(r);for(let o=0;o<n.length;o++){let i=n[o];if(i.type=="ExportNamedDeclaration"){let a=i.specifiers;for(let u=0;u<a.length;u++){let l=a[u];if(l.type=="ExportSpecifier"&&l.exported.type=="Identifier"&&l.exported.name===t)return!0}}}}}return!1}function Tv(r){let e=r;for(;e.type!=="Program";)e=e.parent;return e.body}var vn=Y(pr());var Av=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var hl={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 Av){let i=vn.default.getProp(t.attributes,n);if(i){let a=vn.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:u=>u.replaceText(i.name,o);r.report({node:i,messageId:"prefer",data:{from:n,to:o},fix:a})}}}}}},Xx=`
|
|
195
|
+
<MyReactComponent class="foo" for="#password" />;`.trim(),Hx=`
|
|
196
|
+
<MyReactComponent className="foo" htmlFor="#password" />;`.trim();var hn=Y(pr());var bl={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){var n;if(r.sourceCode.getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=r.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var i,a;if(!(["class","className"].indexOf(hn.default.propName(o))===-1||hn.default.hasProp((i=o.parent)==null?void 0:i.attributes,"classlist",{ignoreCase:!1}))&&((a=o.value)==null?void 0:a.type)==="JSXExpressionContainer"){let u=o.value.expression;u.type==="CallExpression"&&u.callee.type==="Identifier"&&t.indexOf(u.callee.name)!==-1&&u.arguments.length===1&&u.arguments[0].type==="ObjectExpression"&&r.report({node:o,messageId:"preferClasslist",data:{classnames:u.callee.name},fix:l=>{let m=o.range,y=u.arguments[0].range;return[l.replaceTextRange([m[0],y[0]],"classlist={"),l.replaceTextRange([y[1],m[1]],"}")]}})}}}}},Yx=`
|
|
197
|
+
import { component$ } from '@qwik.dev/core';
|
|
198
198
|
import styles from './MyComponent.module.css';
|
|
199
199
|
|
|
200
200
|
export default component$((props) => {
|
|
@@ -211,8 +211,8 @@ export default component$((props) => {
|
|
|
211
211
|
'text-green-500': props.isHighAttention,
|
|
212
212
|
'p-4': true
|
|
213
213
|
}}>Hello world</div>;
|
|
214
|
-
});`.trim(),
|
|
215
|
-
import { component$ } from '@
|
|
214
|
+
});`.trim(),Zx=`
|
|
215
|
+
import { component$ } from '@qwik.dev/core';
|
|
216
216
|
import classnames from 'classnames';
|
|
217
217
|
import styles from './MyComponent.module.css';
|
|
218
218
|
|
|
@@ -226,12 +226,12 @@ export default component$((props) => {
|
|
|
226
226
|
},
|
|
227
227
|
{ active: true}
|
|
228
228
|
)}>Hello world</div>;
|
|
229
|
-
});`.trim();var
|
|
229
|
+
});`.trim();var xl={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:
|
|
230
230
|
|
|
231
231
|
{{ 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$(...);
|
|
232
|
-
await serverFn(...);`}})}}}}},
|
|
233
|
-
import { component$ } from '@
|
|
234
|
-
import { server$ } from '@
|
|
232
|
+
await serverFn(...);`}})}}}}},nS=`
|
|
233
|
+
import { component$ } from '@qwik.dev/core';
|
|
234
|
+
import { server$ } from '@qwik.dev/router';
|
|
235
235
|
|
|
236
236
|
const serverGreeter = server$((firstName: string, lastName: string) => {
|
|
237
237
|
const greeting = \`Hello \${firstName} \${lastName}\`;
|
|
@@ -248,9 +248,9 @@ export default component$(() => (
|
|
|
248
248
|
greet
|
|
249
249
|
</button>
|
|
250
250
|
);
|
|
251
|
-
);`.trim(),
|
|
252
|
-
import { component$ } from '@
|
|
253
|
-
import { server$ } from '@
|
|
251
|
+
);`.trim(),oS=`
|
|
252
|
+
import { component$ } from '@qwik.dev/core';
|
|
253
|
+
import { server$ } from '@qwik.dev/router';
|
|
254
254
|
|
|
255
255
|
const serverGreeter = server$((firstName: string, lastName: string) => {
|
|
256
256
|
const greeting = \`Hello \${firstName} \${lastName}\`;
|
|
@@ -267,36 +267,36 @@ export default component$(() => (
|
|
|
267
267
|
greet
|
|
268
268
|
</button>
|
|
269
269
|
);
|
|
270
|
-
);`.trim();var
|
|
270
|
+
);`.trim();var Sl={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.getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{"CallExpression[callee.name=/^use[A-Z]/]"(t){var o,i;let n=t;for(;n=n.parent;)switch(n.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(n.parent.type==="VariableDeclarator"&&((o=n.parent.id)==null?void 0:o.type)==="Identifier"&&n.parent.id.name.startsWith("use")||n.parent.type==="CallExpression"&&n.parent.callee.type==="Identifier"&&n.parent.callee.name==="component$")return;r.report({node:t,messageId:"useWrongFunction"});return;case"FunctionDeclaration":(i=n.id)!=null&&i.name.startsWith("use")||r.report({node:t,messageId:"useWrongFunction"});return;default:r.report({node:t,messageId:"useWrongFunction"});return}}}}},aS=`
|
|
271
271
|
export const Counter = component$(() => {
|
|
272
272
|
const count = useSignal(0);
|
|
273
273
|
});
|
|
274
|
-
`.trim(),
|
|
274
|
+
`.trim(),sS=`
|
|
275
275
|
export const useCounter = () => {
|
|
276
276
|
const count = useSignal(0);
|
|
277
277
|
return count;
|
|
278
278
|
};
|
|
279
|
-
`.trim(),
|
|
279
|
+
`.trim(),uS=`
|
|
280
280
|
export const Counter = (() => {
|
|
281
281
|
const count = useSignal(0);
|
|
282
282
|
});
|
|
283
|
-
`.trim();var fr=Y(require("@typescript-eslint/utils/eslint-utils")),G=Y(require("typescript"));var
|
|
283
|
+
`.trim();var fr=Y(require("@typescript-eslint/utils/eslint-utils")),G=Y(require("typescript"));var ql=Y(wl(),1);function bn(r){let e=(0,ql.default)(r);if(e===0)return r;let t=new RegExp(`^[ \\t]{${e}}`,"gm");return r.replace(t,"")}function xn(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 Sn(r,e=0,t={}){return xn(bn(r),e,t)}var Pv=fr.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),Tl=Pv({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"}},default:{allowAny:!0}}],messages:{referencesOutside:`When referencing "{{varName}}" inside a different scope ({{dollarName}}), Qwik needs to serialize the value, however {{reason}}.
|
|
284
284
|
Check out https://qwik.dev/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Using "{{varName}}" as an event handler, however functions are not serializable.
|
|
285
285
|
Did you mean to wrap it in \`$()\`?
|
|
286
286
|
|
|
287
287
|
{{solution}}
|
|
288
288
|
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.
|
|
289
|
-
Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){var y;let t={allowAny:((y=r.options[0])==null?void 0:y.allowAny)??!0},n=r.sourceCode.scopeManager,o=fr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),u=new Map,l=[];function m(d){d.references.forEach(p=>{var f,v;let h=p.resolved,c=(f=p.resolved)==null?void 0:f.scope;if(h&&c){let E=(v=h.defs.at(0))==null?void 0:v.type;if(E==="Type"||E==="ImportBinding")return;let b=p.from,w;for(;b&&(w=u.get(b),!w);)b=b.upper;if(b&&w){let $=c.type;if($==="global"||$==="module")return;let
|
|
290
|
-
${
|
|
289
|
+
Check out https://qwik.dev/docs/advanced/dollar/ for more details.`}},create(r){var y;let t={allowAny:((y=r.options[0])==null?void 0:y.allowAny)??!0},n=r.sourceCode.scopeManager,o=fr.getParserServices(r),i=o.esTreeNodeToTSNodeMap,a=o.program.getTypeChecker(),u=new Map,l=[];function m(d){d.references.forEach(p=>{var f,v;let h=p.resolved,c=(f=p.resolved)==null?void 0:f.scope;if(h&&c){let E=(v=h.defs.at(0))==null?void 0:v.type;if(E==="Type"||E==="ImportBinding")return;let b=p.from,w;for(;b&&(w=u.get(b),!w);)b=b.upper;if(b&&w){let $=c.type;if($==="global"||$==="module")return;let L=p.identifier,_e=i.get(L),N=c;for(;N&&!u.has(N);)N=N.upper;if(N!==b){L.parent&&L.parent.type==="AssignmentExpression"&&L.parent.left===L&&r.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:w}});let ce=Ov(r,a,_e,p.identifier,t);ce&&r.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:w,reason:$v(ce)}})}}}}),d.childScopes.forEach(m)}return{CallExpression(d){if(d.callee.type==="Identifier"&&d.callee.name.endsWith("$")){let p=d.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let h=n.acquire(p);h&&u.set(h,d.callee.name)}}},JSXAttribute(d){var c;let p=d.name,h=p.type==="JSXIdentifier"?p.name:p.name.name;if(h.endsWith("$")){let f=d.value;if(f&&f.type==="JSXExpressionContainer"){let v=n.acquire(f.expression);if(v)u.set(v,h);else if(f.expression.type==="Identifier"){let E=i.get(f.expression),b=a.getTypeAtLocation(E).getNonNullableType();if(!Al(b))if(b.isUnionOrIntersection())b.types.every(w=>w.symbol?w.symbol.name==="Component"||w.symbol.name==="PropFnInterface":!1)||r.report({messageId:"invalidJsxDollar",node:f.expression,data:{varName:f.expression.name,solution:`Fix the type of ${f.expression.name} to be QRL`}});else{if(((c=b.symbol)==null?void 0:c.name)==="PropFnInterface")return;r.report({messageId:"invalidJsxDollar",node:f.expression,data:{varName:f.expression.name,solution:`const ${f.expression.name} = $(
|
|
290
|
+
${Pl(b.symbol,r.sourceCode.text)}
|
|
291
291
|
);
|
|
292
|
-
`}})}}}}},Program(d){let p=i.get(d),h=a.getSymbolAtLocation(p);h&&(l=a.getExportsOfModule(h))},"Program:exit"(){m(n.globalScope)}}}});function
|
|
293
|
-
${
|
|
292
|
+
`}})}}}}},Program(d){let p=i.get(d),h=a.getSymbolAtLocation(p);h&&(l=a.getExportsOfModule(h))},"Program:exit"(){m(n.globalScope)}}}});function Ov(r,e,t,n,o){let i=e.getTypeAtLocation(t);return Iv(r,e,i,t,n,o,new Set)}function $v(r){let e="";return r.location?e+=`"${r.location}" `:e+="it ",e+=`${r.reason}`,e}function Iv(r,e,t,n,o,i,a){let u=Ie(r,e,t,n,i,0,a);if(u){let l=u.location;return l&&(u.location=`${o.name}.${l}`),u}return u}function Ie(r,e,t,n,o,i,a){var h;if(a.has(t)||(a.add(t),t.getProperty("__no_serialize__")||t.getProperty("__qwik_serializable__")))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 l=t.flags&G.default.TypeFlags.Any;if(!o.allowAny&&l)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(Al(t)||((h=t.symbol)==null?void 0:h.name)==="JSXNode")return;if(t.getCallSignatures().length>0){let c=t.symbol.name;if(c==="PropFnInterface"||c==="RefFnInterface"||c==="bivarianceHack"||c==="FunctionComponent")return;let f="is a function, which is not serializable";if(i===0&&G.default.isIdentifier(n)){let v=`const ${n.text} = $(
|
|
293
|
+
${Pl(t.symbol,r.sourceCode.text)}
|
|
294
294
|
);`;f+=`.
|
|
295
295
|
Did you mean to wrap it in \`$()\`?
|
|
296
296
|
|
|
297
297
|
${v}
|
|
298
|
-
`}return{type:t,typeStr:e.typeToString(t),reason:f}}if(t.isUnion()){for(let c of t.types){let f=Ie(r,e,c,n,o,i+1,a);if(f)return f}return}if((t.flags&G.default.TypeFlags.Object)!==0){let c=
|
|
299
|
-
import { component$, useTask$, $ } from '@
|
|
298
|
+
`}return{type:t,typeStr:e.typeToString(t),reason:f}}if(t.isUnion()){for(let c of t.types){let f=Ie(r,e,c,n,o,i+1,a);if(f)return f}return}if((t.flags&G.default.TypeFlags.Object)!==0){let c=Cv(t,e);if(c)return Ie(r,e,c,n,o,i+1,a);let f=kv(t,e);if(f){for(let b of f){let w=Ie(r,e,b,n,o,i+1,a);if(w)return w}return}let v=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||v in Fv)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 E=t.getProperty("prototype");if(E){let b=e.getTypeOfSymbolAtLocation(E,n);if(b.isClass())return{type:b,typeStr:e.typeToString(b),reason:"is a class constructor, which is not serializable"}}if(!v.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 b of t.getProperties()){let w=_v(r,e,b,n,o,i+1,a);if(w){let $=w.location;return w.location=`${b.name}${$?`.${$}`:""}`,w}}}}function _v(r,e,t,n,o,i,a){let u=e.getTypeOfSymbolAtLocation(t,n);return Ie(r,e,u,n,o,i,a)}function Cv(r,e){return e.getElementTypeOfArrayType(r)}function kv(r,e){return e.isTupleType(r)?e.getTypeArguments(r):void 0}function Al(r){return!!(r.flags&G.default.TypeFlags.Any)||!!r.getNonNullableType().getProperty("__brand__QRL__")}function Pl(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 Sn(n,2)}return""}var Fv={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0,Set:!0,Map:!0,Uint8Array:!0},bS=`
|
|
299
|
+
import { component$, useTask$, $ } from '@qwik.dev/core';
|
|
300
300
|
|
|
301
301
|
export const HelloWorld = component$(() => {
|
|
302
302
|
const print = $((msg: string) => {
|
|
@@ -308,8 +308,8 @@ export const HelloWorld = component$(() => {
|
|
|
308
308
|
});
|
|
309
309
|
|
|
310
310
|
return <h1>Hello</h1>;
|
|
311
|
-
});`.trim(),
|
|
312
|
-
import { component$, useTask$ } from '@
|
|
311
|
+
});`.trim(),xS=`
|
|
312
|
+
import { component$, useTask$ } from '@qwik.dev/core';
|
|
313
313
|
|
|
314
314
|
export const HelloWorld = component$(() => {
|
|
315
315
|
const print = (msg: string) => {
|
|
@@ -321,24 +321,24 @@ export const HelloWorld = component$(() => {
|
|
|
321
321
|
});
|
|
322
322
|
|
|
323
323
|
return <h1>Hello</h1>;
|
|
324
|
-
});`.trim(),
|
|
325
|
-
import { component$, $ } from '@
|
|
324
|
+
});`.trim(),SS=`
|
|
325
|
+
import { component$, $ } from '@qwik.dev/core';
|
|
326
326
|
|
|
327
327
|
export const HelloWorld = component$(() => {
|
|
328
328
|
const click = $(() => console.log());
|
|
329
329
|
return (
|
|
330
330
|
<button onClick$={click}>log it</button>
|
|
331
331
|
);
|
|
332
|
-
});`.trim(),
|
|
333
|
-
import { component$ } from '@
|
|
332
|
+
});`.trim(),ES=`
|
|
333
|
+
import { component$ } from '@qwik.dev/core';
|
|
334
334
|
|
|
335
335
|
export const HelloWorld = component$(() => {
|
|
336
336
|
const click = () => console.log();
|
|
337
337
|
return (
|
|
338
338
|
<button onClick$={click}>log it</button>
|
|
339
339
|
);
|
|
340
|
-
});`.trim(),
|
|
341
|
-
import { component$ } from '@
|
|
340
|
+
});`.trim(),wS=`
|
|
341
|
+
import { component$ } from '@qwik.dev/core';
|
|
342
342
|
|
|
343
343
|
export const HelloWorld = component$(() => {
|
|
344
344
|
const person = { name: 'Bob' };
|
|
@@ -350,8 +350,8 @@ export const HelloWorld = component$(() => {
|
|
|
350
350
|
{person.name}
|
|
351
351
|
</button>
|
|
352
352
|
);
|
|
353
|
-
});`.trim(),
|
|
354
|
-
import { component$ } from '@
|
|
353
|
+
});`.trim(),qS=`
|
|
354
|
+
import { component$ } from '@qwik.dev/core';
|
|
355
355
|
|
|
356
356
|
export const HelloWorld = component$(() => {
|
|
357
357
|
let personName = 'Bob';
|
|
@@ -363,15 +363,15 @@ export const HelloWorld = component$(() => {
|
|
|
363
363
|
{personName}
|
|
364
364
|
</button>
|
|
365
365
|
);
|
|
366
|
-
});`.trim();var
|
|
366
|
+
});`.trim();var Nv=Ol.ESLintUtils.RuleCreator(r=>`https://qwik.dev/docs/advanced/eslint/#${r}`),$l=Nv({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:
|
|
367
367
|
|
|
368
368
|
import {{importName}} from '{{importSrc}}';
|
|
369
369
|
<{{importName}} />
|
|
370
370
|
|
|
371
371
|
See https://qwik.dev/docs/integrations/image-optimization/#responsive-images`,noWidthHeight:`Missing "width" or "height" attribute.
|
|
372
|
-
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 l=`~/media${a.value}?jsx`,m=
|
|
372
|
+
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 l=`~/media${a.value}?jsx`,m=jv(a.value);r.report({node:n,messageId:"noLocalSrc",data:{importSrc:l,importName:m}});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"})}}}}}),HS=`
|
|
373
373
|
import Image from '~/media/image.png';
|
|
374
|
-
<Image />`.trim(),
|
|
375
|
-
<img src="/image.png">`.trim(),
|
|
376
|
-
<img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),
|
|
377
|
-
<img src="/static/images/portrait-01.webp">`.trim();function
|
|
374
|
+
<Image />`.trim(),KS=`
|
|
375
|
+
<img src="/image.png">`.trim(),zS=`
|
|
376
|
+
<img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),QS=`
|
|
377
|
+
<img src="/static/images/portrait-01.webp">`.trim();function jv(r){let e=r.lastIndexOf("."),t=r.lastIndexOf("/");return r=r.substring(t+1,e),`Img${Rv(r)}`}function Rv(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 Il={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 Lv={"use-method-usage":Sl,"valid-lexical-scope":Tl,"loader-location":vl,"no-react-props":hl,"prefer-classlist":bl,"jsx-no-script-url":yl,"jsx-key":dl,"unused-server":xl,"jsx-img":$l,"jsx-a":An,"no-use-visible-task":Il},Mv={recommended:{plugins:["qwik"],rules:{"qwik/use-method-usage":"error","qwik/valid-lexical-scope":"error","qwik/no-react-props":"error","qwik/prefer-classlist":"warn","qwik/jsx-no-script-url":"warn","qwik/loader-location":"warn","qwik/jsx-key":"warn","qwik/unused-server":"error","qwik/jsx-img":"warn","qwik/jsx-a":"warn","qwik/no-use-visible-task":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/use-method-usage":"error","qwik/loader-location":"error","qwik/no-react-props":"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"}}};0&&(module.exports={configs,rules});
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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": "
|
|
5
|
-
"author": "
|
|
4
|
+
"version": "2.0.0-alpha.0",
|
|
5
|
+
"author": "Qwik Team",
|
|
6
6
|
"bugs": "https://github.com/QwikDev/qwik/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"jsx-ast-utils": "^3.3.5"
|
|
8
|
+
"jsx-ast-utils": "^3.3.5",
|
|
9
|
+
"@typescript-eslint/utils": "^8.12.2"
|
|
9
10
|
},
|
|
10
11
|
"devDependencies": {
|
|
11
12
|
"@types/eslint": "8.56.10",
|
|
12
13
|
"@types/estree": "1.0.5",
|
|
13
14
|
"@typescript-eslint/rule-tester": "7.8.0",
|
|
14
|
-
"@typescript-eslint/utils": "7.8.0",
|
|
15
15
|
"redent": "4.0.0",
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
16
|
+
"@qwik.dev/core": "2.0.0-alpha.0",
|
|
17
|
+
"@qwik.dev/router": "2.0.0-alpha.0"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "
|
|
20
|
+
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"README.md",
|