]> BookStack Code Mirror - website/commitdiff
Updated npm deps, removed old searchbar content webidx_search 172/head lahoje/webidx_search twindscheif/webidx_search
authorDan Brown <redacted>
Sun, 28 Jan 2024 17:55:01 +0000 (17:55 +0000)
committerDan Brown <redacted>
Sun, 28 Jan 2024 17:55:01 +0000 (17:55 +0000)
13 files changed:
package-lock.json
package.json
readme.md
search/config.json [deleted file]
search/docker-compose.yml [deleted file]
search/scrape.sh [deleted file]
search/util.sh [deleted file]
search/webidx.pl [changed mode: 0644->0755]
themes/bookstack/sass/_header.scss
themes/bookstack/sass/styles.scss
themes/bookstack/static/libs/docs-searchbar.min.css [deleted file]
themes/bookstack/static/libs/docs-searchbar.min.js [deleted file]
themes/bookstack/static/libs/webidx.js

index 822dd6225ca94560a6ac643171e7dd01274a4c30..f0066d8bbab8e8fd77ca216a3a22373e4a4a3159 100644 (file)
@@ -10,7 +10,7 @@
       "license": "MIT",
       "devDependencies": {
         "npm-run-all": "^4.1.5",
-        "sass": "^1.63.6"
+        "sass": "^1.70.0"
       }
     },
     "node_modules/ansi-styles": {
         "url": "https://github.com/sponsors/ljharb"
       }
     },
+    "node_modules/arraybuffer.prototype.slice": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz",
+      "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==",
+      "dev": true,
+      "dependencies": {
+        "array-buffer-byte-length": "^1.0.0",
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1",
+        "get-intrinsic": "^1.2.1",
+        "is-array-buffer": "^3.0.2",
+        "is-shared-array-buffer": "^1.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
     "node_modules/available-typed-arrays": {
       "version": "1.0.5",
       "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz",
       }
     },
     "node_modules/call-bind": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
-      "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz",
+      "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==",
       "dev": true,
       "dependencies": {
-        "function-bind": "^1.1.1",
-        "get-intrinsic": "^1.0.2"
+        "function-bind": "^1.1.2",
+        "get-intrinsic": "^1.2.1",
+        "set-function-length": "^1.1.1"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
         "node": ">=4.8"
       }
     },
+    "node_modules/define-data-property": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz",
+      "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==",
+      "dev": true,
+      "dependencies": {
+        "get-intrinsic": "^1.2.1",
+        "gopd": "^1.0.1",
+        "has-property-descriptors": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
     "node_modules/define-properties": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz",
-      "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==",
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
+      "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
       "dev": true,
       "dependencies": {
+        "define-data-property": "^1.0.1",
         "has-property-descriptors": "^1.0.0",
         "object-keys": "^1.1.1"
       },
       }
     },
     "node_modules/es-abstract": {
-      "version": "1.21.2",
-      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz",
-      "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==",
+      "version": "1.22.3",
+      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz",
+      "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==",
       "dev": true,
       "dependencies": {
         "array-buffer-byte-length": "^1.0.0",
+        "arraybuffer.prototype.slice": "^1.0.2",
         "available-typed-arrays": "^1.0.5",
-        "call-bind": "^1.0.2",
+        "call-bind": "^1.0.5",
         "es-set-tostringtag": "^2.0.1",
         "es-to-primitive": "^1.2.1",
-        "function.prototype.name": "^1.1.5",
-        "get-intrinsic": "^1.2.0",
+        "function.prototype.name": "^1.1.6",
+        "get-intrinsic": "^1.2.2",
         "get-symbol-description": "^1.0.0",
         "globalthis": "^1.0.3",
         "gopd": "^1.0.1",
-        "has": "^1.0.3",
         "has-property-descriptors": "^1.0.0",
         "has-proto": "^1.0.1",
         "has-symbols": "^1.0.3",
+        "hasown": "^2.0.0",
         "internal-slot": "^1.0.5",
         "is-array-buffer": "^3.0.2",
         "is-callable": "^1.2.7",
         "is-regex": "^1.1.4",
         "is-shared-array-buffer": "^1.0.2",
         "is-string": "^1.0.7",
-        "is-typed-array": "^1.1.10",
+        "is-typed-array": "^1.1.12",
         "is-weakref": "^1.0.2",
-        "object-inspect": "^1.12.3",
+        "object-inspect": "^1.13.1",
         "object-keys": "^1.1.1",
         "object.assign": "^4.1.4",
-        "regexp.prototype.flags": "^1.4.3",
+        "regexp.prototype.flags": "^1.5.1",
+        "safe-array-concat": "^1.0.1",
         "safe-regex-test": "^1.0.0",
-        "string.prototype.trim": "^1.2.7",
-        "string.prototype.trimend": "^1.0.6",
-        "string.prototype.trimstart": "^1.0.6",
+        "string.prototype.trim": "^1.2.8",
+        "string.prototype.trimend": "^1.0.7",
+        "string.prototype.trimstart": "^1.0.7",
+        "typed-array-buffer": "^1.0.0",
+        "typed-array-byte-length": "^1.0.0",
+        "typed-array-byte-offset": "^1.0.0",
         "typed-array-length": "^1.0.4",
         "unbox-primitive": "^1.0.2",
-        "which-typed-array": "^1.1.9"
+        "which-typed-array": "^1.1.13"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/es-set-tostringtag": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz",
-      "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==",
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz",
+      "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==",
       "dev": true,
       "dependencies": {
-        "get-intrinsic": "^1.1.3",
-        "has": "^1.0.3",
-        "has-tostringtag": "^1.0.0"
+        "get-intrinsic": "^1.2.2",
+        "has-tostringtag": "^1.0.0",
+        "hasown": "^2.0.0"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/fsevents": {
-      "version": "2.3.2",
-      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
-      "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+      "version": "2.3.3",
+      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+      "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
       "dev": true,
       "hasInstallScript": true,
       "optional": true,
       }
     },
     "node_modules/function-bind": {
-      "version": "1.1.1",
-      "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
-      "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
-      "dev": true
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+      "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+      "dev": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
     },
     "node_modules/function.prototype.name": {
-      "version": "1.1.5",
-      "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz",
-      "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==",
+      "version": "1.1.6",
+      "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz",
+      "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
-        "define-properties": "^1.1.3",
-        "es-abstract": "^1.19.0",
-        "functions-have-names": "^1.2.2"
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1",
+        "functions-have-names": "^1.2.3"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/get-intrinsic": {
-      "version": "1.2.1",
-      "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
-      "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
+      "version": "1.2.2",
+      "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz",
+      "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==",
       "dev": true,
       "dependencies": {
-        "function-bind": "^1.1.1",
-        "has": "^1.0.3",
+        "function-bind": "^1.1.2",
         "has-proto": "^1.0.1",
-        "has-symbols": "^1.0.3"
+        "has-symbols": "^1.0.3",
+        "hasown": "^2.0.0"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
       "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
       "dev": true
     },
-    "node_modules/has": {
-      "version": "1.0.3",
-      "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
-      "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
-      "dev": true,
-      "dependencies": {
-        "function-bind": "^1.1.1"
-      },
-      "engines": {
-        "node": ">= 0.4.0"
-      }
-    },
     "node_modules/has-bigints": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
       }
     },
     "node_modules/has-property-descriptors": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz",
-      "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==",
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz",
+      "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==",
       "dev": true,
       "dependencies": {
-        "get-intrinsic": "^1.1.1"
+        "get-intrinsic": "^1.2.2"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
         "url": "https://github.com/sponsors/ljharb"
       }
     },
+    "node_modules/hasown": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",
+      "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==",
+      "dev": true,
+      "dependencies": {
+        "function-bind": "^1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
     "node_modules/hosted-git-info": {
       "version": "2.8.9",
       "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
       "dev": true
     },
     "node_modules/immutable": {
-      "version": "4.3.1",
-      "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.1.tgz",
-      "integrity": "sha512-lj9cnmB/kVS0QHsJnYKD1uo3o39nrbKxszjnqS9Fr6NB7bZzW45U6WSGBPKXDL/CvDKqDNPA4r3DoDQ8GTxo2A==",
+      "version": "4.3.5",
+      "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz",
+      "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==",
       "dev": true
     },
     "node_modules/internal-slot": {
-      "version": "1.0.5",
-      "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz",
-      "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==",
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz",
+      "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==",
       "dev": true,
       "dependencies": {
-        "get-intrinsic": "^1.2.0",
-        "has": "^1.0.3",
+        "get-intrinsic": "^1.2.2",
+        "hasown": "^2.0.0",
         "side-channel": "^1.0.4"
       },
       "engines": {
       }
     },
     "node_modules/is-core-module": {
-      "version": "2.12.1",
-      "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",
-      "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==",
+      "version": "2.13.1",
+      "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
+      "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
       "dev": true,
       "dependencies": {
-        "has": "^1.0.3"
+        "hasown": "^2.0.0"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
       }
     },
     "node_modules/is-typed-array": {
-      "version": "1.1.10",
-      "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz",
-      "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==",
+      "version": "1.1.12",
+      "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz",
+      "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==",
       "dev": true,
       "dependencies": {
-        "available-typed-arrays": "^1.0.5",
-        "call-bind": "^1.0.2",
-        "for-each": "^0.3.3",
-        "gopd": "^1.0.1",
-        "has-tostringtag": "^1.0.0"
+        "which-typed-array": "^1.1.11"
       },
       "engines": {
         "node": ">= 0.4"
         "url": "https://github.com/sponsors/ljharb"
       }
     },
+    "node_modules/isarray": {
+      "version": "2.0.5",
+      "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
+      "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",
+      "dev": true
+    },
     "node_modules/isexe": {
       "version": "2.0.0",
       "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
       }
     },
     "node_modules/object-inspect": {
-      "version": "1.12.3",
-      "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
-      "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
+      "version": "1.13.1",
+      "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
+      "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
       "dev": true,
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
       }
     },
     "node_modules/object.assign": {
-      "version": "4.1.4",
-      "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz",
-      "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==",
+      "version": "4.1.5",
+      "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
+      "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
       "dev": true,
       "dependencies": {
-        "call-bind": "^1.0.2",
-        "define-properties": "^1.1.4",
+        "call-bind": "^1.0.5",
+        "define-properties": "^1.2.1",
         "has-symbols": "^1.0.3",
         "object-keys": "^1.1.1"
       },
       }
     },
     "node_modules/regexp.prototype.flags": {
-      "version": "1.5.0",
-      "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz",
-      "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==",
+      "version": "1.5.1",
+      "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz",
+      "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
         "define-properties": "^1.2.0",
-        "functions-have-names": "^1.2.3"
+        "set-function-name": "^2.0.0"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/resolve": {
-      "version": "1.22.2",
-      "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz",
-      "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==",
+      "version": "1.22.8",
+      "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
+      "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
       "dev": true,
       "dependencies": {
-        "is-core-module": "^2.11.0",
+        "is-core-module": "^2.13.0",
         "path-parse": "^1.0.7",
         "supports-preserve-symlinks-flag": "^1.0.0"
       },
         "url": "https://github.com/sponsors/ljharb"
       }
     },
+    "node_modules/safe-array-concat": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.0.tgz",
+      "integrity": "sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.5",
+        "get-intrinsic": "^1.2.2",
+        "has-symbols": "^1.0.3",
+        "isarray": "^2.0.5"
+      },
+      "engines": {
+        "node": ">=0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
     "node_modules/safe-regex-test": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz",
-      "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==",
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz",
+      "integrity": "sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ==",
       "dev": true,
       "dependencies": {
-        "call-bind": "^1.0.2",
-        "get-intrinsic": "^1.1.3",
+        "call-bind": "^1.0.5",
+        "get-intrinsic": "^1.2.2",
         "is-regex": "^1.1.4"
       },
+      "engines": {
+        "node": ">= 0.4"
+      },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
       }
     },
     "node_modules/sass": {
-      "version": "1.63.6",
-      "resolved": "https://registry.npmjs.org/sass/-/sass-1.63.6.tgz",
-      "integrity": "sha512-MJuxGMHzaOW7ipp+1KdELtqKbfAWbH7OLIdoSMnVe3EXPMTmxTmlaZDCTsgIpPCs3w99lLo9/zDKkOrJuT5byw==",
+      "version": "1.70.0",
+      "resolved": "https://registry.npmjs.org/sass/-/sass-1.70.0.tgz",
+      "integrity": "sha512-uUxNQ3zAHeAx5nRFskBnrWzDUJrrvpCPD5FNAoRvTi0WwremlheES3tg+56PaVtCs5QDRX5CBLxxKMDJMEa1WQ==",
       "dev": true,
       "dependencies": {
         "chokidar": ">=3.0.0 <4.0.0",
         "semver": "bin/semver"
       }
     },
+    "node_modules/set-function-length": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz",
+      "integrity": "sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==",
+      "dev": true,
+      "dependencies": {
+        "define-data-property": "^1.1.1",
+        "function-bind": "^1.1.2",
+        "get-intrinsic": "^1.2.2",
+        "gopd": "^1.0.1",
+        "has-property-descriptors": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/set-function-name": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz",
+      "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==",
+      "dev": true,
+      "dependencies": {
+        "define-data-property": "^1.0.1",
+        "functions-have-names": "^1.2.3",
+        "has-property-descriptors": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
     "node_modules/shebang-command": {
       "version": "1.2.0",
       "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
       }
     },
     "node_modules/spdx-exceptions": {
-      "version": "2.3.0",
-      "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
-      "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",
+      "version": "2.4.0",
+      "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.4.0.tgz",
+      "integrity": "sha512-hcjppoJ68fhxA/cjbN4T8N6uCUejN8yFw69ttpqtBeCbF3u13n7mb31NB9jKwGTTWWnt9IbRA/mf1FprYS8wfw==",
       "dev": true
     },
     "node_modules/spdx-expression-parse": {
       }
     },
     "node_modules/spdx-license-ids": {
-      "version": "3.0.13",
-      "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz",
-      "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==",
+      "version": "3.0.16",
+      "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.16.tgz",
+      "integrity": "sha512-eWN+LnM3GR6gPu35WxNgbGl8rmY1AEmoMDvL/QD6zYmPWgywxWqJWNdLGT+ke8dKNWrcYgYjPpG5gbTfghP8rw==",
       "dev": true
     },
     "node_modules/string.prototype.padend": {
-      "version": "3.1.4",
-      "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.4.tgz",
-      "integrity": "sha512-67otBXoksdjsnXXRUq+KMVTdlVRZ2af422Y0aTyTjVaoQkGr3mxl2Bc5emi7dOQ3OGVVQQskmLEWwFXwommpNw==",
+      "version": "3.1.5",
+      "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.5.tgz",
+      "integrity": "sha512-DOB27b/2UTTD+4myKUFh+/fXWcu/UDyASIXfg+7VzoCNNGOfWvoyU/x5pvVHr++ztyt/oSYI1BcWBBG/hmlNjA==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
-        "define-properties": "^1.1.4",
-        "es-abstract": "^1.20.4"
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/string.prototype.trim": {
-      "version": "1.2.7",
-      "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz",
-      "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==",
+      "version": "1.2.8",
+      "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz",
+      "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
-        "define-properties": "^1.1.4",
-        "es-abstract": "^1.20.4"
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1"
       },
       "engines": {
         "node": ">= 0.4"
       }
     },
     "node_modules/string.prototype.trimend": {
-      "version": "1.0.6",
-      "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz",
-      "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==",
+      "version": "1.0.7",
+      "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz",
+      "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
-        "define-properties": "^1.1.4",
-        "es-abstract": "^1.20.4"
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
       }
     },
     "node_modules/string.prototype.trimstart": {
-      "version": "1.0.6",
-      "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz",
-      "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==",
+      "version": "1.0.7",
+      "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz",
+      "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==",
       "dev": true,
       "dependencies": {
         "call-bind": "^1.0.2",
-        "define-properties": "^1.1.4",
-        "es-abstract": "^1.20.4"
+        "define-properties": "^1.2.0",
+        "es-abstract": "^1.22.1"
       },
       "funding": {
         "url": "https://github.com/sponsors/ljharb"
         "node": ">=8.0"
       }
     },
