mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-16 04:34:56 +02:00
2 lines
No EOL
77 KiB
JavaScript
2 lines
No EOL
77 KiB
JavaScript
/*! For license information please see scripts.js.LICENSE.txt */
|
|
(()=>{var e={336:(e,t,r)=>{var n,i;!function(){var s,o,a,l,u,c,d,f,h,p,y,m,g,_,v,x,b,w,k,E,S,O,T,P,L,R,A=function(e){var t=new A.Builder;return t.pipeline.add(A.trimmer,A.stopWordFilter,A.stemmer),t.searchPipeline.add(A.stemmer),e.call(t,t),t.build()};A.version="2.3.9",A.utils={},A.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),A.utils.asString=function(e){return null==e?"":e.toString()},A.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],s=e[i];if(Array.isArray(s))t[i]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[i]=s}}return t},A.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},A.FieldRef.joiner="/",A.FieldRef.fromString=function(e){var t=e.indexOf(A.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new A.FieldRef(n,r,e)},A.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+A.FieldRef.joiner+this.docRef),this._stringValue},A.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},A.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},A.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},A.Set.prototype.contains=function(e){return!!this.elements[e]},A.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===A.Set.complete)return this;if(e===A.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var s=0;s<n.length;s++){var o=n[s];o in r.elements&&i.push(o)}return new A.Set(i)},A.Set.prototype.union=function(e){return e===A.Set.complete?A.Set.complete:e===A.Set.empty?this:new A.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},A.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},A.Token=function(e,t){this.str=e||"",this.metadata=t||{}},A.Token.prototype.toString=function(){return this.str},A.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},A.Token.prototype.clone=function(e){return e=e||function(e){return e},new A.Token(e(this.str,this.metadata),this.metadata)},A.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new A.Token(A.utils.asString(e).toLowerCase(),A.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,i=[],s=0,o=0;s<=n;s++){var a=s-o;if(r.charAt(s).match(A.tokenizer.separator)||s==n){if(a>0){var l=A.utils.clone(t)||{};l.position=[o,a],l.index=i.length,i.push(new A.Token(r.slice(o,s),l))}o=s+1}}return i},A.tokenizer.separator=/[\s\-]+/,A.Pipeline=function(){this._stack=[]},A.Pipeline.registeredFunctions=Object.create(null),A.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&A.utils.warn("Overwriting existing registered function: "+t),e.label=t,A.Pipeline.registeredFunctions[e.label]=e},A.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||A.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},A.Pipeline.load=function(e){var t=new A.Pipeline;return e.forEach((function(e){var r=A.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},A.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){A.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},A.Pipeline.prototype.after=function(e,t){A.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},A.Pipeline.prototype.before=function(e,t){A.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},A.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},A.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],s=0;s<e.length;s++){var o=n(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)i.push(o[a]);else i.push(o)}e=i}return e},A.Pipeline.prototype.runString=function(e,t){var r=new A.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},A.Pipeline.prototype.reset=function(){this._stack=[]},A.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return A.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},A.Vector=function(e){this._magnitude=0,this.elements=e||[]},A.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),s=this.elements[2*i];n>1&&(s<e&&(t=i),s>e&&(r=i),s!=e);)n=r-t,i=t+Math.floor(n/2),s=this.elements[2*i];return s==e||s>e?2*i:s<e?2*(i+1):void 0},A.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},A.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},A.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},A.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,s=n.length,o=0,a=0,l=0,u=0;l<i&&u<s;)(o=r[l])<(a=n[u])?l+=2:o>a?u+=2:o==a&&(t+=r[l+1]*n[u+1],l+=2,u+=2);return t},A.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},A.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},A.Vector.prototype.toJSON=function(){return this.elements},A.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},l="[aeiouy]",u="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),p=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,g=/^(.+?)(ed|ing)$/,_=/.$/,v=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\1$"),b=new RegExp("^"+u+l+"[^aeiouwxy]$"),w=/^(.+?[^aeiou])y$/,k=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,S=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,O=/^(.+?)(s|t)(ion)$/,T=/^(.+?)e$/,P=/ll$/,L=new RegExp("^"+u+l+"[^aeiouwxy]$"),R=function(e){var t,r,n,i,s,l,u;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),s=y,(i=p).test(e)?e=e.replace(i,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=g,(i=m).test(e)){var R=i.exec(e);(i=c).test(R[1])&&(i=_,e=e.replace(i,""))}else s.test(e)&&(t=(R=s.exec(e))[1],(s=h).test(t)&&(l=x,u=b,(s=v).test(e=t)?e+="e":l.test(e)?(i=_,e=e.replace(i,"")):u.test(e)&&(e+="e")));return(i=w).test(e)&&(e=(t=(R=i.exec(e))[1])+"i"),(i=k).test(e)&&(t=(R=i.exec(e))[1],r=R[2],(i=c).test(t)&&(e=t+o[r])),(i=E).test(e)&&(t=(R=i.exec(e))[1],r=R[2],(i=c).test(t)&&(e=t+a[r])),s=O,(i=S).test(e)?(t=(R=i.exec(e))[1],(i=d).test(t)&&(e=t)):s.test(e)&&(t=(R=s.exec(e))[1]+R[2],(s=d).test(t)&&(e=t)),(i=T).test(e)&&(t=(R=i.exec(e))[1],s=f,l=L,((i=d).test(t)||s.test(t)&&!l.test(t))&&(e=t)),s=d,(i=P).test(e)&&s.test(e)&&(i=_,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(R)}),A.Pipeline.registerFunction(A.stemmer,"stemmer"),A.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},A.stopWordFilter=A.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),A.Pipeline.registerFunction(A.stopWordFilter,"stopWordFilter"),A.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},A.Pipeline.registerFunction(A.trimmer,"trimmer"),A.TokenSet=function(){this.final=!1,this.edges={},this.id=A.TokenSet._nextId,A.TokenSet._nextId+=1},A.TokenSet._nextId=1,A.TokenSet.fromArray=function(e){for(var t=new A.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},A.TokenSet.fromClause=function(e){return"editDistance"in e?A.TokenSet.fromFuzzyString(e.term,e.editDistance):A.TokenSet.fromString(e.term)},A.TokenSet.fromFuzzyString=function(e,t){for(var r=new A.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var s,o=i.str.charAt(0);o in i.node.edges?s=i.node.edges[o]:(s=new A.TokenSet,i.node.edges[o]=s),1==i.str.length&&(s.final=!0),n.push({node:s,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else a=new A.TokenSet,i.node.edges["*"]=a;if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else l=new A.TokenSet,i.node.edges["*"]=l;1==i.str.length&&(l.final=!0),n.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var u,c=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?u=i.node.edges[d]:(u=new A.TokenSet,i.node.edges[d]=u),1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:c+i.str.slice(2)})}}}return r},A.TokenSet.fromString=function(e){for(var t=new A.TokenSet,r=t,n=0,i=e.length;n<i;n++){var s=e[n],o=n==i-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new A.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},A.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<i;s++){var o=n[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},A.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},A.TokenSet.prototype.intersect=function(e){for(var t=new A.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),s=i.length,o=Object.keys(r.node.edges),a=o.length,l=0;l<s;l++)for(var u=i[l],c=0;c<a;c++){var d=o[c];if(d==u||"*"==u){var f=r.node.edges[d],h=r.qNode.edges[u],p=f.final&&h.final,y=void 0;d in r.output.edges?(y=r.output.edges[d]).final=y.final||p:((y=new A.TokenSet).final=p,r.output.edges[d]=y),n.push({qNode:h,output:y,node:f})}}}return t},A.TokenSet.Builder=function(){this.previousWord="",this.root=new A.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},A.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;for(this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,n=r;n<e.length;n++){var i=new A.TokenSet,s=e[n];t.edges[s]=i,this.uncheckedNodes.push({parent:t,char:s,child:i}),t=i}t.final=!0,this.previousWord=e},A.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},A.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}},A.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},A.Index.prototype.search=function(e){return this.query((function(t){new A.QueryParser(e,t).parse()}))},A.Index.prototype.query=function(e){for(var t=new A.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new A.Vector;for(e.call(t,t),a=0;a<t.clauses.length;a++){var l,u=t.clauses[a],c=A.Set.empty;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var d=0;d<l.length;d++){var f=l[d];u.term=f;var h=A.TokenSet.fromClause(u),p=this.tokenSet.intersect(h).toArray();if(0===p.length&&u.presence===A.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++)s[C=u.fields[y]]=A.Set.empty;break}for(var m=0;m<p.length;m++){var g=p[m],_=this.invertedIndex[g],v=_._index;for(y=0;y<u.fields.length;y++){var x=_[C=u.fields[y]],b=Object.keys(x),w=g+"/"+C,k=new A.Set(b);if(u.presence==A.Query.presence.REQUIRED&&(c=c.union(k),void 0===s[C]&&(s[C]=A.Set.complete)),u.presence!=A.Query.presence.PROHIBITED){if(n[C].upsert(v,u.boost,(function(e,t){return e+t})),!i[w]){for(var E=0;E<b.length;E++){var S,O=b[E],T=new A.FieldRef(O,C),P=x[O];void 0===(S=r[T])?r[T]=new A.MatchData(g,C,P):S.add(g,C,P)}i[w]=!0}}else void 0===o[C]&&(o[C]=A.Set.empty),o[C]=o[C].union(k)}}}if(u.presence===A.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++)s[C=u.fields[y]]=s[C].intersect(c)}var L=A.Set.complete,R=A.Set.empty;for(a=0;a<this.fields.length;a++){var C;s[C=this.fields[a]]&&(L=L.intersect(s[C])),o[C]&&(R=R.union(o[C]))}var Q=Object.keys(r),j=[],I=Object.create(null);if(t.isNegated())for(Q=Object.keys(this.fieldVectors),a=0;a<Q.length;a++){T=Q[a];var N=A.FieldRef.fromString(T);r[T]=new A.MatchData}for(a=0;a<Q.length;a++){var F=(N=A.FieldRef.fromString(Q[a])).docRef;if(L.contains(F)&&!R.contains(F)){var M,$=this.fieldVectors[N],D=n[N.fieldName].similarity($);if(void 0!==(M=I[F]))M.score+=D,M.matchData.combine(r[N]);else{var z={ref:F,score:D,matchData:r[N]};I[F]=z,j.push(z)}}}return j.sort((function(e,t){return t.score-e.score}))},A.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:A.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},A.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),s=e.invertedIndex,o=new A.TokenSet.Builder,a=A.Pipeline.load(e.pipeline);e.version!=A.version&&A.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+A.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<n.length;l++){var u=(d=n[l])[0],c=d[1];r[u]=new A.Vector(c)}for(l=0;l<s.length;l++){var d,f=(d=s[l])[0],h=d[1];o.insert(f),i[f]=h}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=o.root,t.pipeline=a,new A.Index(t)},A.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=A.tokenizer,this.pipeline=new A.Pipeline,this.searchPipeline=new A.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},A.Builder.prototype.ref=function(e){this._ref=e},A.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},A.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},A.Builder.prototype.k1=function(e){this._k1=e},A.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var s=n[i],o=this._fields[s].extractor,a=o?o(e):e[s],l=this.tokenizer(a,{fields:[s]}),u=this.pipeline.run(l),c=new A.FieldRef(r,s),d=Object.create(null);this.fieldTermFrequencies[c]=d,this.fieldLengths[c]=0,this.fieldLengths[c]+=u.length;for(var f=0;f<u.length;f++){var h=u[f];if(null==d[h]&&(d[h]=0),d[h]+=1,null==this.invertedIndex[h]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)p[n[y]]=Object.create(null);this.invertedIndex[h]=p}null==this.invertedIndex[h][s][r]&&(this.invertedIndex[h][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],_=h.metadata[g];null==this.invertedIndex[h][s][r][g]&&(this.invertedIndex[h][s][r][g]=[]),this.invertedIndex[h][s][r][g].push(_)}}}},A.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var s=A.FieldRef.fromString(e[i]),o=s.fieldName;n[o]||(n[o]=0),n[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var l=a[i];r[l]=r[l]/n[l]}this.averageFieldLength=r},A.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var s=A.FieldRef.fromString(t[i]),o=s.fieldName,a=this.fieldLengths[s],l=new A.Vector,u=this.fieldTermFrequencies[s],c=Object.keys(u),d=c.length,f=this._fields[o].boost||1,h=this._documents[s.docRef].boost||1,p=0;p<d;p++){var y,m,g,_=c[p],v=u[_],x=this.invertedIndex[_]._index;void 0===n[_]?(y=A.idf(this.invertedIndex[_],this.documentCount),n[_]=y):y=n[_],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=f,m*=h,g=Math.round(1e3*m)/1e3,l.insert(x,g)}e[s]=l}this.fieldVectors=e},A.Builder.prototype.createTokenSet=function(){this.tokenSet=A.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},A.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new A.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},A.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},A.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),s=0;s<i.length;s++){var o=i[s];n[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},A.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var s=0;s<i.length;s++){var o=i[s],a=Object.keys(e.metadata[n][o]);null==this.metadata[n][o]&&(this.metadata[n][o]=Object.create(null));for(var l=0;l<a.length;l++){var u=a[l];null==this.metadata[n][o][u]?this.metadata[n][o][u]=e.metadata[n][o][u]:this.metadata[n][o][u]=this.metadata[n][o][u].concat(e.metadata[n][o][u])}}}},A.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var s=n[i];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},A.Query=function(e){this.clauses=[],this.allFields=e},A.Query.wildcard=new String("*"),A.Query.wildcard.NONE=0,A.Query.wildcard.LEADING=1,A.Query.wildcard.TRAILING=2,A.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},A.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=A.Query.wildcard.NONE),e.wildcard&A.Query.wildcard.LEADING&&e.term.charAt(0)!=A.Query.wildcard&&(e.term="*"+e.term),e.wildcard&A.Query.wildcard.TRAILING&&e.term.slice(-1)!=A.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=A.Query.presence.OPTIONAL),this.clauses.push(e),this},A.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=A.Query.presence.PROHIBITED)return!1;return!0},A.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,A.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},A.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},A.QueryParseError.prototype=new Error,A.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},A.QueryLexer.prototype.run=function(){for(var e=A.QueryLexer.lexText;e;)e=e(this)},A.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},A.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},A.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},A.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return A.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},A.QueryLexer.prototype.width=function(){return this.pos-this.start},A.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},A.QueryLexer.prototype.backup=function(){this.pos-=1},A.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=A.QueryLexer.EOS&&this.backup()},A.QueryLexer.prototype.more=function(){return this.pos<this.length},A.QueryLexer.EOS="EOS",A.QueryLexer.FIELD="FIELD",A.QueryLexer.TERM="TERM",A.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",A.QueryLexer.BOOST="BOOST",A.QueryLexer.PRESENCE="PRESENCE",A.QueryLexer.lexField=function(e){return e.backup(),e.emit(A.QueryLexer.FIELD),e.ignore(),A.QueryLexer.lexText},A.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(A.QueryLexer.TERM)),e.ignore(),e.more())return A.QueryLexer.lexText},A.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(A.QueryLexer.EDIT_DISTANCE),A.QueryLexer.lexText},A.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(A.QueryLexer.BOOST),A.QueryLexer.lexText},A.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(A.QueryLexer.TERM)},A.QueryLexer.termSeparator=A.tokenizer.separator,A.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==A.QueryLexer.EOS)return A.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return A.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(A.QueryLexer.TERM),A.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(A.QueryLexer.TERM),A.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(A.QueryLexer.PRESENCE),A.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(A.QueryLexer.PRESENCE),A.QueryLexer.lexText;if(t.match(A.QueryLexer.termSeparator))return A.QueryLexer.lexTerm}else e.escapeCharacter()}},A.QueryParser=function(e,t){this.lexer=new A.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},A.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=A.QueryParser.parseClause;e;)e=e(this);return this.query},A.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},A.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},A.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},A.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case A.QueryLexer.PRESENCE:return A.QueryParser.parsePresence;case A.QueryLexer.FIELD:return A.QueryParser.parseField;case A.QueryLexer.TERM:return A.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new A.QueryParseError(r,t.start,t.end)}},A.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=A.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=A.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new A.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new A.QueryParseError(r,t.start,t.end);switch(n.type){case A.QueryLexer.FIELD:return A.QueryParser.parseField;case A.QueryLexer.TERM:return A.QueryParser.parseTerm;default:throw r="expecting term or field, found '"+n.type+"'",new A.QueryParseError(r,n.start,n.end)}}},A.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),n="unrecognised field '"+t.str+"', possible fields: "+r;throw new A.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i)throw n="expecting term, found nothing",new A.QueryParseError(n,t.start,t.end);if(i.type===A.QueryLexer.TERM)return A.QueryParser.parseTerm;throw n="expecting term, found '"+i.type+"'",new A.QueryParseError(n,i.start,i.end)}},A.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+r.type+"'";throw new A.QueryParseError(n,r.start,r.end)}else e.nextClause()}},A.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new A.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new A.QueryParseError(n,i.start,i.end)}else e.nextClause()}},A.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new A.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case A.QueryLexer.TERM:return e.nextClause(),A.QueryParser.parseTerm;case A.QueryLexer.FIELD:return e.nextClause(),A.QueryParser.parseField;case A.QueryLexer.EDIT_DISTANCE:return A.QueryParser.parseEditDistance;case A.QueryLexer.BOOST:return A.QueryParser.parseBoost;case A.QueryLexer.PRESENCE:return e.nextClause(),A.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new A.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return A})?n.call(t,r,t,e):n)||(e.exports=i)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,n,i,s=Object.create,o=Object.defineProperty,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertyDescriptor,d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),f=d((e=>{function t(e,t){const r=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)r[n[e]]=!0;return t?e=>!!r[e.toLowerCase()]:e=>!!r[e]}Object.defineProperty(e,"__esModule",{value:!0});var n={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o=t(s),a=t(s+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),l=/[>/="'\u0009\u000a\u000c\u0020]/,u={},c=t("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),d=t("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),f=/;(?![^(]*\))/g,h=/:(.+)/;function p(e){const t={};return e.split(f).forEach((e=>{if(e){const r=e.split(h);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}var y=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),m=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),g=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),_=/["'&<>]/,v=/^-?>|<!--|-->|--!>|<!-$/g;function x(e,t){if(e===t)return!0;let r=A(e),n=A(t);if(r||n)return!(!r||!n)&&e.getTime()===t.getTime();if(r=P(e),n=P(t),r||n)return!(!r||!n)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=x(e[n],t[n]);return r}(e,t);if(r=j(e),n=j(t),r||n){if(!r||!n)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e){const n=e.hasOwnProperty(r),i=t.hasOwnProperty(r);if(n&&!i||!n&&i||!x(e[r],t[r]))return!1}}return String(e)===String(t)}var b,w=(e,t)=>L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,r])=>(e[`${t} =>`]=r,e)),{})}:R(t)?{[`Set(${t.size})`]:[...t.values()]}:!j(t)||P(t)||F(t)?t:String(t),k=Object.freeze({}),E=Object.freeze([]),S=/^on[^a-z]/,O=Object.assign,T=Object.prototype.hasOwnProperty,P=Array.isArray,L=e=>"[object Map]"===N(e),R=e=>"[object Set]"===N(e),A=e=>e instanceof Date,C=e=>"function"==typeof e,Q=e=>"string"==typeof e,j=e=>null!==e&&"object"==typeof e,I=Object.prototype.toString,N=e=>I.call(e),F=e=>"[object Object]"===N(e),M=t(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},D=/-(\w)/g,z=$((e=>e.replace(D,((e,t)=>t?t.toUpperCase():"")))),B=/\B([A-Z])/g,V=$((e=>e.replace(B,"-$1").toLowerCase())),q=$((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=$((e=>e?`on${q(e)}`:""));e.EMPTY_ARR=E,e.EMPTY_OBJ=k,e.NO=()=>!1,e.NOOP=()=>{},e.PatchFlagNames=n,e.babelParserDefaultPlugins=["bigInt","optionalChaining","nullishCoalescingOperator"],e.camelize=z,e.capitalize=q,e.def=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},e.escapeHtml=function(e){const t=""+e,r=_.exec(t);if(!r)return t;let n,i,s="",o=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}o!==i&&(s+=t.substring(o,i)),o=i+1,s+=n}return o!==i?s+t.substring(o,i):s},e.escapeHtmlComment=function(e){return e.replace(v,"")},e.extend=O,e.generateCodeFrame=function(e,t=0,r=e.length){const n=e.split(/\r?\n/);let i=0;const s=[];for(let e=0;e<n.length;e++)if(i+=n[e].length+1,i>=t){for(let o=e-2;o<=e+2||r>i;o++){if(o<0||o>=n.length)continue;const a=o+1;s.push(`${a}${" ".repeat(Math.max(3-String(a).length,0))}| ${n[o]}`);const l=n[o].length;if(o===e){const e=t-(i-l)+1,n=Math.max(1,r>i?l-e:r-t);s.push(" | "+" ".repeat(e)+"^".repeat(n))}else if(o>e){if(r>i){const e=Math.max(Math.min(r-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+1}}break}return s.join("\n")},e.getGlobalThis=()=>b||(b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{}),e.hasChanged=(e,t)=>e!==t&&(e==e||t==t),e.hasOwn=(e,t)=>T.call(e,t),e.hyphenate=V,e.invokeArrayFns=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},e.isArray=P,e.isBooleanAttr=a,e.isDate=A,e.isFunction=C,e.isGloballyWhitelisted=i,e.isHTMLTag=y,e.isIntegerKey=e=>Q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,e.isKnownAttr=d,e.isMap=L,e.isModelListener=e=>e.startsWith("onUpdate:"),e.isNoUnitNumericStyleProp=c,e.isObject=j,e.isOn=e=>S.test(e),e.isPlainObject=F,e.isPromise=e=>j(e)&&C(e.then)&&C(e.catch),e.isReservedProp=M,e.isSSRSafeAttrName=function(e){if(u.hasOwnProperty(e))return u[e];const t=l.test(e);return t&&console.error(`unsafe attribute name: ${e}`),u[e]=!t},e.isSVGTag=m,e.isSet=R,e.isSpecialBooleanAttr=o,e.isString=Q,e.isSymbol=e=>"symbol"==typeof e,e.isVoidTag=g,e.looseEqual=x,e.looseIndexOf=function(e,t){return e.findIndex((e=>x(e,t)))},e.makeMap=t,e.normalizeClass=function e(t){let r="";if(Q(t))r=t;else if(P(t))for(let n=0;n<t.length;n++){const i=e(t[n]);i&&(r+=i+" ")}else if(j(t))for(const e in t)t[e]&&(r+=e+" ");return r.trim()},e.normalizeStyle=function e(t){if(P(t)){const r={};for(let n=0;n<t.length;n++){const i=t[n],s=e(Q(i)?p(i):i);if(s)for(const e in s)r[e]=s[e]}return r}if(j(t))return t},e.objectToString=I,e.parseStringStyle=p,e.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},e.remove=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},e.slotFlagsText={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},e.stringifyStyle=function(e){let t="";if(!e)return t;for(const r in e){const n=e[r],i=r.startsWith("--")?r:V(r);(Q(n)||"number"==typeof n&&c(i))&&(t+=`${i}:${n};`)}return t},e.toDisplayString=e=>null==e?"":j(e)?JSON.stringify(e,w,2):String(e),e.toHandlerKey=W,e.toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},e.toRawType=e=>N(e).slice(8,-1),e.toTypeString=N})),h=d(((e,t)=>{t.exports=f()})),p=d((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t,r=h(),n=new WeakMap,i=[],s=Symbol("iterate"),o=Symbol("Map key iterate");function a(e,n=r.EMPTY_OBJ){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const s=function(e,r){const n=function(){if(!n.active)return e();if(!i.includes(n)){u(n);try{return p(),i.push(n),t=n,e()}finally{i.pop(),y(),t=i[i.length-1]}}};return n.id=l++,n.allowRecurse=!!r.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=r,n}(e,n);return n.lazy||s(),s}var l=0;function u(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}var c=!0,d=[];function f(){d.push(c),c=!1}function p(){d.push(c),c=!0}function y(){const e=d.pop();c=void 0===e||e}function m(e,r,i){if(!c||void 0===t)return;let s=n.get(e);s||n.set(e,s=new Map);let o=s.get(i);o||s.set(i,o=new Set),o.has(t)||(o.add(t),t.deps.push(o),t.options.onTrack&&t.options.onTrack({effect:t,target:e,type:r,key:i}))}function g(e,i,a,l,u,c){const d=n.get(e);if(!d)return;const f=new Set,h=e=>{e&&e.forEach((e=>{(e!==t||e.allowRecurse)&&f.add(e)}))};if("clear"===i)d.forEach(h);else if("length"===a&&r.isArray(e))d.forEach(((e,t)=>{("length"===t||t>=l)&&h(e)}));else switch(void 0!==a&&h(d.get(a)),i){case"add":r.isArray(e)?r.isIntegerKey(a)&&h(d.get("length")):(h(d.get(s)),r.isMap(e)&&h(d.get(o)));break;case"delete":r.isArray(e)||(h(d.get(s)),r.isMap(e)&&h(d.get(o)));break;case"set":r.isMap(e)&&h(d.get(s))}f.forEach((t=>{t.options.onTrigger&&t.options.onTrigger({effect:t,target:e,key:a,type:i,newValue:l,oldValue:u,oldTarget:c}),t.options.scheduler?t.options.scheduler(t):t()}))}var _=r.makeMap("__proto__,__v_isRef,__isVue"),v=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(r.isSymbol)),x=S(),b=S(!1,!0),w=S(!0),k=S(!0,!0),E={};function S(e=!1,t=!1){return function(n,i,s){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&s===(e?t?oe:se:t?ie:ne).get(n))return n;const o=r.isArray(n);if(!e&&o&&r.hasOwn(E,i))return Reflect.get(E,i,s);const a=Reflect.get(n,i,s);return(r.isSymbol(i)?v.has(i):_(i))?a:(e||m(n,"get",i),t?a:ye(a)?o&&r.isIntegerKey(i)?a:a.value:r.isObject(a)?e?le(a):ae(a):a)}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];E[e]=function(...e){const r=he(this);for(let e=0,t=this.length;e<t;e++)m(r,"get",e+"");const n=t.apply(r,e);return-1===n||!1===n?t.apply(r,e.map(he)):n}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];E[e]=function(...e){f();const r=t.apply(this,e);return y(),r}}));var O=P(),T=P(!0);function P(e=!1){return function(t,n,i,s){let o=t[n];if(!e&&(i=he(i),o=he(o),!r.isArray(t)&&ye(o)&&!ye(i)))return o.value=i,!0;const a=r.isArray(t)&&r.isIntegerKey(n)?Number(n)<t.length:r.hasOwn(t,n),l=Reflect.set(t,n,i,s);return t===he(s)&&(a?r.hasChanged(i,o)&&g(t,"set",n,i,o):g(t,"add",n,i)),l}}var L={get:x,set:O,deleteProperty:function(e,t){const n=r.hasOwn(e,t),i=e[t],s=Reflect.deleteProperty(e,t);return s&&n&&g(e,"delete",t,void 0,i),s},has:function(e,t){const n=Reflect.has(e,t);return r.isSymbol(t)&&v.has(t)||m(e,"has",t),n},ownKeys:function(e){return m(e,"iterate",r.isArray(e)?"length":s),Reflect.ownKeys(e)}},R={get:w,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},A=r.extend({},L,{get:b,set:T}),C=r.extend({},R,{get:k}),Q=e=>r.isObject(e)?ae(e):e,j=e=>r.isObject(e)?le(e):e,I=e=>e,N=e=>Reflect.getPrototypeOf(e);function F(e,t,r=!1,n=!1){const i=he(e=e.__v_raw),s=he(t);t!==s&&!r&&m(i,"get",t),!r&&m(i,"get",s);const{has:o}=N(i),a=n?I:r?j:Q;return o.call(i,t)?a(e.get(t)):o.call(i,s)?a(e.get(s)):void(e!==i&&e.get(t))}function M(e,t=!1){const r=this.__v_raw,n=he(r),i=he(e);return e!==i&&!t&&m(n,"has",e),!t&&m(n,"has",i),e===i?r.has(e):r.has(e)||r.has(i)}function $(e,t=!1){return e=e.__v_raw,!t&&m(he(e),"iterate",s),Reflect.get(e,"size",e)}function D(e){e=he(e);const t=he(this);return N(t).has.call(t,e)||(t.add(e),g(t,"add",e,e)),this}function z(e,t){t=he(t);const n=he(this),{has:i,get:s}=N(n);let o=i.call(n,e);o?re(n,i,e):(e=he(e),o=i.call(n,e));const a=s.call(n,e);return n.set(e,t),o?r.hasChanged(t,a)&&g(n,"set",e,t,a):g(n,"add",e,t),this}function B(e){const t=he(this),{has:r,get:n}=N(t);let i=r.call(t,e);i?re(t,r,e):(e=he(e),i=r.call(t,e));const s=n?n.call(t,e):void 0,o=t.delete(e);return i&&g(t,"delete",e,void 0,s),o}function V(){const e=he(this),t=0!==e.size,n=r.isMap(e)?new Map(e):new Set(e),i=e.clear();return t&&g(e,"clear",void 0,void 0,n),i}function q(e,t){return function(r,n){const i=this,o=i.__v_raw,a=he(o),l=t?I:e?j:Q;return!e&&m(a,"iterate",s),o.forEach(((e,t)=>r.call(n,l(e),l(t),i)))}}function W(e,t,n){return function(...i){const a=this.__v_raw,l=he(a),u=r.isMap(l),c="entries"===e||e===Symbol.iterator&&u,d="keys"===e&&u,f=a[e](...i),h=n?I:t?j:Q;return!t&&m(l,"iterate",d?o:s),{next(){const{value:e,done:t}=f.next();return t?{value:e,done:t}:{value:c?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function U(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${r.capitalize(e)} operation ${n}failed: target is readonly.`,he(this))}return"delete"!==e&&this}}var K={get(e){return F(this,e)},get size(){return $(this)},has:M,add:D,set:z,delete:B,clear:V,forEach:q(!1,!1)},G={get(e){return F(this,e,!1,!0)},get size(){return $(this)},has:M,add:D,set:z,delete:B,clear:V,forEach:q(!1,!0)},H={get(e){return F(this,e,!0)},get size(){return $(this,!0)},has(e){return M.call(this,e,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:q(!0,!1)},J={get(e){return F(this,e,!0,!0)},get size(){return $(this,!0)},has(e){return M.call(this,e,!0)},add:U("add"),set:U("set"),delete:U("delete"),clear:U("clear"),forEach:q(!0,!0)};function Y(e,t){const n=t?e?J:G:e?H:K;return(t,i,s)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(r.hasOwn(n,i)&&i in t?n:t,i,s)}["keys","values","entries",Symbol.iterator].forEach((e=>{K[e]=W(e,!1,!1),H[e]=W(e,!0,!1),G[e]=W(e,!1,!0),J[e]=W(e,!0,!0)}));var Z={get:Y(!1,!1)},X={get:Y(!1,!0)},ee={get:Y(!0,!1)},te={get:Y(!0,!0)};function re(e,t,n){const i=he(n);if(i!==n&&t.call(e,i)){const t=r.toRawType(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap;function ae(e){return e&&e.__v_isReadonly?e:ue(e,!1,L,Z,ne)}function le(e){return ue(e,!0,R,ee,se)}function ue(e,t,n,i,s){if(!r.isObject(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(r.toRawType(l));var l;if(0===a)return e;const u=new Proxy(e,2===a?i:n);return s.set(e,u),u}function ce(e){return de(e)?ce(e.__v_raw):!(!e||!e.__v_isReactive)}function de(e){return!(!e||!e.__v_isReadonly)}function fe(e){return ce(e)||de(e)}function he(e){return e&&he(e.__v_raw)||e}var pe=e=>r.isObject(e)?ae(e):e;function ye(e){return Boolean(e&&!0===e.__v_isRef)}function me(e,t=!1){return ye(e)?e:new class{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:pe(e)}get value(){return m(he(this),"get","value"),this._value}set value(e){r.hasChanged(he(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:pe(e),g(he(this),"set","value",e))}}(e,t)}function ge(e){return ye(e)?e.value:e}var _e={get:(e,t,r)=>ge(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return ye(i)&&!ye(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function ve(e,t){return ye(e[t])?e[t]:new class{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}(e,t)}e.ITERATE_KEY=s,e.computed=function(e){let t,n;return r.isFunction(e)?(t=e,n=()=>{console.warn("Write operation failed: computed value is readonly")}):(t=e.get,n=e.set),new class{constructor(e,t,r){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=a(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,g(he(this),"set","value"))}}),this.__v_isReadonly=r}get value(){const e=he(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),m(e,"get","value"),e._value}set value(e){this._setter(e)}}(t,n,r.isFunction(e)||!e.set)},e.customRef=function(e){return new class{constructor(e){this.__v_isRef=!0;const{get:t,set:r}=e((()=>m(this,"get","value")),(()=>g(this,"set","value")));this._get=t,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}(e)},e.effect=a,e.enableTracking=p,e.isProxy=fe,e.isReactive=ce,e.isReadonly=de,e.isRef=ye,e.markRaw=function(e){return r.def(e,"__v_skip",!0),e},e.pauseTracking=f,e.proxyRefs=function(e){return ce(e)?e:new Proxy(e,_e)},e.reactive=ae,e.readonly=le,e.ref=function(e){return me(e)},e.resetTracking=y,e.shallowReactive=function(e){return ue(e,!1,A,X,ie)},e.shallowReadonly=function(e){return ue(e,!0,C,te,oe)},e.shallowRef=function(e){return me(e,!0)},e.stop=function(e){e.active&&(u(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=he,e.toRef=ve,e.toRefs=function(e){fe(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=r.isArray(e)?new Array(e.length):{};for(const r in e)t[r]=ve(e,r);return t},e.track=m,e.trigger=g,e.triggerRef=function(e){g(he(e),"set","value",e.value)},e.unref=ge})),y=d(((e,t)=>{t.exports=p()})),m=!1,g=!1,_=[];function v(){m=!1,g=!0;for(let e=0;e<_.length;e++)_[e]();_.length=0,g=!1}var x=!0;function b(e){t=e}var w=[],k=[],E=[];function S(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([r,n])=>{(void 0===t||t.includes(r))&&(n.forEach((e=>e())),delete e._x_attributeCleanups[r])}))}var O=new MutationObserver(j),T=!1;function P(){O.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),T=!0}var L=[],R=!1;function A(e){if(!T)return e();(L=L.concat(O.takeRecords())).length&&!R&&(R=!0,queueMicrotask((()=>{j(L),L.length=0,R=!1}))),O.disconnect(),T=!1;let t=e();return P(),t}var C=!1,Q=[];function j(e){if(C)return void(Q=Q.concat(e));let t=[],r=[],n=new Map,i=new Map;for(let s=0;s<e.length;s++)if(!e[s].target._x_ignoreMutationObserver&&("childList"===e[s].type&&(e[s].addedNodes.forEach((e=>1===e.nodeType&&t.push(e))),e[s].removedNodes.forEach((e=>1===e.nodeType&&r.push(e)))),"attributes"===e[s].type)){let t=e[s].target,r=e[s].attributeName,o=e[s].oldValue,a=()=>{n.has(t)||n.set(t,[]),n.get(t).push({name:r,value:t.getAttribute(r)})},l=()=>{i.has(t)||i.set(t,[]),i.get(t).push(r)};t.hasAttribute(r)&&null===o?a():t.hasAttribute(r)?(l(),a()):l()}i.forEach(((e,t)=>{S(t,e)})),n.forEach(((e,t)=>{w.forEach((r=>r(t,e)))}));for(let e of r)t.includes(e)||k.forEach((t=>t(e)));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)r.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,E.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,r=null,n=null,i=null}function I(e){return D(M(e))}function N(e,t,r){return e._x_dataStack=[t,...M(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function F(e,t){let r=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{r[e]=t}))}function M(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?M(e.host):e.parentNode?M(e.parentNode):[]}function D(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,r)=>e.some((e=>e.hasOwnProperty(r))),get:(r,n)=>(e.find((e=>{if(e.hasOwnProperty(n)){let r=Object.getOwnPropertyDescriptor(e,n);if(r.get&&r.get._x_alreadyBound||r.set&&r.set._x_alreadyBound)return!0;if((r.get||r.set)&&r.enumerable){let i=r.get,s=r.set,o=r;i=i&&i.bind(t),s=s&&s.bind(t),i&&(i._x_alreadyBound=!0),s&&(s._x_alreadyBound=!0),Object.defineProperty(e,n,{...o,get:i,set:s})}return!0}return!1}))||{})[n],set:(t,r,n)=>{let i=e.find((e=>e.hasOwnProperty(r)));return i?i[r]=n:e[e.length-1][r]=n,!0}});return t}function z(e){let t=(r,n="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach((([i,{value:s,enumerable:o}])=>{if(!1===o||void 0===s)return;let a=""===n?i:`${n}.${i}`;var l;"object"==typeof s&&null!==s&&s._x_interceptor?r[i]=s.initialize(e,a,i):"object"!=typeof(l=s)||Array.isArray(l)||null===l||s===r||s instanceof Element||t(s,a)}))};return t(e)}function B(e,t=(()=>{})){let r={initialValue:void 0,_x_interceptor:!0,initialize(t,r,n){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,r)),(e=>V(t,r,e)),r,n)}};return t(r),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=r.initialize.bind(r);r.initialize=(n,i,s)=>{let o=e.initialize(n,i,s);return r.initialValue=o,t(n,i,s)}}else r.initialValue=e;return r}}function V(e,t,r){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),V(e[t[0]],t.slice(1),r)}e[t[0]]=r}var q={};function W(e,t){q[e]=t}function U(e,t){return Object.entries(q).forEach((([r,n])=>{Object.defineProperty(e,`$${r}`,{get:()=>n(t,{Alpine:tt,interceptor:B}),enumerable:!1})})),e}function K(e,t,r,...n){try{return r(...n)}catch(r){G(r,e,t)}}function G(e,t,r){Object.assign(e,{el:t,expression:r}),console.warn(`Alpine Expression Error: ${e.message}\n\n${r?'Expression: "'+r+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}function H(e,t,r={}){let n;return J(e,t)((e=>n=e),r),n}function J(...e){return Y(...e)}var Y=Z;function Z(e,t){let r={};U(r,e);let n=[r,...M(e)];if("function"==typeof t)return function(e,t){return(r=(()=>{}),{scope:n={},params:i=[]}={})=>{ee(r,t.apply(D([n,...e]),i))}}(n,t);let i=function(e,t,r){let n=function(e,t){if(X[e])return X[e];let r=Object.getPrototypeOf((async function(){})).constructor,n=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,i=(()=>{try{return new r(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`)}catch(r){return G(r,t,e),Promise.resolve()}})();return X[e]=i,i}(t,r);return(i=(()=>{}),{scope:s={},params:o=[]}={})=>{n.result=void 0,n.finished=!1;let a=D([s,...e]);if("function"==typeof n){let e=n(n,a).catch((e=>G(e,r,t)));n.finished?(ee(i,n.result,a,o,r),n.result=void 0):e.then((e=>{ee(i,e,a,o,r)})).catch((e=>G(e,r,t))).finally((()=>n.result=void 0))}}}(n,t,e);return K.bind(null,e,t,i)}var X={};function ee(e,t,r,n,i){if("function"==typeof t){let s=t.apply(r,n);s instanceof Promise?s.then((t=>ee(e,t,r,n))).catch((e=>G(e,i,t))):e(s)}else e(t)}var te="x-";function re(e=""){return te+e}var ne={};function ie(e,t){ne[e]=t}function se(e,r,i){let s={},o=Array.from(r).map(ce(((e,t)=>s[e]=t))).filter(he).map(function(e,t){return({name:r,value:n})=>{let i=r.match(pe()),s=r.match(/:([a-zA-Z0-9\-:]+)/),o=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[r]||r;return{type:i?i[1]:null,value:s?s[1]:null,modifiers:o.map((e=>e.replace(".",""))),expression:n,original:a}}}(s,i)).sort(ge);return o.map((r=>function(e,r){let i=ne[r.type]||(()=>{}),s=[],[o,a]=function(e){let r=()=>{};return[i=>{let s=t(i);e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(s),r=()=>{void 0!==s&&(e._x_effects.delete(s),n(s))}},()=>{r()}]}(e);s.push(a);let l={Alpine:tt,effect:o,cleanup:e=>s.push(e),evaluateLater:J.bind(J,e),evaluate:H.bind(H,e)},u=()=>s.forEach((e=>e()));!function(e,t,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(r)}(e,r.original,u);let c=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,r,l),i=i.bind(i,e,r,l),oe?ae.get(le).push(i):i())};return c.runCleanups=u,c}(e,r)))}var oe=!1,ae=new Map,le=Symbol(),ue=(e,t)=>({name:r,value:n})=>(r.startsWith(e)&&(r=r.replace(e,t)),{name:r,value:n});function ce(e=(()=>{})){return({name:t,value:r})=>{let{name:n,value:i}=de.reduce(((e,t)=>t(e)),{name:t,value:r});return n!==t&&e(n,t),{name:n,value:i}}}var de=[];function fe(e){de.push(e)}function he({name:e}){return pe().test(e)}var pe=()=>new RegExp(`^${te}([^:^.]+)\\b`),ye="DEFAULT",me=["ignore","ref","data","id","bind","init","for","model","transition","show","if",ye,"teleport","element"];function ge(e,t){let r=-1===me.indexOf(e.type)?ye:e.type,n=-1===me.indexOf(t.type)?ye:t.type;return me.indexOf(r)-me.indexOf(n)}function _e(e,t,r={}){e.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!0,composed:!0,cancelable:!0}))}var ve=[],xe=!1;function be(e){ve.push(e),queueMicrotask((()=>{xe||setTimeout((()=>{we()}))}))}function we(){for(xe=!1;ve.length;)ve.shift()()}function ke(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>ke(e,t)));let r=!1;if(t(e,(()=>r=!0)),r)return;let n=e.firstElementChild;for(;n;)ke(n,t),n=n.nextElementSibling}function Ee(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Se=[],Oe=[];function Te(){return Se.map((e=>e()))}function Pe(){return Se.concat(Oe).map((e=>e()))}function Le(e){Se.push(e)}function Re(e){Oe.push(e)}function Ae(e,t=!1){return Ce(e,(e=>{if((t?Pe():Te()).some((t=>e.matches(t))))return!0}))}function Ce(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return Ce(e.parentElement,t)}}function Qe(e,t=ke){!function(r){oe=!0;let n=Symbol();le=n,ae.set(n,[]);let i=()=>{for(;ae.get(n).length;)ae.get(n).shift()();ae.delete(n)};t(e,((e,t)=>{se(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()})),oe=!1,i()}()}function je(e,t){return Array.isArray(t)?Ie(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let r=e=>e.split(" ").filter(Boolean),n=Object.entries(t).flatMap((([e,t])=>!!t&&r(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&r(e))).filter(Boolean),s=[],o=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),o.push(t))})),n.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),s.push(t))})),()=>{o.forEach((t=>e.classList.add(t))),s.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?je(e,t()):Ie(e,t)}function Ie(e,t){return t=!0===t?t="":t||"",r=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...r),()=>{e.classList.remove(...r)};var r}function Ne(e,t){return"object"==typeof t&&null!==t?function(e,t){let r={};return Object.entries(t).forEach((([t,n])=>{r[t]=e.style[t],e.style.setProperty(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),n)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{Ne(e,r)}}(e,t):function(e,t){let r=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",r||"")}}(e,t)}function Fe(e,t=(()=>{})){let r=!1;return function(){r?t.apply(this,arguments):(r=!0,e.apply(this,arguments))}}function Me(e,t,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(r=(()=>{}),n=(()=>{})){De(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,n)},out(r=(()=>{}),n=(()=>{})){De(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,n)}})}function $e(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:$e(t)}function De(e,t,{during:r,start:n,end:i}={},s=(()=>{}),o=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(r).length&&0===Object.keys(n).length&&0===Object.keys(i).length)return s(),void o();let a,l,u;!function(e,t){let r,n,i,s=Fe((()=>{A((()=>{r=!0,n||t.before(),i||(t.end(),we()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Fe((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()})),finish:s},A((()=>{t.start(),t.during()})),xe=!0,requestAnimationFrame((()=>{if(r)return;let s=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),o=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===s&&(s=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),A((()=>{t.before()})),n=!0,requestAnimationFrame((()=>{r||(A((()=>{t.end()})),we(),setTimeout(e._x_transitioning.finish,s+o),i=!0)}))}))}(e,{start(){a=t(e,n)},during(){l=t(e,r)},before:s,end(){a(),u=t(e,i)},after:o,cleanup(){l(),u()}})}function ze(e,t,r){if(-1===e.indexOf(t))return r;const n=e[e.indexOf(t)+1];if(!n)return r;if("scale"===t&&isNaN(n))return r;if("duration"===t){let e=n.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[n,e[e.indexOf(t)+2]].join(" "):n}ie("transition",((e,{value:t,modifiers:r,expression:n},{evaluate:i})=>{"function"==typeof n&&(n=i(n)),n?function(e,t,r){Me(e,je,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[r](t)}(e,n,t):function(e,t,r){Me(e,Ne);let n=!t.includes("in")&&!t.includes("out")&&!r,i=n||t.includes("in")||["enter"].includes(r),s=n||t.includes("out")||["leave"].includes(r);t.includes("in")&&!n&&(t=t.filter(((e,r)=>r<t.indexOf("out")))),t.includes("out")&&!n&&(t=t.filter(((e,r)=>r>t.indexOf("out"))));let o=!t.includes("opacity")&&!t.includes("scale"),a=o||t.includes("opacity")?0:1,l=o||t.includes("scale")?ze(t,"scale",95)/100:1,u=ze(t,"delay",0),c=ze(t,"origin","center"),d="opacity, transform",f=ze(t,"duration",150)/1e3,h=ze(t,"duration",75)/1e3,p="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:u,transitionProperty:d,transitionDuration:`${f}s`,transitionTimingFunction:p},e._x_transition.enter.start={opacity:a,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),s&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:u,transitionProperty:d,transitionDuration:`${h}s`,transitionTimingFunction:p},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:a,transform:`scale(${l})`})}(e,r,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,r,n){let i=()=>{"visible"===document.visibilityState?requestAnimationFrame(r):setTimeout(r)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):i():e._x_transition?e._x_transition.in(r):i():(e._x_hidePromise=e._x_transition?new Promise(((t,r)=>{e._x_transition.out((()=>{}),(()=>t(n))),e._x_transitioning.beforeCancel((()=>r({isFromCancelledTransition:!0})))})):Promise.resolve(n),queueMicrotask((()=>{let t=$e(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let r=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,r};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Be=!1;function Ve(e,t=(()=>{})){return(...r)=>Be?t(...r):e(...r)}function qe(t,r,n,i=[]){switch(t._x_bindings||(t._x_bindings=e({})),t._x_bindings[r]=n,r=i.includes("camel")?r.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):r){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=We(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>We(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const r=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=r.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(t,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Ne(e,t)}(t,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=je(e,t)}(t,n);break;default:!function(e,t,r){[null,void 0,!1].includes(r)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Ue(t)&&(r=t),function(e,t,r){e.getAttribute(t)!=r&&e.setAttribute(t,r)}(e,t,r))}(t,r,n)}}function We(e,t){return e==t}function Ue(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Ke(e,t){var r;return function(){var n=this,i=arguments,s=function(){r=null,e.apply(n,i)};clearTimeout(r),r=setTimeout(s,t)}}function Ge(e,t){let r;return function(){let n=this,i=arguments;r||(e.apply(n,i),r=!0,setTimeout((()=>r=!1),t))}}var He,Je,Ye={},Ze=!1,Xe={},et={},tt={get reactive(){return e},get release(){return n},get effect(){return t},get raw(){return i},version:"3.8.1",flushAndStopDeferringMutations:function(){C=!1,j(Q),Q=[]},disableEffectScheduling:function(e){x=!1,e(),x=!0},setReactivityEngine:function(r){e=r.reactive,n=r.release,t=e=>r.effect(e,{scheduler:e=>{x?function(e){var t;t=e,_.includes(t)||_.push(t),g||m||(m=!0,queueMicrotask(v))}(e):e()}}),i=r.raw},closestDataStack:M,skipDuringClone:Ve,addRootSelector:Le,addInitSelector:Re,addScopeToNode:N,deferMutations:function(){C=!0},mapAttributes:fe,evaluateLater:J,setEvaluator:function(e){Y=e},mergeProxies:D,findClosest:Ce,closestRoot:Ae,interceptor:B,transition:De,setStyles:Ne,mutateDom:A,directive:ie,throttle:Ge,debounce:Ke,evaluate:H,initTree:Qe,nextTick:be,prefixed:re,prefix:function(e){te=e},plugin:function(e){e(tt)},magic:W,store:function(t,r){if(Ze||(Ye=e(Ye),Ze=!0),void 0===r)return Ye[t];Ye[t]=r,"object"==typeof r&&null!==r&&r.hasOwnProperty("init")&&"function"==typeof r.init&&Ye[t].init(),z(Ye[t])},start:function(){var e;document.body||Ee("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),_e(document,"alpine:init"),_e(document,"alpine:initializing"),P(),e=e=>Qe(e,ke),E.push(e),k.push((e=>{ke(e,(e=>S(e)))})),w.push(((e,t)=>{se(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(Pe())).filter((e=>!Ae(e.parentElement,!0))).forEach((e=>{Qe(e)})),_e(document,"alpine:initialized")},clone:function(e,r){r._x_dataStack||(r._x_dataStack=e._x_dataStack),Be=!0,function(e){let i=t;b(((e,t)=>{let r=i(e);return n(r),()=>{}})),function(e){let t=!1;Qe(e,((e,r)=>{ke(e,((e,n)=>{if(t&&function(e){return Te().some((t=>e.matches(t)))}(e))return n();t=!0,r(e,n)}))}))}(r),b(i)}(),Be=!1},bound:function(e,t,r){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];let n=e.getAttribute(t);return null===n?"function"==typeof r?r():r:Ue(t)?!![t,"true"].includes(n):""===n||n},$data:I,data:function(e,t){et[e]=t},bind:function(e,t){Xe[e]="function"!=typeof t?()=>t:t}},rt=(He=y(),((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))l.call(e,n)||"default"===n||o(e,n,{get:()=>t[n],enumerable:!(r=c(t,n))||r.enumerable});return e})((Je=o(null!=He?s(a(He)):{},"default",He&&He.__esModule&&"default"in He?{get:()=>He.default,enumerable:!0}:{value:He,enumerable:!0}),o(Je,"__esModule",{value:!0})),He));W("nextTick",(()=>be)),W("dispatch",(e=>_e.bind(_e,e))),W("watch",(e=>(r,n)=>{let i,s=J(e,r),o=!0;t((()=>s((e=>{JSON.stringify(e),o?i=e:queueMicrotask((()=>{n(e,i),i=e})),o=!1}))))})),W("store",(function(){return Ye})),W("data",(e=>I(e))),W("root",(e=>Ae(e))),W("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=D(function(e){let t=[],r=e;for(;r;)r._x_refs&&t.push(r._x_refs),r=r.parentNode;return t}(e))),e._x_refs_proxy)));var nt={};function it(e){return nt[e]||(nt[e]=0),++nt[e]}W("id",(e=>(t,r=null)=>{let n=function(e,t){return Ce(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,t),i=n?n._x_ids[t]:it(t);return r?`${t}-${i}-${r}`:`${t}-${i}`})),W("el",(e=>e)),ie("teleport",((e,{expression:t},{cleanup:r})=>{"template"!==e.tagName.toLowerCase()&&Ee("x-teleport can only be used on a <template> tag",e);let n=document.querySelector(t);n||Ee(`Cannot find x-teleport element for selector: "${t}"`);let i=e.content.cloneNode(!0).firstElementChild;e._x_teleport=i,i._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach((t=>{i.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),N(i,{},e),A((()=>{n.appendChild(i),Qe(i),i._x_ignore=!0})),r((()=>i.remove()))}));var st=()=>{};function ot(e,t,r,n){let i=e,s=e=>n(e),o={},a=(e,t)=>r=>t(e,r);if(r.includes("dot")&&(t=t.replace(/-/g,".")),r.includes("camel")&&(t=t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))),r.includes("passive")&&(o.passive=!0),r.includes("capture")&&(o.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("prevent")&&(s=a(s,((e,t)=>{t.preventDefault(),e(t)}))),r.includes("stop")&&(s=a(s,((e,t)=>{t.stopPropagation(),e(t)}))),r.includes("self")&&(s=a(s,((t,r)=>{r.target===e&&t(r)}))),(r.includes("away")||r.includes("outside"))&&(i=document,s=a(s,((t,r)=>{e.contains(r.target)||e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(r)}))),s=a(s,((e,n)=>{(function(e){return["keydown","keyup"].includes(e)})(t)&&function(e,t){let r=t.filter((e=>!["window","document","prevent","stop","once"].includes(e)));if(r.includes("debounce")){let e=r.indexOf("debounce");r.splice(e,at((r[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===r.length)return!1;if(1===r.length&<(e.key).includes(r[0]))return!1;const n=["ctrl","shift","alt","meta","cmd","super"].filter((e=>r.includes(e)));return r=r.filter((e=>!n.includes(e))),!(n.length>0&&n.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===n.length&<(e.key).includes(r[0]))}(n,r)||e(n)})),r.includes("debounce")){let e=r[r.indexOf("debounce")+1]||"invalid-wait",t=at(e.split("ms")[0])?Number(e.split("ms")[0]):250;s=Ke(s,t)}if(r.includes("throttle")){let e=r[r.indexOf("throttle")+1]||"invalid-wait",t=at(e.split("ms")[0])?Number(e.split("ms")[0]):250;s=Ge(s,t)}return r.includes("once")&&(s=a(s,((e,r)=>{e(r),i.removeEventListener(t,s,o)}))),i.addEventListener(t,s,o),()=>{i.removeEventListener(t,s,o)}}function at(e){return!Array.isArray(e)&&!isNaN(e)}function lt(e){if(!e)return[];e=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map((r=>{if(t[r]===e)return r})).filter((e=>e))}function ut(e){let t=e?parseFloat(e):null;return r=t,Array.isArray(r)||isNaN(r)?e:t;var r}function ct(e,t,r,n){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,r)=>{i[e]=t[r]})):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t?e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{i[e]=t[e]})):i[e.item]=t,e.index&&(i[e.index]=r),e.collection&&(i[e.collection]=n),i}function dt(){}st.inline=(e,{modifiers:t},{cleanup:r})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r((()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore}))},ie("ignore",st),ie("effect",((e,{expression:t},{effect:r})=>r(J(e,t)))),ie("model",((e,{modifiers:t,expression:r},{effect:n,cleanup:i})=>{let s=J(e,r),o=J(e,`${r} = rightSideOfExpression($event, ${r})`);var a="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=function(e,t,r){return"radio"===e.type&&A((()=>{e.hasAttribute("name")||e.setAttribute("name",r)})),(r,n)=>A((()=>{if(r instanceof CustomEvent&&void 0!==r.detail)return r.detail||r.target.value;if("checkbox"===e.type){if(Array.isArray(n)){let e=t.includes("number")?ut(r.target.value):r.target.value;return r.target.checked?n.concat([e]):n.filter((t=>!(t==e)))}return r.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(r.target.selectedOptions).map((e=>ut(e.value||e.text))):Array.from(r.target.selectedOptions).map((e=>e.value||e.text));{let e=r.target.value;return t.includes("number")?ut(e):t.includes("trim")?e.trim():e}}))}(e,t,r),u=ot(e,a,t,(e=>{o((()=>{}),{scope:{$event:e,rightSideOfExpression:l}})}));i((()=>u()));let c=J(e,`${r} = __placeholder`);e._x_model={get(){let e;return s((t=>e=t)),e},set(e){c((()=>{}),{scope:{__placeholder:e}})}},e._x_forceModelUpdate=()=>{s((t=>{void 0===t&&r.match(/\./)&&(t=""),window.fromModel=!0,A((()=>qe(e,"value",t))),delete window.fromModel}))},n((()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()}))})),ie("cloak",(e=>queueMicrotask((()=>A((()=>e.removeAttribute(re("cloak")))))))),Re((()=>`[${re("init")}]`)),ie("init",Ve(((e,{expression:t})=>"string"==typeof t?!!t.trim()&&H(e,t,{}):H(e,t,{})))),ie("text",((e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r((()=>{i((t=>{A((()=>{e.textContent=t}))}))}))})),ie("html",((e,{expression:t},{effect:r,evaluateLater:n})=>{let i=n(t);r((()=>{i((t=>{e.innerHTML=t}))}))})),fe(ue(":",re("bind:"))),ie("bind",((e,{value:t,modifiers:r,expression:n,original:i},{effect:s})=>{if(!t)return function(e,t,r,n){let i={};var s;s=i,Object.entries(Xe).forEach((([e,t])=>{Object.defineProperty(s,e,{get:()=>(...e)=>t(...e)})}));let o=J(e,t),a=[];for(;a.length;)a.pop()();o((t=>{let n=Object.entries(t).map((([e,t])=>({name:e,value:t}))),i=function(e){return Array.from(e).map(ce()).filter((e=>!he(e)))}(n);n=n.map((e=>i.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),se(e,n,r).map((e=>{a.push(e.runCleanups),e()}))}),{scope:i})}(e,n,i);if("key"===t)return function(e,t){e._x_keyExpression=t}(e,n);let o=J(e,n);s((()=>o((i=>{void 0===i&&n.match(/\./)&&(i=""),A((()=>qe(e,t,i,r)))}))))})),Le((()=>`[${re("data")}]`)),ie("data",Ve(((t,{expression:r},{cleanup:n})=>{r=""===r?"{}":r;let i={};U(i,t);let s={};var o,a;o=s,a=i,Object.entries(et).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t.bind(a)(...e),enumerable:!1})}));let l=H(t,r,{scope:s});void 0===l&&(l={}),U(l,t);let u=e(l);z(u);let c=N(t,u);u.init&&H(t,u.init),n((()=>{c(),u.destroy&&H(t,u.destroy)}))}))),ie("show",((e,{modifiers:t,expression:r},{effect:n})=>{let i,s=J(e,r),o=()=>A((()=>{e.style.display="none",e._x_isShown=!1})),a=()=>A((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0})),l=()=>setTimeout(a),u=Fe((e=>e?a():o()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,a,o):t?l():o()})),c=!0;n((()=>s((e=>{(c||e!==i)&&(t.includes("immediate")&&(e?l():o()),u(e),i=e,c=!1)}))))})),ie("for",((t,{expression:r},{effect:n,cleanup:i})=>{let s=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=e.match(/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/);if(!r)return;let n={};n.items=r[2].trim();let i=r[1].replace(/^\s*\(|\)\s*$/g,"").trim(),s=i.match(t);return s?(n.item=i.replace(t,"").trim(),n.index=s[1].trim(),s[2]&&(n.collection=s[2].trim())):n.item=i,n}(r),o=J(t,s.items),a=J(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},n((()=>function(t,r,n,i){let s=t;n((n=>{var o;o=n,!Array.isArray(o)&&!isNaN(o)&&n>=0&&(n=Array.from(Array(n).keys(),(e=>e+1))),void 0===n&&(n=[]);let a=t._x_lookup,l=t._x_prevKeys,u=[],c=[];if("object"!=typeof(d=n)||Array.isArray(d))for(let e=0;e<n.length;e++){let t=ct(r,n[e],e,n);i((e=>c.push(e)),{scope:{index:e,...t}}),u.push(t)}else n=Object.entries(n).map((([e,t])=>{let s=ct(r,t,e,n);i((e=>c.push(e)),{scope:{index:e,...s}}),u.push(s)}));var d;let f=[],h=[],p=[],y=[];for(let e=0;e<l.length;e++){let t=l[e];-1===c.indexOf(t)&&p.push(t)}l=l.filter((e=>!p.includes(e)));let m="template";for(let e=0;e<c.length;e++){let t=c[e],r=l.indexOf(t);if(-1===r)l.splice(e,0,t),f.push([m,e]);else if(r!==e){let t=l.splice(e,1)[0],n=l.splice(r-1,1)[0];l.splice(e,0,n),l.splice(r,0,t),h.push([t,n])}else y.push(t);m=t}for(let e=0;e<p.length;e++){let t=p[e];a[t].remove(),a[t]=null,delete a[t]}for(let e=0;e<h.length;e++){let[t,r]=h[e],n=a[t],i=a[r],s=document.createElement("div");A((()=>{i.after(s),n.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),s.before(n),n._x_currentIfEl&&n.after(n._x_currentIfEl),s.remove()})),F(i,u[c.indexOf(r)])}for(let t=0;t<f.length;t++){let[r,n]=f[t],i="template"===r?s:a[r];i._x_currentIfEl&&(i=i._x_currentIfEl);let o=u[n],l=c[n],d=document.importNode(s.content,!0).firstElementChild;N(d,e(o),s),A((()=>{i.after(d),Qe(d)})),"object"==typeof l&&Ee("x-for key cannot be an object, it must be a string or an integer",s),a[l]=d}for(let e=0;e<y.length;e++)F(a[y[e]],u[c.indexOf(y[e])]);s._x_prevKeys=c}))}(t,s,o,a))),i((()=>{Object.values(t._x_lookup).forEach((e=>e.remove())),delete t._x_prevKeys,delete t._x_lookup}))})),dt.inline=(e,{expression:t},{cleanup:r})=>{let n=Ae(e);n._x_refs||(n._x_refs={}),n._x_refs[t]=e,r((()=>delete n._x_refs[t]))},ie("ref",dt),ie("if",((e,{expression:t},{effect:r,cleanup:n})=>{let i=J(e,t);r((()=>i((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;N(t,{},e),A((()=>{e.after(t),Qe(t)})),e._x_currentIfEl=t,e._x_undoIf=()=>{t.remove(),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),n((()=>e._x_undoIf&&e._x_undoIf()))})),ie("id",((e,{expression:t},{evaluate:r})=>{r(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=it(t))}(e,t)))})),fe(ue("@",re("on:"))),ie("on",Ve(((e,{value:t,modifiers:r,expression:n},{cleanup:i})=>{let s=n?J(e,n):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let o=ot(e,t,r,(e=>{s((()=>{}),{scope:{$event:e},params:[e]})}));i((()=>o()))}))),tt.setEvaluator(Z),tt.setReactivityEngine({reactive:rt.reactive,effect:rt.effect,release:rt.stop,raw:rt.toRaw});var ft=tt,ht=r(336);const pt=r.n(ht)()((function(){this.field("name"),this.field("version"),this.field("repo"),this.field("component"),package_data.forEach((function(e){this.add(e)}),this)}));anchors.add(),$(document).ready((function(){$(".collapse-trigger").click((function(){var e=$(this).attr("data-target");if(e){var t=$(document).find("#"+e);$(t).toggleClass("collapsed")}})),$(".highlight > pre").each((function(e){if(!$(this).parent().hasClass("no-select-button")){var t="codeblock"+(e+1);$(this).find("code").attr("id",t);var r=document.createElement("a");r.setAttribute("type","button"),r.setAttribute("class","btn btn-copy-code"),r.setAttribute("data-clipboard-target","#"+t),r.innerHTML='<i class="far fa-file-code fa-2x"></i>',this.insertBefore(r,this.firstChild),tippy(r,{trigger:"manual",content:"Copied!",placement:"left"})}})),new ClipboardJS(".btn-copy-code").on("success",(function(e){var t=e.trigger._tippy;e.clearSelection(),t.show(),setTimeout((function(){t.hide()}),1e3,t)}))})),ft.data("searchComponent",(()=>({show:!1,query:"",getResults(){if(this.query.length<1)return[];var e=pt.search(this.query).slice(0,10).map((function(e){return package_data.filter((function(t,r,n){return t.id==e.ref}))[0]}));return this.open(),e},toggle(){this.show=!this.show},open(){this.show=!0},close(){this.show=!1},isOpen(){return this.show}}))),ft.start()})()})(); |