(()=>{var Hn=Object.create;var Ye=Object.defineProperty;var zn=Object.getOwnPropertyDescriptor;var Un=Object.getOwnPropertyNames,Xr=Object.getOwnPropertySymbols,qn=Object.getPrototypeOf,Br=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable;var Zr=(e,r,n)=>r in e?Ye(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ge=(e,r)=>{for(var n in r||(r={}))Br.call(r,n)&&Zr(e,n,r[n]);if(Xr)for(var n of Xr(r))Vn.call(r,n)&&Zr(e,n,r[n]);return e};var Nn=e=>Ye(e,"__esModule",{value:!0});var be=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var $n=(e,r,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Un(r))!Br.call(e,t)&&t!=="default"&&Ye(e,t,{get:()=>r[t],enumerable:!(n=zn(r,t))||n.enumerable});return e},Fr=e=>$n(Nn(Ye(e!=null?Hn(qn(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var gt=be((Ao,Ze)=>{/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var et,rt,tt,nt,ot,it,at,st,lt,Xe,Pr,ut,ct,ft,Ee,pt,mt,dt,ht,bt,vt,xt,yt,Be;(function(e){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(t){e(n(r,n(t)))}):typeof Ze=="object"&&typeof Ze.exports=="object"?e(n(r,n(Ze.exports))):e(n(r));function n(t,o){return t!==r&&(typeof Object.create=="function"?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,s){return t[i]=o?o(i,s):s}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])};et=function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},rt=Object.assign||function(t){for(var o,i=1,s=arguments.length;i=0;c--)(u=t[c])&&(a=(l<3?u(a):l>3?u(o,i,a):u(o,i))||a);return l>3&&a&&Object.defineProperty(o,i,a),a},ot=function(t,o){return function(i,s){o(i,s,t)}},it=function(t,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,o)},at=function(t,o,i,s){function l(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function c(d){try{f(s.next(d))}catch(h){u(h)}}function p(d){try{f(s.throw(d))}catch(h){u(h)}}function f(d){d.done?a(d.value):l(d.value).then(c,p)}f((s=s.apply(t,o||[])).next())})},st=function(t,o){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,l,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(f){return function(d){return p([f,d])}}function p(f){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,l&&(a=f[0]&2?l.return:f[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,f[1])).done)return a;switch(l=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,l=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]=t.length&&(t=void 0),{value:t&&t[s++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Pr=function(t,o){var i=typeof Symbol=="function"&&t[Symbol.iterator];if(!i)return t;var s=i.call(t),l,a=[],u;try{for(;(o===void 0||o-- >0)&&!(l=s.next()).done;)a.push(l.value)}catch(c){u={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return a},ut=function(){for(var t=[],o=0;o1||c(m,v)})})}function c(m,v){try{p(s[m](v))}catch(w){h(a[0][3],w)}}function p(m){m.value instanceof Ee?Promise.resolve(m.value.v).then(f,d):h(a[0][2],m)}function f(m){c("next",m)}function d(m){c("throw",m)}function h(m,v){m(v),a.shift(),a.length&&c(a[0][0],a[0][1])}},mt=function(t){var o,i;return o={},s("next"),s("throw",function(l){throw l}),s("return"),o[Symbol.iterator]=function(){return this},o;function s(l,a){o[l]=t[l]?function(u){return(i=!i)?{value:Ee(t[l](u)),done:l==="return"}:a?a(u):u}:a}},dt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t[Symbol.asyncIterator],i;return o?o.call(t):(t=typeof Xe=="function"?Xe(t):t[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(a){i[a]=t[a]&&function(u){return new Promise(function(c,p){u=t[a](u),l(c,p,u.done,u.value)})}}function l(a,u,c,p){Promise.resolve(p).then(function(f){a({value:f,done:c})},u)}},ht=function(t,o){return Object.defineProperty?Object.defineProperty(t,"raw",{value:o}):t.raw=o,t};var n=Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o};bt=function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var i in t)i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)&&Be(o,t,i);return n(o,t),o},vt=function(t){return t&&t.__esModule?t:{default:t}},xt=function(t,o){if(!o.has(t))throw new TypeError("attempted to get private field on non-instance");return o.get(t)},yt=function(t,o,i){if(!o.has(t))throw new TypeError("attempted to set private field on non-instance");return o.set(t,i),i},e("__extends",et),e("__assign",rt),e("__rest",tt),e("__decorate",nt),e("__param",ot),e("__metadata",it),e("__awaiter",at),e("__generator",st),e("__exportStar",lt),e("__createBinding",Be),e("__values",Xe),e("__read",Pr),e("__spread",ut),e("__spreadArrays",ct),e("__spreadArray",ft),e("__await",Ee),e("__asyncGenerator",pt),e("__asyncDelegator",mt),e("__asyncValues",dt),e("__makeTemplateObject",ht),e("__importStar",bt),e("__importDefault",vt),e("__classPrivateFieldGet",xt),e("__classPrivateFieldSet",yt)})});var Qe=be(G=>{(function(){var e,r,n,t,o,i,s,l,a,u,c,p,f,d,h,m,v,w,_,L;L=150,u=20,_=150,a=.75,G.score=function(b,x,S){var E,y,g,T;return y=S.preparedQuery,E=S.allowErrors,E||o(b,y.core_lw,y.core_up)?(T=b.toLowerCase(),g=r(b,T,y),Math.ceil(g)):0},G.isMatch=o=function(b,x,S){var E,y,g,T,P,j,M;if(g=b.length,T=x.length,!g||T>g)return!1;for(E=-1,y=-1;++y-1)return h(b,x,me,ie,le,N,V);for(_e=new Array(N),P=new Array(N),Lr=w(N,V),U=Math.ceil(a*N)+5,oe=U,M=!0,I=-1;++Iue&&(ue=Je),j=0,ie[I]===Mr)if(Cr=l(k,b,x),j=T>0?T:f(b,x,me,ie,k,I,Cr),g=Ir+p(k,I,Cr,y,j),g>ue)ue=g,oe=U;else{if(he&&--oe<=0)return Math.max(ue,_e[N-1])*Lr;he=!1}Ir=Je,T=P[I],P[I]=j,_e[I]=ue}}return ue=_e[N-1],ue*Lr},G.isWordStart=l=function(b,x,S){var E,y;return b===0?!0:(E=x[b],y=x[b-1],i(y)||E!==S[b]&&y===S[b-1])},G.isWordEnd=s=function(b,x,S,E){var y,g;return b===E-1?!0:(y=x[b],g=x[b+1],i(g)||y===S[b]&&g!==S[b+1])},i=function(b){return b===" "||b==="."||b==="-"||b==="_"||b==="/"||b==="\\"},v=function(b){var x;return by?E:y)+10):g+L*y},G.scoreConsecutives=f=function(b,x,S,E,y,g,T){var P,j,M,k,I,V,U;for(j=b.length,k=S.length,M=j-y,I=k-g,P=M-1&&(I=l(M,b,x),I&&(y=M))),j=-1,k=0;++j1&&M>1))return n;for(y=0,U=0,oe=0,I=0,T=-1,P=-1;++P-1){U++;continue}else break;for(;++T12*P)return!1;for(g=-1;++gE)return!1;return!0}}).call(G)});var Tr=be(Ke=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Qe(),i=u.isMatch,e=u.computeScore,l=u.scoreSize,a=20,n=2.5,Ke.score=function(c,p,f){var d,h,m,v;return h=f.preparedQuery,d=f.allowErrors,d||i(c,h.core_lw,h.core_up)?(v=c.toLowerCase(),m=e(c,v,h),m=s(c,v,m,f),Math.ceil(m)):0},s=function(c,p,f,d){var h,m,v,w,_,L,b,x,S,E;if(f===0)return 0;for(S=d.preparedQuery,E=d.useExtensionBonus,x=d.pathSeparator,_=c.length-1;c[_]===x;)_--;if(v=c.lastIndexOf(x,_),b=_-v,L=1,E&&(L+=o(p,S.ext,v,_,2),f*=L),v===-1)return f;for(w=S.depth;v>-1&&w-- >0;)v=c.lastIndexOf(x,v-1);return m=v===-1?f:L*e(c.slice(v+1,_+1),p.slice(v+1,_+1),S),h=.5*a/(a+r(c,_+1,x)),h*m+(1-h)*f*l(0,n*b)},Ke.countDir=r=function(c,p,f){var d,h;if(p<1)return 0;for(d=0,h=-1;++hf)))return 0;for(w=p.length,m=d-_,m0?.9*o(c,p,f,_-2,h-1):v/m}}).call(Ke)});var Yr=be((wn,Sn)=>{(function(){var e,r,n,t,o,i,s,l;l=Tr(),n=l.countDir,o=l.getExtension,Sn.exports=e=function(){function a(u,c){var p,f,d;if(d=c!=null?c:{},p=d.optCharRegEx,f=d.pathSeparator,!(u&&u.length))return null;this.query=u,this.query_lw=u.toLowerCase(),this.core=r(u,p),this.core_lw=this.core.toLowerCase(),this.core_up=s(this.core),this.depth=n(u,u.length,f),this.ext=o(this.query_lw),this.charCodes=t(this.query_lw)}return a}(),i=/[ _\-:\/\\]/g,r=function(a,u){return u==null&&(u=i),a.replace(u,"")},s=function(a){var u,c,p,f;for(c="",p=0,f=a.length;p{(function(){var e,r,n,t,o;t=Qe(),r=Tr(),e=Yr(),n=function(i){return i.candidate},o=function(i,s){return s.score-i.score},En.exports=function(i,s,l){var a,u,c,p,f,d,h,m,v,w,_,L,b;for(m=[],c=l.key,f=l.maxResults,p=l.maxInners,_=l.usePathScoring,v=p!=null&&p>0?p:i.length+1,a=c!=null,h=_?r:t,L=0,b=i.length;L0&&(m.push({candidate:u,score:d}),!--v))));L++);return m.sort(o),i=m.map(n),f!=null&&(i=i.slice(0,f)),i}}).call(_n)});var Tn=be(Ar=>{(function(){var e,r,n,t,o,i,s,l,a,u;u=Qe(),n=u.isMatch,t=u.isWordStart,a=u.scoreConsecutives,l=u.scoreCharacter,s=u.scoreAcronyms,Ar.match=o=function(c,p,f){var d,h,m,v,w,_;return d=f.allowErrors,w=f.preparedQuery,v=f.pathSeparator,d||n(c,w.core_lw,w.core_up)?(_=c.toLowerCase(),m=r(c,_,w),m.length===0||c.indexOf(v)>-1&&(h=e(c,_,w,v),m=i(m,h)),m):[]},Ar.wrap=function(c,p,f){var d,h,m,v,w,_,L,b,x;if(f.wrap!=null&&(x=f.wrap,_=x.tagClass,b=x.tagOpen,L=x.tagClose),_==null&&(_="highlight"),b==null&&(b=''),L==null&&(L=""),c===p)return b+c+L;if(m=o(c,p,f),m.length===0)return c;for(v="",d=-1,w=0;++dw&&(v+=c.substring(w,h),w=h);++dw&&(v+=b,v+=c.substring(w,h),v+=L,w=h)}return w<=c.length-1&&(v+=c.substring(w)),v},e=function(c,p,f,d){var h,m,v;for(v=c.length-1;c[v]===d;)v--;if(h=c.lastIndexOf(d,v),h===-1)return[];for(m=f.depth;m-- >0;)if(h=c.lastIndexOf(d,h-1),h===-1)return[];return h++,v++,r(c.slice(h,v),p.slice(h,v),f,h)},i=function(c,p){var f,d,h,m,v,w,_;if(v=c.length,w=p.length,w===0)return c.slice();if(v===0)return p.slice();for(h=-1,m=0,d=p[m],_=[];++h0?x:a(c,p,I,V,y,g,ie),L=oe+l(y,g,ie,_,E)),le=N[g],x=S[g],U>le?j=m:(U=le,j=w),L>U?(U=L,j=h):E=0,N[g]=U,S[g]=E,he[++k]=U>0?j:v;for(y=T-1,g=M-1,k=y*M+g,b=!0,P=[];b&&y>=0&&g>=0;)switch(he[k]){case w:y--,k-=M;break;case m:g--,k--;break;case h:P.push(y+d),g--,y--,k-=M+1;break;default:b=!1}return P.reverse(),P}}).call(Ar)});var Gr=be((An,In)=>{(function(){var e,r,n,t,o,i,s,l;n=On(),t=Tn(),l=Qe(),i=Tr(),e=Yr(),s=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",In.exports={filter:function(a,u,c){return c==null&&(c={}),(u!=null?u.length:void 0)&&(a!=null?a.length:void 0)?(c=o(c,u),n(a,u,c)):[]},score:function(a,u,c){return c==null&&(c={}),(a!=null?a.length:void 0)&&(u!=null?u.length:void 0)?(c=o(c,u),c.usePathScoring?i.score(a,u,c):l.score(a,u,c)):0},match:function(a,u,c){var p,f,d;return c==null&&(c={}),a?u?a===u?function(){d=[];for(var h=0,m=a.length;0<=m?hm;0<=m?h++:h--)d.push(h);return d}.apply(this):(c=o(c,u),t.match(a,u,c)):[]:[]},wrap:function(a,u,c){return c==null&&(c={}),a?u?(c=o(c,u),t.wrap(a,u,c)):[]:[]},prepareQuery:function(a,u){return u==null&&(u={}),u=o(u,a),u.preparedQuery}},o=function(a,u){return a.allowErrors==null&&(a.allowErrors=!1),a.usePathScoring==null&&(a.usePathScoring=!0),a.useExtensionBonus==null&&(a.useExtensionBonus=!1),a.pathSeparator==null&&(a.pathSeparator=r),a.optCharRegEx==null&&(a.optCharRegEx=null),a.wrap==null&&(a.wrap=null),a.preparedQuery==null&&(a.preparedQuery=s&&s.query===u?s:s=new e(u,a)),a}}).call(An)});var wt=Fr(gt()),{__extends:q,__assign:Io,__rest:Mo,__decorate:Co,__param:Lo,__metadata:Fo,__awaiter:St,__generator:er,__exportStar:Po,__createBinding:ko,__values:Z,__read:R,__spread:Ro,__spreadArrays:jo,__spreadArray:H,__await:rr,__asyncGenerator:_t,__asyncDelegator:Wo,__asyncValues:Et,__makeTemplateObject:Ho,__importStar:zo,__importDefault:Uo,__classPrivateFieldGet:qo,__classPrivateFieldSet:Vo}=wt.default;function O(e){return typeof e=="function"}function tr(e){var r=function(t){Error.call(t),t.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var nr=tr(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: `+n.map(function(t,o){return o+1+") "+t.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=n}});function ce(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var ae=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,n,t,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=Z(s),a=l.next();!a.done;a=l.next()){var u=a.value;u.remove(this)}}catch(m){r={error:m}}finally{try{a&&!a.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}else s.remove(this);var c=this.initialTeardown;if(O(c))try{c()}catch(m){i=m instanceof nr?m.errors:[m]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=Z(p),d=f.next();!d.done;d=f.next()){var h=d.value;try{Ot(h)}catch(m){i=i!=null?i:[],m instanceof nr?i=H(H([],R(i)),R(m.errors)):i.push(m)}}}catch(m){t={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(t)throw t.error}}}if(i)throw new nr(i)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)Ot(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=(n=this._teardowns)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&ce(n,r)},e.prototype.remove=function(r){var n=this._teardowns;n&&ce(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var kr=ae.EMPTY;function or(e){return e instanceof ae||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Ot(e){O(e)?e():e.unsubscribe()}var ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Oe={setTimeout:function(){for(var e=[],r=0;r0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var t=this,o=t.hasError,i=t.isStopped,s=t.observers;return o||i?kr:(s.push(n),new ae(function(){return ce(s,n)}))},r.prototype._checkFinalizedStatuses=function(n){var t=this,o=t.hasError,i=t.thrownError,s=t.isStopped;o?n.error(i):s&&n.complete()},r.prototype.asObservable=function(){var n=new F;return n.source=this,n},r.create=function(n,t){return new kt(n,t)},r}(F);var kt=function(e){q(r,e);function r(n,t){var o=e.call(this)||this;return o.destination=n,o.source=t,o}return r.prototype.next=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.next)===null||o===void 0||o.call(t,n)},r.prototype.error=function(n){var t,o;(o=(t=this.destination)===null||t===void 0?void 0:t.error)===null||o===void 0||o.call(t,n)},r.prototype.complete=function(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)},r.prototype._subscribe=function(n){var t,o;return(o=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&o!==void 0?o:kr},r}(X);var He={now:function(){return(He.delegate||Date).now()},delegate:void 0};var Rt=function(e){q(r,e);function r(n,t,o){n===void 0&&(n=1/0),t===void 0&&(t=1/0),o===void 0&&(o=He);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=t,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=t===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,t),i}return r.prototype.next=function(n){var t=this,o=t.isStopped,i=t._buffer,s=t._infiniteTimeWindow,l=t._timestampProvider,a=t._windowTime;o||(i.push(n),!s&&i.push(l.now()+a)),this._trimBuffer(),e.prototype.next.call(this,n)},r.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,s=o._buffer,l=s.slice(),a=0;a0?e.prototype.requestAsyncId.call(this,n,t,o):(n.actions.push(this),n._scheduled||(n._scheduled=Ie.requestAnimationFrame(function(){return n.flush(void 0)})))},r.prototype.recycleAsyncId=function(n,t,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,n,t,o);n.actions.length===0&&(Ie.cancelAnimationFrame(t),n._scheduled=void 0)},r}(ar);var Ht=function(e){q(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(n){this._active=!0,this._scheduled=void 0;var t=this.actions,o,i=-1;n=n||t.shift();var s=t.length;do if(o=n.execute(n.state,n.delay))break;while(++i{let r=Er();return typeof r!="undefined"?e.contains(r):!1}),Fe(e===Er()))}function fn(e){return{x:e.scrollLeft,y:e.scrollTop}}function pn(e){return $(K(e,"scroll"),K(window,"resize")).pipe(qr(0,Me),z(()=>fn(e)),Fe(fn(e)))}var yo=new X,Qf=Ve(()=>te(new ResizeObserver(e=>{for(let r of e)yo.next(r)}))).pipe(Y(e=>$(Ne,te(e)).pipe(ge(()=>e.disconnect()))),we(1));function mn(e){return{width:e.offsetWidth,height:e.offsetHeight}}function dn(e){return{width:e.scrollWidth,height:e.scrollHeight}}var go=new X,rp=Ve(()=>te(new IntersectionObserver(e=>{for(let r of e)go.next(r)},{threshold:1}))).pipe(Y(e=>$(Ne,te(e)).pipe(ge(()=>e.disconnect()))),we(1));function hn(e,r=16){return pn(e).pipe(z(({y:n})=>{let t=mn(e),o=dn(e);return n>=o.height-t.height-r}),ye())}var cp={drawer:B("[data-md-toggle=drawer]"),search:B("[data-md-toggle=search]")};function bn(){return new URL(location.href)}function vn(e,r){if(typeof r=="string"||typeof r=="number")e.innerHTML+=r.toString();else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let n of r)vn(e,n)}function ne(e,r,...n){let t=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="boolean"?t.setAttribute(o,r[o]):r[o]&&t.setAttribute(o,"");for(let o of n)vn(t,o);return t}function xn(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function wo(e,r={credentials:"same-origin"}){return Q(fetch(`${e}`,r)).pipe(pe(n=>n.status===200),_r(()=>fe))}function Or(e,r){return wo(e,r).pipe(Y(n=>n.json()),we(1))}function Re(e,r=document){return B(`[data-mdx-component=${e}]`,r)}function Jr(e,r=document){return ln(`[data-mdx-component=${e}]`,r)}var So=B("#__config"),De=JSON.parse(So.textContent);De.base=`${new URL(De.base,bn())}`;function yn(){return De}function Se(e,r){return typeof r!="undefined"?De.translations[e].replace("#",r.toString()):De.translations[e]}function gn(e){let r=cn(e),n=$(K(e,"keyup"),K(e,"focus").pipe($r(1))).pipe(z(()=>e.value),ye());return r.pipe(pe(t=>!t),ke(n)).subscribe(([,t])=>{let o=document.location.pathname;t.length&&ga("send","pageview",`${o}?q=[icon]+${t}`)}),Ue([n,r]).pipe(z(([t,o])=>({ref:e,value:t,focus:o})))}var Pn=Fr(Gr());var Mn=Fr(Gr());function _o(e,r){return(0,Mn.wrap)(e.shortcode,r,{wrap:{tagOpen:"",tagClose:""}})}function Cn(e,r){return ne("li",{class:"mdx-iconsearch-result__item"},ne("span",{class:"twemoji"},ne("img",{src:e.url})),ne("button",{class:"md-clipboard--inline",title:Se("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},ne("code",null,`:${_o(e,r)}:`)))}function Ln(e){let r=`@${e.name}`;return ne("a",{href:e.url,title:r,class:"mdx-sponsorship__item"},ne("img",{src:e.image}))}function Fn(e){return ne("a",{href:"https://github.com/sponsors/squidfunk",class:"mdx-sponsorship__item mdx-sponsorship__item--private"},"+",e)}function Eo(e,{index$:r,query$:n}){return Ue([n.pipe(Dr("value")),r.pipe(z(({icons:t,emojis:o})=>[...Object.keys(t.data),...Object.keys(o.data)]))]).pipe(z(([{value:t},o])=>(0,Pn.filter)(o,t)),Y(t=>r.pipe(z(({icons:o,emojis:i})=>({data:t.map(s=>{let l=s in o.data?o:i;return{shortcode:s,url:[l.base,l.data[s]].join("")}})})))))}function kn(e,{index$:r,query$:n}){let t=new X,o=hn(e).pipe(pe(Boolean)),i=B(":scope > :first-child",e);t.pipe(de(Me),ke(n)).subscribe(([{data:l},{value:a}])=>{if(a)switch(l.length){case 0:i.textContent=Se("search.result.none");break;case 1:i.textContent=Se("search.result.one");break;default:i.textContent=Se("search.result.other",xn(l.length))}else i.textContent=Se("search.result.placeholder")});let s=B(":scope > :last-child",e);return t.pipe(de(Me),Pe(()=>s.innerHTML=""),Y(({data:l})=>$(te(...l.slice(0,10)),te(...l.slice(10)).pipe(Vr(10),Kr(o),Y(([a])=>te(...a))))),ke(n)).subscribe(([l,{value:a}])=>s.appendChild(Cn(l,a))),Eo(e,{query$:n,index$:r}).pipe(Pe(l=>t.next(l)),ge(()=>t.complete()),z(l=>Ge({ref:e},l)))}function Rn(e){let r=yn(),n=Or(new URL("overrides/assets/javascripts/iconsearch_index.json",r.base)),t=Re("iconsearch-query",e),o=Re("iconsearch-result",e),i=gn(t),s=kn(o,{index$:n,query$:i});return $(i,s)}function jn(e){let r=Or("https://3if8u9o552.execute-api.us-east-1.amazonaws.com/_/"),n=Re("sponsorship-count"),t=Re("sponsorship-total");return r.subscribe(o=>{e.removeAttribute("hidden");let i=B(":scope > :first-child",e);for(let s of o.sponsors)s.type==="public"&&i.appendChild(Ln(s.user));i.appendChild(Fn(o.sponsors.filter(({type:s})=>s==="private").length)),n.innerText=`${o.sponsors.length}`,t.innerText=`$ ${o.total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} a month`}),r.pipe(z(o=>Ge({ref:e},o)))}function Wn(){let{origin:e}=new URL(location.href);K(document.body,"click").subscribe(r=>{if(r.target instanceof HTMLElement){let n=r.target.closest("a");n&&n.origin!==e&&ga("send","event","outbound","click",n.href)}})}Wn();var Oo=document$.pipe(Y(()=>$(...Jr("iconsearch").map(e=>Rn(e)),...Jr("sponsorship").map(e=>jn(e)))));Oo.subscribe();})(); //# sourceMappingURL=bundle.7c4664dd.min.js.map