mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2026-10-28 20:11:27 +01:00
deploy: fc8c8666cf
This commit is contained in:
1 parent
e0a5573057
commit
443fb008a5
23 files changed
+21
-21
No files matched your search
+1
@@ -0,0 +1 @@
|
||||
var hljs=function(){"use strict";function p(e){Object.freeze(e);var t="function"==typeof e;return Object.getOwnPropertyNames(e).forEach(function(n){!Object.hasOwnProperty.call(e,n)||null===e[n]||"object"!=typeof e[n]&&"function"!=typeof e[n]||t&&("caller"===n||"callee"===n||"arguments"===n)||Object.isFrozen(e[n])||p(e[n])}),e}class f{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function t(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function e(t,...n){var e={};for(const n in t)e[n]=t[n];return n.forEach(function(t){for(const n in t)e[n]=t[n]}),e}function a(e){return e.nodeName.toLowerCase()}m=Object.freeze({__proto__:null,escapeHTML:t,inherit:e,nodeStream:function(t){var e=[];return function s(o,n){for(var t=o.firstChild;t;t=t.nextSibling)3===t.nodeType?n+=t.nodeValue.length:1===t.nodeType&&(e.push({event:"start",offset:n,node:t}),n=s(t,n),a(t).match(/br|hr|img|input/)||e.push({event:"stop",offset:n,node:t}));return n}(t,0),e},mergeStreams:function(n,s,c){var e,o=0,r="",i=[];function l(){return n.length&&s.length?n[0].offset!==s[0].offset?n[0].offset<s[0].offset?n:s:"start"===s[0].event?n:s:n.length?n:s}function d(e){r+="<"+a(e)+[].map.call(e.attributes,function(e){return" "+e.nodeName+'="'+t(e.value)+'"'}).join("")+">"}function u(e){r+="</"+a(e)+">"}function h(e){("start"===e.event?d:u)(e.node)}for(;n.length||s.length;)if(e=l(),r+=t(c.substring(o,e[0].offset)),o=e[0].offset,e===n){i.reverse().forEach(u);do h(e.splice(0,1)[0]),e=l();while(e===n&&e.length&&e[0].offset===o)i.reverse().forEach(d)}else"start"===e[0].event?i.push(e[0].node):i.pop(),h(e.splice(0,1)[0]);return r+t(c.substr(o))}});const A="</span>",d=e=>!!e.kind;class k{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=t(e)}openNode(e){if(!d(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){d(e)&&(this.buffer+=A)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach(e=>this._walk(t,e)),t.closeNode(e)),t}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{l._collapse(e)}))}}class E extends l{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(t,n){const e=t.root;e.kind=n,e.sublanguage=!0,this.add(e)}toHTML(){return new k(this,this.options).value()}finalize(){return!0}}function i(e){return e?"string"==typeof e?e:e.source:null}const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",n={begin:"\\\\[\\s\\S]",relevance:0},_={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[n]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[n]},g={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},s=function(n,s,o={}){var t=e({className:"comment",begin:n,end:s,contains:[]},o);return t.contains.push(g),t.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),t},b=s("//","$"),j=s("/\\*","\\*/"),y=s("#","$");var m,o=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const n=/^#![ ]*\//;return t.binary&&(t.begin=function(...e){return e.map(e=>i(e)).join("")}(n,/.*\b/,t.binary,/\b.*/)),e({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},t)},BACKSLASH_ESCAPE:n,APOS_STRING_MODE:_,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:g,COMMENT:s,C_LINE_COMMENT_MODE:b,C_BLOCK_COMMENT_MODE:j,HASH_COMMENT_MODE:y,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:h,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODLine truncated
|
||||
-1
@@ -1 +0,0 @@
|
||||
var hljs=function(){"use strict";function p(e){Object.freeze(e);var t="function"==typeof e;return Object.getOwnPropertyNames(e).forEach(function(n){!Object.hasOwnProperty.call(e,n)||null===e[n]||"object"!=typeof e[n]&&"function"!=typeof e[n]||t&&("caller"===n||"callee"===n||"arguments"===n)||Object.isFrozen(e[n])||p(e[n])}),e}class f{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function t(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function e(t,...n){var e={};for(const n in t)e[n]=t[n];return n.forEach(function(t){for(const n in t)e[n]=t[n]}),e}function a(e){return e.nodeName.toLowerCase()}A=Object.freeze({__proto__:null,escapeHTML:t,inherit:e,nodeStream:function(t){var e=[];return function s(o,n){for(var t=o.firstChild;t;t=t.nextSibling)3===t.nodeType?n+=t.nodeValue.length:1===t.nodeType&&(e.push({event:"start",offset:n,node:t}),n=s(t,n),a(t).match(/br|hr|img|input/)||e.push({event:"stop",offset:n,node:t}));return n}(t,0),e},mergeStreams:function(n,s,c){var o=0,r="",i=[],e;function l(){return n.length&&s.length?n[0].offset!==s[0].offset?n[0].offset<s[0].offset?n:s:"start"===s[0].event?n:s:n.length?n:s}function d(e){r+="<"+a(e)+[].map.call(e.attributes,function(e){return" "+e.nodeName+'="'+t(e.value)+'"'}).join("")+">"}function u(e){r+="</"+a(e)+">"}function h(e){("start"===e.event?d:u)(e.node)}for(;n.length||s.length;)if(e=l(),r+=t(c.substring(o,e[0].offset)),o=e[0].offset,e===n){i.reverse().forEach(u);do h(e.splice(0,1)[0]),e=l();while(e===n&&e.length&&e[0].offset===o)i.reverse().forEach(d)}else"start"===e[0].event?i.push(e[0].node):i.pop(),h(e.splice(0,1)[0]);return r+t(c.substr(o))}});const k="</span>",d=e=>!!e.kind;class E{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=t(e)}openNode(e){if(!d(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){d(e)&&(this.buffer+=k)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(t){const e={kind:t,children:[]};this.add(e),this.stack.push(e)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(t,e){return"string"==typeof e?t.addText(e):e.children&&(t.openNode(e),e.children.forEach(e=>this._walk(t,e)),t.closeNode(e)),t}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{l._collapse(e)}))}}class _ extends l{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(t,n){const e=t.root;e.kind=n,e.sublanguage=!0,this.add(e)}toHTML(){return new E(this,this.options).value()}finalize(){return!0}}function s(e){return e?"string"==typeof e?e:e.source:null}const h="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",n={begin:"\\\\[\\s\\S]",relevance:0},v={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[n]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[n]},c={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},o=function(n,s,o={}){var t=e({className:"comment",begin:n,end:s,contains:[]},o);return t.contains.push(c),t.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),t},b=o("//","$"),j=o("/\\*","\\*/"),y=o("#","$");var A,i=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:h,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const n=/^#![ ]*\//;return t.binary&&(t.begin=function(...e){return e.map(e=>s(e)).join("")}(n,/.*\b/,t.binary,/\b.*/)),e({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},t)},BACKSLASH_ESCAPE:n,APOS_STRING_MODE:v,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:c,COMMENT:o,C_LINE_COMMENT_MODE:b,C_BLOCK_COMMENT_MODE:j,HASH_COMMENT_MODE:y,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:h,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
var e=this,t=function(){"use strict";function y(t,s){var e,n=Object.keys(t);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(t),s&&(e=e.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,e)),n}function a(n){for(var e,t=1;t<arguments.length;t++)e=null!=arguments[t]?arguments[t]:{},t%2?y(Object(e),!0).forEach(function(t){N(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):y(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))});return n}function h(e){return h="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},h(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(s,n){for(var e,t=0;t<n.length;t++)e=n[t],e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}function c(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=n[t];return s}function o(e){return Array.isArray?Array.isArray(e):"[object Array]"===b(e)}function s(e){return"string"==typeof e}function x(e){return"number"==typeof e}function D(e){return!0===e||!1===e||function(e){return function(e){return"object"===h(e)}(e)&&null!==e}(e)&&"[object Boolean]"==b(e)}function t(e){return null!=e}function f(e){return!e.trim().length}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var n,i,d,p,v,k="Extended search is not available",F=function(e){return"Pattern length exceeds max of ".concat(e,".")},g=Object.prototype.hasOwnProperty,S=function(){function e(s){var t,n=this;l(this,e),this._keys=[],this._keyMap={},t=0,s.forEach(function(s){var e=C(s);t+=e.weight,n._keys.push(e),n._keyMap[e.id]=e,t+=e.weight}),this._keys.forEach(function(e){e.weight/=t})}return c(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function C(e){var t,n=null,i=null,a=null,r=1;if(s(e)||o(e))a=e,n=_(e),i=w(e);else{if(!g.call(e,"name"))throw new Error(function(e){return"Missing ".concat(e," property in key")}("name"));if(t=e.name,a=t,g.call(e,"weight")&&(r=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(t));n=_(t),i=w(t)}return{path:n,id:i,weight:r,src:a}}function _(e){return o(e)?e:e.split(".")}function w(e){return o(e)?e.join("."):e}var A={useExtendedSearch:!1,getFn:function(a,n){var e=[],i=!1;return function d(c,a,r){if(t(c))if(a[r]){if(n=c[a[r]],!t(n))return;if(r===a.length-1&&(s(n)||x(n)||D(n)))e.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(n));else if(o(n)){i=!0;for(var n,l=0,u=n.length;l<u;l+=1)d(n[l],a,r+1)}else a.length&&d(n,a,r+1)}else e.push(c)}(a,s(n)?n.split("."):n,0),i?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},e=a(a(a(a({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),A),z=/[^ ]+/g;function I(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=new Map,t=Math.pow(10,s);return{get:function(i){if(s=i.match(z).length,e.has(s))return e.get(s);var s,a=1/Math.pow(s,.5*n),o=parseFloat(Math.round(a*t)/t);return e.set(s,o),o},clear:function(){e.clear()}}}d=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=t.getFn,i=void 0===s?e.getFn:s,o=t.fieldNormWeight,a=void 0===o?e.fieldNormWeight:o;l(this,n),this.norm=I(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return c(n,[{key:"setSources",value:function(){var e=arguLine truncated
|
||||
-1
@@ -1 +0,0 @@
|
||||
var e=this,t=function(){"use strict";function v(e,s){var t=Object.keys(e),n;return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),s&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),t.push.apply(t,n)),t}function i(n){for(var e=1,t;e<arguments.length;e++)t=null!=arguments[e]?arguments[e]:{},e%2?v(Object(t),!0).forEach(function(e){N(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))});return n}function h(e){return h="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},h(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(s,n){for(var t=0,e;t<n.length;t++)e=n[t],e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}function r(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=n[t];return s}function s(e){return Array.isArray?Array.isArray(e):"[object Array]"===p(e)}function n(e){return"string"==typeof e}function g(e){return"number"==typeof e}function D(e){return!0===e||!1===e||function(e){return function(e){return"object"===h(e)}(e)&&null!==e}(e)&&"[object Boolean]"==p(e)}function t(e){return null!=e}function m(e){return!e.trim().length}function p(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var F="Extended search is not available",S=function(e){return"Pattern length exceeds max of ".concat(e,".")},b=Object.prototype.hasOwnProperty,A=function(){function e(s){var n=this,t;l(this,e),this._keys=[],this._keyMap={},t=0,s.forEach(function(s){var e=x(s);t+=e.weight,n._keys.push(e),n._keyMap[e.id]=e,t+=e.weight}),this._keys.forEach(function(e){e.weight/=t})}return r(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}(),f,o,E,O,a;function x(e){var o=null,i=null,a=null,r=1,t;if(n(e)||s(e))a=e,o=_(e),i=w(e);else{if(!b.call(e,"name"))throw new Error(function(e){return"Missing ".concat(e," property in key")}("name"));if(t=e.name,a=t,b.call(e,"weight")&&(r=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(t));o=_(t),i=w(t)}return{path:o,id:i,weight:r,src:a}}function _(e){return s(e)?e:e.split(".")}function w(e){return s(e)?e.join("."):e}var k={useExtendedSearch:!1,getFn:function(a,o){var e=[],i=!1;return function d(c,a,r){if(t(c))if(a[r]){if(o=c[a[r]],!t(o))return;if(r===a.length-1&&(n(o)||g(o)||D(o)))e.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(o));else if(s(o)){i=!0;for(var o,l=0,u=o.length;l<u;l+=1)d(o[l],a,r+1)}else a.length&&d(o,a,r+1)}else e.push(c)}(a,n(o)?o.split("."):o,0),i?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},e=i(i(i(i({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),k),I=/[^ ]+/g;function z(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=new Map,t=Math.pow(10,s);return{get:function(i){if(s=i.match(I).length,e.has(s))return e.get(s);var s,a=1/Math.pow(s,.5*n),o=parseFloat(Math.round(a*t)/t);return e.set(s,o),o},clear:function(){e.clear()}}}f=function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?e.getFn:n,s=t.fieldNormWeight,a=void 0===s?e.fieldNormWeight:s;l(this,o),this.norm=z(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(o,[{key:"setSources",value:function(){var e=arguLine truncated
|
||||
Reference in new issue
Block a user