mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
20 lines
49 KiB
JavaScript
20 lines
49 KiB
JavaScript
(()=>{var Ln=Object.create,ze=Object.defineProperty,Cn=Object.getPrototypeOf,jr=Object.prototype.hasOwnProperty,Pn=Object.getOwnPropertyNames,Hn=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertySymbols,Fn=Object.prototype.propertyIsEnumerable;var zr=(e,r,t)=>r in e?ze(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Ue=(e,r)=>{for(var t in r||(r={}))jr.call(r,t)&&zr(e,t,r[t]);if(kr)for(var t of kr(r))Fn.call(r,t)&&zr(e,t,r[t]);return e},Rn=e=>ze(e,"__esModule",{value:!0});var me=(e,r)=>()=>(r||(r={exports:{}},e(r.exports,r)),r.exports);var jn=(e,r,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pn(r))!jr.call(e,n)&&n!=="default"&&ze(e,n,{get:()=>r[n],enumerable:!(t=Hn(r,n))||t.enumerable});return e},br=e=>jn(Rn(ze(e!=null?Ln(Cn(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var it=me((yo,We)=>{var Ur,Wr,Vr,qr,$r,Nr,Dr,Qr,Kr,Ve,yr,Jr,Yr,Gr,ye,Xr,Br,Zr,et,rt,tt,nt,ot,qe;(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(n){e(t(r,t(n)))}):typeof We=="object"&&typeof We.exports=="object"?e(t(r,t(We.exports))):e(t(r));function t(n,o){return n!==r&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])};Ur=function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(n,o);function i(){this.constructor=n}n.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},Wr=Object.assign||function(n){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},Vr=function(n,o){var i={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(i[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(n);u<a.length;u++)o.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(n,a[u])&&(i[a[u]]=n[a[u]]);return i},qr=function(n,o,i,a){var u=arguments.length,s=u<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,o,i,a);else for(var c=n.length-1;c>=0;c--)(l=n[c])&&(s=(u<3?l(s):u>3?l(o,i,s):l(o,i))||s);return u>3&&s&&Object.defineProperty(o,i,s),s},$r=function(n,o){return function(i,a){o(i,a,n)}},Nr=function(n,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,o)},Dr=function(n,o,i,a){function u(s){return s instanceof i?s:new i(function(l){l(s)})}return new(i||(i=Promise))(function(s,l){function c(d){try{f(a.next(d))}catch(h){l(h)}}function p(d){try{f(a.throw(d))}catch(h){l(h)}}function f(d){d.done?s(d.value):u(d.value).then(c,p)}f((a=a.apply(n,o||[])).next())})},Qr=function(n,o){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,u,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(d){return p([f,d])}}function p(f){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=f[0]&2?u.return:f[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,f[1])).done)return s;switch(u=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,u=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){i.label=f[1];break}if(f[0]===6&&i.label<s[1]){i.label=s[1],s=f;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(f);break}s[2]&&i.ops.pop(),i.trys.pop();continue}f=o.call(n,i)}catch(d){f=[6,d],u=0}finally{a=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Kr=function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&qe(o,n,i)},qe=Object.create?function(n,o,i,a){a===void 0&&(a=i),Object.defineProperty(n,a,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]},Ve=function(n){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&n[o],a=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&a>=n.length&&(n=void 0),{value:n&&n[a++],done:!n}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},yr=function(n,o){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var a=i.call(n),u,s=[],l;try{for(;(o===void 0||o-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(c){l={error:c}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(l)throw l.error}}return s},Jr=function(){for(var n=[],o=0;o<arguments.length;o++)n=n.concat(yr(arguments[o]));return n},Yr=function(){for(var n=0,o=0,i=arguments.length;o<i;o++)n+=arguments[o].length;for(var a=Array(n),u=0,o=0;o<i;o++)for(var s=arguments[o],l=0,c=s.length;l<c;l++,u++)a[u]=s[l];return a},Gr=function(n,o){for(var i=0,a=o.length,u=n.length;i<a;i++,u++)n[u]=o[i];return n},ye=function(n){return this instanceof ye?(this.v=n,this):new ye(n)},Xr=function(n,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(n,o||[]),u,s=[];return u={},l("next"),l("throw"),l("return"),u[Symbol.asyncIterator]=function(){return this},u;function l(m){a[m]&&(u[m]=function(b){return new Promise(function(g,S){s.push([m,b,g,S])>1||c(m,b)})})}function c(m,b){try{p(a[m](b))}catch(g){h(s[0][3],g)}}function p(m){m.value instanceof ye?Promise.resolve(m.value.v).then(f,d):h(s[0][2],m)}function f(m){c("next",m)}function d(m){c("throw",m)}function h(m,b){m(b),s.shift(),s.length&&c(s[0][0],s[0][1])}},Br=function(n){var o,i;return o={},a("next"),a("throw",function(u){throw u}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(u,s){o[u]=n[u]?function(l){return(i=!i)?{value:ye(n[u](l)),done:u==="return"}:s?s(l):l}:s}},Zr=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n[Symbol.asyncIterator],i;return o?o.call(n):(n=typeof Ve=="function"?Ve(n):n[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(s){i[s]=n[s]&&function(l){return new Promise(function(c,p){l=n[s](l),u(c,p,l.done,l.value)})}}function u(s,l,c,p){Promise.resolve(p).then(function(f){s({value:f,done:c})},l)}},et=function(n,o){return Object.defineProperty?Object.defineProperty(n,"raw",{value:o}):n.raw=o,n};var t=Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o};rt=function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&qe(o,n,i);return t(o,n),o},tt=function(n){return n&&n.__esModule?n:{default:n}},nt=function(n,o){if(!o.has(n))throw new TypeError("attempted to get private field on non-instance");return o.get(n)},ot=function(n,o,i){if(!o.has(n))throw new TypeError("attempted to set private field on non-instance");return o.set(n,i),i},e("__extends",Ur),e("__assign",Wr),e("__rest",Vr),e("__decorate",qr),e("__param",$r),e("__metadata",Nr),e("__awaiter",Dr),e("__generator",Qr),e("__exportStar",Kr),e("__createBinding",qe),e("__values",Ve),e("__read",yr),e("__spread",Jr),e("__spreadArrays",Yr),e("__spreadArray",Gr),e("__await",ye),e("__asyncGenerator",Xr),e("__asyncDelegator",Br),e("__asyncValues",Zr),e("__makeTemplateObject",et),e("__importStar",rt),e("__importDefault",tt),e("__classPrivateFieldGet",nt),e("__classPrivateFieldSet",ot)})});var Re=me(K=>{(function(){var e,r,t,n,o,i,a,u,s,l,c,p,f,d,h,m,b,g,S,R;R=150,l=20,S=150,s=.75,K.score=function(v,w,E){var _,y,x,O;return y=E.preparedQuery,_=E.allowErrors,_||o(v,y.core_lw,y.core_up)?(O=v.toLowerCase(),x=r(v,O,y),Math.ceil(x)):0},K.isMatch=o=function(v,w,E){var _,y,x,O,P,F,M;if(x=v.length,O=w.length,!x||O>x)return!1;for(_=-1,y=-1;++y<O;){for(P=w.charCodeAt(y),F=E.charCodeAt(y);++_<x&&(M=v.charCodeAt(_),!(M===P||M===F)););if(_===x)return!1}return!0},K.computeScore=r=function(v,w,E){var _,y,x,O,P,F,M,H,A,V,z,Z,q,oe,ue,ee,pe,ie,mr,be,ke,dr,hr,vr;if(ue=E.query,ee=E.query_lw,V=v.length,q=ue.length,_=c(v,w,ue,ee),y=_.score,_.count===q)return d(q,V,y,_.pos);if(oe=w.indexOf(ee),oe>-1)return h(v,w,ue,ee,oe,q,V);for(be=new Array(q),P=new Array(q),vr=g(q,V),z=Math.ceil(s*q)+5,Z=z,M=!0,A=-1;++A<q;)be[A]=0,P[A]=0;for(H=-1;++H<V;){if(dr=w[H],!dr.charCodeAt(0)in E.charCodes){if(M){for(A=-1;++A<q;)P[A]=0;M=!1}continue}for(ie=0,mr=0,O=0,pe=!0,M=!0,A=-1;++A<q;){if(ke=be[A],ke>ie&&(ie=ke),F=0,ee[A]===dr)if(hr=u(H,v,w),F=O>0?O:f(v,w,ue,ee,H,A,hr),x=mr+p(H,A,hr,y,F),x>ie)ie=x,Z=z;else{if(pe&&--Z<=0)return Math.max(ie,be[q-1])*vr;pe=!1}mr=ke,O=P[A],P[A]=F,be[A]=ie}}return ie=be[q-1],ie*vr},K.isWordStart=u=function(v,w,E){var _,y;return v===0?!0:(_=w[v],y=w[v-1],i(y)||_!==E[v]&&y===E[v-1])},K.isWordEnd=a=function(v,w,E,_){var y,x;return v===_-1?!0:(y=w[v],x=w[v+1],i(x)||y===E[v]&&x!==E[v+1])},i=function(v){return v===" "||v==="."||v==="-"||v==="_"||v==="/"||v==="\\"},b=function(v){var w;return v<l?(w=l-v,100+w*w):Math.max(100+l-v,0)},K.scoreSize=g=function(v,w){return S/(S+Math.abs(w-v))},d=function(v,w,E,_){return 2*v*(R*E+b(_))*g(v,w)},K.scorePattern=m=function(v,w,E,_,y){var x,O;return O=v,x=6,E===v&&(x+=2),_&&(x+=3),y&&(x+=1),v===w&&(_&&(E===w?O+=2:O+=1),y&&(x+=1)),E+O*(O+x)},K.scoreCharacter=p=function(v,w,E,_,y){var x;return x=b(v),E?x+R*((_>y?_:y)+10):x+R*y},K.scoreConsecutives=f=function(v,w,E,_,y,x,O){var P,F,M,H,A,V,z;for(F=v.length,H=E.length,M=F-y,A=H-x,P=M<A?M:A,V=0,z=0,E[x]===v[y]&&V++;++z<P&&_[++x]===w[++y];)E[x]===v[y]&&V++;return z<P&&y--,z===1?1+2*V:m(z,H,V,O,a(y,v,w,F))},K.scoreExactMatch=h=function(v,w,E,_,y,x,O){var P,F,M,H,A;for(A=u(y,v,w),A||(M=w.indexOf(_,y+1),M>-1&&(A=u(M,v,w),A&&(y=M))),F=-1,H=0;++F<x;)E[y+F]===v[F]&&H++;return P=a(y+x-1,v,w,O),d(x,O,m(x,x,H,A,P),y)},e=function(){function v(w,E,_){this.score=w,this.pos=E,this.count=_}return v}(),t=new e(0,.1,0),K.scoreAcronyms=c=function(v,w,E,_){var y,x,O,P,F,M,H,A,V,z,Z;if(F=v.length,M=E.length,!(F>1&&M>1))return t;for(y=0,z=0,Z=0,A=0,O=-1,P=-1;++P<M;){if(H=_[P],i(H))if(O=w.indexOf(H,O+1),O>-1){z++;continue}else break;for(;++O<F;)if(H===w[O]&&u(O,v,w)){E[P]===v[O]&&A++,Z+=O,y++;break}if(O===F)break}return y<2?t:(x=y===M?n(v,w,E,y):!1,V=m(y,M,A,!0,x),new e(V,Z/y,y+z))},n=function(v,w,E,_){var y,x,O,P;if(O=v.length,P=E.length,y=0,O>12*P)return!1;for(x=-1;++x<O;)if(u(x,v,w)&&++y>_)return!1;return!0}}).call(K)});var lr=me(je=>{(function(){var e,r,t,n,o,i,a,u,s,l;l=Re(),i=l.isMatch,e=l.computeScore,u=l.scoreSize,s=20,t=2.5,je.score=function(c,p,f){var d,h,m,b;return h=f.preparedQuery,d=f.allowErrors,d||i(c,h.core_lw,h.core_up)?(b=c.toLowerCase(),m=e(c,b,h),m=a(c,b,m,f),Math.ceil(m)):0},a=function(c,p,f,d){var h,m,b,g,S,R,v,w,E,_;if(f===0)return 0;for(E=d.preparedQuery,_=d.useExtensionBonus,w=d.pathSeparator,S=c.length-1;c[S]===w;)S--;if(b=c.lastIndexOf(w,S),v=S-b,R=1,_&&(R+=o(p,E.ext,b,S,2),f*=R),b===-1)return f;for(g=E.depth;b>-1&&g-- >0;)b=c.lastIndexOf(w,b-1);return m=b===-1?f:R*e(c.slice(b+1,S+1),p.slice(b+1,S+1),E),h=.5*s/(s+r(c,S+1,w)),h*m+(1-h)*f*u(0,t*v)},je.countDir=r=function(c,p,f){var d,h;if(p<1)return 0;for(d=0,h=-1;++h<p&&c[h]===f;);for(;++h<p;)if(c[h]===f)for(d++;++h<p&&c[h]===f;);return d},je.getExtension=n=function(c){var p;return p=c.lastIndexOf("."),p<0?"":c.substr(p+1)},o=function(c,p,f,d,h){var m,b,g,S;if(!p.length||(S=c.lastIndexOf(".",d),!(S>f)))return 0;for(g=p.length,m=d-S,m<g&&(g=m,m=p.length),S++,b=-1;++b<g&&c[S+b]===p[b];);return b===0&&h>0?.9*o(c,p,f,S-2,h-1):b/m}}).call(je)});var Fr=me((sn,un)=>{(function(){var e,r,t,n,o,i,a,u;u=lr(),t=u.countDir,o=u.getExtension,un.exports=e=function(){function s(l,c){var p,f,d;if(d=c!=null?c:{},p=d.optCharRegEx,f=d.pathSeparator,!(l&&l.length))return null;this.query=l,this.query_lw=l.toLowerCase(),this.core=r(l,p),this.core_lw=this.core.toLowerCase(),this.core_up=a(this.core),this.depth=t(l,l.length,f),this.ext=o(this.query_lw),this.charCodes=n(this.query_lw)}return s}(),i=/[ _\-:\/\\]/g,r=function(s,l){return l==null&&(l=i),s.replace(l,"")},a=function(s){var l,c,p,f;for(c="",p=0,f=s.length;p<f;p++)l=s[p],c+=l.toUpperCase()[0];return c},n=function(s){var l,c,p;for(p=s.length,c=-1,l=[];++c<p;)l[s.charCodeAt(c)]=!0;return l}}).call(sn)});var fn=me((cn,ln)=>{(function(){var e,r,t,n,o;n=Re(),r=lr(),e=Fr(),t=function(i){return i.candidate},o=function(i,a){return a.score-i.score},ln.exports=function(i,a,u){var s,l,c,p,f,d,h,m,b,g,S,R,v;for(m=[],c=u.key,f=u.maxResults,p=u.maxInners,S=u.usePathScoring,b=p!=null&&p>0?p:i.length+1,s=c!=null,h=S?r:n,R=0,v=i.length;R<v&&(l=i[R],g=s?l[c]:l,!(!!g&&(d=h.score(g,a,u),d>0&&(m.push({candidate:l,score:d}),!--b))));R++);return m.sort(o),i=m.map(t),f!=null&&(i=i.slice(0,f)),i}}).call(cn)});var pn=me(fr=>{(function(){var e,r,t,n,o,i,a,u,s,l;l=Re(),t=l.isMatch,n=l.isWordStart,s=l.scoreConsecutives,u=l.scoreCharacter,a=l.scoreAcronyms,fr.match=o=function(c,p,f){var d,h,m,b,g,S;return d=f.allowErrors,g=f.preparedQuery,b=f.pathSeparator,d||t(c,g.core_lw,g.core_up)?(S=c.toLowerCase(),m=r(c,S,g),m.length===0||c.indexOf(b)>-1&&(h=e(c,S,g,b),m=i(m,h)),m):[]},fr.wrap=function(c,p,f){var d,h,m,b,g,S,R,v,w;if(f.wrap!=null&&(w=f.wrap,S=w.tagClass,v=w.tagOpen,R=w.tagClose),S==null&&(S="highlight"),v==null&&(v='<strong class="'+S+'">'),R==null&&(R="</strong>"),c===p)return v+c+R;if(m=o(c,p,f),m.length===0)return c;for(b="",d=-1,g=0;++d<m.length;){for(h=m[d],h>g&&(b+=c.substring(g,h),g=h);++d<m.length;)if(m[d]===h+1)h++;else{d--;break}h++,h>g&&(b+=v,b+=c.substring(g,h),b+=R,g=h)}return g<=c.length-1&&(b+=c.substring(g)),b},e=function(c,p,f,d){var h,m,b;for(b=c.length-1;c[b]===d;)b--;if(h=c.lastIndexOf(d,b),h===-1)return[];for(m=f.depth;m-- >0;)if(h=c.lastIndexOf(d,h-1),h===-1)return[];return h++,b++,r(c.slice(h,b),p.slice(h,b),f,h)},i=function(c,p){var f,d,h,m,b,g,S;if(b=c.length,g=p.length,g===0)return c.slice();if(b===0)return p.slice();for(h=-1,m=0,d=p[m],S=[];++h<b;){for(f=c[h];d<=f&&++m<g;)d<f&&S.push(d),d=p[m];S.push(f)}for(;m<g;)S.push(p[m++]);return S},r=function(c,p,f,d){var h,m,b,g,S,R,v,w,E,_,y,x,O,P,F,M,H,A,V,z,Z,q,oe,ue,ee,pe;for(d==null&&(d=0),A=f.query,V=f.query_lw,O=c.length,M=A.length,S=a(c,p,A,V).score,q=new Array(M),E=new Array(M),b=0,g=1,m=2,h=3,pe=new Array(O*M),H=-1,x=-1;++x<M;)q[x]=0,E[x]=0;for(y=-1;++y<O;)for(z=0,oe=0,w=0,ue=p[y],x=-1;++x<M;)_=0,R=0,Z=oe,V[x]===ue&&(ee=n(y,c,p),_=w>0?w:s(c,p,A,V,y,x,ee),R=Z+u(y,x,ee,S,_)),oe=q[x],w=E[x],z>oe?F=m:(z=oe,F=g),R>z?(z=R,F=h):_=0,q[x]=z,E[x]=_,pe[++H]=z>0?F:b;for(y=O-1,x=M-1,H=y*M+x,v=!0,P=[];v&&y>=0&&x>=0;)switch(pe[H]){case g:y--,H-=M;break;case m:x--,H--;break;case h:P.push(y+d),x--,y--,H-=M+1;break;default:v=!1}return P.reverse(),P}}).call(fr)});var Rr=me((mn,dn)=>{(function(){var e,r,t,n,o,i,a,u;t=fn(),n=pn(),u=Re(),i=lr(),e=Fr(),a=null,r=(typeof process!="undefined"&&process!==null?process.platform:void 0)==="win32"?"\\":"/",dn.exports={filter:function(s,l,c){return c==null&&(c={}),(l!=null?l.length:void 0)&&(s!=null?s.length:void 0)?(c=o(c,l),t(s,l,c)):[]},score:function(s,l,c){return c==null&&(c={}),(s!=null?s.length:void 0)&&(l!=null?l.length:void 0)?(c=o(c,l),c.usePathScoring?i.score(s,l,c):u.score(s,l,c)):0},match:function(s,l,c){var p,f,d;return c==null&&(c={}),s?l?s===l?function(){d=[];for(var h=0,m=s.length;0<=m?h<m:h>m;0<=m?h++:h--)d.push(h);return d}.apply(this):(c=o(c,l),n.match(s,l,c)):[]:[]},wrap:function(s,l,c){return c==null&&(c={}),s?l?(c=o(c,l),n.wrap(s,l,c)):[]:[]},prepareQuery:function(s,l){return l==null&&(l={}),l=o(l,s),l.preparedQuery}},o=function(s,l){return s.allowErrors==null&&(s.allowErrors=!1),s.usePathScoring==null&&(s.usePathScoring=!0),s.useExtensionBonus==null&&(s.useExtensionBonus=!1),s.pathSeparator==null&&(s.pathSeparator=r),s.optCharRegEx==null&&(s.optCharRegEx=null),s.wrap==null&&(s.wrap=null),s.preparedQuery==null&&(s.preparedQuery=a&&a.query===l?a:a=new e(l,s)),s}}).call(mn)});var at=br(it()),{__extends:W,__assign:xo,__rest:wo,__decorate:So,__param:Eo,__metadata:_o,__awaiter:st,__generator:ut,__exportStar:Oo,__createBinding:To,__values:G,__read:j,__spread:Ao,__spreadArrays:Mo,__spreadArray:k,__await:Io,__asyncGenerator:Lo,__asyncDelegator:Co,__asyncValues:ct,__makeTemplateObject:Po,__importStar:Ho,__importDefault:Fo,__classPrivateFieldGet:Ro,__classPrivateFieldSet:jo}=at.default;function T(e){return typeof e=="function"}function $e(e){var r=function(n){Error.call(n),n.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ne=$e(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
`+t.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
`):"",this.name="UnsubscriptionError",this.errors=t}});function ae(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var N=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var r,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))try{for(var u=G(a),s=u.next();!s.done;s=u.next()){var l=s.value;l.remove(this)}}catch(m){r={error:m}}finally{try{s&&!s.done&&(t=u.return)&&t.call(u)}finally{if(r)throw r.error}}else a==null||a.remove(this);var c=this.initialTeardown;if(T(c))try{c()}catch(m){i=m instanceof Ne?m.errors:[m]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var f=G(p),d=f.next();!d.done;d=f.next()){var h=d.value;try{lt(h)}catch(m){i=i!=null?i:[],m instanceof Ne?i=k(k([],j(i)),j(m.errors)):i.push(m)}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}if(i)throw new Ne(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)lt(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._teardowns=(t=this._teardowns)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&ae(t,r)},e.prototype.remove=function(r){var t=this._teardowns;t&&ae(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();var gr=N.EMPTY;function De(e){return e instanceof N||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function lt(e){T(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ge={setTimeout:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=ge.delegate;return((t==null?void 0:t.setTimeout)||setTimeout).apply(void 0,k([],j(e)))},clearTimeout:function(e){var r=ge.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Qe(e){ge.setTimeout(function(){var r=X.onUnhandledError;if(r)r(e);else throw e})}function B(){}var ft=function(){return xr("C",void 0,void 0)}();function pt(e){return xr("E",void 0,e)}function mt(e){return xr("N",e,void 0)}function xr(e,r,t){return{kind:e,value:r,error:t}}var Ie=function(e){W(r,e);function r(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,De(t)&&t.add(n)):n.destination=kn,n}return r.create=function(t,n,o){return new wr(t,n,o)},r.prototype.next=function(t){this.isStopped?Sr(mt(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Sr(pt(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Sr(ft,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(N);var wr=function(e){W(r,e);function r(t,n,o){var i=e.call(this)||this,a;if(T(t))a=t;else if(t){a=t.next,n=t.error,o=t.complete;var u;i&&X.useDeprecatedNextContext?(u=Object.create(t),u.unsubscribe=function(){return i.unsubscribe()}):u=t,a=a==null?void 0:a.bind(u),n=n==null?void 0:n.bind(u),o=o==null?void 0:o.bind(u)}return i.destination={next:a?Er(a,i):B,error:Er(n!=null?n:dt,i),complete:o?Er(o,i):B},i}return r}(Ie);function Er(e,r){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,k([],j(t)))}catch(o){if(X.useDeprecatedSynchronousErrorHandling)if(r._syncErrorHack_isSubscribing)r.__syncError=o;else throw o;else Qe(o)}}}function dt(e){throw e}function Sr(e,r){var t=X.onStoppedNotification;t&&ge.setTimeout(function(){return t(e,r)})}var kn={closed:!0,next:B,error:dt,complete:B};var ce=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function D(e){return e}function ht(e){return e.length===0?D:e.length===1?e[0]:function(t){return e.reduce(function(n,o){return o(n)},t)}}var I=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,n){var o=zn(r)?r:new wr(r,t,n),i=this,a=i.operator,u=i.source,s=o;if(X.useDeprecatedSynchronousErrorHandling&&(s._syncErrorHack_isSubscribing=!0),o.add(a?a.call(o,u):u||X.useDeprecatedSynchronousErrorHandling?this._subscribe(o):this._trySubscribe(o)),X.useDeprecatedSynchronousErrorHandling)for(s._syncErrorHack_isSubscribing=!1;s;){if(s.__syncError)throw s.__syncError;s=s.destination}return o},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var n=this;return t=vt(t),new t(function(o,i){var a;a=n.subscribe(function(u){try{r(u)}catch(s){i(s),a==null||a.unsubscribe()}},i,o)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[ce]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return r.length?ht(r)(this):this},e.prototype.toPromise=function(r){var t=this;return r=vt(r),new r(function(n,o){var i;t.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(r){return new e(r)},e}();function vt(e){var r;return(r=e!=null?e:X.Promise)!==null&&r!==void 0?r:Promise}function Un(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function zn(e){return e&&e instanceof Ie||Un(e)&&De(e)}function Wn(e){return T(e==null?void 0:e.lift)}function L(e){return function(r){if(Wn(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}var C=function(e){W(r,e);function r(t,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=a,u._next=n?function(s){try{n(s)}catch(l){t.error(l)}}:e.prototype._next,u._error=o?function(s){try{o(s)}catch(l){t.error(l)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(s){t.error(s)}finally{this.unsubscribe()}}:e.prototype._complete,u}return r.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))},r}(Ie);var xe={schedule:function(e){var r=requestAnimationFrame,t=cancelAnimationFrame,n=xe.delegate;n&&(r=n.requestAnimationFrame,t=n.cancelAnimationFrame);var o=r(function(i){t=void 0,e(i)});return new N(function(){return t==null?void 0:t(o)})},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=xe.delegate;return((t==null?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,k([],j(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=xe.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,k([],j(e)))},delegate:void 0};var bt=$e(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var se=function(e){W(r,e);function r(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype.lift=function(t){var n=new yt(this,this);return n.operator=t,n},r.prototype._throwIfClosed=function(){if(this.closed)throw new bt},r.prototype.next=function(t){var n,o;if(this._throwIfClosed(),!this.isStopped){var i=this.observers.slice();try{for(var a=G(i),u=a.next();!u.done;u=a.next()){var s=u.value;s.next(t)}}catch(l){n={error:l}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}}},r.prototype.error=function(t){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;for(var n=this.observers;n.length;)n.shift().error(t)}},r.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},r.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,u=o.observers;return i||a?gr:(u.push(t),new N(function(){return ae(n.observers,t)}))},r.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},r.prototype.asObservable=function(){var t=new I;return t.source=this,t},r.create=function(t,n){return new yt(t,n)},r}(I);var yt=function(e){W(r,e);function r(t,n){var o=e.call(this)||this;return o.destination=t,o.source=n,o}return r.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},r.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},r.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},r.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:gr},r}(se);var Le={now:function(){return(Le.delegate||Date).now()},delegate:void 0};var gt=function(e){W(r,e);function r(t,n,o){t===void 0&&(t=Infinity),n===void 0&&(n=Infinity),o===void 0&&(o=Le);var i=e.call(this)||this;return i.bufferSize=t,i.windowTime=n,i.timestampProvider=o,i.buffer=[],i.infiniteTimeWindow=!0,i.infiniteTimeWindow=n===Infinity,i.bufferSize=Math.max(1,t),i.windowTime=Math.max(1,n),i}return r.prototype.next=function(t){var n=this,o=n.isStopped,i=n.buffer,a=n.infiniteTimeWindow,u=n.timestampProvider,s=n.windowTime;o||(i.push(t),!a&&i.push(u.now()+s)),this.trimBuffer(),e.prototype.next.call(this,t)},r.prototype._subscribe=function(t){this._throwIfClosed(),this.trimBuffer();for(var n=this._innerSubscribe(t),o=this,i=o.infiniteTimeWindow,a=o.buffer,u=a.slice(),s=0;s<u.length&&!t.closed;s+=i?1:2)t.next(u[s]);return this._checkFinalizedStatuses(t),n},r.prototype.trimBuffer=function(){var t=this,n=t.bufferSize,o=t.timestampProvider,i=t.buffer,a=t.infiniteTimeWindow,u=(a?1:2)*n;if(n<Infinity&&u<i.length&&i.splice(0,i.length-u),!a){for(var s=o.now(),l=0,c=1;c<i.length&&i[c]<=s;c+=2)l=c;l&&i.splice(0,l+1)}},r}(se);var xt=function(e){W(r,e);function r(t,n){return e.call(this)||this}return r.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},r}(N);var Ce={setInterval:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=Ce.delegate;return((t==null?void 0:t.setInterval)||setInterval).apply(void 0,k([],j(e)))},clearInterval:function(e){var r=Ce.delegate;return((r==null?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0};var Ke=function(e){W(r,e);function r(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return r.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},r.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),Ce.setInterval(t.flush.bind(t,this),o)},r.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;Ce.clearInterval(n)},r.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(t,n){var o=!1,i;try{this.work(t)}catch(a){o=!0,i=!!a&&a||new Error(a)}if(o)return this.unsubscribe(),i},r.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ae(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(xt);var _r=function(){function e(r,t){t===void 0&&(t=e.now),this.schedulerActionCtor=r,this.now=t}return e.prototype.schedule=function(r,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,r).schedule(n,t)},e.now=Le.now,e}();var Je=function(e){W(r,e);function r(t,n){n===void 0&&(n=_r.now);var o=e.call(this,t,n)||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var o;this.active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,o){for(;t=n.shift();)t.unsubscribe();throw o}},r}(_r);var Or=new Je(Ke),wt=Or;var St=function(e){W(r,e);function r(t,n){var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o}return r.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,t,n,o):(t.actions.push(this),t.scheduled||(t.scheduled=xe.requestAnimationFrame(function(){return t.flush(void 0)})))},r.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,o);t.actions.length===0&&(xe.cancelAnimationFrame(n),t.scheduled=void 0)},r}(Ke);var Et=function(e){W(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,o,i=-1;t=t||n.shift();var a=n.length;do if(o=t.execute(t.state,t.delay))break;while(++i<a&&(t=n.shift()));if(this.active=!1,o){for(;++i<a&&(t=n.shift());)t.unsubscribe();throw o}},r}(Je);var Tr=new Et(St);var we=new I(function(e){return e.complete()});function Se(e,r){return new I(function(t){var n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}var Ee=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ye(e){return T(e==null?void 0:e.then)}function _t(e,r){return new I(function(t){var n=new N;return n.add(r.schedule(function(){var o=e[ce]();n.add(o.subscribe({next:function(i){n.add(r.schedule(function(){return t.next(i)}))},error:function(i){n.add(r.schedule(function(){return t.error(i)}))},complete:function(){n.add(r.schedule(function(){return t.complete()}))}}))})),n})}function Ot(e,r){return new I(function(t){return r.schedule(function(){return e.then(function(n){t.add(r.schedule(function(){t.next(n),t.add(r.schedule(function(){return t.complete()}))}))},function(n){t.add(r.schedule(function(){return t.error(n)}))})})})}function Vn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ge=Vn();function Tt(e,r,t,n){n===void 0&&(n=0);var o=r.schedule(function(){try{t.call(this)}catch(i){e.error(i)}},n);return e.add(o),o}function At(e,r){return new I(function(t){var n;return t.add(r.schedule(function(){n=e[Ge](),Tt(t,r,function(){var o=n.next(),i=o.value,a=o.done;a?t.complete():(t.next(i),this.schedule())})})),function(){return T(n==null?void 0:n.return)&&n.return()}})}function Xe(e){return T(e[ce])}function Be(e){return T(e==null?void 0:e[Ge])}function Mt(e,r){if(!e)throw new Error("Iterable cannot be null");return new I(function(t){var n=new N;return n.add(r.schedule(function(){var o=e[Symbol.asyncIterator]();n.add(r.schedule(function(){var i=this;o.next().then(function(a){a.done?t.complete():(t.next(a.value),i.schedule())})}))})),n})}function Ze(e){return Symbol.asyncIterator&&T(e==null?void 0:e[Symbol.asyncIterator])}function er(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, AsyncIterable, or Iterable.")}function It(e,r){if(e!=null){if(Xe(e))return _t(e,r);if(Ee(e))return Se(e,r);if(Ye(e))return Ot(e,r);if(Ze(e))return Mt(e,r);if(Be(e))return At(e,r)}throw er(e)}function de(e,r){return r?It(e,r):$(e)}function $(e){if(e instanceof I)return e;if(e!=null){if(Xe(e))return qn(e);if(Ee(e))return Ar(e);if(Ye(e))return $n(e);if(Ze(e))return Dn(e);if(Be(e))return Nn(e)}throw er(e)}function qn(e){return new I(function(r){var t=e[ce]();if(T(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ar(e){return new I(function(r){for(var t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}function $n(e){return new I(function(r){e.then(function(t){r.closed||(r.next(t),r.complete())},function(t){return r.error(t)}).then(null,Qe)})}function Nn(e){return new I(function(r){var t,n;try{for(var o=G(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(r.next(a),r.closed)return}}catch(u){t={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}r.complete()})}function Dn(e){return new I(function(r){Qn(e,r).catch(function(t){return r.error(t)})})}function Qn(e,r){var t,n,o,i;return st(this,void 0,void 0,function(){var a,u;return ut(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),t=ct(e),s.label=1;case 1:return[4,t.next()];case 2:if(n=s.sent(),!!n.done)return[3,4];if(a=n.value,r.next(a),r.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=s.sent(),o={error:u},[3,11];case 6:return s.trys.push([6,,9,10]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function le(e,r){return r?Se(e,r):Ar(e)}function rr(e){return e&&T(e.schedule)}function Mr(e){return e[e.length-1]}function _e(e){return T(Mr(e))?e.pop():void 0}function re(e){return rr(Mr(e))?e.pop():void 0}function Lt(e,r){return typeof Mr(e)=="number"?e.pop():r}function Oe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=re(e);return t?Se(e,t):le(e)}function Ct(e){return e instanceof Date&&!isNaN(e)}function U(e,r){return L(function(t,n){var o=0;t.subscribe(new C(n,function(i){n.next(e.call(r,i,o++))}))})}var Kn=Array.isArray;function Jn(e,r){return Kn(r)?e.apply(void 0,k([],j(r))):e(r)}function tr(e){return U(function(r){return Jn(e,r)})}function Ir(e,r){return r===void 0&&(r=0),L(function(t,n){t.subscribe(new C(n,function(o){return n.add(e.schedule(function(){return n.next(o)},r))},function(o){return n.add(e.schedule(function(){return n.error(o)},r))},function(){return n.add(e.schedule(function(){return n.complete()},r))}))})}var Yn=Array.isArray,Gn=Object.getPrototypeOf,Xn=Object.prototype,Bn=Object.keys;function Pt(e){if(e.length===1){var r=e[0];if(Yn(r))return{args:r,keys:null};if(Zn(r)){var t=Bn(r);return{args:t.map(function(n){return r[n]}),keys:t}}}return{args:e,keys:null}}function Zn(e){return e&&typeof e=="object"&&Gn(e)===Xn}function Ht(e,r){return e.reduce(function(t,n,o){return t[n]=r[o],t},{})}function nr(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=re(e),n=_e(e),o=Pt(e),i=o.args,a=o.keys;if(i.length===0)return de([],t);var u=new I(eo(i,t,a?function(s){return Ht(a,s)}:D));return n?u.pipe(tr(n)):u}function eo(e,r,t){return t===void 0&&(t=D),function(n){Ft(r,function(){for(var o=e.length,i=new Array(o),a=o,u=o,s=function(c){Ft(r,function(){var p=de(e[c],r),f=!1;p.subscribe(new C(n,function(d){i[c]=d,f||(f=!0,u--),u||n.next(t(i.slice()))},void 0,function(){--a||n.complete()}))},n)},l=0;l<o;l++)s(l)},n)}}function Ft(e,r,t){e?t.add(e.schedule(r)):r()}function Rt(e,r,t,n,o,i,a,u){var s=[],l=0,c=0,p=!1,f=function(){p&&!s.length&&!l&&r.complete()},d=function(m){return l<n?h(m):s.push(m)},h=function(m){i&&r.next(m),l++;var b=!1;$(t(m,c++)).subscribe(new C(r,function(g){o==null||o(g),i?d(g):r.next(g)},void 0,function(){b=!0},function(){if(b)try{l--;for(var g=function(){var S=s.shift();a?r.add(a.schedule(function(){return h(S)})):h(S)};s.length&&l<n;)g();f()}catch(S){r.error(S)}}))};return e.subscribe(new C(r,d,void 0,function(){p=!0,f()})),function(){u==null||u()}}function he(e,r,t){return t===void 0&&(t=Infinity),T(r)?he(function(n,o){return U(function(i,a){return r(n,i,o,a)})($(e(n,o)))},t):(typeof r=="number"&&(t=r),L(function(n,o){return Rt(n,o,e,t)}))}function or(e){return e===void 0&&(e=Infinity),he(D,e)}function jt(){return or(1)}function Pe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return jt()(le(e,re(e)))}function kt(e){return new I(function(r){$(e()).subscribe(r)})}var ro=["addListener","removeListener"],to=["addEventListener","removeEventListener"],no=["on","off"];function Q(e,r,t,n){if(T(t)&&(n=t,t=void 0),n)return Q(e,r,t).pipe(tr(n));var o=j(ao(e)?to.map(function(u){return function(s){return e[u](r,s,t)}}):oo(e)?ro.map(zt(e,r)):io(e)?no.map(zt(e,r)):[],2),i=o[0],a=o[1];if(!i&&Ee(e))return he(function(u){return Q(u,r,t)})(le(e));if(!i)throw new TypeError("Invalid event target");return new I(function(u){var s=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return u.next(1<l.length?l:l[0])};return i(s),function(){return a(s)}})}function zt(e,r){return function(t){return function(n){return e[t](r,n)}}}function oo(e){return T(e.addListener)&&T(e.removeListener)}function io(e){return T(e.on)&&T(e.off)}function ao(e){return T(e.addEventListener)&&T(e.removeEventListener)}function Ut(e,r,t){e===void 0&&(e=0),t===void 0&&(t=wt);var n=-1;return r!=null&&(rr(r)?t=r:n=r),new I(function(o){var i=Ct(e)?+e-t.now():e;i<0&&(i=0);var a=0;return t.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}var so=Array.isArray;function ir(e){return e.length===1&&so(e[0])?e[0]:e}function J(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=re(e),n=Lt(e,Infinity),o=ir(e);return o.length?o.length===1?$(o[0]):or(n)(le(o,t)):we}var Wt=new I(B);function ve(e,r){return L(function(t,n){var o=0;t.subscribe(new C(n,function(i){return e.call(r,i,o++)&&n.next(i)}))})}function Vt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=_e(e),n=ir(e);return n.length?new I(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var u=function(l){$(n[l]).subscribe(new C(o,function(c){if(i[l].push(c),i.every(function(f){return f.length})){var p=i.map(function(f){return f.shift()});o.next(t?t.apply(void 0,k([],j(p))):p),i.some(function(f,d){return!f.length&&a[d]})&&o.complete()}},void 0,function(){a[l]=!0,!i[l].length&&o.complete()}))},s=0;!o.closed&&s<n.length;s++)u(s);return function(){i=a=null}}):we}function qt(e,r){return r===void 0&&(r=null),r=r!=null?r:e,L(function(t,n){var o=[],i=0;t.subscribe(new C(n,function(a){var u,s,l,c,p=null;i++%r==0&&o.push([]);try{for(var f=G(o),d=f.next();!d.done;d=f.next()){var h=d.value;h.push(a),e<=h.length&&(p=p!=null?p:[],p.push(h))}}catch(g){u={error:g}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(u)throw u.error}}if(p)try{for(var m=G(p),b=m.next();!b.done;b=m.next()){var h=b.value;ae(o,h),n.next(h)}}catch(g){l={error:g}}finally{try{b&&!b.done&&(c=m.return)&&c.call(m)}finally{if(l)throw l.error}}},void 0,function(){var a,u;try{for(var s=G(o),l=s.next();!l.done;l=s.next()){var c=l.value;n.next(c)}}catch(p){a={error:p}}finally{try{l&&!l.done&&(u=s.return)&&u.call(s)}finally{if(a)throw a.error}}n.complete()},function(){o=null}))})}function Lr(e){return e<=0?function(){return we}:L(function(r,t){var n=0;r.subscribe(new C(t,function(o){++n<=e&&(t.next(o),e<=n&&t.complete())}))})}function $t(){return L(function(e,r){e.subscribe(new C(r,B))})}function Nt(e){return L(function(r,t){r.subscribe(new C(t,function(){return t.next(e)}))})}function Cr(e,r){return r?function(t){return Pe(r.pipe(Lr(1),$t()),t.pipe(Cr(e)))}:he(function(t,n){return e(t,n).pipe(Lr(1),Nt(t))})}function Dt(e,r){r===void 0&&(r=Or);var t=Ut(e,r);return Cr(function(){return t})}function Te(e,r){return r===void 0&&(r=D),e=e!=null?e:uo,L(function(t,n){var o,i=!0;t.subscribe(new C(n,function(a){var u=r(a);(i||!e(o,u))&&(i=!1,o=u,n.next(a))}))})}function uo(e,r){return e===r}function Qt(e,r){return Te(function(t,n){return r?r(t[e],n[e]):t[e]===n[e]})}function ar(e){return L(function(r,t){r.subscribe(t),t.add(e)})}function Kt(e){e=e||{};var r=e.connector,t=r===void 0?function(){return new se}:r,n=e.resetOnComplete,o=n===void 0?!0:n,i=e.resetOnError,a=i===void 0?!0:i,u=e.resetOnRefCountZero,s=u===void 0?!0:u,l=null,c=null,p=0,f=!1,d=!1,h=function(){l=c=null,f=d=!1};return L(function(m,b){return p++,c=c!=null?c:t(),c.subscribe(b),l||(l=de(m).subscribe({next:function(g){return c.next(g)},error:function(g){d=!0;var S=c;a&&h(),S.error(g)},complete:function(){f=!0;var g=c;o&&h(),g.complete()}})),function(){if(p--,s&&!p&&!d&&!f){var g=l;h(),g==null||g.unsubscribe()}}})}function sr(e,r,t){var n,o,i,a=!1;return e&&typeof e=="object"?(i=(n=e.bufferSize)!==null&&n!==void 0?n:Infinity,r=(o=e.windowTime)!==null&&o!==void 0?o:Infinity,a=!!e.refCount,t=e.scheduler):i=e!=null?e:Infinity,Kt({connector:function(){return new gt(i,r,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function Ae(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=re(e);return L(function(n,o){(t?Pe(e,n,t):Pe(e,n)).subscribe(o)})}function te(e,r){return L(function(t,n){var o=null,i=0,a=!1,u=function(){return a&&!o&&n.complete()};t.subscribe(new C(n,function(s){o==null||o.unsubscribe();var l=0,c=i++;$(e(s,c)).subscribe(o=new C(n,function(p){return n.next(r?r(s,p,c,l++):p)},void 0,function(){o=null,u()}))},void 0,function(){a=!0,u()}))})}function ur(e,r,t){var n=T(e)||r||t?{next:e,error:r,complete:t}:e;return n?L(function(o,i){o.subscribe(new C(i,function(a){var u;(u=n.next)===null||u===void 0||u.call(n,a),i.next(a)},function(a){var u;(u=n.error)===null||u===void 0||u.call(n,a),i.error(a)},function(){var a;(a=n.complete)===null||a===void 0||a.call(n),i.complete()}))}):D}function He(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t=_e(e);return L(function(n,o){for(var i=e.length,a=new Array(i),u=e.map(function(){return!1}),s=!1,l=function(p){$(e[p]).subscribe(new C(o,function(f){a[p]=f,!s&&!u[p]&&(u[p]=!0,(s=u.every(D))&&(u=null))},void 0,B))},c=0;c<i;c++)l(c);n.subscribe(new C(o,function(p){if(s){var f=k([p],j(a));o.next(t?t.apply(void 0,k([],j(f))):f)}}))})}function Jt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return L(function(t,n){Vt.apply(void 0,k([t],j(e))).subscribe(n)})}function Yt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Jt.apply(void 0,k([],j(e)))}function Gt(e,r=document){return r.querySelector(e)||void 0}function Y(e,r=document){let t=Gt(e,r);if(typeof t=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return t}function Pr(){return document.activeElement instanceof HTMLElement?document.activeElement:void 0}function Xt(e,r=document){return Array.from(r.querySelectorAll(e))}function Bt(e){return J(Q(e,"focus"),Q(e,"blur")).pipe(U(({type:r})=>r==="focus"),Ae(e===Pr()))}var co=new se,Al=kt(()=>Oe(new ResizeObserver(e=>{for(let r of e)co.next(r)}))).pipe(te(e=>Wt.pipe(Ae(e)).pipe(ar(()=>e.disconnect()))),sr(1));function Zt(e){return{width:e.offsetWidth,height:e.offsetHeight}}function en(e){return{width:e.scrollWidth,height:e.scrollHeight}}function rn(e){return{x:e.scrollLeft,y:e.scrollTop}}function lo(e){return J(Q(e,"scroll"),Q(window,"resize")).pipe(U(()=>rn(e)),Ae(rn(e)))}function tn(e,r=16){return lo(e).pipe(U(({y:t})=>{let n=Zt(e),o=en(e);return t>=o.height-n.height-r}),Te())}var ql={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function nn(){return new URL(location.href)}function fo(e,r={credentials:"same-origin"}){return de(fetch(`${e}`,r)).pipe(ve(t=>t.status===200))}function cr(e,r){return fo(e,r).pipe(te(t=>t.json()),sr(1))}function Me(e,r=document){return Y(`[data-mdx-component=${e}]`,r)}function Hr(e,r=document){return Xt(`[data-mdx-component=${e}]`,r)}var po=Y("#__config"),Fe=JSON.parse(po.textContent);Fe.base=new URL(Fe.base,nn()).toString().replace(/\/$/,"");function on(){return Fe}function fe(e,r){return typeof r!="undefined"?Fe.translations[e].replace("#",r.toString()):Fe.translations[e]}function an(e){let r=Bt(e),t=J(Q(e,"keyup"),Q(e,"focus").pipe(Dt(1))).pipe(U(()=>e.value),Te());return r.pipe(ve(n=>!n),He(t)).subscribe(([,n])=>{let o=document.location.pathname;n.length&&ga("send","pageview",`${o}?q=[icon]+${n}`)}),nr([t,r]).pipe(U(([n,o])=>({ref:e,value:n,focus:o})))}var On=br(Rr());function hn(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 t of r)hn(e,t)}function ne(e,r,...t){let n=document.createElement(e);if(r)for(let o of Object.keys(r))typeof r[o]!="boolean"?n.setAttribute(o,r[o]):r[o]&&n.setAttribute(o,"");for(let o of t)hn(n,o);return n}function vn(e){if(e>999){let r=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(r)}k`}else return e.toString()}function bn(e,r){switch(r){case 0:e.textContent=fe("search.result.none");break;case 1:e.textContent=fe("search.result.one");break;default:e.textContent=fe("search.result.other",vn(r))}}function yn(e){e.textContent=fe("search.result.placeholder")}function gn(e,r){e.appendChild(r)}function xn(e){e.innerHTML=""}var wn=br(Rr());function mo(e,r){return(0,wn.wrap)(e.shortcode,r,{wrap:{tagOpen:"<b>",tagClose:"</b>"}})}function Sn(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:fe("clipboard.copy"),"data-clipboard-text":`:${e.shortcode}:`},ne("code",null,`:${mo(e,r)}:`)))}function En(e){let r=`@${e.name}`;return ne("a",{href:e.url,title:r,class:"mdx-sponsorship__item"},ne("img",{src:e.image}))}function _n(e){return ne("a",{href:"https://github.com/sponsors/squidfunk",class:"mdx-sponsorship__item mdx-sponsorship__item--private"},"+",e)}function ho(e,{index$:r,query$:t}){return nr([t.pipe(Qt("value")),r.pipe(U(({icons:n,emojis:o})=>[...Object.keys(n.data),...Object.keys(o.data)]))]).pipe(U(([{value:n},o])=>(0,On.filter)(o,n)),te(n=>r.pipe(U(({icons:o,emojis:i})=>({data:n.map(a=>{let u=a in o.data?o:i;return{shortcode:a,url:[u.base,u.data[a]].join("")}})})))))}function Tn(e,{index$:r,query$:t}){let n=new se,o=tn(e).pipe(ve(Boolean)),i=Y(":scope > :first-child",e);n.pipe(Ir(Tr),He(t)).subscribe(([{data:u},{value:s}])=>{s?bn(i,u.length):yn(i)});let a=Y(":scope > :last-child",e);return n.pipe(Ir(Tr),ur(()=>xn(a)),te(({data:u})=>J(Oe(...u.slice(0,10)),Oe(...u.slice(10)).pipe(qt(10),Yt(o),te(([s])=>Oe(...s))))),He(t)).subscribe(([u,{value:s}])=>{gn(a,Sn(u,s))}),ho(e,{query$:t,index$:r}).pipe(ur(n),ar(()=>n.complete()),U(u=>Ue({ref:e},u)))}function An(e){let r=on(),t=cr(`${r.base}/overrides/assets/javascripts/iconsearch_index.json`),n=Me("iconsearch-query",e),o=Me("iconsearch-result",e),i=an(n),a=Tn(o,{index$:t,query$:i});return J(i,a)}var pr;(function(e){e.PUBLIC="PUBLIC",e.PRIVATE="PRIVATE"})(pr||(pr={}));function Mn(e){let r=cr("https://gpiqp43wvb.execute-api.us-east-1.amazonaws.com/_/"),t=Me("sponsorship-count"),n=Me("sponsorship-total");return r.subscribe(o=>{e.removeAttribute("hidden");let i=Y(":scope > :first-child",e);for(let a of o.sponsors)a.type===pr.PUBLIC&&i.appendChild(En(a));i.appendChild(_n(o.sponsors.filter(({type:a})=>a===pr.PRIVATE).length)),t.innerText=`${o.sponsors.length}`,n.innerText=`$ ${o.total.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}`}),r.pipe(U(o=>Ue({ref:e},o)))}function In(){Q(document.body,"click").subscribe(e=>{if(e.target instanceof HTMLElement){let r=e.target.closest("a[href^=http]");r instanceof HTMLLinkElement&&ga("send","event","outbound","click",r.href)}})}In();var vo=document$.pipe(te(()=>J(...Hr("iconsearch").map(e=>An(e)),...Hr("sponsorship").map(e=>Mn(e)))));vo.subscribe();})();
|
|
/*! *****************************************************************************
|
|
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.
|
|
***************************************************************************** */
|
|
//# sourceMappingURL=bundle.3b3ca511.min.js.map
|
|
|