1
0
mirror of https://github.com/StarGazer114/stargazer114.github.io.git synced 2025-01-09 23:08:16 +08:00
stargazer114.github.io/pluginsSrc/@docsearch/js/dist/umd/index.js

4 lines
130 KiB
JavaScript
Raw Normal View History

2025-01-05 20:41:38 +08:00
/*! @docsearch/js 3.8.2 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).docsearch=t()}(this,(function(){"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(null,arguments)}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n,r,o,i,a,c,u,l,s,f,p,m={},v=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function _(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,r){var o,i,a,c={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=t[a];if(arguments.length>2&&(c.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return b(e,c,o,i,null)}function b(e,t,n,i,a){var c={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(c),c}function S(e){return e.children}function O(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function j(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!P.__r++||a!==r.debounceRendering)&&((a=r.debounceRendering)||c)(P)}function P(){var e,t,n,o,a,c,l,s;for(i.sort(u);e=i.shift();)e.__d&&(t=i.length,o=void 0,c=(a=(n=e).__v).__e,l=[],s=[],n.__P&&((o=y({},a)).__v=a.__v+1,r.vnode&&r.vnode(o),T(n.__P,o,a,n.__n,n.__P.namespaceURI,32&a.__u?[c]:null,l,null==c?w(a):c,!!(32&a.__u),s),o.__v=a.__v,o.__.__k[o.__i]=o,R(l,o,s),o.__e!=c&&E(o)),i.length>t&&i.sort(u));P.__r=0}function I(e,t,n,r,o,i,a,c,u,l,s){var f,p,h,y,_,g=r&&r.__k||v,O=t.length;for(n.__d=u,function(e,t,n){var r,o,i,a,c,u=t.length,l=n.length,s=l,f=0;for(e.__k=[],r=0;r<u;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(a=r+f,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):d(o)?b(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,-1!==(c=o.__i=C(o,n,a,s))&&(s--,(i=n[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&f--,"function"!=typeof o.type&&(o.__u|=65536)):c!==a&&(c==a-1?f--:c==a+1?f++:(c>a?f--:f++,o.__u|=65536))):o=e.__k[r]=null;if(s)for(r=0;r<l;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=w(i)),M(i,i))}(n,t,g),u=n.__d,f=0;f<O;f++)null!=(h=n.__k[f])&&(p=-1===h.__i?m:g[h.__i]||m,h.__i=f,T(e,h,p,o,i,a,c,u,l,s),y=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&q(p.ref,null,h),s.push(h.ref,h.__c||y,h)),null==_&&null!=y&&(_=y),65536&h.__u||p.__k===h.__k?u=k(h,u,e):"function"==typeof h.type&&void 0!==h.__d?u=h.__d:y&&(u=y.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=u,n.__e=_}function k(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=k(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=w(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(d(e)?e.some((function(e){D(e,t)})):t.push(e)),t}function C(e,t,n,r){var o=e.key,i=e.type,a=n-1,c=n+1,u=t[n];if(null===u||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(null==u||131072&u.__u?0:1))for(;a>=0||c<t.length;){if(a>=0){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)
//# sourceMappingURL=index.js.map