+    "node_modules/typed-array-buffer": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz",
+      "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "get-intrinsic": "^1.2.1",
+        "is-typed-array": "^1.1.10"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/typed-array-byte-length": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz",
+      "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "for-each": "^0.3.3",
+        "has-proto": "^1.0.1",
+        "is-typed-array": "^1.1.10"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/typed-array-byte-offset": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz",
+      "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==",
+      "dev": true,
+      "dependencies": {
+        "available-typed-arrays": "^1.0.5",
+        "call-bind": "^1.0.2",
+        "for-each": "^0.3.3",
+        "has-proto": "^1.0.1",
+        "is-typed-array": "^1.1.10"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
     "node_modules/typed-array-length": {
       "version": "1.0.4",
       "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz",
       }
     },
     "node_modules/which-typed-array": {
-      "version": "1.1.10",
-      "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz",
-      "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==",
+      "version": "1.1.13",
+      "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz",
+      "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==",
       "dev": true,
       "dependencies": {
         "available-typed-arrays": "^1.0.5",
-        "call-bind": "^1.0.2",
+        "call-bind": "^1.0.4",
         "for-each": "^0.3.3",
         "gopd": "^1.0.1",
-        "has-tostringtag": "^1.0.0",
-        "is-typed-array": "^1.1.10"
+        "has-tostringtag": "^1.0.0"
       },
       "engines": {
         "node": ">= 0.4"
index 7238bd29b4726e26f1c90f7ceeca9df764b59c85..edd56e26e8c72052edf4c6025622aded55dd43b9 100644 (file)
@@ -9,18 +9,18 @@
     "build:css:watch": "sass ./themes/bookstack/sass:./themes/bookstack/static/css --watch",
     "build:hugo:prod": "hugo",
     "build:hugo:watch": "hugo serve -DF",
-    "build:search:prod": "./search/webidx.pl public ./static/search.db",
-    "build": "npm-run-all --sequential build:css:prod build:hugo:prod build:search:prod",
+    "build:search": "./search/webidx.pl public ./static/search.db",
+    "build": "npm-run-all --sequential build:css:prod build:hugo:prod build:search",
     "serve": "npm-run-all build:hugo:watch",
     "dev": "npm-run-all --parallel build:hugo:watch build:css:watch",
     "deploy:server": "rsync -avx --delete --exclude '.git/' --exclude 'node_modules/' --exclude 'search/data/' ./ bs-site:/var/www/bookstackapp.com/",
-    "deploy": "npm-run-all --sequential build:css:prod build:hugo:prod build:search:prod deploy:server",
+    "deploy": "npm-run-all --sequential build:css:prod build:hugo:prod build:search deploy:server",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "author": "Dan Brown",
   "license": "MIT",
   "devDependencies": {
     "npm-run-all": "^4.1.5",
-    "sass": "^1.63.6"
+    "sass": "^1.70.0"
   }
 }
index 0a2d904f92398cfc4d82cade3d0bbd40234d328f..74fae27adc88a093a3e3ccabd0a4f3fece77881e 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -24,14 +24,17 @@ SCSS is used for the styling. Install NPM dependencies via `npm install` or `yar
 
 ### Search
 
-Search is handled via [Meilisearch](https://www.meilisearch.com/). A nightly scrape runs to index the site pages for search.
-This is all docker-based, and the configuration used can be found in the `search/` directory of this repo.
-Note, for localhost usage with a port, `"allowed_domains": ["localhost"],` should be added to the scraper config.json. [[ref](https://github.com/meilisearch/docs-scraper/issues/103#issuecomment-810736674)].
+Search is performed using [webidx](https://github.com/gbxyz/webidx), which essentially builds a sqlite database search index, that is then loaded to browser upon search then queried locally in-browser via [sql.js](https://github.com/sql-js/sql.js).
 
-Relevant Projects:
+This files required are all in this repo, and hacked to suit our use-case.
+The script to build the index is located at `search/webidx.pl`, and can be ran via the npm script
 
-- [Meilisearch](https://github.com/meilisearch/meilisearch) - The search engine used.
-- [docs-scraper](https://github.com/meilisearch/docs-scraper) - Used to scrape the site to index.
-- [docs-searchbar.js](https://github.com/meilisearch/docs-searchbar.js) - The JS implementation used for the site search bar.
-  - I copy in the latest CDN dist files into this project.
-  - I edit the JS file to remove the "Powered by Meilisearch" logo to prevent external requests.
\ No newline at end of file
+```bash
+npm run build:search
+```
+
+Note: you may need to install some dependencies to run the script see the `search/webidx.pl` for more information.
+
+The above command will build the sqlite index database to `static/search.db`, intended to be deployed to production. In production use, this should be served with compression active to significantly reduce transfer size.
+
+Much of the search UI handling logic can be found in our `themes/bookstack/static/js/scripts.js` file.
\ No newline at end of file
diff --git a/search/config.json b/search/config.json
deleted file mode 100644 (file)
index 2f1fcdb..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-{
-    "index_uid": "docs",
-    "allowed_domains": ["bookstackapp.com"],
-    "start_urls": [
-        {
-            "url": "https://www.bookstackapp.com/docs/",
-            "page_rank": 5,
-            "selectors_key": "docs"
-        },
-        {
-            "url": "https://www.bookstackapp.com/blog/",
-            "page_rank": 1,
-            "selectors_key": "blog"
-        },
-        {
-            "url": "https://www.bookstackapp.com/about/",
-            "page_rank": 1,
-            "selectors_key": "default"
-        },
-        {
-            "url": "https://www.bookstackapp.com/support/",
-            "page_rank": 1,
-            "selectors_key": "default"
-        },
-        {
-            "url": "https://www.bookstackapp.com/donate/",
-            "page_rank": 1,
-            "selectors_key": "default"
-        },
-        {
-            "url": "https://www.bookstackapp.com/",
-            "page_rank": 1,
-            "selectors_key": "home"
-        }
-    ],
-    "sitemap_urls": [
-        "https://www.bookstackapp.com/sitemap.xml"
-    ],
-    "stop_urls": [
-        "https://www.bookstackapp.com/categories/",
-        "https://www.bookstackapp.com/tags/",
-        "https://www.bookstackapp.com/blog/page/"
-    ],
-    "selectors": {
-        "default": {
-            "lvl0": "#content h1",
-            "lvl1": "#content h2",
-            "lvl2": "#content h3",
-            "lvl3": "#content h4",
-            "lvl4": "#content h5",
-            "text": "#content p, #content ul, #content ol, #content blockquote, #content pre, #content table"
-        },
-        "home": {
-            "lvl0": {
-                "selector": "#nothing",
-                "global": true,
-                "default_value": "Homepage"
-            },
-            "lvl1": {
-                "selector": ".homepage  h2"
-            },
-            "lvl2": ".homepage h3",
-            "lvl3": ".homepage h4",
-            "lvl4": ".homepage h5",
-            "text": ".homepage p"
-        },
-        "docs": {
-            "lvl0": {
-                "selector": ".docs-section-title",
-                "global": true,
-                "default_value": "Documentation"
-            },
-            "lvl1": {
-                "selector": "main h1",
-                "global": true,
-                "default_value": "Topic"
-            },
-            "lvl2": "main h2",
-            "lvl3": "main h3",
-            "lvl4": "main h4",
-            "text": "main > *"
-        },
-        "blog": {
-            "lvl0": {
-                "selector": "#nothing",
-                "global": true,
-                "default_value": "On Our Blog"
-            },
-            "lvl1": {
-                "selector": "main h1",
-                "global": true,
-                "default_value": "Topic"
-            },
-            "lvl2": "main h3",
-            "lvl3": "main h4",
-            "lvl4": "main h5",
-            "text": "main > p, main > ul, main > ol, main > blockquote, main > pre, main > table"
-        }
-    },
-    "selectors_exclude": [
-        "footer > .container",
-        ".edit-link",
-        ".icon",
-        ".lnt"
-    ]
-}
\ No newline at end of file
diff --git a/search/docker-compose.yml b/search/docker-compose.yml
deleted file mode 100644 (file)
index 9985da3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-version: "3.3"
-services:
-  search:
-    image: getmeili/meilisearch:v1.4
-    restart: always
-    volumes:
-      - ./data:/meili_data
-    ports:
-      - 7700:7700
-    environment:
-      - MEILI_ENV=production
-      - MEILI_MASTER_KEY=mLg0ioHwp2BnG5Rbxkj3ZFL6t1Y9DDmHUkUBpZ0zqmA
-volumes:
-  data:
-    driver: local
\ No newline at end of file
diff --git a/search/scrape.sh b/search/scrape.sh
deleted file mode 100644 (file)
index d729b39..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-# This is a script that's typically ran via cront to start a scraping operation
-# so the search index is updated.
-# Cron example:
-# 2 3 * * * /var/www/meilisearch/scrape.sh >> /dev/null 2>&1
-
-# Local
-CONFIG_DIR="$PWD/config.json"
-
-# Production
-#CONFIG_DIR="/var/www/meilisearch/config.json"
-
-docker run -t --rm \
-  --network=host \
-  -e MEILISEARCH_HOST_URL='http://localhost:7700' \
-  -e MEILISEARCH_API_KEY='mLg0ioHwp2BnG5Rbxkj3ZFL6t1Y9DDmHUkUBpZ0zqmA' \
-  -v $CONFIG_DIR:/docs-scraper/config.json \
-  getmeili/docs-scraper:v0.12.12 pipenv run ./docs_scraper config.json
\ No newline at end of file
diff --git a/search/util.sh b/search/util.sh
deleted file mode 100644 (file)
index 26128c7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# This is a collection of common utilities to help manage the Meilisearch instance
-
-#### Export the key to use as an environment variable
-export MEILISEARCH_API_KEY='mLg0ioHwp2BnG5Rbxkj3ZFL6t1Y9DDmHUkUBpZ0zqmA'
-
-### Create a key
-curl \
-  -X POST 'http://localhost:7700/keys' \
-  -H 'Content-Type: application/json' \
-  -H "Authorization: Bearer $MEILISEARCH_API_KEY" \
-  --data-binary '{
-    "description": "Search docs key",
-    "actions": ["search"],
-    "indexes": ["docs"],
-    "expiresAt": "2033-01-01T00:00:00Z"
-  }'
\ No newline at end of file
old mode 100644 (file)
new mode 100755 (executable)
index 3bacf25..66e2dc2
@@ -1,5 +1,7 @@
 #!/usr/bin/perl
 
+# This perl script builds an sqlite search index for this site.
+
 # Taken from https://github.com/gbxyz/webidx/tree/main
 # BSD 3-Clause License
 # Copyright (c) 2024, Gavin Brown
index ff18eb808019d7a0ca88e4494d4d964fe6182ce6..96d0ba051617c66673af01be881a445ad5ff1fd4 100644 (file)
   flex: 1;
 }
 
-.header .docs-searchbar-js {
-  text-align: center;
-  margin-top: 4px;
-}
-
 .logo {
   text-align: left;
   margin: $-m 0;
index 439a8b99b915f690b5e26740553959703a0d8aab..237467df356823fd4c4b3881a26ce366a9aada69 100644 (file)
@@ -530,18 +530,6 @@ iframe[src^="https://www.youtube-nocookie.com"],
   width: 100%;
 }
 
-.meilisearch-autocomplete .docs-searchbar-footer {
-  font-size: 0.8rem;
-}
-.meilisearch-autocomplete .docs-searchbar-footer-logo,
-.meilisearch-autocomplete .docs-searchbar-footer {
-  vertical-align: top !important;
-}
-
-.meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column {
-  color: #53555a !important;
-}
-
 .price-table {
   display: flex;
   flex-wrap: wrap;
diff --git a/themes/bookstack/static/libs/docs-searchbar.min.css b/themes/bookstack/static/libs/docs-searchbar.min.css
deleted file mode 100644 (file)
index 04f146e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-.searchbox{display:inline-block;position:relative;width:200px;height:32px;white-space:nowrap;box-sizing:border-box;visibility:visible}.searchbox .meilisearch-autocomplete{display:block;width:100%;height:100%}.searchbox__wrapper{width:100%;height:100%;z-index:999;position:relative}.searchbox input{color:#555;display:inline-block;box-sizing:border-box;transition:box-shadow .4s ease,background .4s ease;border:0;border-radius:16px;box-shadow:inset 0 0 0 1px #ccc;background:#fff;padding:0 26px 0 32px;width:100%;height:100%;vertical-align:middle;white-space:normal;font-size:12px;-moz-appearance:none;appearance:none}.searchbox input::-webkit-search-cancel-button,.searchbox input::-webkit-search-decoration,.searchbox input::-webkit-search-results-button,.searchbox input::-webkit-search-results-decoration{display:none}.searchbox input:hover{box-shadow:inset 0 0 0 1px #b3b3b3}.searchbox input:active,.searchbox input:focus{outline:0;box-shadow:inset 0 0 0 1px #aaa;background:#fff}.searchbox input::-moz-placeholder{color:#aaa}.searchbox input::placeholder{color:#aaa}.searchbox__submit{position:absolute;top:0;margin:0;border:0;border-radius:16px 0 0 16px;background-color:rgba(69,142,225,0);padding:0;width:32px;height:100%;vertical-align:middle;text-align:center;font-size:inherit;-moz-user-select:none;user-select:none;right:inherit;left:0}.searchbox__submit:before{display:inline-block;margin-right:-4px;height:100%;vertical-align:middle;content:""}.searchbox__submit:active,.searchbox__submit:hover{cursor:pointer}.searchbox__submit:focus{outline:0}.searchbox__submit svg{width:14px;height:14px;vertical-align:middle;fill:#6d7e96}.searchbox__reset{display:block;position:absolute;top:8px;right:8px;margin:0;border:0;background:none;cursor:pointer;padding:0;font-size:inherit;-moz-user-select:none;user-select:none;fill:rgba(0,0,0,.5)}.searchbox__reset.hide{display:none}.searchbox__reset:focus{outline:0}.searchbox__reset svg{display:block;margin:4px;width:8px;height:8px}.searchbox__input:valid~.searchbox__reset{display:block;animation-name:sbx-reset-in;animation-duration:.15s}.meilisearch-autocomplete.meilisearch-autocomplete-right .dsb-dropdown-menu{right:0;left:inherit}.meilisearch-autocomplete.meilisearch-autocomplete-right .dsb-dropdown-menu:before{right:48px}.meilisearch-autocomplete.meilisearch-autocomplete-left .dsb-dropdown-menu{left:0;right:inherit}.meilisearch-autocomplete.meilisearch-autocomplete-left .dsb-dropdown-menu:before{left:48px}.meilisearch-autocomplete .dsb-dropdown-menu{position:relative;top:-6px;border-radius:4px;margin:6px 0 0;padding:0;text-align:left;height:auto;background:transparent;border:none;z-index:999;max-width:600px;min-width:500px;box-shadow:0 1px 0 0 rgba(0,0,0,.2),0 2px 3px 0 rgba(0,0,0,.1)}.meilisearch-autocomplete .dsb-dropdown-menu:before{display:block;position:absolute;content:"";width:14px;height:14px;background:#fff;z-index:1000;top:-7px;border-top:1px solid #d9d9d9;border-right:1px solid #d9d9d9;transform:rotate(-45deg);border-radius:2px}.meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestions{position:relative;z-index:1000;margin-top:8px}.meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestions a:hover{text-decoration:none}.meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion{cursor:pointer}.meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion.dsb-cursor .docs-searchbar-suggestion.suggestion-layout-simple{background-color:rgba(69,142,225,.05)}.meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion.dsb-cursor .docs-searchbar-suggestion:not(.suggestion-layout-simple) .docs-searchbar-suggestion--content{background-color:rgba(69,142,225,.05)}.meilisearch-autocomplete .dsb-dropdown-menu [class^=dsb-dataset-]{position:relative;border:1px solid #d9d9d9;background:#fff;border-radius:4px;overflow:auto;padding:0 8px 8px}.meilisearch-autocomplete .dsb-dropdown-menu *{box-sizing:border-box}.meilisearch-autocomplete .docs-searchbar-suggestion{display:block;position:relative;padding:0 8px;background:#fff;color:#02060c;overflow:hidden}.meilisearch-autocomplete .docs-searchbar-suggestion--highlight{color:#174d8c;background:rgba(143,187,237,.1);padding:0 .05em}.meilisearch-autocomplete .docs-searchbar-suggestion--category-header .docs-searchbar-suggestion--category-header-lvl0 .docs-searchbar-suggestion--highlight,.meilisearch-autocomplete .docs-searchbar-suggestion--category-header .docs-searchbar-suggestion--category-header-lvl1 .docs-searchbar-suggestion--highlight,.meilisearch-autocomplete .docs-searchbar-suggestion--text .docs-searchbar-suggestion--highlight{padding:0 0 1px;background:inherit;box-shadow:inset 0 -2px 0 0 rgba(69,142,225,.8);color:inherit}.meilisearch-autocomplete .docs-searchbar-suggestion--content{display:block;width:70%;position:relative;padding:5.3333333333px 0 5.3333333333px 10.6666666667px;cursor:pointer}.meilisearch-autocomplete .docs-searchbar-suggestion--content:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;left:-1px}.meilisearch-autocomplete .docs-searchbar-suggestion--category-header{position:relative;border-bottom:1px solid #ddd;display:none;margin-top:8px;padding:4px 0;font-size:1em;color:#33363d}.meilisearch-autocomplete .docs-searchbar-suggestion--wrapper{width:100%;display:flex;align-items:flex-start;padding:8px 0 0}.meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column{width:30%;text-align:right;position:relative;padding:5.3333333333px 10.6666666667px;color:#a4a7ae;font-size:.9em;word-wrap:break-word}.meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;right:0}.meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-inline{display:none}.meilisearch-autocomplete .docs-searchbar-suggestion--title{margin-bottom:4px;color:#02060c;font-size:.9em;font-weight:700}.meilisearch-autocomplete .docs-searchbar-suggestion--text{display:block;line-height:1.2em;font-size:.85em;color:#63676d}.meilisearch-autocomplete .docs-searchbar-suggestion--no-results{width:100%;padding:8px 0;text-align:center;font-size:1.2em}.meilisearch-autocomplete .docs-searchbar-suggestion--no-results:before{display:none}.meilisearch-autocomplete .docs-searchbar-suggestion code{padding:1px 5px;font-size:90%;border:none;color:#222;background-color:#ebebeb;border-radius:3px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.meilisearch-autocomplete .docs-searchbar-suggestion code .docs-searchbar-suggestion--highlight{background:none}.meilisearch-autocomplete .docs-searchbar-suggestion.docs-searchbar-suggestion__main .docs-searchbar-suggestion--category-header,.meilisearch-autocomplete .docs-searchbar-suggestion.docs-searchbar-suggestion__secondary{display:block}@media (min-width:768px){.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column{display:block}}@media (max-width:768px){.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column{display:inline-block;width:auto;text-align:left;padding:0;font-size:.9em;font-weight:700;opacity:.5;color:#02060c}.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column:before{display:none}.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column:after{content:"|"}.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--content{display:inline-block;width:auto;text-align:left;padding:0}.meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--content:before{display:none}}.meilisearch-autocomplete .suggestion-layout-simple.docs-searchbar-suggestion{border-bottom:1px solid #eee;padding:8px;margin:0}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--content{width:100%;padding:0}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--content:before{display:none}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header{margin:0;padding:0;display:block;width:100%;border:none}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl0,.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl1{opacity:.6;font-size:.85em}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl1:before{background-image:url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 20 38" xmlns="http://www.w3.org/2000/svg"><path d="M1.49 4.31l14 16.126.002-2.624-14 16.074-1.314 1.51 3.017 2.626 1.313-1.508 14-16.075 1.142-1.313-1.14-1.313-14-16.125L3.2.18.18 2.8l1.31 1.51z" fill-rule="evenodd" fill="%231D3657" /></svg>');content:"";width:10px;height:10px;display:inline-block}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--wrapper{width:100%;margin:0;padding:0}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--duplicate-content,.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--subcategory-inline{display:none}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--title{margin:0;color:#458ee1;font-size:.9em;font-weight:400}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--title:before{content:"#";font-weight:700;color:#458ee1;display:inline-block}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--text{margin:4px 0 0;display:block;line-height:1.4em;padding:5.3333333333px 8px;background:#f8f8f8;font-size:.85em;opacity:.8}.meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--text .docs-searchbar-suggestion--highlight{color:#3f4145;font-weight:700;box-shadow:none}.meilisearch-autocomplete .docs-searchbar-footer{width:100%;text-align:right;height:20px;z-index:2000;margin-top:10.6666666667px;color:#63676d;margin-left:auto}.meilisearch-autocomplete .docs-searchbar-footer-logo{margin-bottom:4px}div[data-ds-theme=dark] .searchbox{display:inline-block;position:relative;width:350px;height:32px;white-space:nowrap;box-sizing:border-box;visibility:visible}div[data-ds-theme=dark] .searchbox .meilisearch-autocomplete{display:block;width:100%;height:100%}div[data-ds-theme=dark] .searchbox__wrapper{width:100%;height:100%;z-index:999;position:relative}div[data-ds-theme=dark] .searchbox input{color:#eaeaea;display:inline-block;box-sizing:border-box;transition:box-shadow .4s ease,background .4s ease;border:0;border-radius:16px;box-shadow:inset 0 0 0 1px #686d71;background:#444d52;padding:0 26px 0 32px;width:100%;height:100%;vertical-align:middle;white-space:normal;font-size:90%;-moz-appearance:none;appearance:none}div[data-ds-theme=dark] .searchbox input::-webkit-search-cancel-button,div[data-ds-theme=dark] .searchbox input::-webkit-search-decoration,div[data-ds-theme=dark] .searchbox input::-webkit-search-results-button,div[data-ds-theme=dark] .searchbox input::-webkit-search-results-decoration{display:none}div[data-ds-theme=dark] .searchbox input:hover{box-shadow:inset 0 0 0 1px #505356;box-shadow:inset 0 0 0 1px #747a7e}div[data-ds-theme=dark] .searchbox input:active,div[data-ds-theme=dark] .searchbox input:focus{outline:0;box-shadow:inset 0 0 0 1px #919598;background:#444d52}div[data-ds-theme=dark] .searchbox input::-moz-placeholder{color:#bbb}div[data-ds-theme=dark] .searchbox input::placeholder{color:#bbb}div[data-ds-theme=dark] .searchbox__submit{position:absolute;top:0;margin:0;border:0;border-radius:16px 0 0 16px;background-color:rgba(69,142,225,0);padding:0;width:32px;height:100%;vertical-align:middle;text-align:center;font-size:inherit;-moz-user-select:none;user-select:none;right:inherit;left:0}div[data-ds-theme=dark] .searchbox__submit:before{display:inline-block;margin-right:-4px;height:100%;vertical-align:middle;content:""}div[data-ds-theme=dark] .searchbox__submit:active,div[data-ds-theme=dark] .searchbox__submit:hover{cursor:pointer}div[data-ds-theme=dark] .searchbox__submit:focus{outline:0}div[data-ds-theme=dark] .searchbox__submit svg{width:14px;height:14px;vertical-align:middle;fill:#6d7e96}div[data-ds-theme=dark] .searchbox__reset{display:block;position:absolute;top:5px;right:5px;margin:0;border:0;background:none;cursor:pointer;padding:0;font-size:inherit;-moz-user-select:none;user-select:none;fill:rgba(0,0,0,.5)}div[data-ds-theme=dark] .searchbox__reset.hide{display:none}div[data-ds-theme=dark] .searchbox__reset:focus{outline:0}div[data-ds-theme=dark] .searchbox__reset svg{display:block;margin:4px;width:14px;height:14px}div[data-ds-theme=dark] .searchbox__input:valid~div[data-ds-theme=dark] .searchbox__reset{display:block;animation-name:sbx-reset-in;animation-duration:.15s}@keyframes sbx-reset-in{0%{transform:translate3d(-20%,0,0);opacity:0}to{transform:none;opacity:1}}div[data-ds-theme=dark] .meilisearch-autocomplete.meilisearch-autocomplete-right .dsb-dropdown-menu{right:0;left:inherit}div[data-ds-theme=dark] .meilisearch-autocomplete.meilisearch-autocomplete-right .dsb-dropdown-menu:before{right:48px}div[data-ds-theme=dark] .meilisearch-autocomplete.meilisearch-autocomplete-left .dsb-dropdown-menu{left:0;right:inherit}div[data-ds-theme=dark] .meilisearch-autocomplete.meilisearch-autocomplete-left .dsb-dropdown-menu:before{left:48px}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu{position:relative;top:-6px;border-radius:4px;margin:6px 0 0;padding:0;text-align:left;height:auto;background:transparent;border:none;z-index:999;max-width:600px;min-width:500px;box-shadow:0 1px 0 0 rgba(0,0,0,.2),0 2px 3px 0 rgba(0,0,0,.1)}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu:before{display:block;position:absolute;content:"";width:14px;height:14px;background:#2c363e;z-index:1000;top:-7px;border-top:1px solid #5b6369;border-right:1px solid #5b6369;transform:rotate(-45deg);border-radius:2px}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestions{position:relative;z-index:1000;margin-top:8px}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestions a:hover{text-decoration:none}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion{cursor:pointer}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion.dsb-cursor .docs-searchbar-suggestion.suggestion-layout-simple{background-color:rgba(69,142,225,.5)}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu .dsb-suggestion.dsb-cursor .docs-searchbar-suggestion:not(.suggestion-layout-simple) .docs-searchbar-suggestion--content{background-color:rgba(69,142,225,.5)}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu [class^=dsb-dataset-]{position:relative;border:1px solid #5b6369;background:#2c363e;border-radius:4px;overflow:auto;padding:0 8px 8px}div[data-ds-theme=dark] .meilisearch-autocomplete .dsb-dropdown-menu *{box-sizing:border-box}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion{display:block;position:relative;padding:0 8px;background:#2c363e;color:#eaeaea;overflow:hidden}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--highlight{color:#174d8c;background:rgba(143,187,237,.1);padding:0 .05em;color:#9dc3ef}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--category-header .docs-searchbar-suggestion--category-header-lvl0 .docs-searchbar-suggestion--highlight,div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--category-header .docs-searchbar-suggestion--category-header-lvl1 .docs-searchbar-suggestion--highlight{padding:0 0 1px;background:inherit;box-shadow:inset 0 -2px 0 0 rgba(69,142,225,.8);color:inherit}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--text .docs-searchbar-suggestion--highlight{padding:0 0 1px;background:inherit;box-shadow:inset 0 -2px 0 0 rgba(69,142,225,.8);color:inherit}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--content{display:block;width:70%;position:relative;padding:5.3333333333px 0 5.3333333333px 10.6666666667px;cursor:pointer}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--content:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;left:-1px}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--category-header{position:relative;border-bottom:1px solid #ddd;display:none;margin-top:8px;padding:4px 0;font-size:1em;color:#7db0ea;color:#d5d5d5}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--wrapper{width:100%;display:flex;align-items:flex-start;padding:8px 0 0}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column{width:30%;text-align:right;position:relative;padding:5.3333333333px 10.6666666667px;color:#bbb;font-size:.9em;word-wrap:break-word}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-column:before{content:"";position:absolute;display:block;top:0;height:100%;width:1px;background:#ddd;right:0}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--subcategory-inline{display:none}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--title{margin-bottom:4px;color:#eaeaea;font-size:.9em;font-weight:700}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--text{display:block;line-height:1.2em;font-size:.85em;color:#eaeaea}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--no-results{width:100%;padding:8px 0;text-align:center;font-size:1.2em}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion--no-results:before{display:none}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion code{padding:1px 5px;font-size:90%;border:none;color:#222;background-color:#ebebeb;border-radius:3px;font-family:Menlo,Monaco,Consolas,Courier New,monospace}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion code .docs-searchbar-suggestion--highlight{background:none}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion.docs-searchbar-suggestion__main .docs-searchbar-suggestion--category-header{display:block}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion.docs-searchbar-suggestion__secondary{display:block}@media (min-width:768px){div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column{display:block}}@media (max-width:768px){div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column{display:inline-block;width:auto;text-align:left;padding:0;font-size:.9em;font-weight:700;opacity:.5;color:#02060c;color:#bbb;opacity:unset}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column:before{display:none}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--subcategory-column:after{content:"|"}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--content{display:inline-block;width:auto;text-align:left;padding:0}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-suggestion .docs-searchbar-suggestion--content:before{display:none}}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple.docs-searchbar-suggestion{padding:8px;margin:0;border-bottom:1px solid #737d84}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--content{width:100%;padding:0}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--content:before{display:none}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header{margin:0;padding:0;display:block;width:100%;border:none}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl0,div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl1{opacity:.6;font-size:.85em;opacity:unset;color:#d5d5d5}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--category-header-lvl1:before{background-image:url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 20 38" xmlns="http://www.w3.org/2000/svg"><path d="M1.49 4.31l14 16.126.002-2.624-14 16.074-1.314 1.51 3.017 2.626 1.313-1.508 14-16.075 1.142-1.313-1.14-1.313-14-16.125L3.2.18.18 2.8l1.31 1.51z" fill-rule="evenodd" fill="%231D3657" /></svg>');content:"";width:10px;height:10px;display:inline-block;filter:invert(1)}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--wrapper{width:100%;margin:0;padding:0}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--duplicate-content,div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--subcategory-inline{display:none}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--title{margin:0;color:#458ee1;font-size:.9em;font-weight:400;color:#eaeaea}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--title:before{content:"#";font-weight:700;color:#458ee1;display:inline-block;color:#eaeaea}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--text{margin:4px 0 0;display:block;line-height:1.4em;padding:5.3333333333px 8px;background:#6b7278;font-size:.85em;opacity:.8}div[data-ds-theme=dark] .meilisearch-autocomplete .suggestion-layout-simple .docs-searchbar-suggestion--text .docs-searchbar-suggestion--highlight{color:#c4c4c4;font-weight:700;box-shadow:none;color:#fff}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-footer{width:100%;text-align:right;height:20px;z-index:2000;margin-top:10.6666666667px;color:#eaeaea;margin-left:auto}div[data-ds-theme=dark] .meilisearch-autocomplete .docs-searchbar-footer-logo{margin-bottom:4px;filter:invert(1)}
-/*# sourceMappingURL=docs-searchbar.min.css.map */
\ No newline at end of file
diff --git a/themes/bookstack/static/libs/docs-searchbar.min.js b/themes/bookstack/static/libs/docs-searchbar.min.js
deleted file mode 100644 (file)
index 17d7f9e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! docs-searchbar UNRELEASED | © Meili | github.com/meilisearch/docs-searchbar.js */
-!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.docsSearchBar=e():t.docsSearchBar=e()}(self,()=>(()=>{var t={639:(t,e,n)=>{"use strict";t.exports=n(281)},114:(t,e,n)=>{"use strict";var i=n(670),r={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(r.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(r.input,{marginTop:"-1px"}),t.exports=r},312:(t,e,n)=>{"use strict";var i="aaDataset",r="aaValue",s="aaDatum",o=n(670),a=n(855),u=n(619),c=n(114),h=n(823);function l(t){var e,n,i,r;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=(r=(r=t.display||t.displayKey)||"value",o.isFunction(r)?r:function(t){return t[r]}),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=(n=t.templates,i=this.displayFn,{empty:n.empty&&o.templatify(n.empty),header:n.header&&o.templatify(n.header),footer:n.footer&&o.templatify(n.footer),suggestion:n.suggestion||function(t){return"<p>"+i(t)+"</p>"}}),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var s=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(s+"-"+this.name).length>0?a.element(t.$menu.find(s+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}l.extractDatasetName=function(t){return a.element(t).data(i)},l.extractValue=function(t){return a.element(t).data(r)},l.extractDatum=function(t){var e=a.element(t).data(s);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(l.prototype,h,{_render:function(t,e){if(this.$el){var n,c=this,h=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(l.apply(this,h)).prepend(c.templates.header?p.apply(this,h):null).append(c.templates.footer?f.apply(this,h):null);else if(n)this.$el.html(d.apply(this,h)).prepend(c.templates.header?p.apply(this,h):null).append(c.templates.footer?f.apply(this,h):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function l(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}function d(){var t,n,h=[].slice.call(arguments,0),l=this,d=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(d).css(this.css.suggestions),n=o.map(e,p),t.append.apply(t,n),t;function p(t){var e,n=u.suggestion.replace("%PREFIX%",l.cssClasses.prefix).replace("%SUGGESTION%",l.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(h)))).data(i,c.name),e.data(r,c.displayFn(t)||void 0),e.data(s,JSON.stringify(t)),e.children().each(function(){a.element(this).css(l.css.suggestionChild)}),e}}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function f(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};this.debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(function(){n.debounceTimeout=null,i()},this.debounce)):i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=l},445:(t,e,n)=>{"use strict";var i=n(670),r=n(855),s=n(823),o=n(312),a=n(114);function u(t){var e,n,s,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),s=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=r.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,s).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=r.element('<div class="'+i.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)}),i.each(this.datasets,function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)}),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var h=this;r.element(window).resize(function(){h._redraw()})}i.mixin(u.prototype,s,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",r.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=r.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout(function(){n._setCursor(e,!1)},0)}},_onSuggestionMouseLeave:function(t){t.relatedTarget&&r.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0||(this._removeCursor(),this.trigger("cursorRemoved"))},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,function(t){return t.isEmpty()}),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length<this.minLength)this._hide();else{var n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(n),this.$empty.show(),this._show()}else i.any(this.datasets,function(t){return t.templates&&t.templates.empty})?e.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),e.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,r;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!=(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(r=e.eq(i),!0),this._ensureVisible(r)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,r;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),r=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):r<n&&this.$menu.scrollTop(i+(n-r))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:o.extractDatum(t),value:o.extractValue(t),datasetName:o.extractDatasetName(t)}),e},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(t){i.each(this.datasets,function(e){e.update(t)})},empty:function(){i.each(this.datasets,function(t){t.clear()}),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,i.each(this.datasets,function(t){t.destroy()})}}),u.Dataset=o,t.exports=u},368:(t,e,n)=>{"use strict";var i=n(670),r=n(855);function s(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=r.element(t.el)}i.mixin(s.prototype,{trigger:function(t,e,n,r){var s=i.Event("autocomplete:"+t);return this.$el.trigger(s,[e,n,r]),s}}),t.exports=s},823:(t,e,n)=>{"use strict";var i=n(624),r=/\s+/;function s(t,e,n,i){var s;if(!n)return this;for(e=e.split(r),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};s=e.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][t].push(n);return this}function o(t,e,n){return function(){for(var i,r=0,s=t.length;!i&&r<s;r+=1)i=!1===t[r].apply(e,n);return!i}}t.exports={onSync:function(t,e,n){return s.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return s.call(this,"async",t,e,n)},off:function(t){var e;if(!this._callbacks)return this;for(t=t.split(r);e=t.shift();)delete this._callbacks[e];return this},trigger:function(t){var e,n,s,a,u;if(!this._callbacks)return this;for(t=t.split(r),s=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)a=o(n.sync,this,[e].concat(s)),u=o(n.async,this,[e].concat(s)),a()&&i(u);return this}}},619:t=>{"use strict";t.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},286:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var r=n(670),s=n(855),o=n(823);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||r.error("input is missing"),e=r.bind(this._onBlur,this),n=r.bind(this._onFocus,this),o=r.bind(this._onKeydown,this),a=r.bind(this._onInput,this),this.$hint=s.element(t.hint),this.$input=s.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=r.noop),r.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(t){i[t.which||t.keyCode]||r.defer(r.bind(c._onInput,c,t))}):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,s.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},r.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,r;switch(t){case"tab":i=this.getHint(),r=this.getInputValue(),n=i&&i!==r&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){return"tab"!==t||!u(e)},_checkInputValue:function(){var t,e,n,i,r;i=t=this.getInputValue(),r=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(r))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,r.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},520:(t,e,n)=>{"use strict";var i="aaAttrs",r=n(670),s=n(855),o=n(368),a=n(286),u=n(445),c=n(619),h=n(114);function l(t){var e,n;if((t=t||{}).input||r.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=r.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=r.mixin({},h,t.appendTo?h.appendTo:{}),this.cssClasses=t.cssClasses=r.mixin({},h.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",r.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=s.element(t.input),n=s.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u,h=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=s.element(h).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(r.templatify(t.templates.dropdownMenu)()),(a=e.clone().css(t.css.hint).css((u=e,{backgroundAttachment:u.css("background-attachment"),backgroundClip:u.css("background-clip"),backgroundColor:u.css("background-color"),backgroundImage:u.css("background-image"),backgroundOrigin:u.css("background-origin"),backgroundPosition:u.css("background-position"),backgroundRepeat:u.css("background-repeat"),backgroundSize:u.css("background-size")}))).val("").addClass(r.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData(),e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(r.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(t){}return(n=t.appendTo?n.appendTo(s.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent()).prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&s.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",function(t){var n=document.activeElement;r.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),r.defer(function(){u.focus()}))}),e.on("mousedown.aa",function(t){t.preventDefault()}),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new l.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new l.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}r.mixin(l.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];r.each(t.keyboardShortcuts,function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)}),s.element(document).keydown(function(t){var i=t.target||t.srcElement,r=i.tagName;if(!i.isContentEditable&&"INPUT"!==r&&"SELECT"!==r&&"TEXTAREA"!==r){var s=t.which||t.keyCode;-1!==n.indexOf(s)&&(e.focus(),t.stopPropagation(),t.preventDefault())}})}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var r={selectionMethod:"enterKey"};n?(this._select(n,r),e.preventDefault()):this.autoselect&&i&&(this._select(i,r),e.preventDefault())},_onTabKeyed:function(t,e){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,s;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=r.escapeRegExChars(n),(s=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+s[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,r;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((r=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(r.value),this.eventBus.trigger("autocompleted",r.raw,r.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),r.defer(r.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=r.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var t,e,n;this.input.destroy(),this.dropdown.destroy(),t=this.$node,e=this.cssClasses,n=t.find(r.className(e.prefix,e.input)),r.each(n.data(i),function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)}),n.detach().removeClass(r.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i),t.remove(),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),l.Dropdown=u,l.Input=a,l.sources=n(331),t.exports=l},855:t=>{"use strict";t.exports={element:null}},926:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},670:(t,e,n)=>{"use strict";var i,r=n(855);function s(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))}),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,function(i,r){n&&(n=e.call(null,i,r,t)&&n)}),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,function(i,r){if(e.call(null,i,r,t))return n=!0,!1}),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return(n?"":".")+t+e},escapeHighlightedString:function(t,e,n){e=e||"<em>";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"</em>";var r=document.createElement("div");r.appendChild(document.createTextNode(n));var o=document.createElement("div");return o.appendChild(document.createTextNode(t)),o.innerHTML.replace(RegExp(s(i.innerHTML),"g"),e).replace(RegExp(s(r.innerHTML),"g"),n)}}},683:(t,e,n)=>{"use strict";var i,r,s=n(670),o=n(489),a=n(926),u=(i=[],r=window.Promise.resolve(),function(t,e){return function(n,o){var a,u;(a=t.as,u=i.push({indexName:t.indexName,query:n,params:e})-1,window.Promise.resolve().then(function(){return i.length&&(r=a.search(i),i=[]),r}).then(function(t){if(t)return t.results[u]})).then(function(t){t&&o(t.hits,t)}).catch(function(t){s.error(t.message)})}});t.exports=function(t,e){var n=a(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+o;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},331:(t,e,n)=>{"use strict";t.exports={hits:n(683),popularIn:n(226)}},226:(t,e,n)=>{"use strict";var i=n(670),r=n(489),s=n(926);t.exports=function(t,e,n,o){var a=s(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+r),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,h){t.search(a,e,function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var l=a.hits[0],d=i.mixin({hitsPerPage:0},n);delete d.source,delete d.index;var p=s(c.as._ua);return p&&p[0]>=3&&p[1]>20&&(e.additionalUA="autocomplete.js "+r),void c.search(u(l),d,function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var r=o.allTitle||"All departments";n.push(i.mixin({facet:{value:r,count:e.nbHits}},i.cloneDeep(l)))}i.each(e.facets,function(t,e){i.each(t,function(t,r){n.push(i.mixin({facet:{facet:e,value:r,count:t}},i.cloneDeep(l)))})});for(var s=1;s<a.hits.length;++s)n.push(a.hits[s]);h(n,a)}})}h([])}})}}},281:(t,e,n)=>{"use strict";var i=n(939);n(855).element=i;var r=n(670);r.isArray=i.isArray,r.isFunction=i.isFunction,r.isObject=i.isPlainObject,r.bind=i.proxy,r.each=function(t,e){i.each(t,function(t,n){return e(n,t)})},r.map=i.map,r.mixin=i.extend,r.Event=i.Event;var s="aaAutocomplete",o=n(520),a=n(368);function u(t,e,n,u){n=r.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each(function(t,r){var c=i(r),h=new a({el:c}),l=u||new o({input:c,eventBus:h,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||r.getAttribute("aria-label")});c.data(s,l)});return c.autocomplete={},r.each(["open","close","getVal","setVal","destroy","getWrapper"],function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each(function(r,o){var a=i(o).data(s);e=a[t].apply(a,n)}),e}}),c}u.sources=o.sources,u.escapeHighlightedString=r.escapeHighlightedString;var c="autocomplete"in window,h=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=h:delete window.autocomplete,u},t.exports=u},489:t=>{t.exports="0.38.1"},939:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,r,s,o,a=[],u=a.concat,c=a.filter,h=a.slice,l=t.document,d={},p={},f={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},v=/^\s*<(\w+|!)[^>]*>/,g=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,m=/^(?:body|html)$/i,b=/([A-Z])/g,w=["val","css","html","text","data","width","height","offset"],x=l.createElement("table"),S=l.createElement("tr"),A={tr:l.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:S,th:S,"*":l.createElement("div")},C=/complete|loaded|interactive/,E=/^[\w-]*$/,k={},_=k.toString,T={},O=l.createElement("div"),D={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},q=Array.isArray||function(t){return t instanceof Array};function R(t){return null==t?String(t):k[_.call(t)]||"object"}function P(t){return"function"==R(t)}function M(t){return null!=t&&t==t.window}function I(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function $(t){return"object"==R(t)}function L(t){return $(t)&&!M(t)&&Object.getPrototypeOf(t)==Object.prototype}function N(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!M(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function j(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function F(t){return t in p?p[t]:p[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function B(t,e){return"number"!=typeof e||f[j(t)]?e:e+"px"}function H(t){return"children"in t?h.call(t.children):i.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function U(t,e){var n,i=t?t.length:0;for(n=0;n<i;n++)this[n]=t[n];this.length=i,this.selector=e||""}function V(t,i,r){for(n in i)r&&(L(i[n])||q(i[n]))?(L(i[n])&&!L(t[n])&&(t[n]={}),q(i[n])&&!q(t[n])&&(t[n]=[]),V(t[n],i[n],r)):i[n]!==e&&(t[n]=i[n])}function K(t,e){return null==e?i(t):i(t).filter(e)}function z(t,e,n,i){return P(e)?e.call(t,n,i):e}function W(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function Q(t,n){var i=t.className||"",r=i&&i.baseVal!==e;if(n===e)return r?i.baseVal:i;r?i.baseVal=n:t.className=n}function G(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?i.parseJSON(t):t):t}catch(e){return t}}function Z(t,e){e(t);for(var n=0,i=t.childNodes.length;n<i;n++)Z(t.childNodes[n],e)}return T.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,s=!r;return s&&(r=O).appendChild(t),i=~T.qsa(r,e).indexOf(t),s&&O.removeChild(t),i},s=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},o=function(t){return c.call(t,function(e,n){return t.indexOf(e)==n})},T.fragment=function(t,n,r){var s,o,a;return g.test(t)&&(s=i(l.createElement(RegExp.$1))),s||(t.replace&&(t=t.replace(y,"<$1></$2>")),n===e&&(n=v.test(t)&&RegExp.$1),n in A||(n="*"),(a=A[n]).innerHTML=""+t,s=i.each(h.call(a.childNodes),function(){a.removeChild(this)})),L(r)&&(o=i(s),i.each(r,function(t,e){w.indexOf(t)>-1?o[t](e):o.attr(t,e)})),s},T.Z=function(t,e){return new U(t,e)},T.isZ=function(t){return t instanceof T.Z},T.init=function(t,n){var r,s;if(!t)return T.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&v.test(t))r=T.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=T.qsa(l,t)}else{if(P(t))return i(l).ready(t);if(T.isZ(t))return t;if(q(t))s=t,r=c.call(s,function(t){return null!=t});else if($(t))r=[t],t=null;else if(v.test(t))r=T.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);r=T.qsa(l,t)}}return T.Z(r,t)},(i=function(t,e){return T.init(t,e)}).extend=function(t){var e,n=h.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){V(t,n,e)}),t},T.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],s=i||r?e.slice(1):e,o=E.test(s);return t.getElementById&&o&&i?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:h.call(o&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=l.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=R,i.isFunction=P,i.isWindow=M,i.isArray=q,i.isPlainObject=L,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=s,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,r,s,o,a=[];if(N(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&a.push(n);else for(s in t)null!=(n=e(t[s],s))&&a.push(n);return(o=a).length>0?i.fn.concat.apply([],o):o},i.each=function(t,e){var n,i;if(N(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(i in t)if(!1===e.call(t[i],i,t[i]))return t;return t},i.grep=function(t,e){return c.call(t,e)},t.JSON&&(i.parseJSON=JSON.parse),i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){k["[object "+e+"]"]=e.toLowerCase()}),i.fn={constructor:T.Z,length:0,forEach:a.forEach,reduce:a.reduce,push:a.push,sort:a.sort,splice:a.splice,indexOf:a.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=T.isZ(e)?e.toArray():e;return u.apply(T.isZ(this)?this.toArray():this,n)},map:function(t){return i(i.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return i(h.apply(this,arguments))},ready:function(t){return C.test(l.readyState)&&l.body?t(i):l.addEventListener("DOMContentLoaded",function(){t(i)},!1),this},get:function(t){return t===e?h.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return a.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,function(e){return T.matches(e,t)}))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&T.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):N(t)&&P(t.item)?h.call(t):i(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return i(n)},has:function(t){return this.filter(function(){return $(t)?i.contains(this,t):i(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!$(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!$(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter(function(){var t=this;return a.some.call(e,function(e){return i.contains(e,t)})}):1==this.length?i(T.qsa(this[0],t)):this.map(function(){return T.qsa(this,t)}):i()},closest:function(t,e){var n=[],r="object"==typeof t&&i(t);return this.each(function(i,s){for(;s&&!(r?r.indexOf(s)>=0:T.matches(s,t));)s=s!==e&&!I(s)&&s.parentNode;s&&n.indexOf(s)<0&&n.push(s)}),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,function(t){if((t=t.parentNode)&&!I(t)&&e.indexOf(t)<0)return e.push(t),t});return K(e,t)},parent:function(t){return K(o(this.pluck("parentNode")),t)},children:function(t){return K(this.map(function(){return H(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||h.call(this.childNodes)})},siblings:function(t){return K(this.map(function(t,e){return c.call(H(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return i.map(this,function(e){return e[t]})},show:function(){return this.each(function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,d[t]||(e=l.createElement(t),l.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),d[t]=n),d[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),r=n.parentNode||this.length>1;return this.each(function(s){i(this).wrapAll(e?t.call(this,s):r?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each(function(n){var r=i(this),s=r.contents(),o=e?t.call(this,n):t;s.length?s.wrapAll(o):r.append(o)})},unwrap:function(){return this.parent().each(function(){i(this).replaceWith(i(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()})},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;i(this).empty().append(z(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=z(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var r;return"string"!=typeof t||1 in arguments?this.each(function(e){if(1===this.nodeType)if($(t))for(n in t)W(this,n,t[n]);else W(this,t,z(this,i,e,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(r=this[0].getAttribute(t))?r:e},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){W(this,t)},this)})},prop:function(t,e){return t=D[t]||t,1 in arguments?this.each(function(n){this[t]=z(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=D[t]||t,this.each(function(){delete this[t]})},data:function(t,n){var i="data-"+t.replace(b,"-$1").toLowerCase(),r=1 in arguments?this.attr(i,n):this.attr(i);return null!==r?G(r):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=z(this,t,e,this.value)})):this[0]&&(this[0].multiple?i(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var n=i(this),r=z(this,e,t,n.offset()),s=n.offsetParent().offset(),o={top:r.top-s.top,left:r.left-s.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(l.documentElement!==this[0]&&!i.contains(l.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var r=this[0];if("string"==typeof t){if(!r)return;return r.style[s(t)]||getComputedStyle(r,"").getPropertyValue(t)}if(q(t)){if(!r)return;var o={},a=getComputedStyle(r,"");return i.each(t,function(t,e){o[e]=r.style[s(e)]||a.getPropertyValue(e)}),o}}var u="";if("string"==R(t))e||0===e?u=j(t)+":"+B(t,e):this.each(function(){this.style.removeProperty(j(t))});else for(n in t)t[n]||0===t[n]?u+=j(n)+":"+B(n,t[n])+";":this.each(function(){this.style.removeProperty(j(n))});return this.each(function(){this.style.cssText+=";"+u})},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,function(t){return this.test(Q(t))},F(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){r=[];var n=Q(this);z(this,t,e,n).split(/\s+/g).forEach(function(t){i(this).hasClass(t)||r.push(t)},this),r.length&&Q(this,n+(n?" ":"")+r.join(" "))}}):this},removeClass:function(t){return this.each(function(n){if("className"in this){if(t===e)return Q(this,"");r=Q(this),z(this,t,n,r).split(/\s+/g).forEach(function(t){r=r.replace(F(t)," ")}),Q(this,r.trim())}})},toggleClass:function(t,n){return t?this.each(function(r){var s=i(this);z(this,t,r,Q(this)).split(/\s+/g).forEach(function(t){(n===e?!s.hasClass(t):n)?s.addClass(t):s.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=m.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,r.top+=parseFloat(i(e[0]).css("border-top-width"))||0,r.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||l.body;t&&!m.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t})}},i.fn.detach=i.fn.remove,["width","height"].forEach(function(t){var n=t.replace(/./,function(t){return t[0].toUpperCase()});i.fn[t]=function(r){var s,o=this[0];return r===e?M(o)?o["inner"+n]:I(o)?o.documentElement["scroll"+n]:(s=this.offset())&&s[t]:this.each(function(e){(o=i(this)).css(t,z(this,r,e,o[t]()))})}}),["after","prepend","before","append"].forEach(function(n,r){var s=r%2;i.fn[n]=function(){var n,o,a=i.map(arguments,function(t){var r=[];return"array"==(n=R(t))?(t.forEach(function(t){return t.nodeType!==e?r.push(t):i.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(T.fragment(t)))}),r):"object"==n||null==t?t:T.fragment(t)}),u=this.length>1;return a.length<1?this:this.each(function(e,n){o=s?n:n.parentNode,n=0==r?n.nextSibling:1==r?n.firstChild:2==r?n:null;var c=i.contains(l.documentElement,o);a.forEach(function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&Z(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}})})})},i.fn[s?n+"To":"insert"+(r?"Before":"After")]=function(t){return i(t)[n](this),this}}),T.Z.prototype=U.prototype=i.fn,T.uniq=o,T.deserializeValue=G,i.zepto=T,i}();return function(e){var n,i=1,r=Array.prototype.slice,s=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,h={focus:"focusin",blur:"focusout"},l={mouseenter:"mouseover",mouseleave:"mouseout"};function d(t){return t._zid||(t._zid=i++)}function p(t,e,n,i){if((e=f(e)).ns)var r=(s=e.ns,new RegExp("(?:^| )"+s.replace(" "," .* ?")+"(?: |$)"));var s;return(a[d(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||d(t.fn)===d(n))&&(!i||t.sel==i)})}function f(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function v(t,e){return t.del&&!c&&t.e in h||!!e}function g(t){return l[t]||c&&h[t]||t}function y(t,i,r,s,o,u,c){var h=d(t),p=a[h]||(a[h]=[]);i.split(/\s/).forEach(function(i){if("ready"==i)return e(document).ready(r);var a=f(i);a.fn=r,a.sel=o,a.e in l&&(r=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var h=u||r;a.proxy=function(e){if(!(e=A(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=s)}catch(e){}var r=h.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===r&&(e.preventDefault(),e.stopPropagation()),r}},a.i=p.length,p.push(a),"addEventListener"in t&&t.addEventListener(g(a.e),a.proxy,v(a,c))})}function m(t,e,n,i,r){var s=d(t);(e||"").split(/\s/).forEach(function(e){p(t,e,n,i).forEach(function(e){delete a[s][e.i],"removeEventListener"in t&&t.removeEventListener(g(e.e),e.proxy,v(e,r))})})}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:m},e.proxy=function(t,n){var i=2 in arguments&&r.call(arguments,2);if(s(t)){var a=function(){return t.apply(n,i?i.concat(r.call(arguments)):arguments)};return a._zid=d(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},w=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function A(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(S,function(e,n){var r=i[e];t[e]=function(){return this[n]=b,r&&r.apply(i,arguments)},t[n]=w});try{t.timeStamp||(t.timeStamp=Date.now())}catch(t){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function C(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return A(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var h,l,d=this;return t&&!o(t)?(e.each(t,function(t,e){d.on(t,i,a,e,c)}),d):(o(i)||s(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=w),d.each(function(n,s){c&&(h=function(t){return m(s,t.type,u),u.apply(this,arguments)}),i&&(l=function(t){var n,o=e(t.target).closest(i,s).get(0);if(o&&o!==s)return n=e.extend(C(t),{currentTarget:o,liveFired:s}),(h||u).apply(o,[n].concat(r.call(arguments,1)))}),y(s,t,u,a,i,l||h)}))},e.fn.off=function(t,i,r){var a=this;return t&&!o(t)?(e.each(t,function(t,e){a.off(t,i,e)}),a):(o(i)||s(r)||!1===r||(r=i,i=n),!1===r&&(r=w),a.each(function(){m(this,t,r,i)}))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):A(t))._args=n,this.each(function(){t.type in h&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)})},e.fn.triggerHandler=function(t,n){var i,r;return this.each(function(s,a){(i=C(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(p(a,t.type||t),function(t,e){if(r=e.proxy(i),i.isImmediatePropagationStopped())return!1})}),r},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),A(n)}}(i),n=[],i.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout(function(){n=[]},6e4)),this.parentNode.removeChild(this))})},function(t){var e={},n=t.fn.data,i=t.camelCase,r=t.expando="Zepto"+ +new Date,s=[];function o(n,o,a){var u=n[r]||(n[r]=++t.uuid),c=e[u]||(e[u]=function(e){var n={};return t.each(e.attributes||s,function(e,r){0==r.name.indexOf("data-")&&(n[i(r.name.replace("data-",""))]=t.zepto.deserializeValue(r.value))}),n}(n));return void 0!==o&&(c[i(o)]=a),c}t.fn.data=function(s,a){return void 0===a?t.isPlainObject(s)?this.each(function(e,n){t.each(s,function(t,e){o(n,t,e)})}):0 in this?function(s,a){var u=s[r],c=u&&e[u];if(void 0===a)return c||o(s);if(c){if(a in c)return c[a];var h=i(a);if(h in c)return c[h]}return n.call(t(s),a)}(this[0],s):void 0:this.each(function(){o(this,s,a)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[r],s=i&&e[i];return!!s&&!t.isEmptyObject(s)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each(function(){var s=this[r],o=s&&e[s];o&&t.each(n||o,function(t){delete o[n?i(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(i),i}(e)},905:function(){!function(t){!function(e){var n="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in t,o="ArrayBuffer"in t;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function v(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&r&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var t,e,n,i=p(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,n=f(e=new FileReader),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i<e.length;i++)n[i]=String.fromCharCode(e[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=c(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[c(t)]},d.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},d.prototype.set=function(t,e){this.map[c(t)]=h(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),l(t)},d.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),l(t)},d.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),l(t)},i&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var n,i,r=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=(i=(n=e.method||this.method||"GET").toUpperCase(),m.indexOf(i)>-1?i:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function w(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}),e}function x(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var S=[301,302,303,307,308];x.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(t,n){return new Promise(function(i,s){var o=new b(t,n);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}}),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;i(new x(r,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",u)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})}A.polyfill=!0,t.fetch||(t.fetch=A,t.Headers=d,t.Request=b,t.Response=x),e.Headers=d,e.Request=b,e.Response=x,e.fetch=A,Object.defineProperty(e,"__esModule",{value:!0})}({})}("undefined"!=typeof self?self:this)},624:(t,e,n)=>{"use strict";var i,r,s,o=[n(525),n(785),n(291),n(709),n(506),n(176)],a=-1,u=[],c=!1;function h(){i&&r&&(i=!1,r.length?u=r.concat(u):a=-1,u.length&&l())}function l(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(h);t;){for(r=u,u=[];r&&++a<t;)r[a].run();a=-1,t=u.length}r=null,a=-1,i=!1,clearTimeout(e)}}for(var d=-1,p=o.length;++d<p;)if(o[d]&&o[d].test&&o[d].test()){s=o[d].install(l);break}function f(t,e){this.fun=t,this.array=e}f.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},t.exports=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),c||i||(c=!0,s())}},709:(t,e,n)=>{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},291:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,r=new i(t),s=n.g.document.createTextNode("");return r.observe(s,{characterData:!0}),function(){s.data=e=++e%2}}},785:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},506:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},176:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}},229:function(t,e,n){!function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},i.apply(this,arguments)};function r(t,e,n,i){return new(n||(n=Promise))(function(r,s){function o(t){try{u(i.next(t))}catch(t){s(t)}}function a(t){try{u(i.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}u((i=i.apply(t,e||[])).next())})}function s(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}var o=function(t){function e(n,i,r,s){var o,a,u,c=this;return c=t.call(this,n)||this,Object.setPrototypeOf(c,e.prototype),c.name="MeiliSearchCommunicationError",i instanceof Response&&(c.message=i.statusText,c.statusCode=i.status),i instanceof Error&&(c.errno=i.errno,c.code=i.code),s?(c.stack=s,c.stack=null===(o=c.stack)||void 0===o?void 0:o.replace(/(TypeError|FetchError)/,c.name),c.stack=null===(a=c.stack)||void 0===a?void 0:a.replace("Failed to fetch","request to ".concat(r," failed, reason: connect ECONNREFUSED")),c.stack=null===(u=c.stack)||void 0===u?void 0:u.replace("Not Found","Not Found: ".concat(r))):Error.captureStackTrace&&Error.captureStackTrace(c,e),c}return n(e,t),e}(Error),a=function(t){function e(e,n){var i=t.call(this,e.message)||this;return Object.setPrototypeOf(i,a.prototype),i.name="MeiliSearchApiError",i.code=e.code,i.type=e.type,i.link=e.link,i.message=e.message,i.httpStatus=n,Error.captureStackTrace&&Error.captureStackTrace(i,a),i}return n(e,t),e}(Error);function u(t){return r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:if(t.ok)return[3,5];e=void 0,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,t.json()];case 2:return e=n.sent(),[3,4];case 3:throw n.sent(),new o(t.statusText,t,t.url);case 4:throw new a(e,t.status);case 5:return[2,t]}})})}function c(t,e,n){if("MeiliSearchApiError"!==t.name)throw new o(t.message,t,n,e);throw t}var h=function(t){function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="MeiliSearchError",Error.captureStackTrace&&Error.captureStackTrace(i,e),i}return n(e,t),e}(Error),l=function(t){function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="MeiliSearchTimeOutError",Error.captureStackTrace&&Error.captureStackTrace(i,e),i}return n(e,t),e}(Error);function d(t){return Object.entries(t).reduce(function(t,e){var n=e[0],i=e[1];return void 0!==i&&(t[n]=i),t},{})}function p(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e){return setTimeout(e,t)})];case 1:return[2,e.sent()]}})})}function f(t){return Object.keys(t).reduce(function(e,n){var r,s,o,a=t[n];return void 0===a?e:Array.isArray(a)?i(i({},e),((r={})[n]=a.join(","),r)):a instanceof Date?i(i({},e),((s={})[n]=a.toISOString(),s)):i(i({},e),((o={})[n]=a,o))},{})}var v=function(){function t(t){this.headers=function(t){var e="X-Meilisearch-Client",n="Meilisearch JavaScript (v".concat("0.30.0",")");t.headers=t.headers||{};var i=Object.assign({},t.headers);if(t.apiKey&&(i.Authorization="Bearer ".concat(t.apiKey)),t.headers["Content-Type"]||(i["Content-Type"]="application/json"),t.clientAgents&&Array.isArray(t.clientAgents)){var r=t.clientAgents.concat(n);i[e]=r.join(" ; ")}else{if(t.clientAgents&&!Array.isArray(t.clientAgents))throw new h('Meilisearch: The header "'.concat(e,'" should be an array of string(s).\n'));i[e]=n}return i}(t);try{var e=function(t){try{return(e=t=function(t){return t.startsWith("https://")||t.startsWith("http://")?t:"http://".concat(t)}(t)).endsWith("/")||(e+="/"),e}catch(t){throw new h("The provided host is not valid.")}var e}(t.host);this.url=new URL(e)}catch(t){throw new h("The provided host is not valid.")}}return t.prototype.request=function(t){var e=t.method,n=t.url,o=t.params,a=t.body,h=t.config;return r(this,void 0,void 0,function(){var t,r,l,d;return s(this,function(s){switch(s.label){case 0:t=new URL(n,this.url),o&&(r=new URLSearchParams,Object.keys(o).filter(function(t){return null!==o[t]}).map(function(t){return r.set(t,o[t])}),t.search=r.toString()),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(t.toString(),i(i({},h),{method:e,body:JSON.stringify(a),headers:this.headers})).then(function(t){return u(t)})];case 2:return[4,s.sent().json().catch(function(){})];case 3:return[2,s.sent()];case 4:return l=s.sent(),d=l.stack,c(l,d,t.toString()),[3,5];case 5:return[2]}})})},t.prototype.get=function(t,e,n){return r(this,void 0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return[4,this.request({method:"GET",url:t,params:e,config:n})];case 1:return[2,i.sent()]}})})},t.prototype.post=function(t,e,n,i){return r(this,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:return[4,this.request({method:"POST",url:t,body:e,params:n,config:i})];case 1:return[2,r.sent()]}})})},t.prototype.put=function(t,e,n,i){return r(this,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:return[4,this.request({method:"PUT",url:t,body:e,params:n,config:i})];case 1:return[2,r.sent()]}})})},t.prototype.patch=function(t,e,n,i){return r(this,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:return[4,this.request({method:"PATCH",url:t,body:e,params:n,config:i})];case 1:return[2,r.sent()]}})})},t.prototype.delete=function(t,e,n,i){return r(this,void 0,void 0,function(){return s(this,function(r){switch(r.label){case 0:return[4,this.request({method:"DELETE",url:t,body:e,params:n,config:i})];case 1:return[2,r.sent()]}})})},t}(),g=function(t){this.taskUid=t.taskUid,this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.enqueuedAt=new Date(t.enqueuedAt)},y=function(t){this.indexUid=t.indexUid,this.status=t.status,this.type=t.type,this.uid=t.uid,this.details=t.details,this.canceledBy=t.canceledBy,this.error=t.error,this.duration=t.duration,this.startedAt=new Date(t.startedAt),this.enqueuedAt=new Date(t.enqueuedAt),this.finishedAt=new Date(t.finishedAt)},m=function(){function t(t){this.httpRequest=new v(t)}return t.prototype.getTask=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="tasks/".concat(t),[4,this.httpRequest.get(e)];case 1:return n=i.sent(),[2,new y(n)]}})})},t.prototype.getTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return"tasks",[4,this.httpRequest.get("tasks",f(t))];case 1:return e=n.sent(),[2,i(i({},e),{results:e.results.map(function(t){return new y(t)})})]}})})},t.prototype.waitForTask=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:e=Date.now(),i.label=1;case 1:return Date.now()-e<o?[4,this.getTask(t)]:[3,4];case 2:return n=i.sent(),["enqueued","processing"].includes(n.status)?[4,p(u)]:[2,n];case 3:return i.sent(),[3,1];case 4:throw new l("timeout of ".concat(o,"ms has exceeded on process ").concat(t," when waiting a task to be resolved."))}})})},t.prototype.waitForTasks=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){var e,n,i,r,a;return s(this,function(s){switch(s.label){case 0:e=[],n=0,i=t,s.label=1;case 1:return n<i.length?(r=i[n],[4,this.waitForTask(r,{timeOutMs:o,intervalMs:u})]):[3,4];case 2:a=s.sent(),e.push(a),s.label=3;case 3:return n++,[3,1];case 4:return[2,e]}})})},t.prototype.cancelTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return"tasks/cancel",[4,this.httpRequest.post("tasks/cancel",{},f(t))];case 1:return e=n.sent(),[2,new g(e)]}})})},t.prototype.deleteTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return"tasks",[4,this.httpRequest.delete("tasks",{},f(t))];case 1:return e=n.sent(),[2,new g(e)]}})})},t}(),b=function(){function t(t,e,n){this.uid=e,this.primaryKey=n,this.httpRequest=new v(t),this.tasks=new m(t)}return t.prototype.search=function(t,e,n){return r(this,void 0,void 0,function(){var r;return s(this,function(s){switch(s.label){case 0:return r="indexes/".concat(this.uid,"/search"),[4,this.httpRequest.post(r,d(i({q:t},e)),void 0,n)];case 1:return[2,s.sent()]}})})},t.prototype.searchGet=function(t,e,n){var o,a,u,c,l;return r(this,void 0,void 0,function(){var r,p,f;return s(this,function(s){switch(s.label){case 0:return r="indexes/".concat(this.uid,"/search"),p=function(t){if("string"==typeof t)return t;if(Array.isArray(t))throw new h("The filter query parameter should be in string format when using searchGet")},f=i(i({q:t},e),{filter:p(null==e?void 0:e.filter),sort:null===(o=null==e?void 0:e.sort)||void 0===o?void 0:o.join(","),facets:null===(a=null==e?void 0:e.facets)||void 0===a?void 0:a.join(","),attributesToRetrieve:null===(u=null==e?void 0:e.attributesToRetrieve)||void 0===u?void 0:u.join(","),attributesToCrop:null===(c=null==e?void 0:e.attributesToCrop)||void 0===c?void 0:c.join(","),attributesToHighlight:null===(l=null==e?void 0:e.attributesToHighlight)||void 0===l?void 0:l.join(",")}),[4,this.httpRequest.get(r,d(f),n)];case 1:return[2,s.sent()]}})})},t.prototype.getRawInfo=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid),[4,this.httpRequest.get(t)];case 1:return e=n.sent(),this.primaryKey=e.primaryKey,this.updatedAt=new Date(e.updatedAt),this.createdAt=new Date(e.createdAt),[2,e]}})})},t.prototype.fetchInfo=function(){return r(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this.getRawInfo()];case 1:return t.sent(),[2,this]}})})},t.prototype.fetchPrimaryKey=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t=this,[4,this.getRawInfo()];case 1:return t.primaryKey=e.sent().primaryKey,[2,this.primaryKey]}})})},t.create=function(t,e,n){return void 0===e&&(e={}),r(this,void 0,void 0,function(){var r;return s(this,function(s){switch(s.label){case 0:return"indexes",[4,new v(n).post("indexes",i(i({},e),{uid:t}))];case 1:return r=s.sent(),[2,new g(r)]}})})},t.prototype.update=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid),[4,this.httpRequest.patch(e,t)];case 1:return(n=i.sent()).enqueuedAt=new Date(n.enqueuedAt),[2,n]}})})},t.prototype.delete=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid),[4,this.httpRequest.delete(t)];case 1:return e=n.sent(),[2,new g(e)]}})})},t.prototype.getTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.getTasks(i(i({},t),{indexUids:[this.uid]}))];case 1:return[2,e.sent()]}})})},t.prototype.getTask=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.getTask(t)];case 1:return[2,e.sent()]}})})},t.prototype.waitForTasks=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.waitForTasks(t,{timeOutMs:o,intervalMs:u})];case 1:return[2,e.sent()]}})})},t.prototype.waitForTask=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.waitForTask(t,{timeOutMs:o,intervalMs:u})];case 1:return[2,e.sent()]}})})},t.prototype.getStats=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/stats"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.getDocuments=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e,n;return s(this,function(r){switch(r.label){case 0:return e="indexes/".concat(this.uid,"/documents"),n=function(){var e;if(Array.isArray(null==t?void 0:t.fields))return null===(e=null==t?void 0:t.fields)||void 0===e?void 0:e.join(",")}(),[4,this.httpRequest.get(e,d(i(i({},t),{fields:n})))];case 1:return[2,r.sent()]}})})},t.prototype.getDocument=function(t,e){return r(this,void 0,void 0,function(){var n,r;return s(this,function(s){switch(s.label){case 0:return n="indexes/".concat(this.uid,"/documents/").concat(t),r=function(){var t;if(Array.isArray(null==e?void 0:e.fields))return null===(t=null==e?void 0:e.fields)||void 0===t?void 0:t.join(",")}(),[4,this.httpRequest.get(n,d(i(i({},e),{fields:r})))];case 1:return[2,s.sent()]}})})},t.prototype.addDocuments=function(t,e){return r(this,void 0,void 0,function(){var n,i;return s(this,function(r){switch(r.label){case 0:return n="indexes/".concat(this.uid,"/documents"),[4,this.httpRequest.post(n,t,e)];case 1:return i=r.sent(),[2,new g(i)]}})})},t.prototype.addDocumentsInBatches=function(t,e,n){return void 0===e&&(e=1e3),r(this,void 0,void 0,function(){var i,r,o,a;return s(this,function(s){switch(s.label){case 0:i=[],r=0,s.label=1;case 1:return r<t.length?(a=(o=i).push,[4,this.addDocuments(t.slice(r,r+e),n)]):[3,4];case 2:a.apply(o,[s.sent()]),s.label=3;case 3:return r+=e,[3,1];case 4:return[2,i]}})})},t.prototype.updateDocuments=function(t,e){return r(this,void 0,void 0,function(){var n,i;return s(this,function(r){switch(r.label){case 0:return n="indexes/".concat(this.uid,"/documents"),[4,this.httpRequest.put(n,t,e)];case 1:return i=r.sent(),[2,new g(i)]}})})},t.prototype.updateDocumentsInBatches=function(t,e,n){return void 0===e&&(e=1e3),r(this,void 0,void 0,function(){var i,r,o,a;return s(this,function(s){switch(s.label){case 0:i=[],r=0,s.label=1;case 1:return r<t.length?(a=(o=i).push,[4,this.updateDocuments(t.slice(r,r+e),n)]):[3,4];case 2:a.apply(o,[s.sent()]),s.label=3;case 3:return r+=e,[3,1];case 4:return[2,i]}})})},t.prototype.deleteDocument=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/documents/").concat(t),[4,this.httpRequest.delete(e)];case 1:return(n=i.sent()).enqueuedAt=new Date(n.enqueuedAt),[2,n]}})})},t.prototype.deleteDocuments=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/documents/delete-batch"),[4,this.httpRequest.post(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.deleteAllDocuments=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/documents"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getSettings=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateSettings=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings"),[4,this.httpRequest.patch(e,t)];case 1:return(n=i.sent()).enqueued=new Date(n.enqueuedAt),[2,n]}})})},t.prototype.resetSettings=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getPagination=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/pagination"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updatePagination=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/pagination"),[4,this.httpRequest.patch(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetPagination=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/pagination"),[4,this.httpRequest.delete(t)];case 1:return e=n.sent(),[2,new g(e)]}})})},t.prototype.getSynonyms=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/synonyms"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateSynonyms=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/synonyms"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetSynonyms=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/synonyms"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getStopWords=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/stop-words"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateStopWords=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/stop-words"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetStopWords=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/stop-words"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getRankingRules=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/ranking-rules"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateRankingRules=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/ranking-rules"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetRankingRules=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/ranking-rules"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getDistinctAttribute=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/distinct-attribute"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateDistinctAttribute=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/distinct-attribute"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetDistinctAttribute=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/distinct-attribute"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getFilterableAttributes=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/filterable-attributes"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateFilterableAttributes=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/filterable-attributes"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetFilterableAttributes=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/filterable-attributes"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getSortableAttributes=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/sortable-attributes"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateSortableAttributes=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/sortable-attributes"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetSortableAttributes=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/sortable-attributes"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getSearchableAttributes=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/searchable-attributes"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateSearchableAttributes=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/searchable-attributes"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetSearchableAttributes=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/searchable-attributes"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getDisplayedAttributes=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/displayed-attributes"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateDisplayedAttributes=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/displayed-attributes"),[4,this.httpRequest.put(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetDisplayedAttributes=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/displayed-attributes"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getTypoTolerance=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/typo-tolerance"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateTypoTolerance=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/typo-tolerance"),[4,this.httpRequest.patch(e,t)];case 1:return(n=i.sent()).enqueuedAt=new Date(n.enqueuedAt),[2,n]}})})},t.prototype.resetTypoTolerance=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/typo-tolerance"),[4,this.httpRequest.delete(t)];case 1:return(e=n.sent()).enqueuedAt=new Date(e.enqueuedAt),[2,e]}})})},t.prototype.getFaceting=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return t="indexes/".concat(this.uid,"/settings/faceting"),[4,this.httpRequest.get(t)];case 1:return[2,e.sent()]}})})},t.prototype.updateFaceting=function(t){return r(this,void 0,void 0,function(){var e,n;return s(this,function(i){switch(i.label){case 0:return e="indexes/".concat(this.uid,"/settings/faceting"),[4,this.httpRequest.patch(e,t)];case 1:return n=i.sent(),[2,new g(n)]}})})},t.prototype.resetFaceting=function(){return r(this,void 0,void 0,function(){var t,e;return s(this,function(n){switch(n.label){case 0:return t="indexes/".concat(this.uid,"/settings/faceting"),[4,this.httpRequest.delete(t)];case 1:return e=n.sent(),[2,new g(e)]}})})},t}(),w=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e}(function(){function t(t){this.config=t,this.httpRequest=new v(t),this.tasks=new m(t)}return t.prototype.index=function(t){return new b(this.config,t)},t.prototype.getIndex=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){return[2,new b(this.config,t).fetchInfo()]})})},t.prototype.getRawIndex=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){return[2,new b(this.config,t).getRawInfo()]})})},t.prototype.getIndexes=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e,n,r=this;return s(this,function(s){switch(s.label){case 0:return[4,this.getRawIndexes(t)];case 1:return e=s.sent(),n=e.results.map(function(t){return new b(r.config,t.uid,t.primaryKey)}),[2,i(i({},e),{results:n})]}})})},t.prototype.getRawIndexes=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return"indexes",[4,this.httpRequest.get("indexes",t)];case 1:return[2,e.sent()]}})})},t.prototype.createIndex=function(t,e){return void 0===e&&(e={}),r(this,void 0,void 0,function(){return s(this,function(n){switch(n.label){case 0:return[4,b.create(t,e,this.config)];case 1:return[2,n.sent()]}})})},t.prototype.updateIndex=function(t,e){return void 0===e&&(e={}),r(this,void 0,void 0,function(){return s(this,function(n){switch(n.label){case 0:return[4,new b(this.config,t).update(e)];case 1:return[2,n.sent()]}})})},t.prototype.deleteIndex=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,new b(this.config,t).delete()];case 1:return[2,e.sent()]}})})},t.prototype.deleteIndexIfExists=function(t){return r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.deleteIndex(t)];case 1:return n.sent(),[2,!0];case 2:if("index_not_found"===(e=n.sent()).code)return[2,!1];throw e;case 3:return[2]}})})},t.prototype.swapIndexes=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return"/swap-indexes",[4,this.httpRequest.post("/swap-indexes",t)];case 1:return[2,e.sent()]}})})},t.prototype.getTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.getTasks(t)];case 1:return[2,e.sent()]}})})},t.prototype.getTask=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.getTask(t)];case 1:return[2,e.sent()]}})})},t.prototype.waitForTasks=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.waitForTasks(t,{timeOutMs:o,intervalMs:u})];case 1:return[2,e.sent()]}})})},t.prototype.waitForTask=function(t,e){var n=void 0===e?{}:e,i=n.timeOutMs,o=void 0===i?5e3:i,a=n.intervalMs,u=void 0===a?50:a;return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.waitForTask(t,{timeOutMs:o,intervalMs:u})];case 1:return[2,e.sent()]}})})},t.prototype.cancelTasks=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.cancelTasks(t)];case 1:return[2,e.sent()]}})})},t.prototype.deleteTasks=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,this.tasks.deleteTasks(t)];case 1:return[2,e.sent()]}})})},t.prototype.getKeys=function(t){return void 0===t&&(t={}),r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return"keys",[4,this.httpRequest.get("keys",t)];case 1:return(e=n.sent()).results=e.results.map(function(t){return i(i({},t),{createdAt:new Date(t.createdAt),updateAt:new Date(t.updateAt)})}),[2,e]}})})},t.prototype.getKey=function(t){return r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return e="keys/".concat(t),[4,this.httpRequest.get(e)];case 1:return[2,n.sent()]}})})},t.prototype.createKey=function(t){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return"keys",[4,this.httpRequest.post("keys",t)];case 1:return[2,e.sent()]}})})},t.prototype.updateKey=function(t,e){return r(this,void 0,void 0,function(){var n;return s(this,function(i){switch(i.label){case 0:return n="keys/".concat(t),[4,this.httpRequest.patch(n,e)];case 1:return[2,i.sent()]}})})},t.prototype.deleteKey=function(t){return r(this,void 0,void 0,function(){var e;return s(this,function(n){switch(n.label){case 0:return e="keys/".concat(t),[4,this.httpRequest.delete(e)];case 1:return[2,n.sent()]}})})},t.prototype.health=function(){return r(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return"health",[4,this.httpRequest.get("health")];case 1:return[2,t.sent()]}})})},t.prototype.isHealthy=function(){return r(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),"health",[4,this.httpRequest.get("health")];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},t.prototype.getStats=function(){return r(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return"stats",[4,this.httpRequest.get("stats")];case 1:return[2,t.sent()]}})})},t.prototype.getVersion=function(){return r(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return"version",[4,this.httpRequest.get("version")];case 1:return[2,t.sent()]}})})},t.prototype.createDump=function(){return r(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return"dumps",[4,this.httpRequest.post("dumps")];case 1:return t=e.sent(),[2,new g(t)]}})})},t.prototype.generateTenantToken=function(t,e,n){var i=new Error;throw new Error("Meilisearch: failed to generate a tenant token. Generation of a token only works in a node environment \n ".concat(i.stack,"."))},t}());t.Index=b,t.MatchingStrategies={ALL:"all",LAST:"last"},t.MeiliSearch=w,t.MeiliSearchApiError=a,t.MeiliSearchCommunicationError=o,t.MeiliSearchError=h,t.MeiliSearchTimeOutError=l,t.default=w,t.httpErrorHandler=c,t.httpResponseErrorHandler=u,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(905))},547:t=>{"use strict";var e=Function.prototype.bind;t.exports=function(t){var n=function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return new(e.apply(t,[null].concat(i)))};return n.__proto__=t,n.prototype=t.prototype,n}},525:()=>{}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={};return(()=>{"use strict";n.d(i,{default:()=>E});var t=n(547),e=n.n(t),r=n(639),s=n.n(r),o="docs-searchbar",a="".concat(o,"-suggestion"),u="".concat(o,"-footer");const c={suggestion:function(t){return'\n  <a class="'.concat(a,"\n    ").concat(t.isCategoryHeader?"".concat(a,"__main"):"","\n    ").concat(t.isSubCategoryHeader?"".concat(a,"__secondary"):"",'\n    "\n    aria-label="Link to the result"\n    href="').concat(t.url,'"\n    >\n    <div class="').concat(a,'--category-header">\n      <span class="').concat(a,'--category-header-lvl0">\n        ').concat(t.category,'\n      </span>\n    </div>\n    <div class="').concat(a,'--wrapper">\n      <div class="').concat(a,'--subcategory-column">\n        <span class="').concat(a,'--subcategory-column-text">\n          ').concat(t.subcategory,"\n        </span>\n      </div>\n      ").concat(t.isTextOrSubcategoryNonEmpty?'\n        <div class="'.concat(a,'--content">\n          <div class="').concat(a,'--subcategory-inline">\n            ').concat(t.subcategory,'\n          </div>\n          <div class="').concat(a,'--title">').concat(t.title,"</div>\n          ").concat(t.text?'<div class="'.concat(a,'--text">').concat(t.text,"</div>"):"","\n        </div>"):"","\n    </div>\n  </a>\n  ")},suggestionSimple:function(t){return'\n  <div class="'.concat(a,"\n    ").concat(t.isCategoryHeader?"".concat(a,"__main"):"","\n    ").concat(t.isSubCategoryHeader?"".concat(a,"__secondary"):"",'\n    suggestion-layout-simple\n  ">\n    <div class="').concat(a,'--category-header">\n        ').concat(t.isLvl0?"":'\n            <span class="'.concat(a,"--category-header-lvl0 ").concat(a,'--category-header-item">\n                ').concat(t.category,"\n            </span>\n            ").concat(t.isLvl1||t.isLvl1EmptyOrDuplicate?"":'\n            <span class="'.concat(a,"--category-header-lvl1 ").concat(a,'--category-header-item">\n                ').concat(t.subcategory,"\n            </span>")),'\n        <div class="').concat(a,"--title ").concat(a,'--category-header-item">\n            ').concat(t.isLvl2?t.title:"","\n            ").concat(t.isLvl1?t.subcategory:"","\n            ").concat(t.isLvl0?t.category:"",'\n        </div>\n    </div>\n    <div class="').concat(a,'--wrapper">\n      ').concat(t.text?'\n      <div class="'.concat(a,'--content">\n        <div class="').concat(a,'--text">').concat(t.text,"</div>\n      </div>"):"","\n    </div>\n  </div>\n  ")},footer:'\n    <div class="'.concat(u,'">\n      Powered by\n      <a href="https://www.meilisearch.com" target="_blank"><strong>meili</strong>search</a>\n    </div>\n  '),empty:function(t){return'\n  <div class="'.concat(a,'">\n    <div class="').concat(a,'--wrapper">\n        <div class="').concat(a,"--content ").concat(a,'--no-results">\n            <div class="').concat(a,'--title">\n                <div class="').concat(a,'--text">\n                No results found for query <b>"').concat(t.query,'"</b>\n                </div>\n            </div>\n        </div>\n    </div>\n  </div>\n  ')},searchBox:'\n  <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n    <div role="search" class="searchbox__wrapper">\n      <input id="'.concat(a,'" type="search" name="search" placeholder="Search the docs" autocomplete="off" required="required" class="searchbox__input"/>\n      <button type="submit" title="Submit your search query." class="searchbox__submit" >\n        <svg width=12 height=12 role="img" aria-label="Search">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n        </svg>\n      </button>\n      <button type="reset" title="Clear the search query." class="searchbox__reset hide">\n        <svg width=12 height=12 role="img" aria-label="Reset">\n          <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n        </svg>\n      </button>\n    </div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n  <svg xmlns="http://www.w3.org/2000/svg">\n    <symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"></symbol>\n    <symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"></symbol>\n  </svg>\n</div>\n  ')};var h=n(939);const l=n.n(h)();function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var p={mergeKeyWithParent:function(t,e){if(void 0===t[e])return t;if("object"!==d(t[e]))return t;var n=l.extend({},t,t[e]);return delete n[e],n},renameKeysWithLevels:function(t,e){return Object.keys(t).reduce(function(n,i){var r=n;return i.startsWith(e)?r[i.substring(i.indexOf("lvl"))]=t[i]:r[i]=t[i],r},{})},replaceNullString:function(t){return Object.keys(t).reduce(function(e,n){var i=e;return"string"==typeof t[n]&&"null"===t[n]?i[n]=null:i[n]=t[n],i},{})},groupBy:function(t,e){var n={};return l.each(t,function(t,i){if(void 0===i[e])throw new Error("[groupBy]: Object has no key ".concat(e));var r=i[e];"string"==typeof r&&(r=r.toLowerCase()),Object.prototype.hasOwnProperty.call(n,r)||(n[r]=[]),n[r].push(i)}),n},values:function(t){return Object.keys(t).map(function(e){return t[e]})},flatten:function(t){var e=[];return t.forEach(function(t){Array.isArray(t)?t.forEach(function(t){e.push(t)}):e.push(t)}),e},flattenAndFlagFirst:function(t,e){var n=this.values(t).map(function(t){return t.map(function(t,n){return t[e]=0===n,t})});return this.flatten(n)},compact:function(t){var e=[];return t.forEach(function(t){t&&e.push(t)}),e},getHighlightedValue:function(t,e){return t._formatted&&t._formatted[e]&&"string"==typeof t._formatted[e]?this.replaceHtmlTagsToHighlight(t._formatted[e]):t[e]},replaceHtmlTagsToHighlight:function(t){return t.replace(/<em>/g,'<span class="docs-searchbar-suggestion--highlight">').replace(/<\/em>/g,"</span>")},getSnippetedValue:function(t,e){if(!t._formatted||!t._formatted[e]||"string"!=typeof t._formatted[e])return t[e];var n=this.replaceHtmlTagsToHighlight(t._formatted[e]);return n[0]!==n[0].toUpperCase()&&(n="…".concat(n)),-1===[".","!","?"].indexOf(n[n.length-1])&&(n="".concat(n,"…")),n},deepClone:function(t){return JSON.parse(JSON.stringify(t))}};const f=p;var v=n(229);const g="2.5.0";var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e="Meilisearch docs-searchbar.js (v".concat(g,")");return t.concat(e)};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach(function(e){x(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}const A=function(){function t(e){var n=e.hostUrl,i=e.apiKey,r=e.indexUid,o=e.inputSelector,a=void 0===o?"":o,u=e.inputElement,h=void 0===u?null:u,d=e.debug,p=void 0!==d&&d,f=e.meilisearchOptions,g=void 0===f?{}:f,m=e.queryDataCallback,b=void 0===m?null:m,x=e.autocompleteOptions,S=void 0===x?{}:x,A=e.transformData,C=void 0!==A&&A,E=e.queryHook,k=void 0!==E&&E,_=e.handleSelected,T=void 0!==_&&_,O=e.enhancedSearchInput,D=void 0!==O&&O,q=e.layout,R=void 0===q?"columns":q,P=e.enableDarkMode,M=void 0!==P&&P,I=e.clientAgents,$=void 0===I?[]:I;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),t.checkArguments({hostUrl:n,apiKey:i,indexUid:r,inputSelector:a,inputElement:h,debug:p,meilisearchOptions:g,queryDataCallback:b,autocompleteOptions:S,transformData:C,queryHook:k,handleSelected:T,enhancedSearchInput:D,layout:R,enableDarkMode:M,clientAgents:$}),this.apiKey=i,this.hostUrl=n,this.indexUid=r,this.input=h?l(h):t.getInputFromSelector(a),this.meilisearchOptions=w({limit:5,attributesToHighlight:["*"],attributesToCrop:["content"],cropLength:30},g),this.queryDataCallback=b||null,this.autocompleteOptions=w({debug:p,hint:!1,autoselect:!0},S);var L=this.input&&"function"==typeof this.input.attr&&this.input.attr("aria-label");this.autocompleteOptions.ariaLabel=this.autocompleteOptions.ariaLabel||L||"search input",this.autocompleteOptions.cssClasses=this.autocompleteOptions.cssClasses||{},this.autocompleteOptions.cssClasses.prefix=this.autocompleteOptions.cssClasses.prefix||"dsb",this.autocompleteOptions.cssClasses.root=this.autocompleteOptions.cssClasses.root||"meilisearch-autocomplete",this.autocompleteOptions.keyboardShortcuts=this.parseHotkeysAutocompleteOptions(this.autocompleteOptions.keyboardShortcuts)||["s",191],this.isSimpleLayout="simple"===R,this.enableDarkMode=M,this.client=new v.MeiliSearch({host:n,apiKey:this.apiKey,clientAgents:y($)}),t.addThemeWrapper(h,a,this.enableDarkMode),D&&(this.input=t.injectSearchBox(this.input)),this.autocomplete=s()(this.input,this.autocompleteOptions,[{source:this.getAutocompleteSource(C,k),templates:{suggestion:t.getSuggestionTemplate(this.isSimpleLayout),footer:c.footer,empty:t.getEmptyTemplate()}}]),l(".".concat(this.autocompleteOptions.cssClasses.root," > [role='listbox']")).css({left:!1,right:!1});var N=T;this.handleSelected=N||this.handleSelected,N&&l(".meilisearch-autocomplete").on("click",".".concat(this.autocompleteOptions.cssClasses.prefix,"-suggestions a"),function(t){t.preventDefault()}),this.autocomplete.on("autocomplete:selected",this.handleSelected.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),D&&t.bindSearchBoxEvent()}var e,n,i;return e=t,n=[{key:"getAutocompleteSource",value:function(e,n){var i=this;return function(r,s){n&&(r=n(r)||r),i.client.index(i.indexUid).search(r,i.meilisearchOptions).then(function(n){i.queryDataCallback&&"function"==typeof i.queryDataCallback&&i.queryDataCallback(n);var r=n.hits;e&&(r=e(r)||r),s(t.formatHits(r))})}}},{key:"handleSelected",value:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};"click"!==r.selectionMethod&&(t.setVal(""),window.location.assign(n.url))}},{key:"handleShown",value:function(t){var e=t.offset().left+t.width()/2,n=l(document).width()/2;isNaN(n)&&(n=900);var i=e-n>=0?"meilisearch-autocomplete-right":"meilisearch-autocomplete-left",r=e-n<0?"meilisearch-autocomplete-right":"meilisearch-autocomplete-left",s=l(".meilisearch-autocomplete");s.hasClass(i)||s.addClass(i),s.hasClass(r)&&s.removeClass(r)}},{key:"parseHotkeysAutocompleteOptions",value:function(t){return null==t?null:t.map(function(t){return"/"===t?191:t})}}],i=[{key:"addThemeWrapper",value:function(t,e,n){var i=t||document.querySelector(e),r=i.parentNode,s=document.createElement("div");s.className+="docs-searchbar-js",r.replaceChild(s,i),s.appendChild(i);var o=Boolean(n);if("auto"===n&&window.matchMedia){var a=window.matchMedia("(prefers-color-scheme: dark)");o=a.matches;var u=function t(e){document.body.contains(s)?s.setAttribute("data-ds-theme",e.matches?"dark":"light"):a.removeEventListener?a.removeEventListener("change",t):a.removeListener&&a.removeListener(t)};a.addEventListener?a.addEventListener("change",u):a.addListener&&a.addListener(u)}s.setAttribute("data-ds-theme",o?"dark":"light")}},{key:"checkArguments",value:function(e){if(!e.inputSelector&&!e.inputElement||!e.indexUid||!e.hostUrl)throw new Error("Usage:\n  documentationSearch({\n  hostUrl,\n  apiKey,\n  indexUid,\n  [ inputSelector ],\n  [ inputElement ],\n  [ debug ],\n  [ meilisearchOptions ],\n  [ queryDataCallback ],\n  [ autocompleteOptions ],\n  [ transformData ],\n  [ queryHook ],\n  [ handleSelected ],\n  [ enhancedSearchInput ],\n  [ layout ],\n  [ enableDarkMode ]\n})");if(null!==e.inputSelector&&"string"!=typeof e.inputSelector)throw new Error("Error: inputSelector:".concat(e.inputSelector,"  must be a string. Each selector must match only one element and separated by ','"));if(!e.inputElement&&!t.getInputFromSelector(e.inputSelector))throw new Error("Error: No input element in the page matches ".concat(e.inputSelector));if(t.typeCheck(e,["meilisearchOptions","autocompleteOptions"],"object",!0),"auto"!==e.enableDarkMode&&!1!==e.enableDarkMode&&!0!==e.enableDarkMode)throw new Error("Error: \"enableDarkMode\" must be either true, false, or 'auto'. Supplied value: ".concat(e.enableDarkMode));if(t.typeCheck(e,["debug","enhancedSearchInput"],"boolean",!1),t.typeCheck(e,["clientAgents"],"array",!0),t.typeCheck(e,["queryDataCallback","transformData","queryHook","handleSelected"],"function",!0),e.layout&&!["simple","columns"].includes(e.layout))throw new Error("Error: \"layout\" must be either 'columns' or 'simple'. Supplied value: ".concat(e.layout))}},{key:"throwTypeError",value:function(t,e,n){throw new Error('Error: "'.concat(t,'" must be of type: ').concat(e,". Found type: ").concat(m(n)))}},{key:"typeCheck",value:function(e,n,i,r){n.filter(function(t){return!r||e[t]}).forEach(function(n){var r=e[n];"array"===i?Array.isArray(e[n])||t.throwTypeError(n,i,r):m(e[n])!==i&&t.throwTypeError(n,i,r)})}},{key:"injectSearchBox",value:function(t){t.before(c.searchBox);var e=t.prev().prev().find("input");return t.remove(),e}},{key:"bindSearchBoxEvent",value:function(){l('.searchbox [type="reset"]').on("click",function(){l("input#docs-searchbar").focus(),l(this).addClass("hide"),s().autocomplete.setVal("")}),l("input#docs-searchbar").on("keyup",function(){var t=document.querySelector("input#docs-searchbar"),e=document.querySelector('.searchbox [type="reset"]');e.className="searchbox__reset",0===t.value.length&&(e.className+=" hide")})}},{key:"getInputFromSelector",value:function(t){var e=l(t).filter("input");return e.length?l(e[0]):null}},{key:"formatHits",value:function(e){var n=f.deepClone(e).map(function(t){if(t._formatted){var e=f.replaceNullString(t._formatted);t._formatted=f.renameKeysWithLevels(e,"hierarchy_")}var n=f.replaceNullString(t);return f.renameKeysWithLevels(n,"hierarchy_")}),i=f.groupBy(n,"lvl0");return l.each(i,function(t,e){var n=f.groupBy(e,"lvl1"),r=f.flattenAndFlagFirst(n,"isSubCategoryHeader");i[t]=r}),(i=f.flattenAndFlagFirst(i,"isCategoryHeader")).map(function(e){var n=t.formatURL(e),i=f.getHighlightedValue(e,"lvl0"),r=f.getHighlightedValue(e,"lvl1")||i,s=f.compact([f.getHighlightedValue(e,"lvl2")||r,f.getHighlightedValue(e,"lvl3"),f.getHighlightedValue(e,"lvl4"),f.getHighlightedValue(e,"lvl5"),f.getHighlightedValue(e,"lvl6")]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'),o=f.getSnippetedValue(e,"content"),a=r&&""!==r||s&&""!==s,u=s&&""!==s&&s!==r,c=!u&&r&&""!==r&&r!==i;return{isLvl0:!c&&!u,isLvl1:c,isLvl2:u,isLvl1EmptyOrDuplicate:!r||""===r||r===i,isCategoryHeader:e.isCategoryHeader,isSubCategoryHeader:e.isSubCategoryHeader,isTextOrSubcategoryNonEmpty:a,category:i,subcategory:r,title:s,text:o,url:n}})}},{key:"formatURL",value:function(t){var e=t.url,n=t.anchor;return e?-1!==e.indexOf("#")?e:n?"".concat(t.url,"#").concat(t.anchor):e:n?"#".concat(t.anchor):(console.warn("no anchor nor url for : ",JSON.stringify(t)),null)}},{key:"getEmptyTemplate",value:function(){return c.empty}},{key:"getSuggestionTemplate",value:function(t){return t?c.suggestionSimple:c.suggestion}}],n&&S(e.prototype,n),i&&S(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();var C=e()(A);C.version=g;const E=C})(),i.default})());
\ No newline at end of file
index 0ca75ecbabda28b4e51efd7df67d5ab336492e8e..f72b0a821f90665cf79fd828df3a69a503b39c23 100644 (file)
@@ -2,7 +2,7 @@
 // BSD 3-Clause License
 // Copyright (c) 2024, Gavin Brown
 // Full license: https://github.com/gbxyz/webidx/blob/a28a984d38fd546d1bec4d6a4a5a47ab86cb08f8/LICENSE
-// Modified since copied.
+// Note: File has been modified since originally copied.
 
 window.webidx = {};
 const webidx = window.webidx;
@@ -190,61 +190,4 @@ webidx.query = function (query) {
 
 webidx.regExpQuote = function (str) {
   return str.replace(/[/\-\\^$*+?.()|[\]{}]/g, '\\$&');
-};
-
-webidx.displayResults = function (pages, params) {
-  var callback = params.resultCallback ?? webidx.displayDialog;
-  callback(pages, params);
-};
-
-webidx.displayDialog = function (pages, params) {
-  var dialog = document.createElement('dialog');
-  dialog.classList.add('webidx-results-dialog')
-
-  dialog.appendChild(document.createElement('h2')).appendChild(document.createTextNode('Search Results'));
-
-  if (pages.length < 1) {
-    dialog.appendChild(document.createElement('p')).appendChild(document.createTextNode('Nothing found.'));
-
-  } else {
-    var ul = dialog.appendChild(document.createElement('ul'));
-
-    pages.forEach(function(page) {
-      var titleText = page.title;
-
-      if (params.titleSuffix) {
-        titleText = titleText.replace(new RegExp(webidx.regExpQuote(params.titleSuffix)+'$'), '');
-      }
-
-      if (params.titlePrefix) {
-        titleText = titleText.replace(new RegExp('^' + webidx.regExpQuote(params.titleSuffix)), '');
-      }
-
-      var li = ul.appendChild(document.createElement('li'));
-      var a = li.appendChild(document.createElement('a'));
-      a.setAttribute('href', page.url);
-      a.appendChild(document.createTextNode(titleText));
-      li.appendChild(document.createElement('br'));
-
-      var span = li.appendChild(document.createElement('span'));
-      span.classList.add('webidx-page-url');
-      span.appendChild(document.createTextNode(page.url));
-    });
-  }
-
-  var form = dialog.appendChild(document.createElement('form'));
-  form.setAttribute('method', 'dialog');
-
-  var button = form.appendChild(document.createElement('button'));
-  button.setAttribute('autofocus', true);
-  button.appendChild(document.createTextNode('Close'));
-
-  document.body.appendChild(dialog);
-
-  dialog.addEventListener('close', function() {
-    dialog.parentNode.removeChild(dialog);
-  });
-
-  dialog.showModal();
-  dialog.scrollTop = 0;
-};
+};
\ No newline at end of file