Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-qwik

Package Overview
Dependencies
Maintainers
2
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-qwik - npm Package Compare versions

Comparing version 0.102.0 to 0.103.0-dev20230420165851

16

index.js

@@ -1,2 +0,2 @@

"use strict";var Cn=Object.create;var K=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var kn=Object.getOwnPropertyNames;var Mn=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Un=(e,r)=>{for(var t in r)K(e,t,{get:r[t],enumerable:!0})},Pr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of kn(r))!Rn.call(e,o)&&o!==t&&K(e,o,{get:()=>r[o],enumerable:!(n=Nn(r,o))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?Cn(Mn(e)):{},Pr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),Ln=e=>Pr(K({},"__esModule",{value:!0}),e);var wr=l((gs,Or)=>{"use strict";Or.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var H=l(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Hn;function Hn(){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 kr=l(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.default=xe;B.hasAnyProp=Zn;B.hasEveryProp=eo;var Yn=H(),Nr=Qn(Yn);function Qn(e){return e&&e.__esModule?e:{default:e}}var ve={spreadStrict:!0,ignoreCase:!0};function xe(){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]:ve,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Nr.default)(o).toUpperCase():(0,Nr.default)(o);return n===a})}function Zn(){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]:ve,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return xe(e,o,t)})}function eo(){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]:ve,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return xe(e,o,t)})}});var Rr=l(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.default=ro;function Mr(){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"?Mr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function ro(){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 Mr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Ur=l(Y=>{"use strict";Object.defineProperty(Y,"__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"]},to=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=to;Y.eventHandlersByType=be});var $r=l(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var no=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),f;!(o=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));o=!0);}catch(d){a=!0,i=d}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")}}(),C=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};Ee.default=uo;var oo=H(),ao=io(oo);function io(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 so={ignoreCase:!0};function uo(){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]:so;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,ao.default)(s))});return i&&i.type==="JSXSpreadAttribute"?lo(i.argument.properties.find(a)):i}function lo(e){var r=e.key,t=e.value;return C({type:"JSXAttribute",name:C({type:"JSXIdentifier",name:r.name},Se(r)),value:t.type==="Literal"?X(t):C({type:"JSXExpressionContainer",expression:po(t)},Se(t))},Se(e))}function X(e){var r=e.range||[e.start,e.end],t=no(r,2),n=t[0],o=t[1];return C({},e,{end:void 0,range:[n,o],start:void 0})}function po(e){var r=e.expressions,t=e.quasis,n=Lr(e,["expressions","quasis"]);return C({},X(n),r?{expressions:r.map(X)}:{},t?{quasis:t.map(X)}:{})}function Se(e){var r=e.loc,t=Lr(e,["loc"]),n=X(t),o=n.range;return{loc:co(r),range:o}}function co(e){var r=e.start,t=e.end,n=e.source,o=e.filename;return C({start:r,end:t},n!==void 0?{source:n}:{},o!==void 0?{filename:o}:{})}});var Pe=l(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=fo;function fo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var we=l(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=yo;function yo(e){var r=Q().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var Te=l(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.default=mo;function mo(e){return e.raw}});var Vr=l(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.default=go;function go(e){var r=Q().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var Jr=l(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=vo;var Dr={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function vo(e){var r=e.name;return Object.hasOwnProperty.call(Dr,r)?Dr[r]:r}});var qe=l(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=ho;function xo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function ho(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(xo).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=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Ao;var bo=qe(),So=Eo(bo);function Eo(e){return e&&e.__esModule?e:{default:e}}function Ao(e){return(0,So.default)(e.quasi)}});var Xr=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Po;function Po(e){return function(){return e}}});var Wr=l(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.default=Oo;function Oo(e){var r=A().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 zr=l(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.default=wo;function wo(e){var r=A().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Gr=l(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=_o;function _o(e){var r=A().default;return r(e.expression||e)}});var Kr=l(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=To;function To(e){var r=A().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var Hr=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=jo;function jo(e){var r=A().default;return r(e.object)+"?."+r(e.property)}});var Yr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=Io;function Io(e){var r=A().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var Qr=l(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default=Fo;function Fo(e){var r=A().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 Je=l(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.default=qo;function qo(){return"this"}});var Zr=l(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=Co;function Co(e){var r=A().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var et=l(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=No;function No(e){var r=A().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 We=l((Ks,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=l((Hs,pt)=>{"use strict";var lt;Object.keys||(W=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,nt=We(),Ge=Object.prototype.propertyIsEnumerable,ot=!Ge.call({toString:null},"toString"),at=Ge.call(function(){},"prototype"),z=["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]&&W.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z(window[e])}catch{return!0}}catch{return!0}return!1}(),ut=function(e){if(typeof window>"u"||!st)return Z(e);try{return Z(e)}catch{return!1}},lt=function(r){var t=r!==null&&typeof r=="object",n=ze.call(r)==="[object Function]",o=nt(r),a=t&&ze.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=at&&n;if(a&&r.length>0&&!W.call(r,0))for(var f=0;f<r.length;++f)i.push(String(f));if(o&&r.length>0)for(var d=0;d<r.length;++d)i.push(String(d));else for(var m in r)!(s&&m==="prototype")&&W.call(r,m)&&i.push(String(m));if(ot)for(var g=ut(r),p=0;p<z.length;++p)!(g&&z[p]==="constructor")&&W.call(r,z[p])&&i.push(z[p]);return i});var W,ze,nt,Ge,ot,at,z,Z,it,st,ut;pt.exports=lt});var Ke=l((Ys,yt)=>{"use strict";var ko=Array.prototype.slice,Mo=We(),ft=Object.keys,ee=ft?function(r){return ft(r)}:ct(),dt=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 Mo(n)?dt(ko.call(n)):dt(n)})}else Object.keys=ee;return Object.keys||ee};yt.exports=ee});var He=l((Qs,mt)=>{"use strict";mt.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 xt=l((Zs,vt)=>{"use strict";var gt=typeof Symbol<"u"&&Symbol,Ro=He();vt.exports=function(){return typeof gt!="function"||typeof Symbol!="function"||typeof gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ro()}});var bt=l((eu,ht)=>{"use strict";var Uo="Function.prototype.bind called on incompatible ",Ye=Array.prototype.slice,Lo=Object.prototype.toString,$o="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||Lo.call(t)!==$o)throw new TypeError(Uo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var m=t.apply(this,n.concat(Ye.call(arguments)));return Object(m)===m?m:this}else return t.apply(r,n.concat(Ye.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],f=0;f<i;f++)s.push("$"+f);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var d=function(){};d.prototype=t.prototype,o.prototype=new d,d.prototype=null}return o}});var re=l((ru,St)=>{"use strict";var Vo=bt();St.exports=Function.prototype.bind||Vo});var At=l((tu,Et)=>{"use strict";var Do=re();Et.exports=Do.call(Function.call,Object.prototype.hasOwnProperty)});var oe=l((nu,Tt)=>{"use strict";var y,R=SyntaxError,_t=Function,M=TypeError,Qe=function(e){try{return _t('"use strict"; return ('+e+").constructor;")()}catch{}},I=Object.getOwnPropertyDescriptor;if(I)try{I({},"")}catch{I=null}var Ze=function(){throw new M},Jo=I?function(){try{return arguments.callee,Ze}catch{try{return I(arguments,"callee").get}catch{return Ze}}}():Ze,N=xt()(),w=Object.getPrototypeOf||function(e){return e.__proto__},k={},Bo=typeof Uint8Array>"u"?y:w(Uint8Array),F={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":N?w([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":k,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?w(w([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N?y:w(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N?y:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?w(""[Symbol.iterator]()):y,"%Symbol%":N?Symbol:y,"%SyntaxError%":R,"%ThrowTypeError%":Jo,"%TypedArray%":Bo,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};try{null.error}catch(e){Pt=w(w(e)),F["%Error.prototype%"]=Pt}var Pt,Xo=function e(r){var t;if(r==="%AsyncFunction%")t=Qe("async function () {}");else if(r==="%GeneratorFunction%")t=Qe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Qe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(t=w(o.prototype))}return F[r]=t,t},Ot={"%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"]},G=re(),te=At(),Wo=G.call(Function.call,Array.prototype.concat),zo=G.call(Function.apply,Array.prototype.splice),wt=G.call(Function.call,String.prototype.replace),ne=G.call(Function.call,String.prototype.slice),Go=G.call(Function.call,RegExp.prototype.exec),Ko=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ho=/\\(\\)?/g,Yo=function(r){var t=ne(r,0,1),n=ne(r,-1);if(t==="%"&&n!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var o=[];return wt(r,Ko,function(a,i,s,f){o[o.length]=s?wt(f,Ho,"$1"):i||a}),o},Qo=function(r,t){var n=r,o;if(te(Ot,n)&&(o=Ot[n],n="%"+o[0]+"%"),te(F,n)){var a=F[n];if(a===k&&(a=Xo(n)),typeof a>"u"&&!t)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new R("intrinsic "+r+" does not exist!")};Tt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new M('"allowMissing" argument must be a boolean');if(Go(/^%?[^%]*%?$/,r)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Yo(r),o=n.length>0?n[0]:"",a=Qo("%"+o+"%",t),i=a.name,s=a.value,f=!1,d=a.alias;d&&(o=d[0],zo(n,Wo([0,1],d)));for(var m=1,g=!0;m<n.length;m+=1){var p=n[m],S=ne(p,0,1),u=ne(p,-1);if((S==='"'||S==="'"||S==="`"||u==='"'||u==="'"||u==="`")&&S!==u)throw new R("property names with quotes must have matching quotes");if((p==="constructor"||!g)&&(f=!0),o+="."+p,i="%"+o+"%",te(F,i))s=F[i];else if(s!=null){if(!(p in s)){if(!t)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(I&&m+1>=n.length){var c=I(s,p);g=!!c,g&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else g=te(s,p),s=s[p];g&&!f&&(F[i]=s)}}return s}});var It=l((ou,jt)=>{"use strict";var Zo=oe(),er=Zo("%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}};jt.exports=rr});var tr=l((au,Nt)=>{"use strict";var ea=Ke(),ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ta=Object.prototype.toString,na=Array.prototype.concat,Ft=Object.defineProperty,oa=function(e){return typeof e=="function"&&ta.call(e)==="[object Function]"},aa=It()(),qt=Ft&&aa,ia=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!oa(n)||!n())return}qt?Ft(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Ct=function(e,r){var t=arguments.length>2?arguments[2]:{},n=ea(r);ra&&(n=na.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)ia(e,n[o],r[n[o]],t[n[o]])};Ct.supportsDescriptors=!!qt;Nt.exports=Ct});var or=l((iu,ae)=>{"use strict";var nr=re(),U=oe(),Rt=U("%Function.prototype.apply%"),Ut=U("%Function.prototype.call%"),Lt=U("%Reflect.apply%",!0)||nr.call(Ut,Rt),kt=U("%Object.getOwnPropertyDescriptor%",!0),q=U("%Object.defineProperty%",!0),sa=U("%Math.max%");if(q)try{q({},"a",{value:1})}catch{q=null}ae.exports=function(r){var t=Lt(nr,Ut,arguments);if(kt&&q){var n=kt(t,"length");n.configurable&&q(t,"length",{value:1+sa(0,r.length-(arguments.length-1))})}return t};var Mt=function(){return Lt(nr,Rt,arguments)};q?q(ae.exports,"apply",{value:Mt}):ae.exports.apply=Mt});var Jt=l((su,Dt)=>{"use strict";var $t=oe(),Vt=or(),ua=Vt($t("String.prototype.indexOf"));Dt.exports=function(r,t){var n=$t(r,!!t);return typeof n=="function"&&ua(r,".prototype.")>-1?Vt(n):n}});var ar=l((uu,Gt)=>{"use strict";var la=Ke(),Wt=He()(),zt=Jt(),Bt=Object,pa=zt("Array.prototype.push"),Xt=zt("Object.prototype.propertyIsEnumerable"),ca=Wt?Object.getOwnPropertySymbols:null;Gt.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=Bt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Bt(arguments[o]),i=la(a),s=Wt&&(Object.getOwnPropertySymbols||ca);if(s)for(var f=s(a),d=0;d<f.length;++d){var m=f[d];Xt(a,m)&&pa(i,m)}for(var g=0;g<i.length;++g){var p=i[g];if(Xt(a,p)){var S=a[p];n[p]=S}}}return n}});var sr=l((lu,Kt)=>{"use strict";var ir=ar(),fa=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},da=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};Kt.exports=function(){return!Object.assign||fa()||da()?ir:Object.assign}});var Yt=l((pu,Ht)=>{"use strict";var ya=tr(),ma=sr();Ht.exports=function(){var r=ma();return ya(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var rn=l((cu,en)=>{"use strict";var ga=tr(),va=or(),xa=ar(),Qt=sr(),ha=Yt(),ba=va.apply(Qt()),Zt=function(r,t){return ba(Object,arguments)};ga(Zt,{getPolyfill:Qt,implementation:xa,shim:ha});en.exports=Zt});var nn=l(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Sa=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};ur.default=tn;var Ea=rn(),Aa=Pa(Ea);function Pa(e){return e&&e.__esModule?e:{default:e}}function tn(e){var r=A().default;return e.properties.reduce(function(t,n){var o=Sa({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Aa.default)(o,tn(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var on=l(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=Oa;function Oa(){return new Object}});var an=l(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=wa;function wa(e){var r=A().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 sn=l(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=_a;function _a(e){var r=A().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var un=l(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Ta;function Ta(e){var r=A().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 ln=l(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=ja;function ja(){}});var pn=l(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ia;function Ia(e){var r=A().default;return r(e.expression)}});var cn=l(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Fa;function Fa(e){var r=A().default;return e.expressions.map(function(t){return r(t)})}});var dn=l(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=T;var qa=Je().default;function fn(e,r,t){return t.computed?t.optional?e+"?.["+r+"]":e+"["+r+"]":t.optional?e+"?."+r:e+"."+r}function T(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 T(e.expression);if(e.type==="ThisExpression")return qa();if(e.type==="TSNonNullExpression"&&(!e.extra||e.extra.parenthesized===!1)){var n=e.expression;return T(n)+"!"}if(e.type==="TSNonNullExpression"&&e.extra&&e.extra.parenthesized===!0){var o=e.expression;return"("+T(o)+"!)"}if(e.type==="MemberExpression"){if(!e.extra||e.extra.parenthesized===!1)return fn(T(e.object),T(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(T(e.object),T(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 yn=l(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=Ca;function Ca(e){var r=A().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var A=l(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var Na=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=Mi;ie.extractLiteral=Ri;var ka=Pe(),Ma=v(ka),Ra=we(),Ua=v(Ra),La=Vr(),$a=v(La),Va=Te(),Da=v(Va),Ja=Jr(),Ba=v(Ja),Xa=Br(),Wa=v(Xa),za=qe(),Ga=v(za),Ka=Xr(),mn=v(Ka),Ha=Wr(),Ya=v(Ha),Qa=zr(),Za=v(Qa),ei=Gr(),ri=v(ei),ti=Kr(),ni=v(ti),oi=Hr(),ai=v(oi),ii=Yr(),si=v(ii),ui=Qr(),li=v(ui),pi=Je(),ci=v(pi),fi=Zr(),di=v(fi),yi=et(),mi=v(yi),gi=nn(),vi=v(gi),xi=on(),hi=v(xi),bi=an(),Si=v(bi),Ei=sn(),Ai=v(Ei),Pi=un(),Oi=v(Pi),wi=ln(),_i=v(wi),Ti=pn(),ji=v(Ti),Ii=cn(),Fi=v(Ii),qi=dn(),Ci=v(qi),Ni=yn(),ki=v(Ni);function v(e){return e&&e.__esModule?e:{default:e}}var j={Identifier:Ba.default,Literal:Ma.default,JSXElement:Ua.default,JSXFragment:$a.default,JSXText:Da.default,TaggedTemplateExpression:Wa.default,TemplateLiteral:Ga.default,ArrowFunctionExpression:mn.default,FunctionExpression:mn.default,LogicalExpression:Ya.default,MemberExpression:Za.default,ChainExpression:ri.default,OptionalCallExpression:ni.default,OptionalMemberExpression:ai.default,CallExpression:si.default,UnaryExpression:li.default,ThisExpression:ci.default,ConditionalExpression:di.default,BinaryExpression:mi.default,ObjectExpression:vi.default,NewExpression:hi.default,UpdateExpression:Si.default,ArrayExpression:Ai.default,BindExpression:Oi.default,SpreadElement:_i.default,TypeCastExpression:ji.default,SequenceExpression:Fi.default,TSNonNullExpression:Ci.default,AssignmentExpression:ki.default},E=function(){return null},vn=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 Mi(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 j[n]===void 0?(console.error(vn(n)),null):j[n](r)}var gn=Na({},j,{Literal:function(r){var t=j.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=j.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:E,JSXFragment:E,JSXText:E,ArrowFunctionExpression:E,FunctionExpression:E,LogicalExpression:E,MemberExpression:E,OptionalCallExpression:E,OptionalMemberExpression:E,CallExpression:E,UnaryExpression:function(r){var t=j.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=j.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:E,ConditionalExpression:E,BinaryExpression:E,ObjectExpression:E,NewExpression:E,ArrayExpression:function(r){var t=j.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:E,SpreadElement:E,TSNonNullExpression:E,TSAsExpression:E,TypeCastExpression:E,SequenceExpression:E,ChainExpression:E});function Ri(e){var r=e.expression||e,t=r.type;return gn[t]===void 0?(console.error(vn(t)),null):gn[t](r)}});var Q=l(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var Ui=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};ue.default=zi;ue.getLiteralValue=Gi;var Li=Pe(),$i=se(Li),Vi=we(),Di=se(Vi),Ji=Te(),Bi=se(Ji),xn=A(),Xi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:$i.default,JSXElement:Di.default,JSXExpressionContainer:Xi.default,JSXText:Bi.default},Wi=Ui({},hn,{JSXElement:function(){return null},JSXExpressionContainer:xn.extractLiteral});function zi(e){return hn[e.type](e)}function Gi(e){return Wi[e.type](e)}});var En=l(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.default=Yi;le.getLiteralPropValue=Qi;var bn=Q(),Ki=Hi(bn);function Hi(e){return e&&e.__esModule?e:{default:e}}var Sn=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function Yi(e){return Sn(e,Ki.default)}function Qi(e){return Sn(e,bn.getLiteralValue)}});var pe=l((Ou,On)=>{"use strict";var xr=kr(),Zi=L(xr),es=Rr(),rs=L(es),An=Ur(),ts=L(An),ns=$r(),os=L(ns),Pn=En(),as=L(Pn),is=H(),ss=L(is);function L(e){return e&&e.__esModule?e:{default:e}}On.exports={hasProp:Zi.default,hasAnyProp:xr.hasAnyProp,hasEveryProp:xr.hasEveryProp,elementType:rs.default,eventHandlers:ts.default,eventHandlersByType:An.eventHandlersByType,getProp:os.default,getPropValue:as.default,getLiteralPropValue:Pn.getLiteralPropValue,propName:ss.default}});var ys={};Un(ys,{configs:()=>ds,rules:()=>fs});module.exports=Ln(ys);var me=require("@typescript-eslint/utils"),O=D(require("typescript"));var _r=D(wr(),1);function fe(e){let r=(0,_r.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function de(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 ye(e,r=0,t={}){return de(fe(e),r,t)}var $n=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=$n({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 Cn=Object.create;var K=Object.defineProperty;var Nn=Object.getOwnPropertyDescriptor;var Mn=Object.getOwnPropertyNames;var kn=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty;var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Un=(e,r)=>{for(var t in r)K(e,t,{get:r[t],enumerable:!0})},Pr=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Mn(r))!Rn.call(e,o)&&o!==t&&K(e,o,{get:()=>r[o],enumerable:!(n=Nn(r,o))||n.enumerable});return e};var D=(e,r,t)=>(t=e!=null?Cn(kn(e)):{},Pr(r||!e||!e.__esModule?K(t,"default",{value:e,enumerable:!0}):t,e)),$n=e=>Pr(K({},"__esModule",{value:!0}),e);var wr=l((gs,Or)=>{"use strict";Or.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((t,n)=>Math.min(t,n.length),1/0):0}});var H=l(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.default=Hn;function Hn(){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 Mr=l(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.default=xe;X.hasAnyProp=Zn;X.hasEveryProp=eo;var Yn=H(),Nr=Qn(Yn);function Qn(e){return e&&e.__esModule?e:{default:e}}var ve={spreadStrict:!0,ignoreCase:!0};function xe(){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]:ve,n=t.ignoreCase?r.toUpperCase():r;return e.some(function(o){if(o.type==="JSXSpreadAttribute")return!t.spreadStrict;var a=t.ignoreCase?(0,Nr.default)(o).toUpperCase():(0,Nr.default)(o);return n===a})}function Zn(){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]:ve,n=typeof r=="string"?r.split(" "):r;return n.some(function(o){return xe(e,o,t)})}function eo(){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]:ve,n=typeof r=="string"?r.split(" "):r;return n.every(function(o){return xe(e,o,t)})}});var Rr=l(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.default=ro;function kr(){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"?kr(e.object,e.property)+"."+r.name:e.name+"."+r.name}function ro(){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 kr(n,a)}return r.type==="JSXNamespacedName"?r.namespace.name+":"+r.name.name:e.name.name}});var Ur=l(Y=>{"use strict";Object.defineProperty(Y,"__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"]},to=Object.keys(be).reduce(function(e,r){return e.concat(be[r])},[]);Y.default=to;Y.eventHandlersByType=be});var Lr=l(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var no=function(){function e(r,t){var n=[],o=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),f;!(o=(f=s.next()).done)&&(n.push(f.value),!(t&&n.length===t));o=!0);}catch(d){a=!0,i=d}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")}}(),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};Ee.default=uo;var oo=H(),ao=io(oo);function io(e){return e&&e.__esModule?e:{default:e}}function $r(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 so={ignoreCase:!0};function uo(){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]:so;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,ao.default)(s))});return i&&i.type==="JSXSpreadAttribute"?lo(i.argument.properties.find(a)):i}function lo(e){var r=e.key,t=e.value;return q({type:"JSXAttribute",name:q({type:"JSXIdentifier",name:r.name},Se(r)),value:t.type==="Literal"?B(t):q({type:"JSXExpressionContainer",expression:po(t)},Se(t))},Se(e))}function B(e){var r=e.range||[e.start,e.end],t=no(r,2),n=t[0],o=t[1];return q({},e,{end:void 0,range:[n,o],start:void 0})}function po(e){var r=e.expressions,t=e.quasis,n=$r(e,["expressions","quasis"]);return q({},B(n),r?{expressions:r.map(B)}:{},t?{quasis:t.map(B)}:{})}function Se(e){var r=e.loc,t=$r(e,["loc"]),n=B(t),o=n.range;return{loc:co(r),range:o}}function co(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 Pe=l(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.default=fo;function fo(e){var r=e.value,t=typeof r=="string"&&r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}});var we=l(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=yo;function yo(e){var r=Q().default,t=e.openingElement.name.name;return e.openingElement.selfClosing?"<"+t+" />":"<"+t+">"+[].concat(e.children).map(function(n){return r(n)}).join("")+"</"+t+">"}});var Te=l(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.default=mo;function mo(e){return e.raw}});var Vr=l(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.default=go;function go(e){var r=Q().default;return e.children.length===0?"<></>":"<>"+[].concat(e.children).map(function(t){return r(t)}).join("")+"</>"}});var Jr=l(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=vo;var Dr={Array,Date,Infinity:1/0,Math,Number,Object,String,undefined:void 0};function vo(e){var r=e.name;return Object.hasOwnProperty.call(Dr,r)?Dr[r]:r}});var qe=l(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.default=ho;function xo(e,r){return(e.range?e.range[0]:e.start)-(r.range?r.range[0]:r.start)}function ho(e){var r=e.quasis,t=e.expressions,n=r.concat(t);return n.sort(xo).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 Xr=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=Ao;var bo=qe(),So=Eo(bo);function Eo(e){return e&&e.__esModule?e:{default:e}}function Ao(e){return(0,So.default)(e.quasi)}});var Br=l(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Po;function Po(e){return function(){return e}}});var Wr=l(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Oo;function Oo(e){var r=A().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 zr=l(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.default=wo;function wo(e){var r=A().default;return""+r(e.object)+(e.optional?"?.":".")+r(e.property)}});var Gr=l(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.default=_o;function _o(e){var r=A().default;return r(e.expression||e)}});var Kr=l(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=To;function To(e){var r=A().default;return r(e.callee)+"?.("+e.arguments.map(function(t){return r(t)}).join(", ")+")"}});var Hr=l($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.default=jo;function jo(e){var r=A().default;return r(e.object)+"?."+r(e.property)}});var Yr=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.default=Io;function Io(e){var r=A().default,t=Array.isArray(e.arguments)?e.arguments.map(function(n){return r(n)}).join(", "):"";return""+r(e.callee)+(e.optional?"?.":"")+"("+t+")"}});var Qr=l(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.default=Fo;function Fo(e){var r=A().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 Je=l(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.default=qo;function qo(){return"this"}});var Zr=l(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=Co;function Co(e){var r=A().default,t=e.test,n=e.alternate,o=e.consequent;return r(t)?r(o):r(n)}});var et=l(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.default=No;function No(e){var r=A().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 We=l((Ks,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=l((Hs,pt)=>{"use strict";var lt;Object.keys||(W=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,nt=We(),Ge=Object.prototype.propertyIsEnumerable,ot=!Ge.call({toString:null},"toString"),at=Ge.call(function(){},"prototype"),z=["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]&&W.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Z(window[e])}catch{return!0}}catch{return!0}return!1}(),ut=function(e){if(typeof window>"u"||!st)return Z(e);try{return Z(e)}catch{return!1}},lt=function(r){var t=r!==null&&typeof r=="object",n=ze.call(r)==="[object Function]",o=nt(r),a=t&&ze.call(r)==="[object String]",i=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var s=at&&n;if(a&&r.length>0&&!W.call(r,0))for(var f=0;f<r.length;++f)i.push(String(f));if(o&&r.length>0)for(var d=0;d<r.length;++d)i.push(String(d));else for(var g in r)!(s&&g==="prototype")&&W.call(r,g)&&i.push(String(g));if(ot)for(var v=ut(r),p=0;p<z.length;++p)!(v&&z[p]==="constructor")&&W.call(r,z[p])&&i.push(z[p]);return i});var W,ze,nt,Ge,ot,at,z,Z,it,st,ut;pt.exports=lt});var Ke=l((Ys,yt)=>{"use strict";var Mo=Array.prototype.slice,ko=We(),ft=Object.keys,ee=ft?function(r){return ft(r)}:ct(),dt=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 ko(n)?dt(Mo.call(n)):dt(n)})}else Object.keys=ee;return Object.keys||ee};yt.exports=ee});var He=l((Qs,mt)=>{"use strict";mt.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 xt=l((Zs,vt)=>{"use strict";var gt=typeof Symbol<"u"&&Symbol,Ro=He();vt.exports=function(){return typeof gt!="function"||typeof Symbol!="function"||typeof gt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ro()}});var bt=l((eu,ht)=>{"use strict";var Uo="Function.prototype.bind called on incompatible ",Ye=Array.prototype.slice,$o=Object.prototype.toString,Lo="[object Function]";ht.exports=function(r){var t=this;if(typeof t!="function"||$o.call(t)!==Lo)throw new TypeError(Uo+t);for(var n=Ye.call(arguments,1),o,a=function(){if(this instanceof o){var g=t.apply(this,n.concat(Ye.call(arguments)));return Object(g)===g?g:this}else return t.apply(r,n.concat(Ye.call(arguments)))},i=Math.max(0,t.length-n.length),s=[],f=0;f<i;f++)s.push("$"+f);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var d=function(){};d.prototype=t.prototype,o.prototype=new d,d.prototype=null}return o}});var re=l((ru,St)=>{"use strict";var Vo=bt();St.exports=Function.prototype.bind||Vo});var At=l((tu,Et)=>{"use strict";var Do=re();Et.exports=Do.call(Function.call,Object.prototype.hasOwnProperty)});var oe=l((nu,Tt)=>{"use strict";var y,k=SyntaxError,_t=Function,M=TypeError,Qe=function(e){try{return _t('"use strict"; return ('+e+").constructor;")()}catch{}},j=Object.getOwnPropertyDescriptor;if(j)try{j({},"")}catch{j=null}var Ze=function(){throw new M},Jo=j?function(){try{return arguments.callee,Ze}catch{try{return j(arguments,"callee").get}catch{return Ze}}}():Ze,C=xt()(),O=Object.getPrototypeOf||function(e){return e.__proto__},N={},Xo=typeof Uint8Array>"u"?y:O(Uint8Array),I={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":C?O([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":_t,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C?O(O([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C?y:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C?y:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C?O(""[Symbol.iterator]()):y,"%Symbol%":C?Symbol:y,"%SyntaxError%":k,"%ThrowTypeError%":Jo,"%TypedArray%":Xo,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};try{null.error}catch(e){Pt=O(O(e)),I["%Error.prototype%"]=Pt}var Pt,Bo=function e(r){var t;if(r==="%AsyncFunction%")t=Qe("async function () {}");else if(r==="%GeneratorFunction%")t=Qe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Qe("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(o.prototype))}return I[r]=t,t},Ot={"%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"]},G=re(),te=At(),Wo=G.call(Function.call,Array.prototype.concat),zo=G.call(Function.apply,Array.prototype.splice),wt=G.call(Function.call,String.prototype.replace),ne=G.call(Function.call,String.prototype.slice),Go=G.call(Function.call,RegExp.prototype.exec),Ko=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ho=/\\(\\)?/g,Yo=function(r){var t=ne(r,0,1),n=ne(r,-1);if(t==="%"&&n!=="%")throw new k("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new k("invalid intrinsic syntax, expected opening `%`");var o=[];return wt(r,Ko,function(a,i,s,f){o[o.length]=s?wt(f,Ho,"$1"):i||a}),o},Qo=function(r,t){var n=r,o;if(te(Ot,n)&&(o=Ot[n],n="%"+o[0]+"%"),te(I,n)){var a=I[n];if(a===N&&(a=Bo(n)),typeof a>"u"&&!t)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new k("intrinsic "+r+" does not exist!")};Tt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new M('"allowMissing" argument must be a boolean');if(Go(/^%?[^%]*%?$/,r)===null)throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Yo(r),o=n.length>0?n[0]:"",a=Qo("%"+o+"%",t),i=a.name,s=a.value,f=!1,d=a.alias;d&&(o=d[0],zo(n,Wo([0,1],d)));for(var g=1,v=!0;g<n.length;g+=1){var p=n[g],h=ne(p,0,1),u=ne(p,-1);if((h==='"'||h==="'"||h==="`"||u==='"'||u==="'"||u==="`")&&h!==u)throw new k("property names with quotes must have matching quotes");if((p==="constructor"||!v)&&(f=!0),o+="."+p,i="%"+o+"%",te(I,i))s=I[i];else if(s!=null){if(!(p in s)){if(!t)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(j&&g+1>=n.length){var c=j(s,p);v=!!c,v&&"get"in c&&!("originalValue"in c.get)?s=c.get:s=s[p]}else v=te(s,p),s=s[p];v&&!f&&(I[i]=s)}}return s}});var It=l((ou,jt)=>{"use strict";var Zo=oe(),er=Zo("%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}};jt.exports=rr});var tr=l((au,Nt)=>{"use strict";var ea=Ke(),ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ta=Object.prototype.toString,na=Array.prototype.concat,Ft=Object.defineProperty,oa=function(e){return typeof e=="function"&&ta.call(e)==="[object Function]"},aa=It()(),qt=Ft&&aa,ia=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!oa(n)||!n())return}qt?Ft(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},Ct=function(e,r){var t=arguments.length>2?arguments[2]:{},n=ea(r);ra&&(n=na.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)ia(e,n[o],r[n[o]],t[n[o]])};Ct.supportsDescriptors=!!qt;Nt.exports=Ct});var or=l((iu,ae)=>{"use strict";var nr=re(),R=oe(),Rt=R("%Function.prototype.apply%"),Ut=R("%Function.prototype.call%"),$t=R("%Reflect.apply%",!0)||nr.call(Ut,Rt),Mt=R("%Object.getOwnPropertyDescriptor%",!0),F=R("%Object.defineProperty%",!0),sa=R("%Math.max%");if(F)try{F({},"a",{value:1})}catch{F=null}ae.exports=function(r){var t=$t(nr,Ut,arguments);if(Mt&&F){var n=Mt(t,"length");n.configurable&&F(t,"length",{value:1+sa(0,r.length-(arguments.length-1))})}return t};var kt=function(){return $t(nr,Rt,arguments)};F?F(ae.exports,"apply",{value:kt}):ae.exports.apply=kt});var Jt=l((su,Dt)=>{"use strict";var Lt=oe(),Vt=or(),ua=Vt(Lt("String.prototype.indexOf"));Dt.exports=function(r,t){var n=Lt(r,!!t);return typeof n=="function"&&ua(r,".prototype.")>-1?Vt(n):n}});var ar=l((uu,Gt)=>{"use strict";var la=Ke(),Wt=He()(),zt=Jt(),Xt=Object,pa=zt("Array.prototype.push"),Bt=zt("Object.prototype.propertyIsEnumerable"),ca=Wt?Object.getOwnPropertySymbols:null;Gt.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var n=Xt(r);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var a=Xt(arguments[o]),i=la(a),s=Wt&&(Object.getOwnPropertySymbols||ca);if(s)for(var f=s(a),d=0;d<f.length;++d){var g=f[d];Bt(a,g)&&pa(i,g)}for(var v=0;v<i.length;++v){var p=i[v];if(Bt(a,p)){var h=a[p];n[p]=h}}}return n}});var sr=l((lu,Kt)=>{"use strict";var ir=ar(),fa=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},da=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};Kt.exports=function(){return!Object.assign||fa()||da()?ir:Object.assign}});var Yt=l((pu,Ht)=>{"use strict";var ya=tr(),ma=sr();Ht.exports=function(){var r=ma();return ya(Object,{assign:r},{assign:function(){return Object.assign!==r}}),r}});var rn=l((cu,en)=>{"use strict";var ga=tr(),va=or(),xa=ar(),Qt=sr(),ha=Yt(),ba=va.apply(Qt()),Zt=function(r,t){return ba(Object,arguments)};ga(Zt,{getPolyfill:Qt,implementation:xa,shim:ha});en.exports=Zt});var nn=l(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Sa=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};ur.default=tn;var Ea=rn(),Aa=Pa(Ea);function Pa(e){return e&&e.__esModule?e:{default:e}}function tn(e){var r=A().default;return e.properties.reduce(function(t,n){var o=Sa({},t);if(/^(?:Experimental)?Spread(?:Property|Element)$/.test(n.type)){if(n.argument.type==="ObjectExpression")return(0,Aa.default)(o,tn(n.argument))}else o[r(n.key)]=r(n.value);return o},{})}});var on=l(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.default=Oa;function Oa(){return new Object}});var an=l(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.default=wa;function wa(e){var r=A().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 sn=l(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.default=_a;function _a(e){var r=A().default;return e.elements.map(function(t){if(t!==null)return r(t)})}});var un=l(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.default=Ta;function Ta(e){var r=A().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 ln=l(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.default=ja;function ja(){}});var pn=l(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.default=Ia;function Ia(e){var r=A().default;return r(e.expression)}});var cn=l(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.default=Fa;function Fa(e){var r=A().default;return e.expressions.map(function(t){return r(t)})}});var dn=l(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.default=_;var qa=Je().default;function fn(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 qa();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 fn(_(e.object),_(e.property),e);if(e.extra&&e.extra.parenthesized===!0){var a=fn(_(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 s=i;i=s.expression}return console.error(r),""}});var yn=l(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.default=Ca;function Ca(e){var r=A().default;return r(e.left)+" "+e.operator+" "+r(e.right)}});var A=l(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var Na=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=ki;ie.extractLiteral=Ri;var Ma=Pe(),ka=x(Ma),Ra=we(),Ua=x(Ra),$a=Vr(),La=x($a),Va=Te(),Da=x(Va),Ja=Jr(),Xa=x(Ja),Ba=Xr(),Wa=x(Ba),za=qe(),Ga=x(za),Ka=Br(),mn=x(Ka),Ha=Wr(),Ya=x(Ha),Qa=zr(),Za=x(Qa),ei=Gr(),ri=x(ei),ti=Kr(),ni=x(ti),oi=Hr(),ai=x(oi),ii=Yr(),si=x(ii),ui=Qr(),li=x(ui),pi=Je(),ci=x(pi),fi=Zr(),di=x(fi),yi=et(),mi=x(yi),gi=nn(),vi=x(gi),xi=on(),hi=x(xi),bi=an(),Si=x(bi),Ei=sn(),Ai=x(Ei),Pi=un(),Oi=x(Pi),wi=ln(),_i=x(wi),Ti=pn(),ji=x(Ti),Ii=cn(),Fi=x(Ii),qi=dn(),Ci=x(qi),Ni=yn(),Mi=x(Ni);function x(e){return e&&e.__esModule?e:{default:e}}var T={Identifier:Xa.default,Literal:ka.default,JSXElement:Ua.default,JSXFragment:La.default,JSXText:Da.default,TaggedTemplateExpression:Wa.default,TemplateLiteral:Ga.default,ArrowFunctionExpression:mn.default,FunctionExpression:mn.default,LogicalExpression:Ya.default,MemberExpression:Za.default,ChainExpression:ri.default,OptionalCallExpression:ni.default,OptionalMemberExpression:ai.default,CallExpression:si.default,UnaryExpression:li.default,ThisExpression:ci.default,ConditionalExpression:di.default,BinaryExpression:mi.default,ObjectExpression:vi.default,NewExpression:hi.default,UpdateExpression:Si.default,ArrayExpression:Ai.default,BindExpression:Oi.default,SpreadElement:_i.default,TypeCastExpression:ji.default,SequenceExpression:Fi.default,TSNonNullExpression:Ci.default,AssignmentExpression:Mi.default},E=function(){return null},vn=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 ki(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 T[n]===void 0?(console.error(vn(n)),null):T[n](r)}var gn=Na({},T,{Literal:function(r){var t=T.Literal.call(void 0,r),n=t===null;return n?"null":t},Identifier:function(r){var t=T.Identifier.call(void 0,r)===void 0;return t?void 0:null},JSXElement:E,JSXFragment:E,JSXText:E,ArrowFunctionExpression:E,FunctionExpression:E,LogicalExpression:E,MemberExpression:E,OptionalCallExpression:E,OptionalMemberExpression:E,CallExpression:E,UnaryExpression:function(r){var t=T.UnaryExpression.call(void 0,r);return t===void 0?null:t},UpdateExpression:function(r){var t=T.UpdateExpression.call(void 0,r);return t===void 0?null:t},ThisExpression:E,ConditionalExpression:E,BinaryExpression:E,ObjectExpression:E,NewExpression:E,ArrayExpression:function(r){var t=T.ArrayExpression.call(void 0,r);return t.filter(function(n){return n!==null})},BindExpression:E,SpreadElement:E,TSNonNullExpression:E,TSAsExpression:E,TypeCastExpression:E,SequenceExpression:E,ChainExpression:E});function Ri(e){var r=e.expression||e,t=r.type;return gn[t]===void 0?(console.error(vn(t)),null):gn[t](r)}});var Q=l(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});var Ui=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};ue.default=zi;ue.getLiteralValue=Gi;var $i=Pe(),Li=se($i),Vi=we(),Di=se(Vi),Ji=Te(),Xi=se(Ji),xn=A(),Bi=se(xn);function se(e){return e&&e.__esModule?e:{default:e}}var hn={Literal:Li.default,JSXElement:Di.default,JSXExpressionContainer:Bi.default,JSXText:Xi.default},Wi=Ui({},hn,{JSXElement:function(){return null},JSXExpressionContainer:xn.extractLiteral});function zi(e){return hn[e.type](e)}function Gi(e){return Wi[e.type](e)}});var En=l(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.default=Yi;le.getLiteralPropValue=Qi;var bn=Q(),Ki=Hi(bn);function Hi(e){return e&&e.__esModule?e:{default:e}}var Sn=function(r,t){if(r&&r.type==="JSXAttribute")return r.value===null?!0:t(r.value)};function Yi(e){return Sn(e,Ki.default)}function Qi(e){return Sn(e,bn.getLiteralValue)}});var pe=l((Ou,On)=>{"use strict";var xr=Mr(),Zi=U(xr),es=Rr(),rs=U(es),An=Ur(),ts=U(An),ns=Lr(),os=U(ns),Pn=En(),as=U(Pn),is=H(),ss=U(is);function U(e){return e&&e.__esModule?e:{default:e}}On.exports={hasProp:Zi.default,hasAnyProp:xr.hasAnyProp,hasEveryProp:xr.hasEveryProp,elementType:rs.default,eventHandlers:ts.default,eventHandlersByType:An.eventHandlersByType,getProp:os.default,getPropValue:as.default,getLiteralPropValue:Pn.getLiteralPropValue,propName:ss.default}});var ys={};Un(ys,{configs:()=>ds,rules:()=>fs});module.exports=$n(ys);var me=require("@typescript-eslint/utils"),P=D(require("typescript"));var _r=D(wr(),1);function fe(e){let r=(0,_r.default)(e);if(r===0)return e;let t=new RegExp(`^[ \\t]{${r}}`,"gm");return e.replace(t,"")}function de(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 ye(e,r=0,t={}){return de(fe(e),r,t)}var Ln=me.ESLintUtils.RuleCreator(()=>"https://qwik.builder.io/docs/advanced/dollar/"),Tr=Ln({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}}.
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,12 @@ 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 m;let t={allowAny:((m=e.options[0])==null?void 0:m.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(g){g.references.forEach(p=>{var c,x;let S=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(S&&u){let h=(x=S.defs.at(0))==null?void 0:x.type;if(h==="Type"||h==="ImportBinding")return;let b=p.from,P;for(;b&&(P=s.get(b),!P);)b=b.upper;if(b&&P){let _=u.type;if(_==="global"||_==="module")return;let $=p.identifier,qn=a.get($),V=u;for(;V&&!s.has(V);)V=V.upper;if(V!==b){$.parent&&$.parent.type==="AssignmentExpression"&&$.parent.left===$&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:P}});let Ar=Vn(e,i,qn,p.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:P,reason:Dn(Ar)}})}}}}),g.childScopes.forEach(d)}return{CallExpression(g){if(g.callee.type==="Identifier"&&g.callee.name.endsWith("$")){let p=g.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let S=n.acquire(p);S&&s.set(S,g.callee.name)}}},JSXAttribute(g){let p=g.name,S=p.type==="JSXIdentifier"?p.name:p.name.name;if(S.endsWith("$")){let u=g.value;if(u&&u.type==="JSXExpressionContainer"){let c=n.acquire(u.expression);if(c)s.set(c,S);else if(u.expression.type==="Identifier"){let x=a.get(u.expression),h=i.getTypeAtLocation(x);if(!jr(h))if(h.isUnionOrIntersection())h.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.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(h.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $(
${Ir(h.symbol,e.getSourceCode().text)}
Check out https://qwik.builder.io/docs/advanced/dollar/ for more details.`}},create(e){var g;let t={allowAny:((g=e.options[0])==null?void 0:g.allowAny)??!0},n=e.getSourceCode().scopeManager,o=me.ESLintUtils.getParserServices(e),a=o.esTreeNodeToTSNodeMap,i=o.program.getTypeChecker(),s=new Map,f=[];function d(v){v.references.forEach(p=>{var c,S;let h=p.resolved,u=(c=p.resolved)==null?void 0:c.scope;if(h&&u){let m=(S=h.defs.at(0))==null?void 0:S.type;if(m==="Type"||m==="ImportBinding")return;let b=p.from,w;for(;b&&(w=s.get(b),!w);)b=b.upper;if(b&&w){let $=u.type;if($==="global"||$==="module")return;let L=p.identifier,qn=a.get(L),V=u;for(;V&&!s.has(V);)V=V.upper;if(V!==b){L.parent&&L.parent.type==="AssignmentExpression"&&L.parent.left===L&&e.report({messageId:"mutableIdentifier",node:p.identifier,data:{varName:p.identifier.name,dollarName:w}});let Ar=Vn(e,i,qn,p.identifier,t);Ar&&e.report({messageId:"referencesOutside",node:p.identifier,data:{varName:p.identifier.name,dollarName:w,reason:Dn(Ar)}})}}}}),v.childScopes.forEach(d)}return{CallExpression(v){if(v.callee.type==="Identifier"&&v.callee.name.endsWith("$")){let p=v.arguments.at(0);if(p&&p.type==="ArrowFunctionExpression"){let h=n.acquire(p);h&&s.set(h,v.callee.name)}}},JSXAttribute(v){let p=v.name,h=p.type==="JSXIdentifier"?p.name:p.name.name;if(h.endsWith("$")){let u=v.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 S=a.get(u.expression),m=i.getTypeAtLocation(S);if(!jr(m))if(m.isUnionOrIntersection())m.types.every(b=>b.symbol?b.symbol.name==="PropFnInterface":!!(b.flags&(P.default.TypeFlags.Undefined|P.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(m.symbol.name==="PropFnInterface")return;e.report({messageId:"invalidJsxDollar",node:u.expression,data:{varName:u.expression.name,solution:`const ${u.expression.name} = $(
${Ir(m.symbol,e.getSourceCode().text)}
);
`}})}}}}},Program(g){let p=a.get(g),S=i.getSymbolAtLocation(p);S&&(f=i.getExportsOfModule(S))},"Program:exit"(){d(n.globalScope)}}}});function Vn(e,r,t,n,o){let a=r.getTypeAtLocation(t);return Jn(e,r,a,t,n,o,new Set)}function Dn(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Jn(e,r,t,n,o,a,i){let s=J(e,r,t,n,a,0,i);if(s){let f=s.location;return f&&(s.location=`${o.name}.${f}`),s}return s}function J(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 f=t.flags&O.default.TypeFlags.Any;if(!o.allowAny&&f)return{type:t,typeStr:r.typeToString(t),reason:"is any, which is not serializable"};if(t.flags&O.default.TypeFlags.BigIntLike)return{type:t,typeStr:r.typeToString(t),reason:"is BigInt and it is not supported yet, use a number instead"};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.EnumLike)return{type:t,typeStr:r.typeToString(t),reason:"is an enum, use an string or a number instead"};if(jr(t))return;if(t.getCallSignatures().length>0){if(t.symbol.name==="PropFnInterface")return;let c="is a function, which is not serializable";if(a===0&&O.default.isIdentifier(n)){let x=`const ${n.text} = $(
`}})}}}}},Program(v){let p=a.get(v),h=i.getSymbolAtLocation(p);h&&(f=i.getExportsOfModule(h))},"Program:exit"(){d(n.globalScope)}}}});function Vn(e,r,t,n,o){let a=r.getTypeAtLocation(t);return Jn(e,r,a,t,n,o,new Set)}function Dn(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Jn(e,r,t,n,o,a,i){let s=J(e,r,t,n,a,0,i);if(s){let f=s.location;return f&&(s.location=`${o.name}.${f}`),s}return s}function J(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 f=t.flags&P.default.TypeFlags.Any;if(!o.allowAny&&f)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(jr(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&&P.default.isIdentifier(n)){let c=`const ${n.text} = $(
${Ir(t.symbol,e.getSourceCode().text)}
);`;c+=`.
);`;u+=`.
Did you mean to wrap it in \`$()\`?
${x}
`}return{type:t,typeStr:r.typeToString(t),reason:c}}if(t.isUnion()){for(let u of t.types){let c=J(e,r,u,n,o,a+1,i);if(c)return c}return}if((t.flags&O.default.TypeFlags.Object)!==0){let u=Xn(t,r);if(u)return J(e,r,u,n,o,a+1,i);let c=Wn(t,r);if(c){for(let b of c){let P=J(e,r,b,n,o,a+1,i);if(P)return P}return}let x=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||zn[x])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 h=t.getProperty("prototype");if(h){let b=r.getTypeOfSymbolAtLocation(h,n);if(b.isClass())return{type:b,typeStr:r.typeToString(b),reason:"is a class constructor, which is not serializable"}}if(!x.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 b of t.getProperties()){let P=Bn(e,r,b,n,o,a+1,i);if(P){let _=P.location;return P.location=`${b.name}${_?`.${_}`:""}`,P}}}}function Bn(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return J(e,r,s,n,o,a,i)}function Xn(e,r){return r.getElementTypeOfArrayType(e)}function Wn(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function jr(e){return!!(e.flags&O.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function Ir(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 ye(n,2)}return""}var zn={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0};var Fr={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"BlockStatement":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":if(!((s=a.id)!=null&&s.name.startsWith("use"))){e.report({node:n,messageId:"use-wrong-function"});return}break;default:e.report({node:n,messageId:"use-not-root"});return}}}}};var qr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Gn={...qr,action$:!0,globalAction$:!0},Cr={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the `src/routes` directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/qwikcity/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){let r=Kn(e.getFilename()),t=/\/layout(|!|-.+)\.tsx?$/.test(r),n=/\/index(|!|@.+)\.tsx?$/.test(r),o=/\/plugin(|@.+)\.tsx?$/.test(r),i=/\/src\/routes\//.test(r)&&(n||t||o);return{CallExpression(s){if(s.callee.type!=="Identifier")return;let f=s.callee.name;if(!Gn[f])return;if(!i&&qr[f]){e.report({node:s.callee,messageId:"invalidLoaderLocation",data:{fnName:f,path:r}});return}let d=s.parent;if(d.type!=="VariableDeclarator"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(d.id.type!=="Identifier"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(d.id.name)){let m="use"+d.id.name[0].toUpperCase()+d.id.name.slice(1);e.report({node:d.id,messageId:"wrongName",data:{fnName:f,id:d.id.name,fixed:m}});return}if(d.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:d.id,messageId:"missingExport",data:{fnName:f,id:d.id.name}});return}if(s.arguments.length>0&&s.arguments[0].type==="Identifier"){e.report({node:s.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:d.id.name,arg:s.arguments[0].name}});return}}}}};function Kn(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 hr=D(pe()),us=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var wn={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 us){let a=hr.default.getProp(t.attributes,n);if(a){let i=hr.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 br=D(pe()),_n={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(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 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:f=>{let d=o.range,m=s.arguments[0].range;return[f.replaceTextRange([d[0],m[0]],"classlist={"),f.replaceTextRange([m[1],d[1]],"}")]}})}}}}};var Tn=require("@typescript-eslint/utils"),{getStaticValue:ls}=Tn.ASTUtils,ps=/^[\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,jn={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=ls(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&ps.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}};var Er=D(pe());function Sr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var ce={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},cs={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},messages:cs,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(u=>u.value.includes("@jsxImportSource")))return{};let t=Object.assign({},ce,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(u){u.type==="JSXElement"&&!Er.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(x=>{x.type==="IfStatement"&&s(x,c),x.type==="ReturnStatement"&&c.push(x)}),c}function f(u){let c=!1;return u.some(x=>x.type==="JSXSpreadAttribute"?(c=!0,!1):x.type!=="JSXAttribute"?!1:c&&Er.default.propName(x)==="key")}function d(u){Sr(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function m(u){let c=u&&u.type==="ArrowFunctionExpression",x=h=>h&&(h.type==="JSXElement"||h.type==="JSXFragment");c&&x(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(x(u.body.consequent)&&i(u.body.consequent),x(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&x(u.body.right)&&i(u.body.right)}let g=`:matches(
${c}
`}return{type:t,typeStr:r.typeToString(t),reason:u}}if(t.isUnion()){for(let h of t.types){let u=J(e,r,h,n,o,a+1,i);if(u)return u}return}if((t.flags&P.default.TypeFlags.Object)!==0){let h=Bn(t,r);if(h)return J(e,r,h,n,o,a+1,i);let u=Wn(t,r);if(u){for(let m of u){let b=J(e,r,m,n,o,a+1,i);if(b)return b}return}let c=t.symbol.name;if(t.getProperty("nextElementSibling")||t.getProperty("activeElement")||zn[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 S=t.getProperty("prototype");if(S){let m=r.getTypeOfSymbolAtLocation(S,n);if(m.isClass())return{type:m,typeStr:r.typeToString(m),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 m of t.getProperties()){let b=Xn(e,r,m,n,o,a+1,i);if(b){let w=b.location;return b.location=`${m.name}${w?`.${w}`:""}`,b}}}}function Xn(e,r,t,n,o,a,i){let s=r.getTypeOfSymbolAtLocation(t,n);return J(e,r,s,n,o,a,i)}function Bn(e,r){return r.getElementTypeOfArrayType(e)}function Wn(e,r){return r.isTupleType(e)?r.getTypeArguments(e):void 0}function jr(e){return!!(e.flags&P.default.TypeFlags.Any)||!!e.getProperty("__brand__QRL__")}function Ir(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 ye(n,2)}return""}var zn={Promise:!0,URL:!0,RegExp:!0,Date:!0,FormData:!0,URLSearchParams:!0,Error:!0};var Fr={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":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 qr={loader$:!0,routeLoader$:!0,routeAction$:!0,routeHandler$:!0},Gn={...qr,action$:!0,globalAction$:!0},Cr={meta:{type:"problem",docs:{description:"Detect declaration location of loader$",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{invalidLoaderLocation:'`{{fnName}}()` can only be declared in `layout.tsx`, `index.tsx` and `plugin.tsx` inside the `src/routes` directory, instead it was declared in "{{path}}".\nPlease check the docs: https://qwik.builder.io/qwikcity/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){let r=Kn(e.getFilename()),t=/\/layout(|!|-.+)\.tsx?$/.test(r),n=/\/index(|!|@.+)\.tsx?$/.test(r),o=/\/plugin(|@.+)\.tsx?$/.test(r),i=/\/src\/routes\//.test(r)&&(n||t||o);return{CallExpression(s){if(s.callee.type!=="Identifier")return;let f=s.callee.name;if(!Gn[f])return;if(!i&&qr[f]){e.report({node:s.callee,messageId:"invalidLoaderLocation",data:{fnName:f,path:r}});return}let d=s.parent;if(d.type!=="VariableDeclarator"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(d.id.type!=="Identifier"){e.report({node:s.callee,messageId:"missingExport",data:{fnName:f,id:"useStuff"}});return}if(!/^use/.test(d.id.name)){let g="use"+d.id.name[0].toUpperCase()+d.id.name.slice(1);e.report({node:d.id,messageId:"wrongName",data:{fnName:f,id:d.id.name,fixed:g}});return}if(d.parent.parent.type!=="ExportNamedDeclaration"){e.report({node:d.id,messageId:"missingExport",data:{fnName:f,id:d.id.name}});return}if(s.arguments.length>0&&s.arguments[0].type==="Identifier"){e.report({node:s.arguments[0],messageId:"recommendedValue",data:{fnName:f,id:d.id.name,arg:s.arguments[0].name}});return}}}}};function Kn(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 hr=D(pe()),us=[{from:"className",to:"class"},{from:"htmlFor",to:"for"}];var wn={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 us){let a=hr.default.getProp(t.attributes,n);if(a){let i=hr.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 br=D(pe()),_n={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(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 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:f=>{let d=o.range,g=s.arguments[0].range;return[f.replaceTextRange([d[0],g[0]],"classlist={"),f.replaceTextRange([g[1],d[1]],"}")]}})}}}}};var Tn=require("@typescript-eslint/utils"),{getStaticValue:ls}=Tn.ASTUtils,ps=/^[\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,jn={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=ls(r.value.type==="JSXExpressionContainer"?r.value.expression:r.value,e.getScope());t&&typeof t.value=="string"&&ps.test(t.value)&&e.report({node:r.value,messageId:"noJSURL"})}}}}};var Er=D(pe());function Sr(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"}var ce={checkFragmentShorthand:!1,checkKeyMustBeforeSpread:!1,warnOnDuplicates:!1},cs={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},messages:cs,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(u=>u.value.includes("@jsxImportSource")))return{};let t=Object.assign({},ce,e.options[0]),n=t.checkFragmentShorthand,o=t.checkKeyMustBeforeSpread,a=t.warnOnDuplicates;function i(u){u.type==="JSXElement"&&!Er.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(S=>{S.type==="IfStatement"&&s(S,c),S.type==="ReturnStatement"&&c.push(S)}),c}function f(u){let c=!1;return u.some(S=>S.type==="JSXSpreadAttribute"?(c=!0,!1):S.type!=="JSXAttribute"?!1:c&&Er.default.propName(S)==="key")}function d(u){Sr(u)&&u.body.type==="BlockStatement"&&s(u.body).filter(c=>c&&c.argument).forEach(c=>{i(c.argument)})}function g(u){let c=u&&u.type==="ArrowFunctionExpression",S=m=>m&&(m.type==="JSXElement"||m.type==="JSXFragment");c&&S(u.body)&&i(u.body),u.body.type==="ConditionalExpression"?(S(u.body.consequent)&&i(u.body.consequent),S(u.body.alternate)&&i(u.body.alternate)):u.body.type==="LogicalExpression"&&S(u.body.right)&&i(u.body.right)}let v=`:matches(
CallExpression

@@ -25,5 +25,5 @@ [callee.object.object.name=Fragment]

[callee.property.name=toArray]
)`.replace(/\s/g,""),p=!1,S=new WeakSet;return{[g](){p=!0},[`${g}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(h=>h&&h.type==="JSXElement");if(c.length===0)return;let x={};c.forEach(h=>{h.openingElement.attributes.filter(_=>_.name&&_.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:h,messageId:"missingArrayKey"})}),a&&Object.values(x).filter(h=>h.length>1).forEach(h=>{h.forEach(b=>{S.has(b)||(S.add(b),e.report({node:b,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||!Sr(c)||(m(c),d(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(p)return;let c=u.arguments.length>1&&u.arguments[1];Sr(c)&&(m(c),d(c))}}}};var Fn={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,""),p=!1,h=new WeakSet;return{[v](){p=!0},[`${v}:exit`](){p=!1},"ArrayExpression, JSXElement > JSXElement"(u){if(p)return;let c=(u.type==="ArrayExpression"?u.elements:u.parent.children).filter(m=>m&&m.type==="JSXElement");if(c.length===0)return;let S={};c.forEach(m=>{m.openingElement.attributes.filter($=>$.name&&$.name.name==="key").length===0&&u.type==="ArrayExpression"&&e.report({node:m,messageId:"missingArrayKey"})}),a&&Object.values(S).filter(m=>m.length>1).forEach(m=>{m.forEach(b=>{h.has(b)||(h.add(b),e.report({node:b,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||!Sr(c)||(g(c),d(c))},'CallExpression[callee.type="MemberExpression"][callee.property.name="from"]'(u){if(p)return;let c=u.arguments.length>1&&u.arguments[1];Sr(c)&&(g(c),d(c))}}}};var Fn={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:
{{ 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 fs={"use-method-usage":Fr,"valid-lexical-scope":Tr,"loader-location":Cr,"no-react-props":wn,"prefer-classlist":_n,"jsx-no-script-url":jn,"jsx-key":In,"unused-server":Fn},ds={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"}},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"}}};0&&(module.exports={configs,rules});
{
"name": "eslint-plugin-qwik",
"version": "0.102.0",
"version": "0.103.0-dev20230420165851",
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",

@@ -30,3 +30,3 @@ "main": "index.js",

"@types/eslint": "8.37.0",
"@types/estree": "^1.0.0",
"@types/estree": "^1.0.1",
"redent": "^4.0.0"

@@ -33,0 +33,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc