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