vendor: 8,179 bytes, line 1
1import{_ as Be}from"./osqaVy29.js";import{_ as Se}from"./Dgs6hFTu.js";import{s as P,G as ie,k as F,au as $,a as ke,d as Ie,P as Q,b as D,o as v,f as O,e as T,n as C,t as j,F as ue,h as ee,c as x,B as J,r as G,m as Z,E as ze,g as He,a8 as Fe,y as Ue,A as We,ao as Ve,K as Ge,i as qe,j as me,H as oe,a5 as Ye,p as Qe,q as ye}from"./Bcc8-a-q.js";import{r as Je,u as Xe,i as Ze,l as et}from"./CFKx4z_S.js";import{s as Me}from"./BclhCOHB.js";import{U as De}from"./CfUektVg.js";import{u as tt}from"./CdE3OqS9.js";import{_ as we}from"./C9Q6WIAX.js";import{_ as xe}from"./Bl7E7JBY.js";import{u as $e,c as nt}from"./oaYCrmSY.js";import{d as st,e as rt}from"./B8rpExb1.js";const it={wrapper:"flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",container:"relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",input:{wrapper:"relative flex items-center",base:"w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",padding:"px-4",height:"h-12",size:"sm:text-sm",icon:{base:"pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",loading:"animate-spin",size:"h-5 w-5",padding:"ps-11"},closeButton:{base:"absolute end-4",padding:"pe-10"}},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",queryLabel:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},group:{wrapper:"p-2",label:"px-2.5 my-2 text-xs font-semibold text-gray-900 dark:text-white",container:"text-sm text-gray-700 dark:text-gray-200",command:{base:"flex justify-between select-none items-center rounded-md px-2.5 py-1.5 gap-2 relative",active:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactive:"",label:"flex items-center gap-1.5 min-w-0",prefix:"text-gray-400 dark:text-gray-500",suffix:"text-gray-400 dark:text-gray-500",container:"flex items-center gap-1.5 min-w-0",icon:{base:"flex-shrink-0 w-5 h-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"},disabled:"opacity-50",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5"},active:"flex-shrink-0 text-gray-500 dark:text-gray-400",inactive:"flex-shrink-0 text-gray-500 dark:text-gray-400"},default:{icon:"i-heroicons-magnifying-glass-20-solid",loadingIcon:"i-heroicons-arrow-path-20-solid",emptyState:{icon:"i-heroicons-magnifying-glass-20-solid",label:"We couldn't find any items.",queryLabel:"We couldn't find any items with that term. Please try again."},closeButton:null,selectedIcon:"i-heroicons-check-20-solid"}};function _(e){return Array.isArray?Array.isArray(e):Ne(e)==="[object Array]"}function ut(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ot(e){return e==null?"":ut(e)}function L(e){return typeof e=="string"}function Oe(e){return typeof e=="number"}function at(e){return e===!0||e===!1||ct(e)&&Ne(e)=="[object Boolean]"}function Le(e){return typeof e=="object"}function ct(e){return Le(e)&&e!==null}function M(e){return e!=null}function re(e){return!e.trim().length}function Ne(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const lt="Incorrect 'index' type",ht=e=>`Invalid value for key ${e}`,dt=e=>`Pattern length exceeds max of ${e}.`,ft=e=>`Missing ${e} property in key`,pt=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ae=Object.prototype.hasOwnProperty;class gt{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(s=>{let r=Re(s);this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Re(e){let t=null,n=null,s=null,r=1,i=null;if(L(e)||_(e))s=e,t=be(e),n=ae(e);else{if(!Ae.call(e,"name"))throw new Error(ft("name"));const u=e.name;if(s=u,Ae.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(pt(u));t=be(u),n=ae(u),i=e.getFn}return{path:t,id:n,weight:r,src:s,getFn:i}}function be(e){return _(e)?e:e.split(".")}function ae(e){return _(e)?e.join("."):e}function mt(e,t){let n=[],s=!1;const r=(i,u,c)=>{if(M(i))if(!u[c])n.push(i);else{let l=u[c];const a=i[l];if(!M(a))return;if(c===u.length-1&&(L(a)||Oe(a)||at(a)))n.push(ot(a));else if(_(a)){s=!0;for(let o=0,h=a.length;o<h;o+=1)r(a[o],u,c+1)}else u.length&&r(a,u,c+1)}};return r(e,L(t)?t.split("."):t,0),s?n:n[0]}const yt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},At={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},bt={location:0,threshold:.6,distance:100},vt={useExtendedSearch:!1,getFn:mt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...At,...yt,...bt,...vt};const Ct=/[^ ]+/g;function Et(e=1,t=3){const n=new Map,s=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(n.has(i))return n.get(i);const u=1/Math.pow(i,.5*e),c=parseFloat(Math.round(u*s)/s);return n.set(i,c),c},clear(){n.clear()}}}class pe{constructor({getFn:t=f.getFn,fieldNormWeight:n=f.fieldNormWeight}={}){this.norm=Et(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,s)=>{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,L(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();L(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,s=this.size();n<s;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!M(t)||re(t))return;let s={v:t,i:n,n:this.norm.get(t)};this.records.push(s)}_addObject(t,n){let s={i:n,$:{}};this.keys.forEach((r,i)=>{let u=r.getFn?r.getFn(t):this.getFn(t,r.path);if(M(u)){if(_(u)){let c=[];const l=[{nestedArrIndex:-1,value:u}];for(;l.length;){const{nestedArrIndex:a,value:o}=l.pop();if(M(o))if(L(o)&&!re(o)){let h={v:o,i:a,n:this.norm.get(o)};c.push(h)}else _(o)&&o.forEach((h,d)=>{l.push({nestedArrIndex:d,value:h})})}s.$[i]=c}else if(L(u)&&!re(u)){let c={v:u,n:this.norm.get(u)};s.$[i]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function _e(e,t,{getFn:n=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const r=new pe({getFn:n,fieldNormWeight:s});return r.setKeys(e.map(Re)),r.setSources(t),r.create(),r}function Bt(e,{getFn:t=f.getFn,fieldNormWeight:n=f.fieldNormWeight}={}){const{keys:s,records:r}=e,i=new pe({getFn:t,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(r),i}function X(e,{errors:t=0,currentLocation:n=0,expectedLocation:s=0,distance:r=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const u=t/e.length;if(i)return u;const c=Math.abs(s-n);return r?u+c/r:c?1:u}function St(e=[],t=f.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let u=e.length;i<u;i+=1){let c=e[i];c&&s===-1?s=i:!c&&s!==-1&&(r=i-1,r-s+1>=t&&n.push([s,r]),s=-1)}return e[i-1]&&i-s>=t&&n.push([s,i-1]),n}const U=32;function kt(e,t,n,{location:s=f.location,distance:r=f.distance,threshold:i=f.threshold,findAllMatches:u=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,includeMatches:l=f.includeMatches,ignoreLocation:a=f.ignoreLocation}={}){if(t.length>U)throw new Error(dt(U));const o=t.length,h=e.length,d=Math.max(0,Math.min(s,h));let p=i,m=d;const y=c>1||l,E=y?Array(h):[];let I;for(;(I=e.indexOf(t,m))>-1;){let g=X(t,{currentLocation:I,expectedLocation:d,distance:r,ignoreLocation:a});if(p=Math.min(g,p),m=I+o,y){let A=0;for(;A<o;)E[I+A]=1,A+=1}}m=-1;let w=[],N=1,R=o+h;const se=1<<o-1;for(let g=0;g<o;g+=1){let A=0,B=R;for(;A<B;)X(t,{errors:g,currentLocation:d+B,expectedLocation:d,distance:r,ignoreLocation:a}
vendor: 4,588 bytes, line 1
1)<=p?A=B:R=B,B=Math.floor((R-A)/2+A);R=B;let W=Math.max(1,d-B+1),b=u?h:Math.min(d+B,h)+o,S=Array(b+2);S[b+1]=(1<<g)-1;for(let k=b;k>=W;k-=1){let H=k-1,ge=n[e.charAt(H)];if(y&&(E[H]=+!!ge),S[k]=(S[k+1]<<1|1)&ge,g&&(S[k]|=(w[k+1]|w[k])<<1|1|w[k+1]),S[k]&se&&(N=X(t,{errors:g,currentLocation:H,expectedLocation:d,distance:r,ignoreLocation:a}),N<=p)){if(p=N,m=H,m<=d)break;W=Math.max(1,2*d-m)}}if(X(t,{errors:g+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:a})>p)break;w=S}const Y={isMatch:m>=0,score:Math.max(.001,N)};if(y){const g=St(E,c);g.length?l&&(Y.indices=g):Y.isMatch=!1}return Y}function It(e){let t={};for(let n=0,s=e.length;n<s;n+=1){const r=e.charAt(n);t[r]=(t[r]||0)|1<<s-n-1}return t}const te=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class Ke{constructor(t,{location:n=f.location,threshold:s=f.threshold,distance:r=f.distance,includeMatches:i=f.includeMatches,findAllMatches:u=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:l=f.isCaseSensitive,ignoreDiacritics:a=f.ignoreDiacritics,ignoreLocation:o=f.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:u,minMatchCharLength:c,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:o},t=l?t:t.toLowerCase(),t=a?te(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const h=(p,m)=>{this.chunks.push({pattern:p,alphabet:It(p),startIndex:m})},d=this.pattern.length;if(d>U){let p=0;const m=d%U,y=d-m;for(;p<y;)h(this.pattern.substr(p,U),p),p+=U;if(m){const E=d-U;h(this.pattern.substr(E),E)}}else h(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:s,includeMatches:r}=this.options;if(t=n?t:t.toLowerCase(),t=s?te(t):t,this.pattern===t){let y={isMatch:!0,score:0};return r&&(y.indices=[[0,t.length-1]]),y}const{location:i,distance:u,threshold:c,findAllMatches:l,minMatchCharLength:a,ignoreLocation:o}=this.options;let h=[],d=0,p=!1;this.chunks.forEach(({pattern:y,alphabet:E,startIndex:I})=>{const{isMatch:w,score:N,indices:R}=kt(t,y,E,{location:i+I,distance:u,threshold:c,findAllMatches:l,minMatchCharLength:a,includeMatches:r,ignoreLocation:o});w&&(p=!0),d+=N,w&&R&&(h=[...h,...R])});let m={isMatch:p,score:p?d/this.chunks.length:1};return p&&r&&(m.indices=h),m}}class z{constructor(t){this.pattern=t}static isMultiMatch(t){return ve(t,this.multiRegex)}static isSingleMatch(t){return ve(t,this.singleRegex)}search(){}}function ve(e,t){const n=e.match(t);
vendor: 4,992 bytes, line 1
1return n?n[1]:null}class Ft extends z{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mt extends z{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const s=t.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Dt extends z{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class wt extends z{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class xt extends z{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class $t extends z{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class je extends z{constructor(t,{location:n=f.location,threshold:s=f.threshold,distance:r=f.distance,includeMatches:i=f.includeMatches,findAllMatches:u=f.findAllMatches,minMatchCharLength:c=f.minMatchCharLength,isCaseSensitive:l=f.isCaseSensitive,ignoreDiacritics:a=f.ignoreDiacritics,ignoreLocation:o=f.ignoreLocation}={}){super(t),this._bitapSearch=new Ke(t,{location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:u,minMatchCharLength:c,isCaseSensitive:l,ignoreDiacritics:a,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Pe extends z{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,s;const r=[],i=this.pattern.length;for(;(s=t.indexOf(this.pattern,n))>-1;)n=s+i,r.push([s,n-1]);const u=!!r.length;return{isMatch:u,score:u?0:1,indices:r}}}const ce=[Ft,Pe,Dt,wt,$t,xt,Mt,je],Ce=ce.length,Ot=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Lt="|";function Nt(e,t={}){return e.split(Lt).map(n=>{let s=n.trim().split(Ot).filter(i=>i&&!!i.trim()),r=[];for(let i=0,u=s.length;i<u;i+=1){const c=s[i];let l=!1,a=-1;for(;!l&&++a<Ce;){const o=ce[a];let h=o.isMultiMatch(c);h&&(r.push(new o(h,t)),l=!0)}if(!l)for(a=-1;++a<Ce;){const o=ce[a];let h=o.isSingleMatch(c);if(h){r.push(new o(h,t));break}}}return r})}const Rt=new Set([je.type,Pe.type]);class _t{constructor(t,{isCaseSensitive:n=f.isCaseSensitive,ignoreDiacritics:s=f.ignoreDiacritics,includeMatches:r=f.includeMatches,minMatchCharLength:i=f.minMatchCharLength,ignoreLocation:u=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:l=f.location,threshold:a=f.threshold,distance:o=f.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:u,location:l,threshold:a,distance:o},t=n?t:t.toLowerCase(),t=s?te(t):t,this.pattern=t,this.query=Nt(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:r,ignoreDiacritics:i}=this.options;t=r?t:t.toLowerCase(),t=i?te(t):t;let u=0,c=[],l=0;for(let a=0,o=n.length;a<o;a+=1){const h=n[a];c.length=0,u=0;for(let d=0,p=h.length;d<p;d+=1){const m=h[d],{isMatch:y,indices:E,score:I}=m.search(t);if(y){if(u+=1,l+=I,s){const w=m.constructor.type;Rt.has(w)?c=[...c,...E]:c.push(E)}}else{l=0,u=0,c.length=0;break}}if(u){let d={isMatch:!0,score:l/u};return s&&(d.indices=c),d}}return{isMatch:!1,score:1}}}const le=[];function Kt(...e){le.push(...e)}function he(e,t){for(let n=0,s=le.length;n<s;n+=1){let r=le[n];if(r.condition(e,t))return new r(e,t)}return new Ke(e,t)}const ne={AND:"$and",OR:"$or"},de={PATH:"$path",PATTERN:"$val"},fe=e=>!!(e[ne.AND]||e[ne.OR]),jt=e=>!!e[de.PATH],Pt=e=>!_(e)&&Le(e)&&!fe(e),Ee=e=>({[ne.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Te(e,t,{auto:n=!0}={}){const s=r=>{let i=Object.keys(r);const u=jt(r);if(!u&&i.length>1&&!fe(r))return s(Ee(r));if(Pt(r)){const l=u?r[de.PATH]:i[0],a=u?r[de.PATTERN]:r[l];if(!L(a))throw new Error(ht(l));const o={keyId:ae(l),pattern:a};return n&&(o.searcher=he(a,t)),o}let c={children:[],operator:i[0]};
1return i.forEach(l=>{const a=r[l];_(a)&&a.forEach(o=>{c.children.push(s(o))})}),c};return fe(e)||(e=Ee(e)),s(e)}function Tt(e,{ignoreFieldNorm:t=f.ignoreFieldNorm}){e.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:i,score:u})=>{const c=r?r.weight:null;s*=Math.pow(u===0&&c?Number.EPSILON:u,(c||1)*(t?1:i))}),n.score=s})}function zt(e,t){const n=e.matches;t.matches=[],M(n)&&n.forEach(s=>{if(!M(s.indices)||!s.indices.length)return;const{indices:r,value:i}=s;let u={indices:r,value:i};s.key&&(u.key=s.key.src),s.idx>-1&&(u.refIndex=s.idx),t.matches.push(u)})}function Ht(e,t){t.score=e.score}function Ut(e,t,{includeMatches:n=f.includeMatches,includeScore:s=f.includeScore}={}){const r=[];return n&&r.push(zt),s&&r.push(Ht),e.map(i=>{const{idx:u}=i,c={item:t[u],refIndex:u};return r.length&&r.forEach(l=>{l(i,c)}),c})}class q{constructor(t,n={},s){this.options={...f,...n},this.options.useExtendedSearch,this._keyStore=new gt(this.options.keys),this.setCollection(t,s)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof pe))throw new Error(lt);this._myIndex=n||_e(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){M(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let s=0,r=this._docs.length;s<r;s+=1){const i=this._docs[s];t(i,s)&&(this.removeAt(s),s-=1,r-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:s,includeScore:r,shouldSort:i,sortFn:u,ignoreFieldNorm:c}=this.options;let l=L(t)?L(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Tt(l,{ignoreFieldNorm:c}),i&&l.sort(u),Oe(n)&&n>-1&&(l=l.slice(0,n)),Ut(l,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(t){const n=he(t,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:i,i:u,n:c})=>{if(!M(i))return;const{isMatch:l,score:a,indices:o}=n.searchIn(i);l&&r.push({item:i,idx:u,matches:[{score:a,value:i,norm:c,indices:o}]})}),r}_searchLogical(t){const n=Te(t,this.options),s=(c,l,a)=>{if(!c.children){const{keyId:h,searcher:d}=c,p=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(l,h),searcher:d});return p&&p.length?[{idx:a,item:l,matches:p}]:[]}const o=[];for(let h=0,d=c.children.length;h<d;h+=1){const p=c.children[h],m=s(p,l,a);if(m.length)o.push(...m);else if(c.operator===ne.AND)return[]}return o},r=this._myIndex.records,i={},u=[];return r.forEach(({$:c,i:l})=>{if(M(c)){let a=s(n,c,l);a.length&&(i[l]||(i[l]={idx:l,item:c,matches:[]},u.push(i[l])),a.forEach(({matches:o})=>{i[l].matches.push(...o)}))}}),u}_searchObjectList(t){const n=he(t,this.options),{keys:s,records:r}=this._myIndex,i=[];return r.forEach(({$:u,i:c})=>{if(!M(u))return;let l=[];s.forEach((a,o)=>{l.push(...this._findMatches({key:a,value:u[o],searcher:n}))}),l.length&&i.push({idx:c,item:u,matches:l})}),i}_findMatches({key:t,value:n,searcher:s}){if(!M(n))return[];let r=[];if(_(n))n.forEach(({v:i,i:u,n:c})=>{if(!M(i))return;const{isMatch:l,score:a,indices:o}=s.searchIn(i);l&&r.push({score:a,key:t,value:i,idx:u,norm:c,indices:o})});else{const{v:i,n:u}=n,{isMatch:c,score:l,indices:a}=s.searchIn(i);c&&r.push({score:l,key:t,value:i,norm:u,indices:a})}return r}}q.version="7.1.0";q.createIndex=_e;q.parseIndex=Bt;q.config=f;q.parseQuery=Te;Kt(_t);function Wt(e,t,n){const s=()=>{var u,c;return new q((u=$(t))!=null?u:[],(c=$(n))==null?void 0:c.fuseOptions)},r=P(s());ie(()=>{var u;return(u=$(n))==null?void 0:u.fuseOptions},()=>{r.value=s()},{deep:!0}),ie(()=>$(t),u=>{r.value.setCollection(u)},{deep:!0});const i=F(()=>{const u=$(n);if(u!=null&&u.matchAllWhenSearchEmpty&&!$(e))return $(t).map((l,a)=>({item:l,refIndex:a}));const c=u==null?void 0:u.resultLimit;return r.value.search($(e),c?{limit:c}:void 0)});return{fuse:r,results:i}}const Vt=Ie({components:{HComboboxOption:Je,UIcon:De,UAvatar:we,UKbd:xe},props:{group:{type:Object,required:!0},query:{type:String,default:""},groupAttribute:{type:String,required:!0},commandAttribute:{type:String,required:!0},selectedIcon:{type:String,required:!0},ui:{type:Object,required:!0}},setup(e){const t=F(()=>{const s=e.group[e.groupAttribute];return typeof s=="function"?s(e.query):s});function n(s,{indices:r,value:i}){if(s===i)return"";let u="",c=0;r.forEach(a=>{const o=a[1]+1,h=o-a[0]>=e.query.length;u+=[i.substring(c,a[0]),h&&"<mark>",i.substring(a[0],o),h&&"</mark>
1"].filter(Boolean).join(""),c=o}),u+=i.substring(c);const l=u.indexOf("<mark>");return l>60&&(u=`...${u.substring(l-60)}`),u}return Me(()=>Fe()),{label:t,highlight:n}}}),Gt=["aria-label"],qt=["innerHTML"];function Yt(e,t,n,s,r,i){const u=Be,c=we,l=xe,a=Q("HComboboxOption");return v(),D("div",{class:C(e.ui.group.wrapper)},[e.label?(v(),D("h2",{key:0,class:C(e.ui.group.label)},j(e.label),3)):O("",!0),T("div",{class:C(e.ui.group.container),"aria-label":e.group[e.groupAttribute]},[(v(!0),D(ue,null,ee(e.group.commands,(o,h)=>(v(),x(a,{key:`${e.group.key}-${h}`,value:o,disabled:o.disabled,as:"template"},{default:J(({active:d,selected:p})=>[T("div",{class:C([e.ui.group.command.base,d?e.ui.group.command.active:e.ui.group.command.inactive,o.disabled?"cursor-not-allowed":"cursor-pointer"])},[T("div",{class:C(e.ui.group.command.container)},[G(e.$slots,`${e.group.key}-icon`,{group:e.group,command:o,active:d,selected:p},()=>[o.icon?(v(),x(u,{key:0,name:o.icon,class:C([e.ui.group.command.icon.base,d?e.ui.group.command.icon.active:e.ui.group.command.icon.inactive,o.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):o.avatar?(v(),x(c,Z({key:1,ref_for:!0},{size:e.ui.group.command.avatar.size,...o.avatar},{class:e.ui.group.command.avatar.base,"aria-hidden":"true"}),null,16,["class"])):o.chip?(v(),D("span",{key:2,class:C(e.ui.group.command.chip.base),style:ze({background:`#${o.chip}`})},null,6)):O("",!0)]),T("div",{class:C([e.ui.group.command.label,o.disabled&&e.ui.group.command.disabled])},[G(e.$slots,`${e.group.key}-command`,{group:e.group,command:o,active:d,selected:p},()=>{var m,y;return[o.prefix?(v(),D("span",{key:0,class:C(["flex-shrink-0",o.prefixClass||e.ui.group.command.prefix])},j(o.prefix),3)):O("",!0),T("span",{class:C(["truncate",{"flex-none":o.suffix||((m=o.matches)==null?void 0:m.length)}])},j(o[e.commandAttribute]),3),(y=o.matches)!=null&&y.length?(v(),D("span",{key:1,class:C(["truncate",o.suffixClass||e.ui.group.command.suffix]),innerHTML:e.highlight(o[e.commandAttribute],o.matches[0])},null,10,qt)):o.suffix?(v(),D("span",{key:2,class:C(["truncate",o.suffixClass||e.ui.group.command.suffix])},j(o.suffix),3)):O("",!0)]})],2)],2),p?(v(),x(u,{key:0,name:e.selectedIcon,class:C(e.ui.group.command.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])):d&&(e.group.active||e.$slots[`${e.group.key}-active`])?G(e.$slots,`${e.group.key}-active`,{key:1,group:e.group,command:o,active:d,selected:p},()=>[e.group.active?(v(),D("span",{key:0,class:C(e.ui.group.active)},j(e.group.active),3)):O("",!0)]):G(e.$slots,`${e.group.key}-inactive`,{key:2,group:e.group,command:o,active:d,selected:p},()=>{var m;return[(m=o.shortcuts)!=null&&m.length?(v(),D("span",{key:0,class:C(e.ui.group.command.shortcuts)},[(v(!0),D(ue,null,ee(o.shortcuts,y=>(v(),x(l,{key:y},{default:J(()=>[He(j(y),1)]),_:2},1024))),128))],2)):!o.disabled&&e.group.inactive?(v(),D("span",{key:1,class:C(e.ui.group.inactive)},j(e.group.inactive),3)):O("",!0)]})],2)]),_:2},1032,["value","disabled"]))),128))],10,Gt)],2)}const Qt=ke(Vt,[["render",Yt]]),V=qe(ye.ui.strategy,ye.ui.commandPalette,it),Jt=Ie({components:{HCombobox:et,HComboboxInput:Ze,HComboboxOptions:Xe,UIcon:De,UButton:Se,CommandPaletteGroup:Qt},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array],default:null},by:{type:String,default:"id"},multiple:{type:Boolean,default:!1},nullable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},groups:{type:Array,default:()=>[]},icon:{type:String,default:()=>V.default.icon},loadingIcon:{type:String,default:()=>V.default.loadingIcon},selectedIcon:{type:String,default:()=>V.default.selectedIcon},closeButton:{type:Object,default:()=>V.default.closeButton},emptyState:{type:Object,default:()=>V.default.emptyState},placeholder:{type:String,default:"Search..."},groupAttribute:{type:String,default:"label"},commandAttribute:{type:String,default:"label"},autoselect:{type:Boolean,default:!0},autoclear:{type:Boolean,default:!0},debounce:{type:Number,default:200},fuse:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","close"],setup(e,{emit:t,expose:n}){const{ui:s,attrs:r}=tt("commandPalette",me(e,"ui"),V,me(e,"class")),i=P(""),u=P(),c=P(null),l=P(!1);oe(()=>{e.autoselect&&R()}),oe(()=>{setTimeout(()=>{var B;const g=(B=u.value)==null?void 0:B.$.provides;if(!g)return;const A=Object.getOwnPropertySymbols(g);c.value=A.length&&g[A[0]]},200)});const a=F(()=>Ye({},e.fuse,{fuseOptions:{keys:[e.commandAttribute]},resultLimit:12,matchAllWhenSearchEmpty:!0})),o=F(()=>{var A;const g=[];for(const B of e.groups)!B.search&&!B.static&&g.push(...((A=B.commands)==null?void 0:A.map(W=>({...W,group:B.key})))||[]);return g}),h=P({}),{results:d}=Wt(i,o,a);function p(g,A){if(g)return g.filter&&typeof g.filter=="function"&&(A=g.filter(i.value,A)),{...g,commands:A.slice(0,a.value.resultLimit)}}const m=F(()=>
1{if(!d.value)return[];const g=d.value.reduce((b,S)=>{var H;const{item:K,...k}=S;return K.group&&(b[H=K.group]||(b[H]=[]),b[K.group].push({...K,...k})),b},{}),A=Object.entries(g).map(([b,S])=>{const K=e.groups.find(k=>k.key===b);return K?p(K,S):null}).filter(Boolean),B=e.groups.filter(b=>{var S;return!!b.search&&((S=h.value[b.key])==null?void 0:S.length)}).map(b=>{const S=h.value[b.key]||[];return p(b,[...S])}),W=e.groups.filter(b=>{var S;return b.static&&((S=b.commands)==null?void 0:S.length)}).map(b=>p(b,b.commands));return[...A,...B,...W]}),y=$e(async()=>{const g=e.groups.filter(A=>!!A.search);g.length&&(l.value=!0,await Promise.all(g.map(async A=>{h.value[A.key]=await A.search(i.value)})),l.value=!1,N())},e.debounce);ie(i,()=>{y(),N()});const E=F(()=>(e.loading||l.value)&&e.loadingIcon?e.loadingIcon:e.icon),I=F(()=>Qe(s.value.input.icon.base,s.value.input.icon.size,(e.loading||l.value)&&e.loadingIcon&&s.value.input.icon.loading)),w=F(()=>e.emptyState===null?null:{...s.value.default.emptyState,...e.emptyState});function N(){setTimeout(()=>{var g;(g=u.value)==null||g.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"PageUp"}))},0)}function R(){setTimeout(()=>{var g;(g=u.value)==null||g.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown"}))},0)}function se(g){t("update:modelValue",g,{query:i.value}),e.autoclear&&setTimeout(()=>{i.value=""},0)}function Y(){i.value?i.value="":t("close")}return n({query:i,updateQuery:g=>{i.value=g},comboboxApi:c,results:d}),Me(()=>Fe()),{ui:s,attrs:r,groups:m,comboboxInput:u,query:i,iconName:E,iconClass:I,emptyState:w,onSelect:se,onClear:Y}}});function Xt(e,t,n,s,r,i){const u=Be,c=Q("HComboboxInput"),l=Se,a=Q("CommandPaletteGroup"),o=Q("HComboboxOptions"),h=Q("HCombobox");return v(),x(h,Z({by:e.by,"model-value":e.modelValue,multiple:e.multiple,nullable:e.nullable,class:e.ui.wrapper},e.attrs,{as:"div","onUpdate:modelValue":e.onSelect}),{default:J(()=>[Ue(T("div",{class:C(e.ui.input.wrapper)},[e.iconName?(v(),x(u,{key:0,name:e.iconName,class:C(e.iconClass),"aria-hidden":"true"},null,8,["name","class"])):O("",!0),We(c,{ref:"comboboxInput",value:e.query,class:C([e.ui.input.base,e.ui.input.size,e.ui.input.height,e.ui.input.padding,e.icon&&e.ui.input.icon.padding,e.closeButton&&e.ui.input.closeButton.padding]),placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:"off",onChange:t[0]||(t[0]=d=>e.query=d.target.value)},null,8,["value","class","placeholder","aria-label"]),e.closeButton?(v(),x(l,Z({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{class:e.ui.input.closeButton.base,onClick:e.onClear}),null,16,["class","onClick"])):O("",!0)],2),[[Ve,e.searchable]]),e.groups.length?(v(),x(o,{key:0,static:"",hold:"",as:"div","aria-label":"Commands",class:C(e.ui.container)},{default:J(()=>[(v(!0),D(ue,null,ee(e.groups,d=>(v(),x(a,{key:d.key,query:e.query,group:d,"group-attribute":e.groupAttribute,"command-attribute":e.commandAttribute,"selected-icon":e.selectedIcon,ui:e.ui},Ge({_:2},[ee(e.$slots,(p,m)=>({name:m,fn:J(y=>[G(e.$slots,m,Z({ref_for:!0},y))])}))]),1032,["query","group","group-attribute","command-attribute","selected-icon","ui"]))),128))]),_:3},8,["class"])):e.emptyState?G(e.$slots,"empty-state",{key:1},()=>[T("div",{class:C(e.ui.emptyState.wrapper)},[e.emptyState.icon?(v(),x(u,{key:0,name:e.emptyState.icon,class:C(e.ui.emptyState.icon),"aria-hidden":"true"},null,8,["name","class"])):O("",!0),T("p",{class:C(e.query?e.ui.emptyState.queryLabel:e.ui.emptyState.label)},j(e.query?e.emptyState.queryLabel:e.emptyState.label),3)],2)]):O("",!0)]),_:3},16,["by","model-value","multiple","nullable","class","onUpdate:modelValue"])}const yn=ke(Jt,[["render",Xt]]);function Zt(...e){return F(()=>e.every(t=>$(t)))}function en(e){return F(()=>!$(e))}const tn=()=>{const e=F(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=P(" "),n=st(),s=F(()=>{var c,l,a;const r=(c=n.value)==null?void 0:c.tagName,i=(l=n.value)==null?void 0:l.contentEditable;return r==="INPUT"||r==="TEXTAREA"||i==="true"||i==="plaintext-only"?((a=n.value)==null?void 0:a.name)||!0:!1});return oe(()=>{t.value=e.value?"â":"Ctrl"}),{macOS:e,metaSymbol:t,activeElement:n,usingInput:s}},nn=nt(tn),sn=/^[^-]+.*-.*[^-]+$/,rn=/^[^_]+.*_.*[^_]+$/,An=(e,t={})=>{const{macOS:n,usingInput:s}=nn();let r=[];const i=P([]),u=()=>{i.value.splice(0,i.value.length)},c=$e(u,t.chainDelay??800),l=a=>{if(!a.key)return;const o=/^[a-z]$/i.test(a.key);let h;if(i.value.push(a.key),i.value.length>=2){h=i.value.slice(-2).join("-");for(const d of r.filter(p=>
1p.chained))if(d.key===h){d.condition.value&&(a.preventDefault(),d.handler()),u();return}}for(const d of r.filter(p=>!p.chained))if(a.key.toLowerCase()===d.key&&a.metaKey===d.metaKey&&a.ctrlKey===d.ctrlKey&&!(o&&a.shiftKey!==d.shiftKey)){d.condition.value&&(a.preventDefault(),d.handler()),u();return}c()};r=Object.entries(e).map(([a,o])=>{var m,y;if(!o)return null;let h;a.includes("-")&&a!=="-"&&!((m=a.match(sn))!=null&&m.length)&&console.trace(`[Shortcut] Invalid key: "${a}"`),a.includes("_")&&a!=="_"&&!((y=a.match(rn))!=null&&y.length)&&console.trace(`[Shortcut] Invalid key: "${a}"`);const d=a.includes("-")&&a!=="-";if(d)h={key:a.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const E=a.toLowerCase().split("_").map(I=>I);h={key:E.filter(I=>!["meta","ctrl","shift","alt"].includes(I)).join("_"),metaKey:E.includes("meta"),ctrlKey:E.includes("ctrl"),shiftKey:E.includes("shift"),altKey:E.includes("alt")}}if(h.chained=d,!n.value&&h.metaKey&&!h.ctrlKey&&(h.metaKey=!1,h.ctrlKey=!0),typeof o=="function"?h.handler=o:typeof o=="object"&&(h={...h,handler:o.handler}),!h.handler)return console.trace("[Shortcut] Invalid value"),null;const p=[];return o.usingInput?typeof o.usingInput=="string"&&p.push(F(()=>s.value===o.usingInput)):p.push(en(s)),h.condition=Zt(...p,...o.whenever||[]),h}).filter(Boolean),rt("keydown",l)};export{yn as _,An as d,nn as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.