eslint-plugin-qwik
Advanced tools
Comparing version 1.1.4 to 1.1.5
347
index.js
@@ -1,2 +0,2 @@ | ||
"use strict";var no=Object.create;var ae=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var ao=Object.getOwnPropertyNames;var io=Object.getPrototypeOf,so=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),uo=(e,r)=>{for(var t in r)ae(e,t,{get:r[t],enumerable:!0})},$r=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ao(r))!so.call(e,o)&&o!==t&&ae(e,o,{get:()=>r[o],enumerable:!(n=oo(r,o))||n.enumerable});return e};var H=(e,r,t)=>(t=e!=null?no(io(e)):{},$r(r||!e||!e.__esModule?ae(t,"default",{value:e,enumerable:!0}):t,e)),po=e=>$r(ae({},"__esModule",{value:!0}),e);var Jr=l((Zs,Dr)=>{"use strict";Dr.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var ie=l(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=So;function So(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.type||e.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return e.name.type==="JSXNamespacedName"?e.name.namespace.name+":"+e.name.name.name:e.name.name}});var Hr=l(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.default=Te;Q.hasAnyProp=Po;Q.hasEveryProp=wo;var Eo=ie(),Kr=Ao(Eo);function Ao(e){return e&&e.__esModule?e:{default:e}}var _e={spreadStrict:!0,ignoreCase:!0};function Te(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Kr.default)(o).toUpperCase():(0,Kr.default)(o);return n===a})}function Po(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return Te(e,o,t)})}function wo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_e,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return Te(e,o,t)})}});var Qr=l(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=Oo;function Yr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.type==="JSXMemberExpression"?Yr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function Oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.name;if(e.type==="JSXOpeningFragment")return"<>";if(!r)throw new Error("The argument provided is not a JSXElement node.");if(r.type==="JSXMemberExpression"){var t=r.object,n=t===void 0?{}:t,o=r.property,a=o===void 0?{}:o;return Yr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Zr=l(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});var Fe={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"]},_o=Object.keys(Fe).reduce(function(e,r){return e.concat(Fe[r])},[]);se.default=_o;se.eventHandlersByType=Fe});var rt=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});var To=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),d;!(o=(d=s.next()).done)&&(n.push(d.value),!(t&&n.length===t));o=!0);}catch(v){a=!0,i=v}finally{try{!o&&s.return&&s.return()}finally{if(a)throw i}}return n}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};Ce.default=qo;var Io=ie(),Fo=jo(Io);function jo(e){return e&&e.__esModule?e:{default:e}}function et(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var Co={ignoreCase:!0};function qo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Co;function n(s){return t.ignoreCase?s.toUpperCase():s}var o=n(r);function a(s){return s.type==="Property"&&s.key.type==="Identifier"&&o===n(s.key.name)}var i=e.find(function(s){return s.type==="JSXSpreadAttribute"?s.argument.type==="ObjectExpression"&&o!==n("key")&&s.argument.properties.some(a):o===n((0,Fo.default)(s))});return i&&i.type==="JSXSpreadAttribute"?Ro(i.argument.properties.find(a)):i}function Ro(e){var r=e.key,t=e.value;return k({type:"JSXAttribute",name:k({type:"JSXIdentifier",name:r.name},je(r)),value:t.type==="Literal"?Z(t):k({type:"JSXExpressionContainer",expression:No(t)},je(t))},je(e))}function Z(e){var r=e.range||[e.start,e.end],t=To(r,2),n=t[0],o=t[1];return k({},e,{end:void 0,range:[n,o],start:void 0})}function No(e){var r=e.expressions,t=e.quasis,n=et(e,["expressions","quasis"]);return k({},Z(n),r?{expressions:r.map(Z)}:{},t?{quasis:t.map(Z)}:{})}function je(e){var r=e.loc,t=et(e,["loc"]),n=Z(t),o=n.range;return{loc:ko(r),range:o}}function ko(e){var r=e.start,t=e.end,n=e.source,o=e.filename;return k({start:r,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Re=l(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.default=Uo;function Uo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var ke=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Mo;function Mo(e){var r=ue().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var Me=l(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=$o;function $o(e){return e.raw}});var tt=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=Do;function Do(e){var r=ue().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var ot=l(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.default=Jo;var nt={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function Jo(e){var r=e.name;return Object.hasOwnProperty.call(nt,r)?nt[r]:r}});var Ve=l(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.default=Lo;function Vo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function Lo(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(Vo).reduce(function(o,a){var i=a.type;return i==="TemplateElement"?o+a.value.raw:i==="Identifier"?a.name==="undefined"?""+o+a.name:o+"{"+a.name+"}":i.indexOf("Expression")>-1?o+"{"+i+"}":o},"")}});var at=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Go;var Bo=Ve(),Xo=Wo(Bo);function Wo(e){return e&&e.__esModule?e:{default:e}}function Go(e){return(0,Xo.default)(e.quasi)}});var it=l(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=zo;function zo(e){return function(){return e}}});var st=l(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=Ko;function Ko(e){var r=P().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);return t==="&&"?a&&i:t==="??"?a===null||typeof a>"u"?i:a:a||i}});var ut=l(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.default=Ho;function Ho(e){var r=P().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var pt=l(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=Yo;function Yo(e){var r=P().default;return r(e.expression||e)}});var lt=l(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.default=Qo;function Qo(e){var r=P().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var ct=l(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.default=Zo;function Zo(e){var r=P().default;return r(e.object)+"?."+r(e.property)}});var ft=l(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.default=ea;function ea(e){var r=P().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var yt=l(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.default=ra;function ra(e){var r=P().default,t=e.operator,n=e.argument;switch(t){case"-":return-r(n);case"+":return+r(n);case"!":return!r(n);case"~":return~r(n);case"delete":return!0;case"typeof":case"void":default:return}}});var Ze=l(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.default=ta;function ta(){return"this"}});var dt=l(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.default=na;function na(e){var r=P().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var mt=l(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.default=oa;function oa(e){var r=P().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);switch(t){case"==":return a==i;case"!=":return a!=i;case"===":return a===i;case"!==":return a!==i;case"<":return a<i;case"<=":return a<=i;case">":return a>i;case">=":return a>=i;case"<<":return a<<i;case">>":return a>>i;case">>>":return a>>>i;case"+":return a+i;case"-":return a-i;case"*":return a*i;case"/":return a/i;case"%":return a%i;case"|":return a|i;case"^":return a^i;case"&":return a&i;case"in":try{return a in i}catch{return!1}case"instanceof":return typeof i!="function"?!1:a instanceof i;default:return}}});var tr=l((Cu,vt)=>{"use strict";var gt=Object.prototype.toString;vt.exports=function(r){var t=gt.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&>.call(r.callee)==="[object Function]"),n}});var Ot=l((qu,wt)=>{"use strict";var Pt;Object.keys||(ee=Object.prototype.hasOwnProperty,nr=Object.prototype.toString,ht=tr(),or=Object.prototype.propertyIsEnumerable,xt=!or.call({toString:null},"toString"),bt=or.call(function(){},"prototype"),re=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],pe=function(e){var r=e.constructor;return r&&r.prototype===e},St={$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},Et=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!St["$"+e]&&ee.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{pe(window[e])}catch{return!0}}catch{return!0}return!1}(),At=function(e){if(typeof window>"u"||!Et)return pe(e);try{return pe(e)}catch{return!1}},Pt=function(r){var t=r!==null&&typeof r=="object",n=nr.call(r)==="[object Function]",o=ht(r),a=t&&nr.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=bt&&n;if(a&&r.length>0&&!ee.call(r,0))for(var d=0;d<r.length;++d)i.push(String(d));if(o&&r.length>0)for(var v=0;v<r.length;++v)i.push(String(v));else for(var y in r)!(s&&y==="prototype")&&ee.call(r,y)&&i.push(String(y));if(xt)for(var f=At(r),p=0;p<re.length;++p)!(f&&re[p]==="constructor")&&ee.call(r,re[p])&&i.push(re[p]);return i});var ee,nr,ht,or,xt,bt,re,pe,St,Et,At;wt.exports=Pt});var ar=l((Ru,It)=>{"use strict";var aa=Array.prototype.slice,ia=tr(),_t=Object.keys,le=_t?function(r){return _t(r)}:Ot(),Tt=Object.keys;le.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return ia(n)?Tt(aa.call(n)):Tt(n)})}else Object.keys=le;return Object.keys||le};It.exports=le});var ir=l((Nu,Ft)=>{"use strict";Ft.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},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;r[t]=o;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var sr=l((ku,Ct)=>{"use strict";var jt=typeof Symbol<"u"&&Symbol,sa=ir();Ct.exports=function(){return typeof jt!="function"||typeof Symbol!="function"||typeof jt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sa()}});var Nt=l((Uu,Rt)=>{"use strict";var qt={foo:{}},ua=Object;Rt.exports=function(){return{__proto__:qt}.foo===qt.foo&&!({__proto__:null}instanceof ua)}});var Ut=l((Mu,kt)=>{"use strict";var pa="Function.prototype.bind called on incompatible ",ur=Array.prototype.slice,la=Object.prototype.toString,ca="[object Function]";kt.exports=function(r){var t=this;if(typeof t!="function"||la.call(t)!==ca)throw new TypeError(pa+t);for(var n=ur.call(arguments,1),o,a=function(){if(this instanceof o){var y=t.apply(this,n.concat(ur.call(arguments)));return Object(y)===y?y:this}else return t.apply(r,n.concat(ur.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],d=0;d<i;d++)s.push("$"+d);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var v=function(){};v.prototype=t.prototype,o.prototype=new v,v.prototype=null}return o}});var te=l(($u,Mt)=>{"use strict";var fa=Ut();Mt.exports=Function.prototype.bind||fa});var pr=l((Du,$t)=>{"use strict";var ya=te();$t.exports=ya.call(Function.call,Object.prototype.hasOwnProperty)});var Xt=l((Ju,Bt)=>{"use strict";var m,D=SyntaxError,Lt=Function,$=TypeError,lr=function(e){try{return Lt('"use strict"; return ('+e+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var cr=function(){throw new $},da=j?function(){try{return arguments.callee,cr}catch{try{return j(arguments,"callee").get}catch{return cr}}}():cr,U=sr()(),ma=Nt()(),w=Object.getPrototypeOf||(ma?function(e){return e.__proto__}:null),M={},ga=typeof Uint8Array>"u"||!w?m:w(Uint8Array),C={"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":U&&w?w([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":Lt,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":U&&w?w(w([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!U||!w?m:w(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!U||!w?m:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":U&&w?w(""[Symbol.iterator]()):m,"%Symbol%":U?Symbol:m,"%SyntaxError%":D,"%ThrowTypeError%":da,"%TypedArray%":ga,"%TypeError%":$,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(w)try{null.error}catch(e){Dt=w(w(e)),C["%Error.prototype%"]=Dt}var Dt,va=function e(r){var t;if(r==="%AsyncFunction%")t=lr("async function () {}");else if(r==="%GeneratorFunction%")t=lr("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=lr("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&w&&(t=w(o.prototype))}return C[r]=t,t},Jt={"%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"]},ne=te(),ce=pr(),ha=ne.call(Function.call,Array.prototype.concat),xa=ne.call(Function.apply,Array.prototype.splice),Vt=ne.call(Function.call,String.prototype.replace),fe=ne.call(Function.call,String.prototype.slice),ba=ne.call(Function.call,RegExp.prototype.exec),Sa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ea=/\\(\\)?/g,Aa=function(r){var t=fe(r,0,1),n=fe(r,-1);if(t==="%"&&n!=="%")throw new D("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new D("invalid intrinsic syntax, expected opening `%`");var o=[];return Vt(r,Sa,function(a,i,s,d){o[o.length]=s?Vt(d,Ea,"$1"):i||a}),o},Pa=function(r,t){var n=r,o;if(ce(Jt,n)&&(o=Jt[n],n="%"+o[0]+"%"),ce(C,n)){var a=C[n];if(a===M&&(a=va(n)),typeof a>"u"&&!t)throw new $("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new D("intrinsic "+r+" does not exist!")};Bt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new $("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new $('"allowMissing" argument must be a boolean');if(ba(/^%?[^%]*%?$/,r)===null)throw new D("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Aa(r),o=n.length>0?n[0]:"",a=Pa("%"+o+"%",t),i=a.name,s=a.value,d=!1,v=a.alias;v&&(o=v[0],xa(n,ha([0,1],v)));for(var y=1,f=!0;y<n.length;y+=1){var p=n[y],h=fe(p,0,1),u=fe(p,-1);if((h==='"'||h==="'"||h==="`"||u==='"'||u==="'"||u==="`")&&h!==u)throw new D("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(d=!0),o+="."+p,i="%"+o+"%",ce(C,i))s=C[i];else if(s!=null){if(!(p in s)){if(!t)throw new $("base intrinsic for "+r+" exists, but the property is not available.");return}if(j&&y+1>=n.length){var c=j(s,p);f=!!c,f&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else f=ce(s,p),s=s[p];f&&!d&&(C[i]=s)}}return s}});var Gt=l((Vu,Wt)=>{"use strict";var wa=Xt(),fr=wa("%Object.defineProperty%",!0),yr=function(){if(fr)try{return fr({},"a",{value:1}),!0}catch{return!1}return!1};yr.hasArrayLengthDefineBug=function(){if(!yr())return null;try{return fr([],"length",{value:1}).length!==1}catch{return!0}};Wt.exports=yr});var dr=l((Lu,Yt)=>{"use strict";var Oa=ar(),_a=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Ta=Object.prototype.toString,Ia=Array.prototype.concat,zt=Object.defineProperty,Fa=function(e){return typeof e=="function"&&Ta.call(e)==="[object Function]"},ja=Gt()(),Kt=zt&&ja,Ca=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!Fa(n)||!n())return}Kt?zt(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Ht=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Oa(r);_a&&(n=Ia.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)Ca(e,n[o],r[n[o]],t[n[o]])};Ht.supportsDescriptors=!!Kt;Yt.exports=Ht});var vr=l((Bu,tn)=>{"use strict";var g,B=SyntaxError,rn=Function,L=TypeError,mr=function(e){try{return rn('"use strict"; return ('+e+").constructor;")()}catch{}},q=Object.getOwnPropertyDescriptor;if(q)try{q({},"")}catch{q=null}var gr=function(){throw new L},qa=q?function(){try{return arguments.callee,gr}catch{try{return q(arguments,"callee").get}catch{return gr}}}():gr,J=sr()(),_=Object.getPrototypeOf||function(e){return e.__proto__},V={},Ra=typeof Uint8Array>"u"?g:_(Uint8Array),R={"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":J?_([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":V,"%AsyncGenerator%":V,"%AsyncGeneratorFunction%":V,"%AsyncIteratorPrototype%":V,"%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%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":rn,"%GeneratorFunction%":V,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J?_(_([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!J?g:_(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%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!J?g:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J?_(""[Symbol.iterator]()):g,"%Symbol%":J?Symbol:g,"%SyntaxError%":B,"%ThrowTypeError%":qa,"%TypedArray%":Ra,"%TypeError%":L,"%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%":URIError,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet};try{null.error}catch(e){Qt=_(_(e)),R["%Error.prototype%"]=Qt}var Qt,Na=function e(r){var t;if(r==="%AsyncFunction%")t=mr("async function () {}");else if(r==="%GeneratorFunction%")t=mr("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=mr("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(t=_(o.prototype))}return R[r]=t,t},Zt={"%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"]},oe=te(),ye=pr(),ka=oe.call(Function.call,Array.prototype.concat),Ua=oe.call(Function.apply,Array.prototype.splice),en=oe.call(Function.call,String.prototype.replace),de=oe.call(Function.call,String.prototype.slice),Ma=oe.call(Function.call,RegExp.prototype.exec),$a=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Da=/\\(\\)?/g,Ja=function(r){var t=de(r,0,1),n=de(r,-1);if(t==="%"&&n!=="%")throw new B("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new B("invalid intrinsic syntax, expected opening `%`");var o=[];return en(r,$a,function(a,i,s,d){o[o.length]=s?en(d,Da,"$1"):i||a}),o},Va=function(r,t){var n=r,o;if(ye(Zt,n)&&(o=Zt[n],n="%"+o[0]+"%"),ye(R,n)){var a=R[n];if(a===V&&(a=Na(n)),typeof a>"u"&&!t)throw new L("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new B("intrinsic "+r+" does not exist!")};tn.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new L("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new L('"allowMissing" argument must be a boolean');if(Ma(/^%?[^%]*%?$/,r)===null)throw new B("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ja(r),o=n.length>0?n[0]:"",a=Va("%"+o+"%",t),i=a.name,s=a.value,d=!1,v=a.alias;v&&(o=v[0],Ua(n,ka([0,1],v)));for(var y=1,f=!0;y<n.length;y+=1){var p=n[y],h=de(p,0,1),u=de(p,-1);if((h==='"'||h==="'"||h==="`"||u==='"'||u==="'"||u==="`")&&h!==u)throw new B("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(d=!0),o+="."+p,i="%"+o+"%",ye(R,i))s=R[i];else if(s!=null){if(!(p in s)){if(!t)throw new L("base intrinsic for "+r+" exists, but the property is not available.");return}if(q&&y+1>=n.length){var c=q(s,p);f=!!c,f&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else f=ye(s,p),s=s[p];f&&!d&&(R[i]=s)}}return s}});var xr=l((Xu,me)=>{"use strict";var hr=te(),X=vr(),an=X("%Function.prototype.apply%"),sn=X("%Function.prototype.call%"),un=X("%Reflect.apply%",!0)||hr.call(sn,an),nn=X("%Object.getOwnPropertyDescriptor%",!0),N=X("%Object.defineProperty%",!0),La=X("%Math.max%");if(N)try{N({},"a",{value:1})}catch{N=null}me.exports=function(r){var t=un(hr,sn,arguments);if(nn&&N){var n=nn(t,"length");n.configurable&&N(t,"length",{value:1+La(0,r.length-(arguments.length-1))})}return t};var on=function(){return un(hr,an,arguments)};N?N(me.exports,"apply",{value:on}):me.exports.apply=on});var fn=l((Wu,cn)=>{"use strict";var pn=vr(),ln=xr(),Ba=ln(pn("String.prototype.indexOf"));cn.exports=function(r,t){var n=pn(r,!!t);return typeof n=="function"&&Ba(r,".prototype.")>-1?ln(n):n}});var br=l((Gu,vn)=>{"use strict";var Xa=ar(),mn=ir()(),gn=fn(),yn=Object,Wa=gn("Array.prototype.push"),dn=gn("Object.prototype.propertyIsEnumerable"),Ga=mn?Object.getOwnPropertySymbols:null;vn.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=yn(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=yn(arguments[o]),i=Xa(a),s=mn&&(Object.getOwnPropertySymbols||Ga);if(s)for(var d=s(a),v=0;v<d.length;++v){var y=d[v];dn(a,y)&&Wa(i,y)}for(var f=0;f<i.length;++f){var p=i[f];if(dn(a,p)){var h=a[p];n[p]=h}}}return n}});var Er=l((zu,hn)=>{"use strict";var Sr=br(),za=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},n=0;n<r.length;++n)t[r[n]]=r[n];var o=Object.assign({},t),a="";for(var i in o)a+=i;return e!==a},Ka=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};hn.exports=function(){return!Object.assign||za()||Ka()?Sr:Object.assign}});var bn=l((Ku,xn)=>{"use strict";var Ha=dr(),Ya=Er();xn.exports=function(){var r=Ya();return Ha(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var Pn=l((Hu,An)=>{"use strict";var Qa=dr(),Za=xr(),ei=br(),Sn=Er(),ri=bn(),ti=Za.apply(Sn()),En=function(r,t){return ti(Object,arguments)};Qa(En,{getPolyfill:Sn,implementation:ei,shim:ri});An.exports=En});var On=l(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var ni=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};Ar.default=wn;var oi=Pn(),ai=ii(oi);function ii(e){return e&&e.__esModule?e:{default:e}}function wn(e){var r=P().default;return e.properties.reduce(function(t,n){var o=ni({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,ai.default)(o,wn(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var _n=l(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=si;function si(){return new Object}});var Tn=l(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.default=ui;function ui(e){var r=P().default,t=e.operator,n=e.argument,o=e.prefix,a=r(n);switch(t){case"++":return o?++a:a++;case"--":return o?--a:a--;default:return}}});var In=l(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.default=pi;function pi(e){var r=P().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var Fn=l(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.default=li;function li(e){var r=P().default,t=r(e.callee),n=e.object===null?r(e.callee.object):r(e.object);return e.object&&e.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var jn=l(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=ci;function ci(){}});var Cn=l(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.default=fi;function fi(e){var r=P().default;return r(e.expression)}});var qn=l(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.default=yi;function yi(e){var r=P().default;return e.expressions.map(function(t){return r(t)})}});var Nn=l(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.default=I;var di=Ze().default;function Rn(e,r,t){return t.computed?t.optional?e+"?.["+r+"]":e+"["+r+"]":t.optional?e+"?."+r:e+"."+r}function I(e){var r="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(e.type==="Identifier"){var t=e.name;return t}if(e.type==="Literal")return e.value;if(e.type==="TSAsExpression")return I(e.expression);if(e.type==="ThisExpression")return di();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return I(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+I(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return Rn(I(e.object),I(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=Rn(I(e.object),I(e.property),e);return"("+a+")"}}if(e.expression)for(var i=e.expression;i;){if(i.type==="Identifier")return console.error(r),i.name;var s=i;i=s.expression}return console.error(r),""}});var kn=l(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.default=mi;function mi(e){var r=P().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var P=l(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});var gi=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ge.default=hs;ge.extractLiteral=xs;var vi=Re(),hi=b(vi),xi=ke(),bi=b(xi),Si=tt(),Ei=b(Si),Ai=Me(),Pi=b(Ai),wi=ot(),Oi=b(wi),_i=at(),Ti=b(_i),Ii=Ve(),Fi=b(Ii),ji=it(),Un=b(ji),Ci=st(),qi=b(Ci),Ri=ut(),Ni=b(Ri),ki=pt(),Ui=b(ki),Mi=lt(),$i=b(Mi),Di=ct(),Ji=b(Di),Vi=ft(),Li=b(Vi),Bi=yt(),Xi=b(Bi),Wi=Ze(),Gi=b(Wi),zi=dt(),Ki=b(zi),Hi=mt(),Yi=b(Hi),Qi=On(),Zi=b(Qi),es=_n(),rs=b(es),ts=Tn(),ns=b(ts),os=In(),as=b(os),is=Fn(),ss=b(is),us=jn(),ps=b(us),ls=Cn(),cs=b(ls),fs=qn(),ys=b(fs),ds=Nn(),ms=b(ds),gs=kn(),vs=b(gs);function b(e){return e&&e.__esModule?e:{default:e}}var F={Identifier:Oi.default,Literal:hi.default,JSXElement:bi.default,JSXFragment:Ei.default,JSXText:Pi.default,TaggedTemplateExpression:Ti.default,TemplateLiteral:Fi.default,ArrowFunctionExpression:Un.default,FunctionExpression:Un.default,LogicalExpression:qi.default,MemberExpression:Ni.default,ChainExpression:Ui.default,OptionalCallExpression:$i.default,OptionalMemberExpression:Ji.default,CallExpression:Li.default,UnaryExpression:Xi.default,ThisExpression:Gi.default,ConditionalExpression:Ki.default,BinaryExpression:Yi.default,ObjectExpression:Zi.default,NewExpression:rs.default,UpdateExpression:ns.default,ArrayExpression:as.default,BindExpression:ss.default,SpreadElement:ps.default,TypeCastExpression:cs.default,SequenceExpression:ys.default,TSNonNullExpression:ms.default,AssignmentExpression:vs.default},A=function(){return null},$n=function(r){return"The prop value with an expression type of "+r+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function hs(e){var r=void 0;typeof e.expression!="boolean"&&e.expression?r=e.expression:r=e;var t=r,n=t.type;for(r.object&&r.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=r;if(n=o.type,r.expression){var a=r;r=a.expression}}return F[n]===void 0?(console.error($n(n)),null):F[n](r)}var Mn=gi({},F,{Literal:function(r){var t=F.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=F.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:A,JSXFragment:A,JSXText:A,ArrowFunctionExpression:A,FunctionExpression:A,LogicalExpression:A,MemberExpression:A,OptionalCallExpression:A,OptionalMemberExpression:A,CallExpression:A,UnaryExpression:function(r){var t=F.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=F.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:A,ConditionalExpression:A,BinaryExpression:A,ObjectExpression:A,NewExpression:A,ArrayExpression:function(r){var t=F.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:A,SpreadElement:A,TSNonNullExpression:A,TSAsExpression:A,TypeCastExpression:A,SequenceExpression:A,ChainExpression:A});function xs(e){var r=e.expression||e,t=r.type;return Mn[t]===void 0?(console.error($n(t)),null):Mn[t](r)}});var ue=l(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});var bs=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};he.default=Is;he.getLiteralValue=Fs;var Ss=Re(),Es=ve(Ss),As=ke(),Ps=ve(As),ws=Me(),Os=ve(ws),Dn=P(),_s=ve(Dn);function ve(e){return e&&e.__esModule?e:{default:e}}var Jn={Literal:Es.default,JSXElement:Ps.default,JSXExpressionContainer:_s.default,JSXText:Os.default},Ts=bs({},Jn,{JSXElement:function(){return null},JSXExpressionContainer:Dn.extractLiteral});function Is(e){return Jn[e.type](e)}function Fs(e){return Ts[e.type](e)}});var Bn=l(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.default=qs;xe.getLiteralPropValue=Rs;var Vn=ue(),js=Cs(Vn);function Cs(e){return e&&e.__esModule?e:{default:e}}var Ln=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function qs(e){return Ln(e,js.default)}function Rs(e){return Ln(e,Vn.getLiteralValue)}});var be=l((lp,Gn)=>{"use strict";var qr=Hr(),Ns=W(qr),ks=Qr(),Us=W(ks),Xn=Zr(),Ms=W(Xn),$s=rt(),Ds=W($s),Wn=Bn(),Js=W(Wn),Vs=ie(),Ls=W(Vs);function W(e){return e&&e.__esModule?e:{default:e}}Gn.exports={hasProp:Ns.default,hasAnyProp:qr.hasAnyProp,hasEveryProp:qr.hasEveryProp,elementType:Us.default,eventHandlers:Ms.default,eventHandlersByType:Xn.eventHandlersByType,getProp:Ds.default,getPropValue:Js.default,getLiteralPropValue:Wn.getLiteralPropValue,propName:Ls.default}});var Ys={};uo(Ys,{configs:()=>Hs,rules:()=>Ks});module.exports=po(Ys);var we=require("@typescript-eslint/utils"),O=H(require("typescript"));var Vr=H(Jr(),1);function Ee(e){let r=(0,Vr.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function Ae(e,r=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(r<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${r}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(r===0)return e;let a=o?/^/gm:/^(?!\s*$)/gm;return e.replace(a,n.repeat(r))}function Pe(e,r=0,t={}){return Ae(Ee(e),r,t)}var lo=we.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Lr=lo({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:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:`Seems like you are referencing "{{varName}}" inside a different scope ({{dollarName}}), when this happens, Qwik needs to serialize the value, however {{reason}}. | ||
"use strict";var Rn=Object.create;var K=Object.defineProperty;var Ln=Object.getOwnPropertyDescriptor;var Un=Object.getOwnPropertyNames;var Jn=Object.getPrototypeOf,Dn=Object.prototype.hasOwnProperty;var p=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Vn=(e,r)=>{for(var t in r)K(e,t,{get:r[t],enumerable:!0})},Ar=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Un(r))!Dn.call(e,o)&&o!==t&&K(e,o,{get:()=>r[o],enumerable:!(n=Ln(r,o))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?Rn(Jn(e)):{},Ar(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),Bn=e=>Ar(K({},"__esModule",{value:!0}),e);var Or=p((As,Pr)=>{"use strict";Pr.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var z=p(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=ro;function ro(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!e.type||e.type!=="JSXAttribute")throw new Error("The prop must be a JSXAttribute collected by the AST parser.");return e.name.type==="JSXNamespacedName"?e.name.namespace.name+":"+e.name.name.name:e.name.name}});var Fr=p(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.default=ve;B.hasAnyProp=oo;B.hasEveryProp=ao;var to=z(),Cr=no(to);function no(e){return e&&e.__esModule?e:{default:e}}var he={spreadStrict:!0,ignoreCase:!0};function ve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Cr.default)(o).toUpperCase():(0,Cr.default)(o);return n===a})}function oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return ve(e,o,t)})}function ao(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return ve(e,o,t)})}});var Mr=p(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.default=io;function Nr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.type==="JSXMemberExpression"?Nr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function io(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.name;if(e.type==="JSXOpeningFragment")return"<>";if(!r)throw new Error("The argument provided is not a JSXElement node.");if(r.type==="JSXMemberExpression"){var t=r.object,n=t===void 0?{}:t,o=r.property,a=o===void 0?{}:o;return Nr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Rr=p(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});var be={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"]},so=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Q.default=so;Q.eventHandlersByType=be});var Ur=p(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});var lo=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var l=r[Symbol.iterator](),y;!(o=(y=l.next()).done)&&(n.push(y.value),!(t&&n.length===t));o=!0);}catch(h){a=!0,i=h}finally{try{!o&&l.return&&l.return()}finally{if(a)throw i}}return n}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),q=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};Se.default=mo;var uo=z(),po=co(uo);function co(e){return e&&e.__esModule?e:{default:e}}function Lr(e,r){var t={};for(var n in e)r.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var fo={ignoreCase:!0};function mo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fo;function n(l){return t.ignoreCase?l.toUpperCase():l}var o=n(r);function a(l){return l.type==="Property"&&l.key.type==="Identifier"&&o===n(l.key.name)}var i=e.find(function(l){return l.type==="JSXSpreadAttribute"?l.argument.type==="ObjectExpression"&&o!==n("key")&&l.argument.properties.some(a):o===n((0,po.default)(l))});return i&&i.type==="JSXSpreadAttribute"?yo(i.argument.properties.find(a)):i}function yo(e){var r=e.key,t=e.value;return q({type:"JSXAttribute",name:q({type:"JSXIdentifier",name:r.name},Ee(r)),value:t.type==="Literal"?H(t):q({type:"JSXExpressionContainer",expression:go(t)},Ee(t))},Ee(e))}function H(e){var r=e.range||[e.start,e.end],t=lo(r,2),n=t[0],o=t[1];return q({},e,{end:void 0,range:[n,o],start:void 0})}function go(e){var r=e.expressions,t=e.quasis,n=Lr(e,["expressions","quasis"]);return q({},H(n),r?{expressions:r.map(H)}:{},t?{quasis:t.map(H)}:{})}function Ee(e){var r=e.loc,t=Lr(e,["loc"]),n=H(t),o=n.range;return{loc:ho(r),range:o}}function ho(e){var r=e.start,t=e.end,n=e.source,o=e.filename;return q({start:r,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Ae=p(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.default=vo;function vo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var Oe=p(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.default=xo;function xo(e){var r=Y().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var ke=p(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.default=bo;function bo(e){return e.raw}});var Jr=p(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.default=Eo;function Eo(e){var r=Y().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var Vr=p(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.default=So;var Dr={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function So(e){var r=e.name;return Object.hasOwnProperty.call(Dr,r)?Dr[r]:r}});var qe=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=Ao;function wo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function Ao(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(wo).reduce(function(o,a){var i=a.type;return i==="TemplateElement"?o+a.value.raw:i==="Identifier"?a.name==="undefined"?""+o+a.name:o+"{"+a.name+"}":i.indexOf("Expression")>-1?o+"{"+i+"}":o},"")}});var Br=p(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=ko;var Po=qe(),Oo=_o(Po);function _o(e){return e&&e.__esModule?e:{default:e}}function ko(e){return(0,Oo.default)(e.quasi)}});var Hr=p(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=To;function To(e){return function(){return e}}});var Xr=p(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=jo;function jo(e){var r=w().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);return t==="&&"?a&&i:t==="??"?a===null||typeof a>"u"?i:a:a||i}});var Gr=p(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=$o;function $o(e){var r=w().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Wr=p(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.default=qo;function qo(e){var r=w().default;return r(e.expression||e)}});var Kr=p(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=Io;function Io(e){var r=w().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var zr=p(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Co;function Co(e){var r=w().default;return r(e.object)+"?."+r(e.property)}});var Qr=p(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Fo;function Fo(e){var r=w().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var Yr=p(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.default=No;function No(e){var r=w().default,t=e.operator,n=e.argument;switch(t){case"-":return-r(n);case"+":return+r(n);case"!":return!r(n);case"~":return~r(n);case"delete":return!0;case"typeof":case"void":default:return}}});var Ve=p(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.default=Mo;function Mo(){return"this"}});var Zr=p(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=Ro;function Ro(e){var r=w().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var et=p(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.default=Lo;function Lo(e){var r=w().default,t=e.operator,n=e.left,o=e.right,a=r(n),i=r(o);switch(t){case"==":return a==i;case"!=":return a!=i;case"===":return a===i;case"!==":return a!==i;case"<":return a<i;case"<=":return a<=i;case">":return a>i;case">=":return a>=i;case"<<":return a<<i;case">>":return a>>i;case">>>":return a>>>i;case"+":return a+i;case"-":return a-i;case"*":return a*i;case"/":return a/i;case"%":return a%i;case"|":return a|i;case"^":return a^i;case"&":return a&i;case"in":try{return a in i}catch{return!1}case"instanceof":return typeof i!="function"?!1:a instanceof i;default:return}}});var Xe=p((gl,tt)=>{"use strict";var rt=Object.prototype.toString;tt.exports=function(r){var t=rt.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&rt.call(r.callee)==="[object Function]"),n}});var ct=p((hl,pt)=>{"use strict";var ut;Object.keys||(X=Object.prototype.hasOwnProperty,Ge=Object.prototype.toString,nt=Xe(),We=Object.prototype.propertyIsEnumerable,ot=!We.call({toString:null},"toString"),at=We.call(function(){},"prototype"),G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Z=function(e){var r=e.constructor;return r&&r.prototype===e},it={$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},st=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!it["$"+e]&&X.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z(window[e])}catch{return!0}}catch{return!0}return!1}(),lt=function(e){if(typeof window>"u"||!st)return Z(e);try{return Z(e)}catch{return!1}},ut=function(r){var t=r!==null&&typeof r=="object",n=Ge.call(r)==="[object Function]",o=nt(r),a=t&&Ge.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var l=at&&n;if(a&&r.length>0&&!X.call(r,0))for(var y=0;y<r.length;++y)i.push(String(y));if(o&&r.length>0)for(var h=0;h<r.length;++h)i.push(String(h));else for(var d in r)!(l&&d==="prototype")&&X.call(r,d)&&i.push(String(d));if(ot)for(var f=lt(r),u=0;u<G.length;++u)!(f&&G[u]==="constructor")&&X.call(r,G[u])&&i.push(G[u]);return i});var X,Ge,nt,We,ot,at,G,Z,it,st,lt;pt.exports=ut});var Ke=p((vl,mt)=>{"use strict";var Uo=Array.prototype.slice,Jo=Xe(),dt=Object.keys,ee=dt?function(r){return dt(r)}:ct(),ft=Object.keys;ee.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Jo(n)?ft(Uo.call(n)):ft(n)})}else Object.keys=ee;return Object.keys||ee};mt.exports=ee});var ze=p((xl,yt)=>{"use strict";yt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},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;r[t]=o;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(r,t);if(i.value!==o||i.enumerable!==!0)return!1}return!0}});var vt=p((bl,ht)=>{"use strict";var gt=typeof Symbol<"u"&&Symbol,Do=ze();ht.exports=function(){return typeof gt!="function"||typeof Symbol!="function"||typeof gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Do()}});var Et=p((El,bt)=>{"use strict";var xt={foo:{}},Vo=Object;bt.exports=function(){return{__proto__:xt}.foo===xt.foo&&!({__proto__:null}instanceof Vo)}});var wt=p((Sl,St)=>{"use strict";var Bo="Function.prototype.bind called on incompatible ",Qe=Array.prototype.slice,Ho=Object.prototype.toString,Xo="[object Function]";St.exports=function(r){var t=this;if(typeof t!="function"||Ho.call(t)!==Xo)throw new TypeError(Bo+t);for(var n=Qe.call(arguments,1),o,a=function(){if(this instanceof o){var d=t.apply(this,n.concat(Qe.call(arguments)));return Object(d)===d?d:this}else return t.apply(r,n.concat(Qe.call(arguments)))},i=Math.max(0,t.length-n.length),l=[],y=0;y<i;y++)l.push("$"+y);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var h=function(){};h.prototype=t.prototype,o.prototype=new h,h.prototype=null}return o}});var re=p((wl,At)=>{"use strict";var Go=wt();At.exports=Function.prototype.bind||Go});var Ot=p((Al,Pt)=>{"use strict";var Wo=re();Pt.exports=Wo.call(Function.call,Object.prototype.hasOwnProperty)});var oe=p((Pl,$t)=>{"use strict";var m,N=SyntaxError,jt=Function,F=TypeError,Ye=function(e){try{return jt('"use strict"; return ('+e+").constructor;")()}catch{}},T=Object.getOwnPropertyDescriptor;if(T)try{T({},"")}catch{T=null}var Ze=function(){throw new F},Ko=T?function(){try{return arguments.callee,Ze}catch{try{return T(arguments,"callee").get}catch{return Ze}}}():Ze,I=vt()(),zo=Et()(),A=Object.getPrototypeOf||(zo?function(e){return e.__proto__}:null),C={},Qo=typeof Uint8Array>"u"||!A?m:A(Uint8Array),j={"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":I&&A?A([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":jt,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&A?A(A([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!I||!A?m:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!I||!A?m:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&A?A(""[Symbol.iterator]()):m,"%Symbol%":I?Symbol:m,"%SyntaxError%":N,"%ThrowTypeError%":Ko,"%TypedArray%":Qo,"%TypeError%":F,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(A)try{null.error}catch(e){_t=A(A(e)),j["%Error.prototype%"]=_t}var _t,Yo=function e(r){var t;if(r==="%AsyncFunction%")t=Ye("async function () {}");else if(r==="%GeneratorFunction%")t=Ye("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Ye("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&A&&(t=A(o.prototype))}return j[r]=t,t},kt={"%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"]},W=re(),te=Ot(),Zo=W.call(Function.call,Array.prototype.concat),ea=W.call(Function.apply,Array.prototype.splice),Tt=W.call(Function.call,String.prototype.replace),ne=W.call(Function.call,String.prototype.slice),ra=W.call(Function.call,RegExp.prototype.exec),ta=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,na=/\\(\\)?/g,oa=function(r){var t=ne(r,0,1),n=ne(r,-1);if(t==="%"&&n!=="%")throw new N("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new N("invalid intrinsic syntax, expected opening `%`");var o=[];return Tt(r,ta,function(a,i,l,y){o[o.length]=l?Tt(y,na,"$1"):i||a}),o},aa=function(r,t){var n=r,o;if(te(kt,n)&&(o=kt[n],n="%"+o[0]+"%"),te(j,n)){var a=j[n];if(a===C&&(a=Yo(n)),typeof a>"u"&&!t)throw new F("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new N("intrinsic "+r+" does not exist!")};$t.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new F('"allowMissing" argument must be a boolean');if(ra(/^%?[^%]*%?$/,r)===null)throw new N("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=oa(r),o=n.length>0?n[0]:"",a=aa("%"+o+"%",t),i=a.name,l=a.value,y=!1,h=a.alias;h&&(o=h[0],ea(n,Zo([0,1],h)));for(var d=1,f=!0;d<n.length;d+=1){var u=n[d],v=ne(u,0,1),s=ne(u,-1);if((v==='"'||v==="'"||v==="`"||s==='"'||s==="'"||s==="`")&&v!==s)throw new N("property names with quotes must have matching quotes");if((u==="constructor"||!f)&&(y=!0),o+="."+u,i="%"+o+"%",te(j,i))l=j[i];else if(l!=null){if(!(u in l)){if(!t)throw new F("base intrinsic for "+r+" exists, but the property is not available.");return}if(T&&d+1>=n.length){var c=T(l,u);f=!!c,f&&"get"in c&&!("originalValue"in c.get)?l=c.get:l=l[u]}else f=te(l,u),l=l[u];f&&!y&&(j[i]=l)}}return l}});var It=p((Ol,qt)=>{"use strict";var ia=oe(),er=ia("%Object.defineProperty%",!0),rr=function(){if(er)try{return er({},"a",{value:1}),!0}catch{return!1}return!1};rr.hasArrayLengthDefineBug=function(){if(!rr())return null;try{return er([],"length",{value:1}).length!==1}catch{return!0}};qt.exports=rr});var tr=p((_l,Mt)=>{"use strict";var sa=Ke(),la=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ua=Object.prototype.toString,pa=Array.prototype.concat,Ct=Object.defineProperty,ca=function(e){return typeof e=="function"&&ua.call(e)==="[object Function]"},da=It()(),Ft=Ct&&da,fa=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!ca(n)||!n())return}Ft?Ct(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Nt=function(e,r){var t=arguments.length>2?arguments[2]:{},n=sa(r);la&&(n=pa.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)fa(e,n[o],r[n[o]],t[n[o]])};Nt.supportsDescriptors=!!Ft;Mt.exports=Nt});var or=p((kl,ae)=>{"use strict";var nr=re(),M=oe(),Ut=M("%Function.prototype.apply%"),Jt=M("%Function.prototype.call%"),Dt=M("%Reflect.apply%",!0)||nr.call(Jt,Ut),Rt=M("%Object.getOwnPropertyDescriptor%",!0),$=M("%Object.defineProperty%",!0),ma=M("%Math.max%");if($)try{$({},"a",{value:1})}catch{$=null}ae.exports=function(r){var t=Dt(nr,Jt,arguments);if(Rt&&$){var n=Rt(t,"length");n.configurable&&$(t,"length",{value:1+ma(0,r.length-(arguments.length-1))})}return t};var Lt=function(){return Dt(nr,Ut,arguments)};$?$(ae.exports,"apply",{value:Lt}):ae.exports.apply=Lt});var Xt=p((Tl,Ht)=>{"use strict";var Vt=oe(),Bt=or(),ya=Bt(Vt("String.prototype.indexOf"));Ht.exports=function(r,t){var n=Vt(r,!!t);return typeof n=="function"&&ya(r,".prototype.")>-1?Bt(n):n}});var ar=p((jl,Qt)=>{"use strict";var ga=Ke(),Kt=ze()(),zt=Xt(),Gt=Object,ha=zt("Array.prototype.push"),Wt=zt("Object.prototype.propertyIsEnumerable"),va=Kt?Object.getOwnPropertySymbols:null;Qt.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=Gt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Gt(arguments[o]),i=ga(a),l=Kt&&(Object.getOwnPropertySymbols||va);if(l)for(var y=l(a),h=0;h<y.length;++h){var d=y[h];Wt(a,d)&&ha(i,d)}for(var f=0;f<i.length;++f){var u=i[f];if(Wt(a,u)){var v=a[u];n[u]=v}}}return n}});var sr=p(($l,Yt)=>{"use strict";var ir=ar(),xa=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},n=0;n<r.length;++n)t[r[n]]=r[n];var o=Object.assign({},t),a="";for(var i in o)a+=i;return e!==a},ba=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};Yt.exports=function(){return!Object.assign||xa()||ba()?ir:Object.assign}});var en=p((ql,Zt)=>{"use strict";var Ea=tr(),Sa=sr();Zt.exports=function(){var r=Sa();return Ea(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var on=p((Il,nn)=>{"use strict";var wa=tr(),Aa=or(),Pa=ar(),rn=sr(),Oa=en(),_a=Aa.apply(rn()),tn=function(r,t){return _a(Object,arguments)};wa(tn,{getPolyfill:rn,implementation:Pa,shim:Oa});nn.exports=tn});var sn=p(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var ka=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};lr.default=an;var Ta=on(),ja=$a(Ta);function $a(e){return e&&e.__esModule?e:{default:e}}function an(e){var r=w().default;return e.properties.reduce(function(t,n){var o=ka({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,ja.default)(o,an(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var ln=p(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.default=qa;function qa(){return new Object}});var un=p(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=Ia;function Ia(e){var r=w().default,t=e.operator,n=e.argument,o=e.prefix,a=r(n);switch(t){case"++":return o?++a:a++;case"--":return o?--a:a--;default:return}}});var pn=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=Ca;function Ca(e){var r=w().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var cn=p(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=Fa;function Fa(e){var r=w().default,t=r(e.callee),n=e.object===null?r(e.callee.object):r(e.object);return e.object&&e.object.property?n+"."+t+".bind("+n+")":t+".bind("+n+")"}});var dn=p(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Na;function Na(){}});var fn=p(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Ma;function Ma(e){var r=w().default;return r(e.expression)}});var mn=p(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ra;function Ra(e){var r=w().default;return e.expressions.map(function(t){return r(t)})}});var gn=p(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=_;var La=Ve().default;function yn(e,r,t){return t.computed?t.optional?e+"?.["+r+"]":e+"["+r+"]":t.optional?e+"?."+r:e+"."+r}function _(e){var r="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(e.type==="Identifier"){var t=e.name;return t}if(e.type==="Literal")return e.value;if(e.type==="TSAsExpression")return _(e.expression);if(e.type==="ThisExpression")return La();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return _(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+_(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return yn(_(e.object),_(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=yn(_(e.object),_(e.property),e);return"("+a+")"}}if(e.expression)for(var i=e.expression;i;){if(i.type==="Identifier")return console.error(r),i.name;var l=i;i=l.expression}return console.error(r),""}});var hn=p(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.default=Ua;function Ua(e){var r=w().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var w=p(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var Ja=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};ie.default=Vi;ie.extractLiteral=Bi;var Da=Ae(),Va=x(Da),Ba=Oe(),Ha=x(Ba),Xa=Jr(),Ga=x(Xa),Wa=ke(),Ka=x(Wa),za=Vr(),Qa=x(za),Ya=Br(),Za=x(Ya),ei=qe(),ri=x(ei),ti=Hr(),vn=x(ti),ni=Xr(),oi=x(ni),ai=Gr(),ii=x(ai),si=Wr(),li=x(si),ui=Kr(),pi=x(ui),ci=zr(),di=x(ci),fi=Qr(),mi=x(fi),yi=Yr(),gi=x(yi),hi=Ve(),vi=x(hi),xi=Zr(),bi=x(xi),Ei=et(),Si=x(Ei),wi=sn(),Ai=x(wi),Pi=ln(),Oi=x(Pi),_i=un(),ki=x(_i),Ti=pn(),ji=x(Ti),$i=cn(),qi=x($i),Ii=dn(),Ci=x(Ii),Fi=fn(),Ni=x(Fi),Mi=mn(),Ri=x(Mi),Li=gn(),Ui=x(Li),Ji=hn(),Di=x(Ji);function x(e){return e&&e.__esModule?e:{default:e}}var k={Identifier:Qa.default,Literal:Va.default,JSXElement:Ha.default,JSXFragment:Ga.default,JSXText:Ka.default,TaggedTemplateExpression:Za.default,TemplateLiteral:ri.default,ArrowFunctionExpression:vn.default,FunctionExpression:vn.default,LogicalExpression:oi.default,MemberExpression:ii.default,ChainExpression:li.default,OptionalCallExpression:pi.default,OptionalMemberExpression:di.default,CallExpression:mi.default,UnaryExpression:gi.default,ThisExpression:vi.default,ConditionalExpression:bi.default,BinaryExpression:Si.default,ObjectExpression:Ai.default,NewExpression:Oi.default,UpdateExpression:ki.default,ArrayExpression:ji.default,BindExpression:qi.default,SpreadElement:Ci.default,TypeCastExpression:Ni.default,SequenceExpression:Ri.default,TSNonNullExpression:Ui.default,AssignmentExpression:Di.default},S=function(){return null},bn=function(r){return"The prop value with an expression type of "+r+" could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately."};function Vi(e){var r=void 0;typeof e.expression!="boolean"&&e.expression?r=e.expression:r=e;var t=r,n=t.type;for(r.object&&r.object.type==="TSNonNullExpression"&&(n="TSNonNullExpression");n==="TSAsExpression";){var o=r;if(n=o.type,r.expression){var a=r;r=a.expression}}return k[n]===void 0?(console.error(bn(n)),null):k[n](r)}var xn=Ja({},k,{Literal:function(r){var t=k.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=k.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:S,JSXFragment:S,JSXText:S,ArrowFunctionExpression:S,FunctionExpression:S,LogicalExpression:S,MemberExpression:S,OptionalCallExpression:S,OptionalMemberExpression:S,CallExpression:S,UnaryExpression:function(r){var t=k.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=k.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:S,ConditionalExpression:S,BinaryExpression:S,ObjectExpression:S,NewExpression:S,ArrayExpression:function(r){var t=k.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:S,SpreadElement:S,TSNonNullExpression:S,TSAsExpression:S,TypeCastExpression:S,SequenceExpression:S,ChainExpression:S});function Bi(e){var r=e.expression||e,t=r.type;return xn[t]===void 0?(console.error(bn(t)),null):xn[t](r)}});var Y=p(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var Hi=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};le.default=es;le.getLiteralValue=rs;var Xi=Ae(),Gi=se(Xi),Wi=Oe(),Ki=se(Wi),zi=ke(),Qi=se(zi),En=w(),Yi=se(En);function se(e){return e&&e.__esModule?e:{default:e}}var Sn={Literal:Gi.default,JSXElement:Ki.default,JSXExpressionContainer:Yi.default,JSXText:Qi.default},Zi=Hi({},Sn,{JSXElement:function(){return null},JSXExpressionContainer:En.extractLiteral});function es(e){return Sn[e.type](e)}function rs(e){return Zi[e.type](e)}});var Pn=p(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.default=os;ue.getLiteralPropValue=as;var wn=Y(),ts=ns(wn);function ns(e){return e&&e.__esModule?e:{default:e}}var An=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function os(e){return An(e,ts.default)}function as(e){return An(e,wn.getLiteralValue)}});var pe=p((Gl,kn)=>{"use strict";var vr=Fr(),is=R(vr),ss=Mr(),ls=R(ss),On=Rr(),us=R(On),ps=Ur(),cs=R(ps),_n=Pn(),ds=R(_n),fs=z(),ms=R(fs);function R(e){return e&&e.__esModule?e:{default:e}}kn.exports={hasProp:is.default,hasAnyProp:vr.hasAnyProp,hasEveryProp:vr.hasEveryProp,elementType:ls.default,eventHandlers:us.default,eventHandlersByType:On.eventHandlersByType,getProp:cs.default,getPropValue:ds.default,getLiteralPropValue:_n.getLiteralPropValue,propName:ms.default}});var Ss={};Vn(Ss,{configs:()=>Es,rules:()=>bs});module.exports=Bn(Ss);var ye=require("@typescript-eslint/utils"),P=D(require("typescript"));var _r=D(Or(),1);function de(e){let r=(0,_r.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function fe(e,r=1,t={}){let{indent:n=" ",includeEmptyLines:o=!1}=t;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(r<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${r}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(r===0)return e;let a=o?/^/gm:/^(?!\s*$)/gm;return e.replace(a,n.repeat(r))}function me(e,r=0,t={}){return fe(de(e),r,t)}var Hn=ye.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),kr=Hn({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:"error",url:"https://qwik.builder.io/docs/advanced/eslint/#valid-lexical-scope"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:`Seems like you are referencing "{{varName}}" inside a different scope ({{dollarName}}), when this happens, Qwik needs to serialize the value, however {{reason}}. | ||
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`,invalidJsxDollar:`Seems like you are using "{{varName}}" as an event handler, however functions are not serializable. | ||
@@ -7,12 +7,160 @@ Did you mean to wrap it in \`$()\`? | ||
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`,mutableIdentifier:`Seems like you are mutating the value of ("{{varName}}"), but this is not possible when captured by the ({{dollarName}}) closure, instead create an object and mutate one of its properties. | ||
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var y;let t={allowAny:((y=e.options[0])==null?void 0:y.allowAny)??!0},n=e.getSourceCode().scopeManager,o=we.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,d=[];function v(f){f.references.forEach(p=>{var c,E;let h=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(h&&u){let x=(E=h.defs.at(0))==null?void 0:E.type;if(x==="Type"||x==="ImportBinding")return;let S=p.from,T;for(;S&&(T=s.get(S),!T);)S=S.upper;if(S&&T){let G=u.type;if(G==="global"||G==="module")return;let z=p.identifier,to=a.get(z),K=u;for(;K&&!s.has(K);)K=K.upper;if(K!==S){z.parent&&z.parent.type==="AssignmentExpression"&&z.parent.left===z&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:T}});let Mr=co(e,i,to,p.identifier,t);Mr&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:T,reason:fo(Mr)}})}}}}),f.childScopes.forEach(v)}return{CallExpression(f){if(f.callee.type==="Identifier"&&f.callee.name.endsWith("$")){let p=f.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let h=n.acquire(p);h&&s.set(h,f.callee.name)}}},JSXAttribute(f){let p=f.name,h=p.type==="JSXIdentifier"?p.name:p.name.name;if(h.endsWith("$")){let u=f.value;if(u&&u.type==="JSXExpressionContainer"){let c=n.acquire(u.expression);if(c)s.set(c,h);else if(u.expression.type==="Identifier"){let E=a.get(u.expression),x=i.getTypeAtLocation(E);if(!Br(x))if(x.isUnionOrIntersection())x.types.every(S=>S.symbol?S.symbol.name==="PropFnInterface":!!(S.flags&(O.default.TypeFlags.Undefined|O.default.TypeFlags.Null)))||e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`Fix the type of ${u.expression.name} to be PropFunction`}});else{if(x.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $( | ||
${Xr(x.symbol,e.getSourceCode().text)} | ||
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var d;let t={allowAny:((d=e.options[0])==null?void 0:d.allowAny)??!0},n=e.getSourceCode().scopeManager,o=ye.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),l=new Map,y=[];function h(f){f.references.forEach(u=>{var c,E;let v=u.resolved,s=(c=u.resolved)==null?void 0:c.scope;if(v&&s){let g=(E=v.defs.at(0))==null?void 0:E.type;if(g==="Type"||g==="ImportBinding")return;let b=u.from,O;for(;b&&(O=l.get(b),!O);)b=b.upper;if(b&&O){let L=s.type;if(L==="global"||L==="module")return;let U=u.identifier,Mn=a.get(U),J=s;for(;J&&!l.has(J);)J=J.upper;if(J!==b){U.parent&&U.parent.type==="AssignmentExpression"&&U.parent.left===U&&e.report({messageId:"mutableIdentifier",node:u.identifier,data:{varName:u.identifier.name,dollarName:O}});let wr=Xn(e,i,Mn,u.identifier,t);wr&&e.report({messageId:"referencesOutside",node:u.identifier,data:{varName:u.identifier.name,dollarName:O,reason:Gn(wr)}})}}}}),f.childScopes.forEach(h)}return{CallExpression(f){if(f.callee.type==="Identifier"&&f.callee.name.endsWith("$")){let u=f.arguments.at(0);if(u&&u.type==="ArrowFunctionExpression"){let v=n.acquire(u);v&&l.set(v,f.callee.name)}}},JSXAttribute(f){let u=f.name,v=u.type==="JSXIdentifier"?u.name:u.name.name;if(v.endsWith("$")){let s=f.value;if(s&&s.type==="JSXExpressionContainer"){let c=n.acquire(s.expression);if(c)l.set(c,v);else if(s.expression.type==="Identifier"){let E=a.get(s.expression),g=i.getTypeAtLocation(E);if(!Tr(g))if(g.isUnionOrIntersection())g.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.flags&(P.default.TypeFlags.Undefined|P.default.TypeFlags.Null)))||e.report({messageId:"invalidJsxDollar",node:s.expression,data:{varName:s.expression.name,solution:`Fix the type of ${s.expression.name} to be PropFunction`}});else{if(g.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:s.expression,data:{varName:s.expression.name,solution:`const ${s.expression.name} = $( | ||
${jr(g.symbol,e.getSourceCode().text)} | ||
); | ||
`}})}}}}},Program(f){let p=a.get(f),h=i.getSymbolAtLocation(p);h&&(d=i.getExportsOfModule(h))},"Program:exit"(){v(n.globalScope)}}}});function co(e,r,t,n,o){let a=r.getTypeAtLocation(t);return yo(e,r,a,t,n,o,new Set)}function fo(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function yo(e,r,t,n,o,a,i){let s=Y(e,r,t,n,a,0,i);if(s){let d=s.location;return d&&(s.location=`${o.name}.${d}`),s}return s}function Y(e,r,t,n,o,a,i){if(i.has(t)||(i.add(t),t.getProperty("__no_serialize__")))return;if(t.flags&O.default.TypeFlags.Unknown)return{type:t,typeStr:r.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type for specific"};let d=t.flags&O.default.TypeFlags.Any;if(!o.allowAny&&d)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&O.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&O.default.TypeFlags.Enum)return{type:t,typeStr:r.typeToString(t),reason:"is an enum, use an string or a number instead"};if(Br(t))return;if(t.getCallSignatures().length>0){if(t.symbol.name==="PropFnInterface")return;let u="is a function, which is not serializable";if(a===0&&O.default.isIdentifier(n)){let c=`const ${n.text} = $( | ||
${Xr(t.symbol,e.getSourceCode().text)} | ||
);`;u+=`. | ||
`}})}}}}},Program(f){let u=a.get(f),v=i.getSymbolAtLocation(u);v&&(y=i.getExportsOfModule(v))},"Program:exit"(){h(n.globalScope)}}}});function Xn(e,r,t,n,o){let a=r.getTypeAtLocation(t);return Wn(e,r,a,t,n,o,new Set)}function Gn(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Wn(e,r,t,n,o,a,i){let l=V(e,r,t,n,a,0,i);if(l){let y=l.location;return y&&(l.location=`${o.name}.${y}`),l}return l}function V(e,r,t,n,o,a,i){if(i.has(t)||(i.add(t),t.getProperty("__no_serialize__")))return;if(t.flags&P.default.TypeFlags.Unknown)return{type:t,typeStr:r.typeToString(t),reason:"is unknown, which could be serializable or not, please make the type for specific"};let y=t.flags&P.default.TypeFlags.Any;if(!o.allowAny&&y)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&P.default.TypeFlags.ESSymbolLike)return{type:t,typeStr:r.typeToString(t),reason:"is Symbol, which is not serializable"};if(t.flags&P.default.TypeFlags.Enum)return{type:t,typeStr:r.typeToString(t),reason:"is an enum, use an string or a number instead"};if(Tr(t))return;if(t.getCallSignatures().length>0){if(t.symbol.name==="PropFnInterface")return;let s="is a function, which is not serializable";if(a===0&&P.default.isIdentifier(n)){let c=`const ${n.text} = $( | ||
${jr(t.symbol,e.getSourceCode().text)} | ||
);`;s+=`. | ||
Did you mean to wrap it in \`$()\`? | ||
${c} | ||
`}return{type:t,typeStr:r.typeToString(t),reason:u}}if(t.isUnion()){for(let h of t.types){let u=Y(e,r,h,n,o,a+1,i);if(u)return u}return}if((t.flags&O.default.TypeFlags.Object)!==0){let h=go(t,r);if(h)return Y(e,r,h,n,o,a+1,i);let u=vo(t,r);if(u){for(let x of u){let S=Y(e,r,x,n,o,a+1,i);if(S)return S}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||ho[c])return;if(t.isClass())return{type:t,typeStr:r.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 x=r.getTypeOfSymbolAtLocation(E,n);if(x.isClass())return{type:x,typeStr:r.typeToString(x),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let x of t.getProperties()){let S=mo(e,r,x,n,o,a+1,i);if(S){let T=S.location;return S.location=`${x.name}${T?`.${T}`:""}`,S}}}}function mo(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return Y(e,r,s,n,o,a,i)}function go(e,r){return r.getElementTypeOfArrayType(e)}function vo(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function Br(e){return!!(e.flags&O.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function Xr(e,r){if(e.declarations&&e.declarations.length>0){let t=e.declarations[0],n=r.slice(t.pos,t.end).replace(/^\s*$/gm,"");return Pe(n,2)}return""}var ho={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0};var Wr={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{"use-after-await":"Calling use* methods after await is not safe.","use-wrong-function":"Calling use* methods in wrong function.","use-not-root":"Calling use* methods in non-root component."}},create(e){if(e.getSourceCode().getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=[];return{ArrowFunctionExpression(){t.push({await:!1})},"ArrowFunctionExpression:exit"(n){t.pop()},AwaitExpression(){let n=t[t.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){var i,s;let o=t[t.length-1];o&&o.await&&e.report({node:n,messageId:"use-after-await"});let a=n;for(;a=a.parent;)switch(a.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(a.parent.type==="VariableDeclarator"&&((i=a.parent.id)==null?void 0:i.type)==="Identifier"&&a.parent.id.name.startsWith("use")||a.parent.type==="CallExpression"&&a.parent.callee.type==="Identifier"&&a.parent.callee.name==="component$")return;e.report({node:n,messageId:"use-wrong-function"});return;case"FunctionDeclaration":(s=a.id)!=null&&s.name.startsWith("use")||e.report({node:n,messageId:"use-wrong-function"});return;default:e.report({node:n,messageId:"use-not-root"});return}}}}};var Gr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},xo={...Gr,action$:!0,globalAction$:!0},zr={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://github.com/BuilderIO/qwik"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the {{routesDir}} directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/docs/route-loader/',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(e){var d,v;let r=((v=(d=e.options)==null?void 0:d[0])==null?void 0:v.routesDir)??"src/routes",t=bo(e.getFilename()),n=/\/layout(|!|-.+)\.tsx?$/.test(t),o=/\/index(|!|@.+)\.tsx?$/.test(t),a=/\/plugin(|@.+)\.tsx?$/.test(t),s=new RegExp(`/${r}/`).test(t)&&(o||n||a);return{CallExpression(y){if(y.callee.type!=="Identifier")return;let f=y.callee.name;if(!xo[f])return;if(!s&&Gr[f]){e.report({node:y.callee,messageId:"invalidLoaderLocation",data:{routesDir:r,fnName:f,path:t}});return}let p=y.parent;if(p.type!=="VariableDeclarator"){e.report({node:y.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(p.id.type!=="Identifier"){e.report({node:y.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(p.id.name)){let h="use"+p.id.name[0].toUpperCase()+p.id.name.slice(1);e.report({node:p.id,messageId:"wrongName",data:{fnName:f,id:p.id.name,fixed:h}});return}if(p.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:p.id,messageId:"missingExport",data:{fnName:f,id:p.id.name}});return}if(y.arguments.length>0&&y.arguments[0].type==="Identifier"){e.report({node:y.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:p.id.name,arg:y.arguments[0].name}});return}}}}};function bo(e){let r=/^\\\\\?\\/.test(e),t=/[^\u0000-\u0080]+/.test(e);return r||t||(e=e.replace(/\\/g,"/"),e.endsWith("/")&&(e=e.slice(0,e.length-1))),e}var Rr=H(be()),Bs=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var zn={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props."},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(e){return e.getSourceCode().getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of Bs){let a=Rr.default.getProp(t.attributes,n);if(a){let i=Rr.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:s=>s.replaceText(a.name,o);e.report({node:a,messageId:"prefer",data:{from:n,to:o},fix:i})}}}}}};var Nr=H(be()),Kn={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."},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(e){var n;if(e.getSourceCode().getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=e.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var a,i;if(!(["class","className"].indexOf(Nr.default.propName(o))===-1||Nr.default.hasProp((a=o.parent)==null?void 0:a.attributes,"classlist",{ignoreCase:!1}))&&((i=o.value)==null?void 0:i.type)==="JSXExpressionContainer"){let s=o.value.expression;s.type==="CallExpression"&&s.callee.type==="Identifier"&&t.indexOf(s.callee.name)!==-1&&s.arguments.length===1&&s.arguments[0].type==="ObjectExpression"&&e.report({node:o,messageId:"preferClasslist",data:{classnames:s.callee.name},fix:d=>{let v=o.range,y=s.arguments[0].range;return[d.replaceTextRange([v[0],y[0]],"classlist={"),d.replaceTextRange([y[1],v[1]],"}")]}})}}}}};var Hn=require("@typescript-eslint/utils"),{getStaticValue:Xs}=Hn.ASTUtils,Ws=/^[\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,Yn={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://github.com/solidjs-community/eslint-plugin-solid/blob/main/docs/jsx-no-script-url.md"},schema:[],messages:{noJSURL:"For security, don't use javascript: URLs. Use event handlers instead if you can."}},create(e){return{JSXAttribute(r){if(r.name.type==="JSXIdentifier"&&r.value){let t=Xs(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&Ws.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}};var Ur=H(be());function kr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var Se={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},Gs={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"},Qn={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0},messages:Gs,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:Se.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:Se.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:Se.warnOnDuplicates}},additionalProperties:!1}]},create(e){if(e.getSourceCode().getAllComments().some(u=>u.value.includes("@jsxImportSource")))return{};let t=Object.assign({},Se,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(u){u.type==="JSXElement"&&!Ur.default.hasProp(u.openingElement.attributes,"key")?e.report({node:u,messageId:"missingIterKey"}):n&&u.type==="JSXFragment"&&e.report({node:u,messageId:"missingIterKeyUsePrag"})}function s(u,c=[]){return u.type==="IfStatement"?(u.consequent&&s(u.consequent,c),u.alternate&&s(u.alternate,c)):Array.isArray(u.body)&&u.body.forEach(E=>{E.type==="IfStatement"&&s(E,c),E.type==="ReturnStatement"&&c.push(E)}),c}function d(u){let c=!1;return u.some(E=>E.type==="JSXSpreadAttribute"?(c=!0,!1):E.type!=="JSXAttribute"?!1:c&&Ur.default.propName(E)==="key")}function v(u){kr(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function y(u){let c=u&&u.type==="ArrowFunctionExpression",E=x=>x&&(x.type==="JSXElement"||x.type==="JSXFragment");c&&E(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(E(u.body.consequent)&&i(u.body.consequent),E(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&E(u.body.right)&&i(u.body.right)}let f=`:matches( | ||
`}return{type:t,typeStr:r.typeToString(t),reason:s}}if(t.isUnion()){for(let v of t.types){let s=V(e,r,v,n,o,a+1,i);if(s)return s}return}if((t.flags&P.default.TypeFlags.Object)!==0){let v=zn(t,r);if(v)return V(e,r,v,n,o,a+1,i);let s=Qn(t,r);if(s){for(let g of s){let b=V(e,r,g,n,o,a+1,i);if(b)return b}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||Yn[c])return;if(t.isClass())return{type:t,typeStr:r.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 g=r.getTypeOfSymbolAtLocation(E,n);if(g.isClass())return{type:g,typeStr:r.typeToString(g),reason:"is a class constructor, which is not serializable"}}if(!c.startsWith("__")&&t.symbol.valueDeclaration)return{type:t,typeStr:r.typeToString(t),reason:`is an instance of the "${t.symbol.name}" class, which is not serializable`};for(let g of t.getProperties()){let b=Kn(e,r,g,n,o,a+1,i);if(b){let O=b.location;return b.location=`${g.name}${O?`.${O}`:""}`,b}}}}function Kn(e,r,t,n,o,a,i){let l=r.getTypeOfSymbolAtLocation(t,n);return V(e,r,l,n,o,a,i)}function zn(e,r){return r.getElementTypeOfArrayType(e)}function Qn(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function Tr(e){return!!(e.flags&P.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function jr(e,r){if(e.declarations&&e.declarations.length>0){let t=e.declarations[0],n=r.slice(t.pos,t.end).replace(/^\s*$/gm,"");return me(n,2)}return""}var Yn={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0},$s=` | ||
import { component$, useTask$, $ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
const print = $((msg: string) => { | ||
console.log(msg); | ||
}); | ||
useTask$(() => { | ||
print("Hello World"); | ||
}); | ||
return <h1>Hello</h1>; | ||
});`.trim(),qs=` | ||
import { component$, useTask$ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
const print = (msg: string) => { | ||
console.log(msg); | ||
}; | ||
useTask$(() => { | ||
print("Hello World"); | ||
}); | ||
return <h1>Hello</h1>; | ||
});`.trim(),Is=` | ||
import { component$, $ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
const click = $(() => console.log()); | ||
return ( | ||
<button onClick$={click}>log it</button> | ||
); | ||
});`.trim(),Cs=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
const click = () => console.log(); | ||
return ( | ||
<button onClick$={click}>log it</button> | ||
); | ||
});`.trim(),Fs=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
const person = { name: 'Bob' }; | ||
return ( | ||
<button onClick$={() => { | ||
person.name = 'Alice'; | ||
}}> | ||
{person.name} | ||
</button> | ||
); | ||
});`.trim(),Ns=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const HelloWorld = component$(() => { | ||
let personName = 'Bob'; | ||
return ( | ||
<button onClick$={() => { | ||
personName = 'Alice'; | ||
}}> | ||
{personName} | ||
</button> | ||
); | ||
});`.trim();var $r={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://qwik.builder.io/docs/advanced/eslint/#use-method-usage"},messages:{"use-after-await":"Calling use* methods after await is not safe.","use-wrong-function":"Calling use* methods in wrong function.","use-not-root":"Calling use* methods in non-root component."}},create(e){if(e.getSourceCode().getAllComments().some(n=>n.value.includes("@jsxImportSource")))return{};let t=[];return{ArrowFunctionExpression(){t.push({await:!1})},"ArrowFunctionExpression:exit"(n){t.pop()},AwaitExpression(){let n=t[t.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use[A-Z]/]"(n){var i,l;let o=t[t.length-1];o&&o.await&&e.report({node:n,messageId:"use-after-await"});let a=n;for(;a=a.parent;)switch(a.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(a.parent.type==="VariableDeclarator"&&((i=a.parent.id)==null?void 0:i.type)==="Identifier"&&a.parent.id.name.startsWith("use")||a.parent.type==="CallExpression"&&a.parent.callee.type==="Identifier"&&a.parent.callee.name==="component$")return;e.report({node:n,messageId:"use-wrong-function"});return;case"FunctionDeclaration":(l=a.id)!=null&&l.name.startsWith("use")||e.report({node:n,messageId:"use-wrong-function"});return;default:e.report({node:n,messageId:"use-not-root"});return}}}}},Rs=` | ||
export const Counter = component$(() => { | ||
const count = useSignal(0); | ||
}); | ||
`.trim(),Ls=` | ||
export const Counter = (() => { | ||
const count = useSignal(0); | ||
}); | ||
`.trim(),Us=` | ||
export const Counter = (() => { | ||
const count = useSignal(0); | ||
}); | ||
`.trim();var qr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Zn={...qr,action$:!0,globalAction$:!0},Ir={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://qwik.builder.io/docs/advanced/eslint/#loader-location"},schema:[{type:"object",properties:{routesDir:{type:"string",default:"src/routes"}},additionalProperties:!1}],messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the {{routesDir}} directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/docs/route-loader/',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(e){var y,h;let r=((h=(y=e.options)==null?void 0:y[0])==null?void 0:h.routesDir)??"src/routes",t=eo(e.getFilename()),n=/\/layout(|!|-.+)\.tsx?$/.test(t),o=/\/index(|!|@.+)\.tsx?$/.test(t),a=/\/plugin(|@.+)\.tsx?$/.test(t),l=new RegExp(`/${r}/`).test(t)&&(o||n||a);return{CallExpression(d){if(d.callee.type!=="Identifier")return;let f=d.callee.name;if(!Zn[f])return;if(!l&&qr[f]){e.report({node:d.callee,messageId:"invalidLoaderLocation",data:{routesDir:r,fnName:f,path:t}});return}let u=d.parent;if(u.type!=="VariableDeclarator"){e.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(u.id.type!=="Identifier"){e.report({node:d.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(u.id.name)){let v="use"+u.id.name[0].toUpperCase()+u.id.name.slice(1);e.report({node:u.id,messageId:"wrongName",data:{fnName:f,id:u.id.name,fixed:v}});return}if(u.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:u.id,messageId:"missingExport",data:{fnName:f,id:u.id.name}});return}if(d.arguments.length>0&&d.arguments[0].type==="Identifier"){e.report({node:d.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:u.id.name,arg:d.arguments[0].name}});return}}}}};function eo(e){let r=/^\\\\\?\\/.test(e),t=/[^\u0000-\u0080]+/.test(e);return r||t||(e=e.replace(/\\/g,"/"),e.endsWith("/")&&(e=e.slice(0,e.length-1))),e}var Ds=` | ||
import { routeLoader$ } from '@builder.io/qwik-city'; | ||
export const useProductDetails = routeLoader$(async (requestEvent) => { | ||
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`); | ||
const product = await res.json(); | ||
return product as Product; | ||
});`.trim();var Vs=` | ||
import { routeLoader$ } from '@builder.io/qwik-city'; | ||
const useProductDetails = routeLoader$(async (requestEvent) => { | ||
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`); | ||
const product = await res.json(); | ||
return product as Product; | ||
});`.trim();var Bs=` | ||
import { routeLoader$ } from '@builder.io/qwik-city'; | ||
export const getProductDetails = routeLoader$(async (requestEvent) => { | ||
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`); | ||
const product = await res.json(); | ||
return product as Product; | ||
});`.trim();var Hs=` | ||
import { routeLoader$ } from '@builder.io/qwik-city'; | ||
async function fetcher() { | ||
const res = await fetch(\`https://.../products/\${requestEvent.params.productId}\`); | ||
const product = await res.json(); | ||
return product as Product; | ||
} | ||
export const useProductDetails = routeLoader$(fetcher); | ||
`.trim();var xr=D(pe()),ys=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var Tn={meta:{type:"problem",docs:{recommended:"warn",description:"Disallow usage of React-specific `className`/`htmlFor` props.",url:"https://qwik.builder.io/docs/advanced/eslint/#no-react-props"},fixable:"code",schema:[],messages:{prefer:"Prefer the `{{ to }}` prop over the deprecated `{{ from }}` prop."}},create(e){return e.getSourceCode().getAllComments().some(t=>t.value.includes("@jsxImportSource"))?{}:{JSXOpeningElement(t){for(let{from:n,to:o}of ys){let a=xr.default.getProp(t.attributes,n);if(a){let i=xr.default.hasProp(t.attributes,o,{ignoreCase:!1})?void 0:l=>l.replaceText(a.name,o);e.report({node:a,messageId:"prefer",data:{from:n,to:o},fix:i})}}}}}},Wl=` | ||
<MyReactComponent class="foo" for="#password" />;`.trim(),Kl=` | ||
<MyReactComponent className="foo" htmlFor="#password" />;`.trim();var br=D(pe()),jn={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.builder.io/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(e){var n;if(e.getSourceCode().getAllComments().some(o=>o.value.includes("@jsxImportSource")))return{};let t=((n=e.options[0])==null?void 0:n.classnames)??["cn","clsx","classnames"];return{JSXAttribute(o){var a,i;if(!(["class","className"].indexOf(br.default.propName(o))===-1||br.default.hasProp((a=o.parent)==null?void 0:a.attributes,"classlist",{ignoreCase:!1}))&&((i=o.value)==null?void 0:i.type)==="JSXExpressionContainer"){let l=o.value.expression;l.type==="CallExpression"&&l.callee.type==="Identifier"&&t.indexOf(l.callee.name)!==-1&&l.arguments.length===1&&l.arguments[0].type==="ObjectExpression"&&e.report({node:o,messageId:"preferClasslist",data:{classnames:l.callee.name},fix:y=>{let h=o.range,d=l.arguments[0].range;return[y.replaceTextRange([h[0],d[0]],"classlist={"),y.replaceTextRange([d[1],h[1]],"}")]}})}}}}},Ql=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import styles from './MyComponent.module.css'; | ||
export default component$((props) => { | ||
// Array syntax example | ||
return <div class={[ | ||
styles.container, | ||
'p-8', | ||
props.isHighAttention ? 'text-green-500' : 'text-slate-500', | ||
{ active: true} | ||
]}>Hello world</div>; | ||
// Object syntax example | ||
return <div class={{ | ||
'text-green-500': props.isHighAttention, | ||
'p-4': true | ||
}}>Hello world</div>; | ||
});`.trim(),Yl=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import classnames from 'classnames'; | ||
import styles from './MyComponent.module.css'; | ||
export default component$((props) => { | ||
return <div class={classnames( | ||
styles.container, | ||
'p-8', | ||
{ | ||
'text-green-500' : props.isHighAttention, | ||
'text-slate-500' : !props.isHighAttention, | ||
}, | ||
{ active: true} | ||
)}>Hello world</div>; | ||
});`.trim();var $n=require("@typescript-eslint/utils"),{getStaticValue:gs}=$n.ASTUtils,hs=/^[\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,qn={meta:{type:"problem",docs:{recommended:"error",description:"Disallow javascript: URLs.",url:"https://qwik.builder.io/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(e){return{JSXAttribute(r){if(r.name.type==="JSXIdentifier"&&r.value){let t=gs(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&hs.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}},ru=` | ||
<button onClick$={() => alert('open the door please')>ring</button>`.trim(),tu=` | ||
<button onClick$="javascript:alert('open the door please')">ring</button>`.trim();var Sr=D(pe());function Er(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var ce={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},vs={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"},In={meta:{docs:{description:"Disallow missing `key` props in iterators/collection literals",category:"Possible Errors",recommended:!0,url:"https://qwik.builder.io/docs/advanced/eslint/#jsx-key"},messages:vs,schema:[{type:"object",properties:{checkFragmentShorthand:{type:"boolean",default:ce.checkFragmentShorthand},checkKeyMustBeforeSpread:{type:"boolean",default:ce.checkKeyMustBeforeSpread},warnOnDuplicates:{type:"boolean",default:ce.warnOnDuplicates}},additionalProperties:!1}]},create(e){if(e.getSourceCode().getAllComments().some(s=>s.value.includes("@jsxImportSource")))return{};let t=Object.assign({},ce,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(s){s.type==="JSXElement"&&!Sr.default.hasProp(s.openingElement.attributes,"key")?e.report({node:s,messageId:"missingIterKey"}):n&&s.type==="JSXFragment"&&e.report({node:s,messageId:"missingIterKeyUsePrag"})}function l(s,c=[]){return s.type==="IfStatement"?(s.consequent&&l(s.consequent,c),s.alternate&&l(s.alternate,c)):Array.isArray(s.body)&&s.body.forEach(E=>{E.type==="IfStatement"&&l(E,c),E.type==="ReturnStatement"&&c.push(E)}),c}function y(s){let c=!1;return s.some(E=>E.type==="JSXSpreadAttribute"?(c=!0,!1):E.type!=="JSXAttribute"?!1:c&&Sr.default.propName(E)==="key")}function h(s){Er(s)&&s.body.type==="BlockStatement"&&l(s.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function d(s){let c=s&&s.type==="ArrowFunctionExpression",E=g=>g&&(g.type==="JSXElement"||g.type==="JSXFragment");c&&E(s.body)&&i(s.body),s.body.type==="ConditionalExpression"?(E(s.body.consequent)&&i(s.body.consequent),E(s.body.alternate)&&i(s.body.alternate)):s.body.type==="LogicalExpression"&&E(s.body.right)&&i(s.body.right)}let f=`:matches( | ||
CallExpression | ||
@@ -25,5 +173,186 @@ [callee.object.object.name=Fragment] | ||
[callee.property.name=toArray] | ||
)`.replace(/\s/g,""),p=!1,h=new WeakSet;return{[f](){p=!0},[`${f}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(x=>x&&x.type==="JSXElement");if(c.length===0)return;let E={};c.forEach(x=>{x.openingElement.attributes.filter(G=>G.name&&G.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:x,messageId:"missingArrayKey"})}),a&&Object.values(E).filter(x=>x.length>1).forEach(x=>{x.forEach(S=>{h.has(S)||(h.add(S),e.report({node:S,messageId:"nonUniqueKeys"}))})})},JSXFragment(u){!n||p||u.parent.type==="ArrayExpression"&&e.report({node:u,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"]'(u){if(p)return;let c=u.arguments.length>0&&u.arguments[0];!c||!kr(c)||(y(c),v(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(p)return;let c=u.arguments.length>1&&u.arguments[1];kr(c)&&(y(c),v(c))}}}};var Zn={meta:{type:"problem",docs:{description:"Detect unused server$() functions",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{unusedServer:`Unused server$(). Seems like you are declaring a new server$ function, but you are never calling it. You might want to do: | ||
)`.replace(/\s/g,""),u=!1,v=new WeakSet;return{[f](){u=!0},[`${f}:exit`](){u=!1},"ArrayExpression, JSXElement > JSXElement"(s){if(u)return;let c=(s.type==="ArrayExpression"?s.elements:s.parent.children).filter(g=>g&&g.type==="JSXElement");if(c.length===0)return;let E={};c.forEach(g=>{g.openingElement.attributes.filter(L=>L.name&&L.name.name==="key").length===0&&s.type==="ArrayExpression"&&e.report({node:g,messageId:"missingArrayKey"})}),a&&Object.values(E).filter(g=>g.length>1).forEach(g=>{g.forEach(b=>{v.has(b)||(v.add(b),e.report({node:b,messageId:"nonUniqueKeys"}))})})},JSXFragment(s){!n||u||s.parent.type==="ArrayExpression"&&e.report({node:s,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"]'(s){if(u)return;let c=s.arguments.length>0&&s.arguments[0];!c||!Er(c)||(d(c),h(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(s){if(u)return;let c=s.arguments.length>1&&s.arguments[1];Er(c)&&(d(c),h(c))}}}},ou=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const Person = component$(() => { | ||
const person = { | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
age: 32, | ||
} | ||
return ( | ||
<ul> | ||
{Object.keys(person).map((color) => ( | ||
<li key={\`person-\${key}\`}>{person[key]}</li> | ||
)} | ||
</ul> | ||
); | ||
});`.trim(),au=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const Person = component$(() => { | ||
const person = { | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
age: 32, | ||
} | ||
return ( | ||
<ul> | ||
{Object.keys(person).map((color) => ( | ||
<li>{person[key]}</li> | ||
)} | ||
</ul> | ||
); | ||
});`.trim(),iu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import Card from './Card'; | ||
import Summary from './Summary'; | ||
export const Person = component$(() => { | ||
const person = { | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
age: 32, | ||
} | ||
return ( | ||
{Object.keys(person).map((color) => ( | ||
<Fragment key={\`person-\${key}\`}> | ||
<Card value={person[key]} /> | ||
<Summary value={person[key]} /> | ||
</Fragment> | ||
)} | ||
); | ||
});`.trim(),su=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import Card from './Card'; | ||
import Summary from './Summary'; | ||
export const Person = component$(() => { | ||
const person = { | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
age: 32, | ||
} | ||
return ( | ||
{Object.keys(person).map((color) => ( | ||
< key={\`person-\${key}\`}> | ||
<Card value={person[key]} /> | ||
<Summary value={person[key]} /> | ||
</> | ||
)} | ||
); | ||
});`.trim(),lu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const ColorList = component$(() => { | ||
const colors = ['red', 'green', 'blue']; | ||
return ( | ||
<ul> | ||
{colors.map((color) => ( | ||
<li key={\`color-\${color}\`}>{color}</li> | ||
)} | ||
</ul> | ||
); | ||
});`.trim(),uu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const ColorList = component$(() => { | ||
const colors = ['red', 'green', 'blue']; | ||
return ( | ||
<ul> | ||
{colors.map((color) => ( | ||
<li>{color}</li> | ||
)} | ||
</ul> | ||
); | ||
});`.trim(),pu=` | ||
import { component$, Fragment } from '@builder.io/qwik'; | ||
export const ColorList = component$(() => { | ||
const colors = ['red', 'green', 'blue']; | ||
return ( | ||
{colors.map((color) => ( | ||
<Fragment key={\`color-\${color}\`}> | ||
<h2>{color}</h2> | ||
<p>The color "\${color}" is a great color.</p> | ||
</Fragment> | ||
)} | ||
); | ||
});`.trim(),cu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const ColorList = component$(() => { | ||
const colors = ['red', 'green', 'blue']; | ||
return ( | ||
{colors.map((color) => ( | ||
< key={\`color-\${color}\`}> | ||
<h2>{color}</h2> | ||
<p>The color "\${color}" is a great color.</p> | ||
</> | ||
)} | ||
); | ||
});`.trim();var du=` | ||
import { component$ } from '@builder.io/qwik'; | ||
export const ColorList = component$(() => { | ||
const colors = ['red', 'green', 'blue']; | ||
return ( | ||
<ul> | ||
{colors.map((color) => ( | ||
<li key="not-a-good-idea">{color}</li> | ||
)} | ||
</ul> | ||
); | ||
});`.trim();var Cn={meta:{type:"problem",docs:{description:"Detect unused server$() functions",recommended:!0,url:"https://qwik.builder.io/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: | ||
{{ suggestion }}`}},create(e){return{CallExpression(r){if(r.callee.type!=="Identifier")return;if(r.callee.name==="server$"){let n=!1;if((r.parent.type==="ExpressionStatement"||r.parent.type==="AwaitExpression"&&r.parent.parent.type==="ExpressionStatement")&&(n=!0),n){let o=`const serverFn = server$(...); | ||
await serverFn(...);`;e.report({node:r.callee,messageId:"unusedServer",data:{suggestion:o}})}}}}}};var eo=require("@typescript-eslint/utils"),zs=eo.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),ro=zs({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:{noWidthHeight:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts."}},create(e){return{JSXElement(r){if(r.openingElement.name.type==="JSXIdentifier"&&r.openingElement.name.name==="img"&&!r.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),o=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!n||!o)&&e.report({node:r,messageId:"noWidthHeight"})}}}}});var Ks={"use-method-usage":Wr,"valid-lexical-scope":Lr,"loader-location":zr,"no-react-props":zn,"prefer-classlist":Kn,"jsx-no-script-url":Yn,"jsx-key":Qn,"unused-server":Zn,"jsx-img":ro},Hs={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"}},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"}}};0&&(module.exports={configs,rules}); | ||
await serverFn(...);`;e.report({node:r.callee,messageId:"unusedServer",data:{suggestion:o}})}}}}}},mu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import { server$ } from '@builder.io/qwik-city'; | ||
const serverGreeter = server$((firstName: string, lastName: string) => { | ||
const greeting = \`Hello \${firstName} \${lastName}\`; | ||
return greeting; | ||
}); | ||
export default component$(() => ( | ||
<button | ||
onClick$={async () => { | ||
const greeting = await serverGreeter('John', 'Doe'); | ||
alert(greeting); | ||
}} | ||
> | ||
greet | ||
</button> | ||
); | ||
);`.trim(),yu=` | ||
import { component$ } from '@builder.io/qwik'; | ||
import { server$ } from '@builder.io/qwik-city'; | ||
const serverGreeter = server$((firstName: string, lastName: string) => { | ||
const greeting = \`Hello \${firstName} \${lastName}\`; | ||
return greeting; | ||
}); | ||
export default component$(() => ( | ||
<button | ||
onClick$={async () => { | ||
const greeting = 'not using the server$ function'; | ||
alert(greeting); | ||
}} | ||
> | ||
greet | ||
</button> | ||
); | ||
);`.trim();var Fn=require("@typescript-eslint/utils"),xs=Fn.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Nn=xs({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",url:"https://qwik.builder.io/docs/advanced/eslint/#jsx-img"},fixable:"code",schema:[],messages:{noWidthHeight:"For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts."}},create(e){return{JSXElement(r){if(r.openingElement.name.type==="JSXIdentifier"&&r.openingElement.name.name==="img"&&!r.openingElement.attributes.some(n=>n.type==="JSXSpreadAttribute")){let n=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="width"),o=r.openingElement.attributes.some(a=>a.type==="JSXAttribute"&&a.name.type==="JSXIdentifier"&&a.name.name==="height");(!n||!o)&&e.report({node:r,messageId:"noWidthHeight"})}}}}}),vu=` | ||
<img width="200" height="600" src="/static/images/portrait-01.webp">`.trim(),xu=` | ||
<img src="/static/images/portrait-01.webp">`.trim();var bs={"use-method-usage":$r,"valid-lexical-scope":kr,"loader-location":Ir,"no-react-props":Tn,"prefer-classlist":jn,"jsx-no-script-url":qn,"jsx-key":In,"unused-server":Cn,"jsx-img":Nn},Es={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"}},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"}}};0&&(module.exports={configs,rules}); |
{ | ||
"name": "eslint-plugin-qwik", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.", | ||
@@ -29,3 +29,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/eslint": "8.37.0", | ||
"@types/eslint": "8.40.0", | ||
"@types/estree": "^1.0.1", | ||
@@ -32,0 +32,0 @@ "redent": "^4.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
64934
512