@sinytra/wiki-previewer 0.1.115 → 0.1.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +106 -105
  3. package/.next/app-path-routes-manifest.json +3 -3
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +19 -19
  6. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
  7. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
  8. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
  9. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
  10. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
  11. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
  13. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
  14. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
  16. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
  17. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
  19. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
  20. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
  22. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
  23. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/[locale]/page.js +2 -2
  25. package/.next/server/app/[locale]/page.js.nft.json +1 -1
  26. package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/_not-found/page.js +1 -1
  28. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  29. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/_not-found.html +2 -2
  31. package/.next/server/app/_not-found.rsc +8 -8
  32. package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/robots.txt/route.js +1 -1
  34. package/.next/server/app/robots.txt/route.js.nft.json +1 -1
  35. package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/sitemap.xml/route.js +1 -1
  37. package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  38. package/.next/server/app-paths-manifest.json +3 -3
  39. package/.next/server/chunks/105.js +1 -0
  40. package/.next/server/chunks/1476.js +1 -0
  41. package/.next/server/chunks/2313.js +2 -2
  42. package/.next/server/chunks/2337.js +1 -1
  43. package/.next/server/chunks/4159.js +1 -0
  44. package/.next/server/chunks/4302.js +1 -0
  45. package/.next/server/chunks/4530.js +1 -0
  46. package/.next/server/chunks/4988.js +1 -0
  47. package/.next/server/chunks/5611.js +1 -0
  48. package/.next/server/chunks/7065.js +66 -0
  49. package/.next/server/chunks/8616.js +1 -0
  50. package/.next/server/chunks/{4061.js → 9173.js} +12 -12
  51. package/.next/server/chunks/9425.js +10 -0
  52. package/.next/server/chunks/9686.js +159 -0
  53. package/.next/server/chunks/9847.js +1 -1
  54. package/.next/server/middleware-manifest.json +10 -10
  55. package/.next/server/pages/404.html +2 -2
  56. package/.next/server/pages/500.html +1 -1
  57. package/.next/server/server-reference-manifest.json +1 -1
  58. package/.next/server/src/middleware.js +2 -2
  59. package/.next/static/chunks/{103-17dcfd4e9416f734.js → 103-16bbfc93b461c964.js} +1 -1
  60. package/.next/static/chunks/{4425-96ba570f5d33c132.js → 1470-9bb50d687fde2bce.js} +1 -1
  61. package/.next/static/chunks/{9585-1b3d4db6576d361c.js → 1966-d293add079f9adab.js} +1 -1
  62. package/.next/static/chunks/{4193-bbe043dbc7c0de25.js → 2186-5c7b12be1a995c1e.js} +1 -1
  63. package/.next/static/chunks/2305-d9c0ebe361b73ca0.js +1 -0
  64. package/.next/static/chunks/4551-55b613d55dccf238.js +3 -0
  65. package/.next/static/chunks/595-8216ad2d62c67f74.js +1 -0
  66. package/.next/static/chunks/8413-8934ebbf72032aeb.js +1 -0
  67. package/.next/static/chunks/8616-f2548321574e7db4.js +1 -0
  68. package/.next/static/chunks/8777-5c798bf88b394495.js +2 -0
  69. package/.next/static/chunks/93-7ff435ae228f688a.js +1 -0
  70. package/.next/static/chunks/9585-3cde5ba088a8ed62.js +1 -0
  71. package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-fad13a09af2c14d8.js +1 -0
  72. package/.next/static/chunks/app/[locale]/(main)/layout-ca292e50d803d7c9.js +1 -0
  73. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-abc8d80e856b51f7.js +1 -0
  74. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{docs/[...path]/not-found-1f5f51b8a6550338.js → content/[id]/not-found-80873a4f07e4c1fa.js} +1 -1
  75. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/{page-9ef33853f8158cdd.js → page-e1514b9458cdf8ba.js} +1 -1
  76. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{error-e9c4bdaff91ea85b.js → error-749a31cba53c0392.js} +1 -1
  77. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{docs/not-found-1f5f51b8a6550338.js → content/not-found-80873a4f07e4c1fa.js} +1 -1
  78. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-e67fce9a42cdcb17.js +1 -0
  79. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-3bedf7ae95a288ad.js +1 -0
  80. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{content/[id]/not-found-1f5f51b8a6550338.js → docs/[...path]/not-found-80873a4f07e4c1fa.js} +1 -1
  81. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-ce23f165e662fada.js +1 -0
  82. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/{error-867a848cec193d6c.js → error-53aef187c3e0b916.js} +1 -1
  83. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{content/not-found-1f5f51b8a6550338.js → docs/not-found-80873a4f07e4c1fa.js} +1 -1
  84. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-1fec319e5fb8adda.js +1 -0
  85. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-c12bb85e1f228d2c.js +1 -0
  86. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-77a3009649d52713.js +1 -0
  87. package/.next/static/chunks/app/[locale]/layout-a0ae0615250dfb10.js +1 -0
  88. package/.next/static/chunks/app/[locale]/not-found-ef8f0d997a8d1958.js +1 -0
  89. package/.next/static/chunks/app/[locale]/page-d818d5faaaa65110.js +1 -0
  90. package/.next/static/chunks/app/error-2f744c8782ca90a5.js +1 -0
  91. package/.next/static/chunks/app/{global-error-ce091b1452efe213.js → global-error-85d9c0922f1e3fce.js} +1 -1
  92. package/.next/static/chunks/app/{layout-9da0fb84dadf33c7.js → layout-3165efcf5806a69a.js} +2 -2
  93. package/.next/static/chunks/app/not-found-23d4794ac0465772.js +1 -0
  94. package/.next/static/chunks/dd4c4bf0-96a26eda28cf66af.js +1 -0
  95. package/.next/static/css/9bfb8ccdff41fbfd.css +1 -0
  96. package/package.json +1 -1
  97. package/.next/server/chunks/1611.js +0 -1
  98. package/.next/server/chunks/177.js +0 -1
  99. package/.next/server/chunks/2228.js +0 -1
  100. package/.next/server/chunks/2744.js +0 -1
  101. package/.next/server/chunks/4510.js +0 -1
  102. package/.next/server/chunks/5040.js +0 -1
  103. package/.next/server/chunks/6304.js +0 -1
  104. package/.next/server/chunks/6961.js +0 -159
  105. package/.next/server/chunks/7640.js +0 -1
  106. package/.next/server/chunks/7707.js +0 -10
  107. package/.next/server/chunks/7781.js +0 -66
  108. package/.next/static/chunks/2124-df062eb31fe11c5d.js +0 -1
  109. package/.next/static/chunks/2709-491f94e4985f09ae.js +0 -1
  110. package/.next/static/chunks/3386-ac912e6009b83aa3.js +0 -2
  111. package/.next/static/chunks/5383-524037cb66b718c8.js +0 -1
  112. package/.next/static/chunks/595-54e3fd782ef53c18.js +0 -1
  113. package/.next/static/chunks/739-777eeb0518955b20.js +0 -3
  114. package/.next/static/chunks/8287-140591957dd688b9.js +0 -1
  115. package/.next/static/chunks/8616-5b19a69bdb5404cf.js +0 -1
  116. package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-c1e48f0307301056.js +0 -1
  117. package/.next/static/chunks/app/[locale]/(main)/layout-4ff9fce162573e20.js +0 -1
  118. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-94e4c8320d461ef0.js +0 -1
  119. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-76d531b594c7d03d.js +0 -1
  120. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-9f214dc4ecf10b0e.js +0 -1
  121. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-6ca2ad1ab7d721c3.js +0 -1
  122. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-7cae71bc802d1314.js +0 -1
  123. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-84fb2a34569578d4.js +0 -1
  124. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-db1403a0467da47b.js +0 -1
  125. package/.next/static/chunks/app/[locale]/layout-15866ddd5dedf3b2.js +0 -1
  126. package/.next/static/chunks/app/[locale]/not-found-3ab7d01ef5c3c4dc.js +0 -1
  127. package/.next/static/chunks/app/[locale]/page-f265449e2a6b50eb.js +0 -1
  128. package/.next/static/chunks/app/error-5112bfdb844053f6.js +0 -1
  129. package/.next/static/chunks/app/not-found-b6f6434317947d1a.js +0 -1
  130. package/.next/static/css/0cade3faa049b2e9.css +0 -1
  131. /package/.next/static/{pi-uZfzqwaSehEbQs-l2a → E3-bpyILB3XxG7SeC55HZ}/_buildManifest.js +0 -0
  132. /package/.next/static/{pi-uZfzqwaSehEbQs-l2a → E3-bpyILB3XxG7SeC55HZ}/_ssgManifest.js +0 -0
@@ -1,3 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[739],{40739:(e,t,r)=>{r.d(t,{Dk:()=>es,kc:()=>eu,Ym:()=>el,c3:()=>ea});var i=r(28081);function s(e,t){let r=t&&t.cache?t.cache:l,i=t&&t.serializer?t.serializer:h;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let s=1===e.length?n:o;return r=t.cache.create(),i=t.serializer,s.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function n(e,t,r,i){let s=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),n=t.get(s);return void 0===n&&(n=e.call(this,i),t.set(s,n)),n}function o(e,t,r){let i=Array.prototype.slice.call(arguments,3),s=r(i),n=t.get(s);return void 0===n&&(n=e.apply(this,i),t.set(s,n)),n}let h=function(){return JSON.stringify(arguments)};var a=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};let l={create:function(){return new a}},u={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,o.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)}};class c extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var m=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(m||{});function f(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(e,t){return s(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:u.variadic})}function g(e,t){return p((...t)=>new e(...t),t)}function E(e){return{getDateTimeFormat:g(Intl.DateTimeFormat,e.dateTime),getNumberFormat:g(Intl.NumberFormat,e.number),getPluralRules:g(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:g(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:g(Intl.ListFormat,e.list),getDisplayNames:g(Intl.DisplayNames,e.displayNames)}}let b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,H=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,y=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,d=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function A(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(B,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function S(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function I(e){let t=S(e);return t||{}}let N=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({});function _(e){return!!(e&&"object"==typeof e&&0===e.type)}function P(e){return!!(e&&"object"==typeof e&&1===e.type)}let M=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,L={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},R=RegExp(`^${M.source}*`),v=RegExp(`${M.source}*$`);function O(e,t){return{start:e,end:t}}let w=!!Object.fromEntries,C=!!String.prototype.trimStart,F=!!String.prototype.trimEnd,D=w?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},G=C?function(e){return e.trimStart()}:function(e){return e.replace(R,"")},U=F?function(e){return e.trimEnd()}:function(e){return e.replace(v,"")},k=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var V=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");if(this.message.length>0){let e=this.message.charCodeAt(0);if(35!==e&&39!==e&&60!==e&&123!==e&&125!==e){let e=function(e){if(0===e.length)return null;let t=1,r=1;for(let i=0;i<e.length;){let s=e.charCodeAt(i);switch(s){case 35:case 39:case 60:case 123:case 125:return null}if(10===s)t++,r=1,i++;else if(r++,s>=55296&&s<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);i+=t>=56320&&t<=57343?2:1}else i++}return{offset:e.length,line:t,column:r}}(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:O(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let s=this.char();if(123===s){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:7,location:O(e,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&K(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(26,O(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:O(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(23,O(r,this.clonePosition()));{let s=this.parseMessage(e+1,t,!0);if(s.err)return s;let n=s.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(27,O(r,this.clonePosition()));{if(this.isEOF()||!K(this.char()))return this.error(23,O(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(26,O(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:8,value:i,children:n,location:O(r,this.clonePosition())},err:null}:this.error(23,O(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;continue}let s=this.tryParseUnquoted(e,t);if(s){i+=s;continue}let n=this.tryParseLeftAngleBracket();if(n){i+=n;continue}break}return{val:{type:0,value:i,location:O(r,this.clonePosition())},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(K(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,O(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,O(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:O(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,O(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(3,O(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,k.lastIndex=r,k.exec(e)[1]??""),s=r+i.length;return this.bumpTo(s),{value:i,location:O(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(n){case"":return this.error(4,O(s,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=U(r.val);if(0===i.length)return this.error(6,O(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:O(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let s=O(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=G(e.style.slice(2));if("number"===n){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:2,value:r,location:s,style:i.val},err:null}}{if(0===t.length)return this.error(10,s);let i=t;return this.locale&&(i=function(e,t){let r="";for(let i=0;i<e.length;i++){let s=e.charAt(i);if("j"===s){let n=0;for(;i+1<e.length&&e.charAt(i+1)===s;)n++,i++;let o=1+(1&n),h=n<2?1:3+(n>>1),a=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(L[t||""]||L[i||""]||L[`${i}-001`]||L["001"])[0]}(t);for(("H"==a||"k"==a)&&(h=0);h-- >0;)r+="a";for(;o-- >0;)r=a+r}else"J"===s?r+="H":r+=s}return r}(t,this.locale)),{val:{type:"date"===n?3:4,value:r,location:s,style:{type:1,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(b,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(i):{}}},err:null}}}return{val:{type:"number"===n?2:"date"===n?3:4,value:r,location:s,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{let s=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,O(s,{...s}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),h=0;if("select"!==n&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(13,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=e.val}let a=this.tryParsePluralOrSelectOptions(e,n,t,o);if(a.err)return a;let l=this.tryParseArgumentClose(i);if(l.err)return l;let u=O(i,this.clonePosition());if("select"===n)return{val:{type:5,value:r,options:D(a.val),location:u},err:null};return{val:{type:6,value:r,options:D(a.val),offset:h,pluralType:"plural"===n?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,O(s,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,O(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,O(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(H).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...s]=t;for(let e of s)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...I(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(d,function(e,r,i,s,n,o){if(r)t.minimumIntegerDigits=i.length;else if(s&&n)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(y.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(y,function(e,r,i,s,n,o){return"*"===i?t.minimumFractionDigits=r.length:s&&"#"===s[0]?t.maximumFractionDigits=s.length:n&&o?(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...A(e)});continue}if(B.test(r.stem)){t={...t,...A(r.stem)};continue}let e=S(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let s=!1,n=[],o=new Set,{value:h,location:a}=i;for(;;){if(0===h.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;a=O(e,this.clonePosition()),h=this.message.slice(e.offset,this.offset())}else break}if(o.has(h))return this.error("select"===t?21:20,a);"other"===h&&(s=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,O(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,r);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;n.push([h,{value:l.val,location:O(i,this.clonePosition())}]),o.add(h),this.bumpSpace(),{value:h,location:a}=this.parseIdentifierIfPossible()}return 0===n.length?this.error("select"===t?15:16,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(22,O(this.clonePosition(),this.clonePosition())):{val:n,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let s=!1,n=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)s=!0,n=10*n+(e-48),this.bump();else break}let o=O(i,this.clonePosition());return s?Number.isSafeInteger(n*=r)?{val:n,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function K(e){return e>=97&&e<=122||e>=65&&e<=90}function x(e,t={}){let r=new V(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(N[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,5===t.type||6===t.type)for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else 2===t.type&&_(t.style)||(3===t.type||4===t.type)&&P(t.style)?delete t.style.location:8===t.type&&e(t.children)})}(r.val),r.val}var Z=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},X=class extends Z{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",i)}},Y=class extends Z{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},j=class extends Z{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function $(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var W=class e{constructor(t,r=e.defaultLocale,i,n){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&0===t.type&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r},this.formatToParts=e=>(function e(t,r,i,s,n,o,h){if(1===t.length&&0===t[0].type)return[{type:0,value:t[0].value}];let a=[];for(let l of t){if(0===l.type){a.push({type:0,value:l.value});continue}if(7===l.type){"number"==typeof o&&a.push({type:0,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=l;if(!(n&&t in n))throw new j(t,h);let u=n[t];if(1===l.type){u&&"string"!=typeof u&&"number"!=typeof u&&"bigint"!=typeof u||(u="string"==typeof u||"number"==typeof u||"bigint"==typeof u?String(u):""),a.push({type:+("string"!=typeof u),value:u});continue}if(3===l.type){let e="string"==typeof l.style?s.date[l.style]:P(l.style)?l.style.parsedOptions:void 0;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(4===l.type){let e="string"==typeof l.style?s.time[l.style]:P(l.style)?l.style.parsedOptions:s.time.medium;a.push({type:0,value:i.getDateTimeFormat(r,e).format(u)});continue}if(2===l.type){let e="string"==typeof l.style?s.number[l.style]:_(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof u){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);u*=BigInt(t)}else u*=t}a.push({type:0,value:i.getNumberFormat(r,e).format(u)});continue}if(8===l.type){let{children:t,value:u}=l,c=n[u];if("function"!=typeof c)throw new Y(u,"function",h);let m=c(e(t,r,i,s,n,o).map(e=>e.value));Array.isArray(m)||(m=[m]),a.push(...m.map(e=>({type:+("string"!=typeof e),value:e})))}if(5===l.type){let t=u,o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other;if(!o)throw new X(l.value,u,Object.keys(l.options),h);a.push(...e(o.value,r,i,s,n));continue}if(6===l.type){let t=`=${u}`,o=Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new Z(`Intl.PluralRules is not available in this environment.
2
- Try polyfilling it using "@formatjs/intl-pluralrules"
3
- `,"MISSING_INTL_API",h);let e="bigint"==typeof u?Number(u):u,t=i.getPluralRules(r,{type:l.pluralType}).select(e-(l.offset||0));o=(Object.prototype.hasOwnProperty.call(l.options,t)?l.options[t]:void 0)||l.options.other}if(!o)throw new X(l.value,u,Object.keys(l.options),h);let c="bigint"==typeof u?Number(u):u;a.push(...e(o.value,r,i,s,n,c-(l.offset||0)));continue}}return a.length<2?a:a.reduce((e,t)=>{let r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...r}=n||{};this.ast=e.__parse(t,{...r,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var s,n;return r[i]=(s=e[i],(n=t[i])?{...s,...n,...Object.keys(s).reduce((e,t)=>(e[t]={...s[t],...n[t]},e),{})}:s),r},{...e}):e}(e.formats,i),this.formatters=n&&n.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:s((...e)=>new Intl.NumberFormat(...e),{cache:$(e.number),strategy:u.variadic}),getDateTimeFormat:s((...e)=>new Intl.DateTimeFormat(...e),{cache:$(e.dateTime),strategy:u.variadic}),getPluralRules:s((...e)=>new Intl.PluralRules(...e),{cache:$(e.pluralRules),strategy:u.variadic})}}(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}}static{this.__parse=x}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};function z(...[e,t,r,s]){let n;if(Array.isArray(t))throw new c(m.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new c(m.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}<#|']/.test(t)?void 0:t;if(e)return e}let{cache:o,formats:h,formatters:a,globalFormats:l,locale:u,timeZone:f}=s;a.getMessageFormat||(a.getMessageFormat=p((...e)=>new W(e[0],e[1],e[2],{formatters:a,...e[3]}),o.message));try{n=a.getMessageFormat(t,u,function(e,t,r){let i=W.formats.date,s=W.formats.time,n={...e?.dateTime,...t?.dateTime},o={date:{...i,...n},time:{...s,...n},number:{...e?.number,...t?.number}};return r&&["date","time"].forEach(e=>{let t=o[e];for(let[e,i]of Object.entries(t))t[e]={timeZone:r,...i}}),o}(l,h,f),{formatters:{...a,getDateTimeFormat:(e,t)=>a.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??f})}})}catch(e){throw new c(m.INVALID_MESSAGE,void 0)}let g=n.format(r);return(0,i.isValidElement)(g)||Array.isArray(g)||"string"==typeof g?g:String(g)}function q(...e){return e.filter(Boolean).join(".")}function J(e){return q(e.namespace,e.key)}function Q(e){console.error(e)}function ee(e,t,r,i){let s=q(i,r);if(!t)throw Error(s);let n=t;return r.split(".").forEach(t=>{let r=n[t];if(null==t||null==r)throw Error(s+` (${e})`);n=r}),n}z.raw=!0;let et={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var er=r(7893);let ei=(0,i.createContext)(void 0);function es({children:e,formats:t,getMessageFallback:r,locale:s,messages:n,now:o,onError:h,timeZone:a}){let l=(0,i.useContext)(ei),u=(0,i.useMemo)(()=>l?.cache||f(),[s,l?.cache]),c=(0,i.useMemo)(()=>l?.formatters||E(u),[u,l?.formatters]),m=(0,i.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...s}){return{...s,formats:e||void 0,messages:r||void 0,onError:i||Q,getMessageFallback:t||J}}({locale:s,formats:void 0===t?l?.formats:t,getMessageFallback:r||l?.getMessageFallback,messages:void 0===n?l?.messages:n,now:o||l?.now,onError:h||l?.onError,timeZone:a||l?.timeZone}),formatters:c,cache:u}),[u,t,c,r,s,n,o,h,l,a]);return(0,er.jsx)(ei.Provider,{value:m,children:e})}function en(){let e=(0,i.useContext)(ei);if(!e)throw Error(void 0);return e}let eo=!1,eh="undefined"==typeof window;function ea(e){return function(e,t,r){let{cache:s,formats:n,formatters:o,getMessageFallback:h,locale:a,onError:l,timeZone:u}=en(),f=e["!"],p="!"===t?void 0:t.slice((r+".").length);return u||eo||!eh||(eo=!0,l(new c(m.ENVIRONMENT_FALLBACK,void 0))),(0,i.useMemo)(()=>(function(e){let t=function(e,t,r){try{if(!t)throw Error(void 0);let i=r?ee(e,t,r):t;if(!i)throw Error(r);return i}catch(e){return new c(m.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);return function({cache:e,formats:t,formatters:r,getMessageFallback:s=J,locale:n,messagesOrError:o,namespace:h,onError:a,timeZone:l}){let u=o instanceof c;function f(e,t,r,i){let n=new c(t,r);return a(n),i??s({error:n,key:e,namespace:h})}function p(p,g,E,b){let H;if(u){if(!b)return a(o),s({error:o,key:p,namespace:h});H=b}else try{H=ee(n,o,p,h)}catch(e){if(!b)return f(p,m.MISSING_MESSAGE,e.message,b);H=b}try{let s=q(h,p);return z(s,H,g?function(e){let t={};return Object.keys(e).forEach(r=>{let s,n=0,o=e[r];s="function"==typeof o?e=>{let t=o(e);return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{key:r+n++}):t}:o,t[r]=s}),t}(g):g,{cache:e,formatters:r,globalFormats:t,formats:E,locale:n,timeZone:l})}catch(r){let e,t;return r instanceof c?(e=r.code,t=r.originalMessage):(e=m.FORMATTING_ERROR,t=r.message),f(p,e,t,b)}}function g(e,t,r,i){let s=p(e,t,r,i);return"string"!=typeof s?f(e,m.INVALID_MESSAGE,void 0):s}return g.rich=p,g.markup=(e,t,r,i)=>p(e,t,r,i),g.raw=e=>{if(u)return a(o),s({error:o,key:e,namespace:h});try{return ee(n,o,e,h)}catch(t){return f(e,m.MISSING_MESSAGE,t.message)}},g.has=e=>{if(u)return!1;try{return ee(n,o,e,h),!0}catch{return!1}},g}({...e,messagesOrError:t})})({cache:s,formatters:o,getMessageFallback:h,messages:f,namespace:p,onError:l,formats:n,locale:a,timeZone:u}),[s,o,h,f,p,l,n,a,u])}({"!":en().messages},e?`!.${e}`:"!","!")}function el(){return en().locale}function eu(){let{formats:e,formatters:t,locale:r,now:s,onError:n,timeZone:o}=en();return(0,i.useMemo)(()=>(function(e){let{_cache:t=f(),_formatters:r=E(t),formats:i,locale:s,onError:n=Q,timeZone:o}=e;function h(e){return e?.timeZone||(o?e={...e,timeZone:o}:n(new c(m.ENVIRONMENT_FALLBACK,void 0))),e}function a(e,t,r,i,s){let o;try{o=function(e,t,r){let i;if("string"==typeof t){if(!(i=e?.[t])){let e=new c(m.MISSING_FORMAT,void 0);throw n(e),e}}else i=t;return r&&(i={...i,...r}),i}(r,e,t)}catch{return s()}try{return i(o)}catch(e){return n(new c(m.FORMATTING_ERROR,e.message)),s()}}function l(e,t,n){return a(t,n,i?.dateTime,t=>(t=h(t),r.getDateTimeFormat(s,t).format(e)),()=>String(e))}function u(){return e.now?e.now:(n(new c(m.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:l,number:function(e,t,n){return a(t,n,i?.number,t=>r.getNumberFormat(s,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var i;let n,o,h={};t instanceof Date||"number"==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):u(),o=t.unit,h.style=t.style,h.numberingSystem=t.numberingSystem),n||(n=u());let a=(new Date(e).getTime()-n.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<2628e3?"week":t<31536e3?"month":"year"}(a)),h.numeric="second"===o?"auto":"always";let l=(i=o,Math.round(a/et[i]));return r.getRelativeTimeFormat(s,h).format(l,o)}catch(t){return n(new c(m.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,n){let o=[],h=new Map,l=0;for(let t of e){let e;"object"==typeof t?(e=String(l),h.set(e,t)):e=String(t),o.push(e),l++}return a(t,n,i?.list,e=>{let t=r.getListFormat(s,e).formatToParts(o).map(e=>"literal"===e.type?e.value:h.get(e.value)||e.value);return h.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,n,o){return a(n,o,i?.dateTime,i=>(i=h(i),r.getDateTimeFormat(s,i).formatRange(e,t)),()=>[l(e),l(t)].join(" – "))},displayName:function(e,t,n){return a(t,n,i?.displayName,t=>r.getDisplayNames(s,t).of(e),()=>e)}}})({formats:e,locale:r,now:s,onError:n,timeZone:o,_formatters:t}),[e,t,s,r,n,o])}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8287],{1536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(e.RESOURCEPATH)]})})},e.RESOURCEPATH="/synonym_sets",e}()},2504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},3740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(){return e.RESOURCEPATH},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/nl_search_models"},enumerable:!1,configurable:!0}),e}()},4358:(e,t,r)=>{"use strict";var n=r(16298);Object.defineProperty(t,"__esModule",{value:!0});var i=r(13083),o=r(52800),a=r(12072),s=void 0!==n&&null!=n.versions&&null!=n.versions.node;t.default=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return i.__extends(t,e),t.prototype.create=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),i.__generator(this,function(r){if(!e)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,t)]})})},t.prototype.upsert=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),i.__generator(this,function(r){if(!e)throw Error("No document provided");return[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"upsert"}))]})})},t.prototype.update=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),i.__generator(this,function(r){if(!e)throw Error("No document provided");return null!=t.filter_by?[2,this.apiCall.patch(this.endpointPath(),e,Object.assign({},t))]:[2,this.apiCall.post(this.endpointPath(),e,Object.assign({},t,{action:"update"}))]})})},t.prototype.delete=function(){return i.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e={}),i.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},t.prototype.createMany=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),i.__generator(this,function(r){return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"),[2,this.import(e,t)]})})},t.prototype.import=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){var r,n,a,u,l;return void 0===t&&(t={}),i.__generator(this,function(c){switch(c.label){case 0:if(r=i.__assign({throwOnFail:!0},t),Array.isArray(e)){if(0===e.length)throw new o.RequestMalformed("No documents provided");try{n=e.map(function(e){return JSON.stringify(e)}).join("\n")}catch(e){if(e instanceof RangeError&&e.message.includes("Too many properties to enumerate"))throw Error("".concat(e,"\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\n\n Please try reducing the number of keys in your document, or using CURL to import your data.\n "));throw Error(e)}}else{var f;if(null==(f=n=e)||""===f||0===f.length)throw new o.RequestMalformed("No documents provided")}return[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:n,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(a=c.sent(),!Array.isArray(e))return[2,a];if(!((l=(u=a.split("\n").map(function(e){return JSON.parse(e)})).filter(function(e){return!1===e.success})).length>0)||!r.throwOnFail)return[2,u];throw new o.ImportError("".concat(u.length-l.length," documents imported successfully, ").concat(l.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),u,{documentsInJSONLFormat:n,options:r,failedItems:l,successCount:u.length-l.length})}})})},t.prototype.importStream=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){var r,n,a;return void 0===t&&(t={}),i.__generator(this,function(u){switch(u.label){case 0:return r=i.__assign({throwOnFail:!0},t),[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:r,bodyParameters:e,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0,enableKeepAlive:!!s})];case 1:if(!((a=(n=u.sent().split("\n").map(function(e){return JSON.parse(e)})).filter(function(e){return!1===e.success})).length>0)||!r.throwOnFail)return[2,n];throw new o.ImportError("".concat(n.length-a.length," documents imported successfully, ").concat(a.length," documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."),n,{documentsInJSONLFormat:e,options:r,failedItems:a,successCount:n.length-a.length})}})})},t.prototype.export=function(){return i.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e={}),i.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath("export"),e)]})})},t.prototype.exportStream=function(){return i.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e={}),i.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath("export"),e,{responseType:"stream"})]})})},t}(a.SearchOnlyDocuments)},5523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(e){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items").concat(void 0===e?"":"/"+encodeURIComponent(e))},e}()},9855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(36524));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},10058:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),c=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|d(n,i),u=a(o),l=u.write(n,i);return l!==o&&(u=u.slice(0,l)),u}if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,r);var p=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(i)return n?-1:P(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,a,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=U[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,a=r,0===o&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(e,o+h)!==l(t,h)){f=!1;break}if(f)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(T(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,u=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),f=0;f<u;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:+(a<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}var h=n,d=h.length;if(d<=4096)return String.fromCharCode.apply(String,h);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return p}function _(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,c,f,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s,u=parseInt(t.substr(2*a,2),16);if((s=u)!=s)break;e[r+a]=u}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,A(P(e,this.length-i),this,i,o);case"ascii":return a=t,s=r,A(S(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return A(S(t),e,r,n)}(this,e,t,r);case"base64":return u=t,l=r,A(O(e),this,u,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,f=r,A(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,f);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||_(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||_(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),u=a.length;if(0===u)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var E=/[^+/0-9A-Za-z-_]/g;function P(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function O(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function A(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var U=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=l}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+d]=255&a,d+=p,a/=256,l-=8);e[r+d-p]|=128*g}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//",e.exports=n(72)}()},12072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyDocuments=void 0;var n=r(13083),i=n.__importDefault(r(56869)),o=n.__importDefault(r(64661)),a=r(80521),s="/documents";t.SearchOnlyDocuments=function(){function e(e,t,r){this.collectionName=e,this.apiCall=t,this.configuration=r,this.requestWithCache=new i.default}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.search=function(e){return n.__awaiter(this,arguments,void 0,function(e,t){var r,i,o,s,u,l,c=void 0===t?{}:t,f=c.cacheSearchResultsForSeconds,h=void 0===f?this.configuration.cacheSearchResultsForSeconds:f,d=c.abortSignal,p=void 0===d?null:d;return n.__generator(this,function(t){return r={},!0===this.configuration.useServerSideSearchCache&&(r.use_cache=!0),o=(i=(0,a.normalizeArrayableParams)(e)).streamConfig,s=n.__rest(i,["streamConfig"]),l=!0===(u=n.__assign(n.__assign({},r),s)).conversation_stream,[2,this.requestWithCache.perform(this.apiCall,"get",{path:this.endpointPath("search"),queryParams:u,streamConfig:o,abortSignal:p,isStreamingRequest:l},{cacheResponseForSeconds:h})]})})},e.prototype.endpointPath=function(e){return"".concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(s).concat(void 0===e?"":"/"+e)},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),e}()},12661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474)),o=n.__importDefault(r(5523)),a=n.__importDefault(r(93118));t.default=function(){function e(e,t){this.name=e,this.apiCall=t,this.individualItems={},this._items=new o.default(this.name,t)}return e.prototype.upsert=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.items=function(e){return void 0===e?this._items:(void 0===this.individualItems[e]&&(this.individualItems[e]=new a.default(this.name,e,this.apiCall)),this.individualItems[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},15746:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SearchOnlyCollection=void 0;var n=r(12072);t.SearchOnlyCollection=function(){function e(e,t,r){this.name=e,this.apiCall=t,this.configuration=r,this._documents=new n.SearchOnlyDocuments(this.name,this.apiCall,this.configuration)}return e.prototype.documents=function(){return this._documents},e}()},15887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(3740));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},16940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},18587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/debug")]})})},e}()},19505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stopwords"},enumerable:!1,configurable:!0}),e}()},19643:function(e,t,r){var n,i;!function(o,a){"use strict";void 0===(i="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=i)}(0,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],i={},o=null;function a(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),i=0;i<n.length;i++){var o=n[i];this[o]=i<r?e:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function l(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function c(n,i,o){var u;return"debug"===(u=n)&&(u="log"),typeof console!==t&&("trace"===u&&r?s:void 0!==console[u]?a(console,u):void 0!==console.log?a(console,"log"):e)||l.apply(this,arguments)}function f(e,r){var a,s,l,f=this,h="loglevel";function d(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=encodeURIComponent(h),i=r.indexOf(n+"=");-1!==i&&(e=/^([^;]+)/.exec(r.slice(i+n.length+1))[1])}catch(e){}return void 0===f.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==f.levels[t.toUpperCase()]&&(t=f.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=f.levels.SILENT)return t;throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||c,f.getLevel=function(){return null!=l?l:null!=s?s:a},f.setLevel=function(e,r){return l=p(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{window.localStorage[h]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+r+";"}catch(e){}}}(l),u.call(f)},f.setDefaultLevel=function(e){s=p(e),d()||f.setLevel(e,!1)},f.resetLevel=function(){if(l=null,typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(o!==f&&(a=p(o.getLevel())),u.call(f),o===f)for(var e in i)i[e].rebuild()},a=p(o?o.getLevel():"WARN");var g=d();null!=g&&(l=p(g)),u.call(f)}(o=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=i[e];return t||(t=i[e]=new f(e,o.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=h),o},o.getLoggers=function(){return i},o.default=o,o})},24892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));t.default=function(){function e(e,t,r){this.synonymSetName=e,this.itemId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items/").concat(encodeURIComponent(this.itemId))},e}()},26528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(t,r,n){var i=this.constructor,o=e.call(this,t)||this;return o.name=i.name,o.httpBody=r,o.httpStatus=n,Object.setPrototypeOf(o,i.prototype),o}return n.__extends(t,e),t}(Error)},27385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/conversations/models"},enumerable:!1,configurable:!0}),e}()},31065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/metrics.json")]})})},e}()},33901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},36524:(e,t,r)=>{"use strict";var n=r(10058).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var i=r(13083),o=r(88523),a=r(80521),s="/keys";t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return[2,this.apiCall.post(e.RESOURCEPATH,t)]})})},e.prototype.retrieve=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){return[2,this.apiCall.get(s)]})})},e.prototype.generateScopedSearchKey=function(e,t){var r=JSON.stringify((0,a.normalizeArrayableParams)(t)),i=n.from((0,o.createHmac)("sha256",e).update(r).digest("base64")),s=e.substr(0,4),u="".concat(i).concat(s).concat(r);return n.from(u).toString("base64")},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return s},enumerable:!1,configurable:!0}),e}()},36999:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(26182).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},40108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(19505));t.default=function(){function e(e,t){this.stopwordId=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.stopwordId))},e}()},40717:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.importResults=r,i.payload=n,i}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},42142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},43160:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(26182).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},46198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i="/operations";t.default=function(){function e(e){this.apiCall=e}return e.prototype.perform=function(e){return n.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),n.__generator(this,function(r){return[2,this.apiCall.post("".concat(i,"/").concat(e),{},t)]})})},e.prototype.getSchemaChanges=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("".concat(i,"/schema_changes"))]})})},e}()},46308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i="/aliases";t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(i)]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}()},47570:(e,t,r)=>{"use strict";r.d(t,{YQ:()=>i});var n=r(28081);function i(e,t,r,i){var o=this,a=(0,n.useRef)(null),s=(0,n.useRef)(0),u=(0,n.useRef)(0),l=(0,n.useRef)(null),c=(0,n.useRef)([]),f=(0,n.useRef)(),h=(0,n.useRef)(),d=(0,n.useRef)(e),p=(0,n.useRef)(!0),g=(0,n.useRef)(),y=(0,n.useRef)();d.current=e;var m="undefined"!=typeof window,v=!t&&0!==t&&m;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var _=!!(r=r||{}).leading,b=!("trailing"in r)||!!r.trailing,w=!!r.flushOnExit&&b,C="maxWait"in r,R="debounceOnServer"in r&&!!r.debounceOnServer,E=C?Math.max(+r.maxWait||0,t):null,P=(0,n.useMemo)(function(){var e=function(e){var t=c.current,r=f.current;return c.current=f.current=null,s.current=e,u.current=u.current||e,h.current=d.current.apply(r,t)},r=function(e,t){v&&cancelAnimationFrame(l.current),l.current=v?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!p.current)return!1;var r=e-a.current;return!a.current||r>=t||r<0||C&&e-s.current>=E},P=function(t){return l.current=null,b&&c.current?e(t):(c.current=f.current=null,h.current)},S=function e(){var i=Date.now();if(_&&u.current===s.current&&O(),n(i))return P(i);if(p.current){var o=t-(i-a.current);r(e,C?Math.min(o,E-(i-s.current)):o)}},O=function(){i&&i({})},A=function(){if(m||R){var i,u=Date.now(),d=n(u);if(c.current=[].slice.call(arguments),f.current=o,a.current=u,w&&!g.current&&(g.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&y.current.flush()},null==(i=globalThis.document)||null==i.addEventListener||i.addEventListener("visibilitychange",g.current)),d){if(!l.current&&p.current)return s.current=a.current,r(S,t),_?e(a.current):h.current;if(C)return r(S,t),e(a.current)}return l.current||r(S,t),h.current}};return A.cancel=function(){var e=l.current;e&&(v?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,c.current=a.current=f.current=l.current=null,e&&i&&i({})},A.isPending=function(){return!!l.current},A.flush=function(){return l.current?P(Date.now()):h.current},A},[_,C,t,E,b,w,v,m,R,i]);return y.current=P,(0,n.useEffect)(function(){return p.current=!0,function(){var e;w&&y.current.flush(),g.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",g.current),g.current=null),p.current=!1}},[w]),P}},47684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(46308));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},50360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675)),o=n.__importDefault(r(53798)),a=n.__importDefault(r(50529));t.default=function(){function e(e){this.apiCall=e,this.individualAnalyticsRules={},this.apiCall=e,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return e.prototype.rules=function(e){return void 0===e?this._analyticsRules:(void 0===this.individualAnalyticsRules[e]&&(this.individualAnalyticsRules[e]=new o.default(e,this.apiCall)),this.individualAnalyticsRules[e])},e.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),e}()},50529:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e)]})})},e.prototype.retrieve=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(this.endpointPath(),e)]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/events"},enumerable:!1,configurable:!0}),e}()},52641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},52800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportError=t.TypesenseError=t.ServerError=t.RequestUnauthorized=t.RequestMalformed=t.ObjectUnprocessable=t.ObjectNotFound=t.ObjectAlreadyExists=t.MissingConfigurationError=t.HTTPError=void 0;var n=r(13083);t.HTTPError=n.__importDefault(r(56066)).default,t.MissingConfigurationError=n.__importDefault(r(78444)).default,t.ObjectAlreadyExists=n.__importDefault(r(52641)).default,t.ObjectNotFound=n.__importDefault(r(75980)).default,t.ObjectUnprocessable=n.__importDefault(r(33901)).default,t.RequestMalformed=n.__importDefault(r(42142)).default,t.RequestUnauthorized=n.__importDefault(r(58479)).default,t.ServerError=n.__importDefault(r(68379)).default,t.ImportError=n.__importDefault(r(40717)).default,t.TypesenseError=n.__importDefault(r(26528)).default},53798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57675));t.default=function(){function e(e,t){this.name=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},54619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536)),o=n.__importDefault(r(83713)),a=n.__importDefault(r(24892));t.default=function(){function e(e,t){this.synonymSetName=e,this.apiCall=t,this.individualItems={},this._items=new o.default(this.synonymSetName,t)}return e.prototype.upsert=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.items=function(e){return void 0===e?this._items:(void 0===this.individualItems[e]&&(this.individualItems[e]=new a.default(this.synonymSetName,e,this.apiCall)),this.individualItems[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName))},e}()},54703:(e,t,r)=>{"use strict";t._t=void 0;var n=r(13083),i=n.__importDefault(r(72343));i.default;var o=n.__importDefault(r(74487));t._t=o.default,n.__importStar(r(52800)),i.default,o.default},56066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},56869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(){this.responseCache=new Map,this.responsePromiseCache=new Map}return e.prototype.clearCache=function(){this.responseCache=new Map,this.responsePromiseCache=new Map},e.prototype.perform=function(e,t,r,i){return n.__awaiter(this,void 0,void 0,function(){var o,a,s,u,l,c,f,h,d,p,g,y,m,v,_,b,w,C,R,E,P;return n.__generator(this,function(n){switch(n.label){case 0:if(s=void 0===(a=(o=i||{}).cacheResponseForSeconds)?120:a,l=void 0===(u=o.maxSize)?100:u,c=void 0===i||s<=0||l<=0,f=r.path,h=r.queryParams,d=r.body,p=r.headers,g=r.streamConfig,y=r.abortSignal,m=r.responseType,v=r.isStreamingRequest,c)return[2,this.executeRequest(e,t,f,h,d,p,{abortSignal:y,responseType:m,streamConfig:g,isStreamingRequest:v})];if(_=JSON.stringify(r),b=this.responseCache.get(_),w=Date.now(),b){if(w-b.requestTimestamp<1e3*s)return this.responseCache.delete(_),this.responseCache.set(_,b),[2,b.response];this.responseCache.delete(_)}if(C=this.responsePromiseCache.get(_)){if(w-C.requestTimestamp<1e3*s)return this.responsePromiseCache.delete(_),this.responsePromiseCache.set(_,C),[2,C.responsePromise];this.responsePromiseCache.delete(_)}return R=this.executeRequest(e,t,f,h,d,p,{abortSignal:y,responseType:m,streamConfig:g,isStreamingRequest:v}),this.responsePromiseCache.set(_,{requestTimestamp:w,responsePromise:R}),[4,R];case 1:return E=n.sent(),this.responseCache.set(_,{requestTimestamp:w,response:E}),this.responseCache.size>l&&(P=this.responseCache.keys().next().value)&&this.responseCache.delete(P),this.responsePromiseCache.size>l&&(P=this.responsePromiseCache.keys().next().value)&&this.responsePromiseCache.delete(P),[2,E]}})})},e.prototype.executeRequest=function(e,t,r,n,i,o,a){void 0===n&&(n={});var s=e[t];switch(t){case"get":return s.call(e,r,n,{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"delete":return s.call(e,r,n);case"post":return s.call(e,r,i,n,o||{},{abortSignal:null==a?void 0:a.abortSignal,responseType:null==a?void 0:a.responseType,streamConfig:null==a?void 0:a.streamConfig,isStreamingRequest:null==a?void 0:a.isStreamingRequest});case"put":case"patch":return s.call(e,r,i,n);default:throw Error("Unsupported method: ".concat(String(t)))}},e}()},57309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayableParams=void 0,t.arrayableParams={query_by:"query_by",query_by_weights:"query_by_weights",facet_by:"facet_by",group_by:"group_by",include_fields:"include_fields",exclude_fields:"exclude_fields",highlight_fields:"highlight_fields",highlight_full_fields:"highlight_full_fields",pinned_hits:"pinned_hits",hidden_hits:"hidden_hits",infix:"infix",override_tags:"override_tags",num_typos:"num_typos",prefix:"prefix",synonym_sets:"synonym_sets",sort_by:"sort_by"}},57474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.get(e.RESOURCEPATH)]})})},e.RESOURCEPATH="/curation_sets",e}()},57675:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.create=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.post(this.endpointPath(),e,{},{})]})})},e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(e){return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(r){return t={},e&&(t.rule_tag=e),[2,this.apiCall.get(this.endpointPath(),t)]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),e}()},58479:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},59871:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});let n=(e,t)=>t.some(t=>t instanceof RegExp?t.test(e):t===e),i=new Set(["https:","http:","file:"]);function o(e,t){if("string"!=typeof(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,...t}).defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return((e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:o}=r.groups,a=n.split(";"),s="base64"===a.at(-1);s&&a.pop();let u=a.shift()?.toLowerCase()??"",l=[...a.map(e=>{let[t,r=""]=e.split("=").map(e=>e.trim());return"charset"===t&&"us-ascii"===(r=r.toLowerCase())?"":`${t}${r?`=${r}`:""}`}).filter(Boolean)];s&&l.push("base64"),(l.length>0||u&&"text/plain"!==u)&&l.unshift(u);let c=t||!o?"":`#${o}`;return`data:${l.join(";")},${s?i.trim():i}${c}`})(e,t);if((e=>{try{let{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!i.has(t)}catch{return!1}})(e))return e;let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===o.protocol&&(o.protocol="http:"),t.forceHttps&&"http:"===o.protocol&&(o.protocol="https:"),t.stripAuthentication&&(o.username="",o.password=""),t.stripHash?o.hash="":t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,"")),o.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,r="";for(;;){let n=e.exec(o.pathname);if(!n)break;let i=n[0],a=n.index;r+=o.pathname.slice(t,a).replace(/\/{2,}/g,"/"),r+=i,t=a+i.length}r+=o.pathname.slice(t,o.pathname.length).replace(/\/{2,}/g,"/"),o.pathname=r}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replace(/\\/g,"%5C")}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/").filter(Boolean),r=e.at(-1);r&&n(r,t.removeDirectoryIndex)&&(e.pop(),o.pathname=e.length>0?`/${e.join("/")}/`:"/")}if(t.removePath&&(o.pathname="/"),t.transformPath&&"function"==typeof t.transformPath){let e=o.pathname.split("/").filter(Boolean),r=t.transformPath(e);o.pathname=r?.length>0?`/${r.join("/")}`:"/"}if(o.hostname&&(o.hostname=o.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let e of[...o.searchParams.keys()])n(e,t.removeQueryParameters)&&o.searchParams.delete(e);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(o.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(let e of[...o.searchParams.keys()])n(e,t.keepQueryParameters)||o.searchParams.delete(e);if(t.sortQueryParameters){let e=o.search;o.searchParams.sort();try{o.search=decodeURIComponent(o.search)}catch{}for(let t of e.slice(1).split("&").filter(e=>e&&!e.includes("="))){let e=decodeURIComponent(t);o.search=o.search.replace(`?${e}=`,`?${e}`).replace(`&${e}=`,`&${e}`)}}t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,"")),t.removeExplicitPort&&o.port&&(o.port="");let a=e;return e=o.toString(),t.removeSingleSlash||"/"!==o.pathname||a.endsWith("/")||""!==o.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===o.pathname)&&""===o.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},64661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i="/collections";t.default=function(){function e(e){this.apiCall=e}return e.prototype.create=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.post(i,e,t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e={}),n.__generator(this,function(t){return[2,this.apiCall.get(i,e)]})})},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return i},enumerable:!1,configurable:!0}),e}()},65308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r,i;return n.__generator(this,function(n){switch(n.label){case 0:return r=Array.isArray(t)?t.map(function(e){return JSON.stringify(e)}).join("\n"):t,[4,this.apiCall.performRequest("post",this.endpointPath("import"),{queryParameters:{id:e},bodyParameters:r,additionalHeaders:{"Content-Type":"text/plain"},skipConnectionTimeout:!0})];case 1:return i=n.sent(),[2,Array.isArray(t)?i.split("\n").map(function(e){return JSON.parse(e)}):i]}})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return void 0===t?"".concat(e.RESOURCEPATH):"".concat(e.RESOURCEPATH,"/").concat(encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming/dictionaries"},enumerable:!1,configurable:!0}),e}()},65674:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/health")]})})},e}()},65873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358));t.Document=function(){function e(e,t,r){this.collectionName=e,this.documentId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},e.prototype.update=function(e){return n.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),n.__generator(this,function(r){return[2,this.apiCall.patch(this.endpointPath(),e,t)]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.documentId))},e}()},66178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importStar(r(19643)),o=r(52800);t.default=function(){function e(e){var t=this;this.nodes=e.nodes||[],this.nodes=this.nodes.map(function(e){return t.setDefaultPathInNode(e)}).map(function(e){return t.setDefaultPortInNode(e)}).map(function(e){return n.__assign({},e)}),null==e.randomizeNodes&&(e.randomizeNodes=!0),!0===e.randomizeNodes&&this.shuffleArray(this.nodes),this.nearestNode=e.nearestNode,this.nearestNode=this.setDefaultPathInNode(this.nearestNode),this.nearestNode=this.setDefaultPortInNode(this.nearestNode),this.connectionTimeoutSeconds=e.connectionTimeoutSeconds||e.timeoutSeconds||5,this.healthcheckIntervalSeconds=e.healthcheckIntervalSeconds||60,this.numRetries=(void 0!==e.numRetries&&e.numRetries>=0?e.numRetries:this.nodes.length+ +(null!=this.nearestNode))||3,this.retryIntervalSeconds=e.retryIntervalSeconds||.1,this.apiKey=e.apiKey,this.sendApiKeyAsQueryParam=e.sendApiKeyAsQueryParam,this.cacheSearchResultsForSeconds=e.cacheSearchResultsForSeconds||0,this.useServerSideSearchCache=e.useServerSideSearchCache||!1,this.axiosAdapter=e.axiosAdapter,this.logger=e.logger||i,this.logLevel=e.logLevel||"warn",this.logger.setLevel(this.logLevel),this.additionalHeaders=e.additionalHeaders,this.httpAgent=e.httpAgent,this.httpsAgent=e.httpsAgent,this.paramsSerializer=e.paramsSerializer,this.showDeprecationWarnings(e),this.validate()}return e.prototype.validate=function(){if(null==this.nodes||0===this.nodes.length||this.validateNodes())throw new o.MissingConfigurationError("Ensure that nodes[].protocol, nodes[].host and nodes[].port are set");if(null!=this.nearestNode&&this.isNodeMissingAnyParameters(this.nearestNode))throw new o.MissingConfigurationError("Ensure that nearestNodes.protocol, nearestNodes.host and nearestNodes.port are set");if(null==this.apiKey)throw new o.MissingConfigurationError("Ensure that apiKey is set");return!0},e.prototype.validateNodes=function(){var e=this;return this.nodes.some(function(t){return e.isNodeMissingAnyParameters(t)})},e.prototype.isNodeMissingAnyParameters=function(e){return!["protocol","host","port","path"].every(function(t){return e.hasOwnProperty(t)})&&null==e.url},e.prototype.setDefaultPathInNode=function(e){return null==e||e.hasOwnProperty("path")||(e.path=""),e},e.prototype.setDefaultPortInNode=function(e){if(null!=e&&!e.hasOwnProperty("port")&&e.hasOwnProperty("protocol"))switch(e.protocol){case"https":e.port=443;break;case"http":e.port=80}return e},e.prototype.showDeprecationWarnings=function(e){e.timeoutSeconds&&this.logger.warn("Deprecation warning: timeoutSeconds is now renamed to connectionTimeoutSeconds"),e.masterNode&&this.logger.warn("Deprecation warning: masterNode is now consolidated to nodes, starting with Typesense Server v0.12"),e.readReplicaNodes&&this.logger.warn("Deprecation warning: readReplicaNodes is now consolidated to nodes, starting with Typesense Server v0.12")},e.prototype.shuffleArray=function(e){for(var t,r=e.length-1;r>0;r--){var n=Math.floor(Math.random()*(r+1));t=[e[n],e[r]],e[r]=t[0],e[n]=t[1]}},e}()},67417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(72158));t.default=function(){function e(e,t,r){this.collectionName=e,this.synonymId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return e.hasWarnedDeprecation||(console.warn("[typesense] 'synonym' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets 'synonym_sets'."),e.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymId))},e.hasWarnedDeprecation=!1,e}()},68379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},69015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94420));t.default=function(){function e(e,t){this.presetId=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.presetId))},e}()},69039:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(83292));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},69256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(4358)),a=r(52800),s=n.__importDefault(r(98669)),u=n.__importDefault(r(70064)),l=n.__importDefault(r(72158)),c=n.__importDefault(r(67417)),f=r(65873);t.default=function(){function e(e,t,r){this.name=e,this.apiCall=t,this.configuration=r,this.individualDocuments={},this.individualOverrides={},this.individualSynonyms={},this.name=e,this.apiCall=t,this.configuration=r,this._documents=new o.default(this.name,this.apiCall,this.configuration),this._overrides=new s.default(this.name,this.apiCall),this._synonyms=new l.default(this.name,this.apiCall)}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.patch(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,arguments,void 0,function(e){return void 0===e&&(e={}),n.__generator(this,function(t){return[2,this.apiCall.delete(this.endpointPath(),e)]})})},e.prototype.exists=function(){return n.__awaiter(this,void 0,void 0,function(){var e;return n.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.retrieve()];case 1:return t.sent(),[2,!0];case 2:if((e=t.sent())instanceof a.ObjectNotFound)return[2,!1];throw e;case 3:return[2]}})})},e.prototype.documents=function(e){return e?(void 0===this.individualDocuments[e]&&(this.individualDocuments[e]=new f.Document(this.name,e,this.apiCall)),this.individualDocuments[e]):this._documents},e.prototype.overrides=function(e){return void 0===e?this._overrides:(void 0===this.individualOverrides[e]&&(this.individualOverrides[e]=new u.default(this.name,e,this.apiCall)),this.individualOverrides[e])},e.prototype.synonyms=function(e){return void 0===e?this._synonyms:(void 0===this.individualSynonyms[e]&&(this.individualSynonyms[e]=new c.default(this.name,e,this.apiCall)),this.individualSynonyms[e])},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name))},e}()},70064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661)),o=n.__importDefault(r(98669));t.default=function(){function e(e,t,r){this.collectionName=e,this.overrideId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(o.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.overrideId))},e}()},71869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(56869)),o=r(80521);t.default=function(){function e(e,t,r){void 0===r&&(r=!1),this.apiCall=e,this.configuration=t,this.useTextContentType=r,this.requestWithCache=new i.default,this.logger=this.apiCall.logger}return e.prototype.clearCache=function(){this.requestWithCache.clearCache()},e.prototype.perform=function(e,t,r){return n.__awaiter(this,void 0,void 0,function(){var i,a,s,u,l,c,f;return n.__generator(this,function(h){return i=t?n.__assign({},t):{},a=null!=(f=null==r?void 0:r.cacheSearchResultsForSeconds)?f:this.configuration.cacheSearchResultsForSeconds,!0===this.configuration.useServerSideSearchCache&&(i.use_cache=!0),!0===e.union&&this.hasAnySearchObjectPagination(e)&&this.logger.warn("Individual `searches` pagination parameters are ignored when `union: true` is set. Use a top-level pagination parameter instead. See https://typesense.org/docs/29.0/api/federated-multi-search.html#union-search"),s={union:e.union,searches:e.searches.map(o.normalizeArrayableParams)},u=i.streamConfig,l=n.__rest(i,["streamConfig"]),c=(0,o.normalizeArrayableParams)(l),[2,this.requestWithCache.perform(this.apiCall,"post",{path:"/multi_search",body:s,queryParams:c,headers:this.useTextContentType?{"content-type":"text/plain"}:{},streamConfig:u,abortSignal:null==r?void 0:r.abortSignal,isStreamingRequest:this.isStreamingRequest(i)},void 0!==a?{cacheResponseForSeconds:a}:void 0)]})})},e.prototype.isStreamingRequest=function(e){return void 0!==e.streamConfig},e.prototype.hasAnySearchObjectPagination=function(e){return e.searches.some(function(e){return void 0!==e.page||void 0!==e.per_page||void 0!==e.offset||void 0!==e.limit||void 0!==e.limit_hits})},e}()},72158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));t.default=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return e.hasWarnedDeprecation||(console.warn("[typesense] 'synonyms' APIs are deprecated starting with Typesense Server v30. Please migrate to synonym sets ('synonym_sets')."),e.hasWarnedDeprecation=!0),"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.collectionName)).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/synonyms"},enumerable:!1,configurable:!0}),e.hasWarnedDeprecation=!1,e}()},72343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(99680)),a=n.__importDefault(r(64661)),s=n.__importDefault(r(69256)),u=n.__importDefault(r(46308)),l=n.__importDefault(r(47684)),c=n.__importDefault(r(36524)),f=n.__importDefault(r(9855)),h=n.__importDefault(r(18587)),d=n.__importDefault(r(31065)),p=n.__importDefault(r(72639)),g=n.__importDefault(r(65674)),y=n.__importDefault(r(46198)),m=n.__importDefault(r(71869)),v=n.__importDefault(r(94420)),_=n.__importDefault(r(69015)),b=n.__importDefault(r(78513)),w=n.__importDefault(r(50360)),C=n.__importDefault(r(19505)),R=n.__importDefault(r(40108)),E=n.__importDefault(r(83292)),P=n.__importDefault(r(69039)),S=n.__importDefault(r(97872)),O=n.__importDefault(r(3740)),A=n.__importDefault(r(15887)),T=n.__importDefault(r(1536)),U=n.__importDefault(r(54619)),N=n.__importDefault(r(57474)),j=n.__importDefault(r(12661));t.default=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null!=(t=e.sendApiKeyAsQueryParam)&&t,this.configuration=new i.default(e),this.apiCall=new o.default(this.configuration),this.debug=new h.default(this.apiCall),this.metrics=new d.default(this.apiCall),this.stats=new p.default(this.apiCall),this.health=new g.default(this.apiCall),this.operations=new y.default(this.apiCall),this.multiSearch=new m.default(this.apiCall,this.configuration),this._collections=new a.default(this.apiCall),this.individualCollections={},this._aliases=new u.default(this.apiCall),this.individualAliases={},this._keys=new c.default(this.apiCall),this.individualKeys={},this._presets=new v.default(this.apiCall),this.individualPresets={},this._stopwords=new C.default(this.apiCall),this.individualStopwords={},this.analytics=new w.default(this.apiCall),this.analyticsV1=new b.default(this.apiCall),this.stemming=new S.default(this.apiCall),this._conversations=new E.default(this.apiCall),this.individualConversations={},this._nlSearchModels=new O.default(this.apiCall),this.individualNLSearchModels={},this._synonymSets=new T.default(this.apiCall),this.individualSynonymSets={},this._curationSets=new N.default(this.apiCall),this.individualCurationSets={}}return e.prototype.collections=function(e){return void 0===e?this._collections:(void 0===this.individualCollections[e]&&(this.individualCollections[e]=new s.default(e,this.apiCall,this.configuration)),this.individualCollections[e])},e.prototype.aliases=function(e){return void 0===e?this._aliases:(void 0===this.individualAliases[e]&&(this.individualAliases[e]=new l.default(e,this.apiCall)),this.individualAliases[e])},e.prototype.keys=function(e){return void 0===e?this._keys:(void 0===this.individualKeys[e]&&(this.individualKeys[e]=new f.default(e,this.apiCall)),this.individualKeys[e])},e.prototype.presets=function(e){return void 0===e?this._presets:(void 0===this.individualPresets[e]&&(this.individualPresets[e]=new _.default(e,this.apiCall)),this.individualPresets[e])},e.prototype.stopwords=function(e){return void 0===e?this._stopwords:(void 0===this.individualStopwords[e]&&(this.individualStopwords[e]=new R.default(e,this.apiCall)),this.individualStopwords[e])},e.prototype.conversations=function(e){return void 0===e?this._conversations:(void 0===this.individualConversations[e]&&(this.individualConversations[e]=new P.default(e,this.apiCall)),this.individualConversations[e])},e.prototype.nlSearchModels=function(e){return void 0===e?this._nlSearchModels:(void 0===this.individualNLSearchModels[e]&&(this.individualNLSearchModels[e]=new A.default(e,this.apiCall)),this.individualNLSearchModels[e])},e.prototype.synonymSets=function(e){return void 0===e?this._synonymSets:(void 0===this.individualSynonymSets[e]&&(this.individualSynonymSets[e]=new U.default(e,this.apiCall)),this.individualSynonymSets[e])},e.prototype.curationSets=function(e){return void 0===e?this._curationSets:(void 0===this.individualCurationSets[e]&&(this.individualCurationSets[e]=new j.default(e,this.apiCall)),this.individualCurationSets[e])},e}()},72639:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get("/stats.json")]})})},e}()},73284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385));t.default=function(){function e(e,t){this.id=e,this.apiCall=t}return e.prototype.update=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.id))},e}()},74487:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(66178)),o=n.__importDefault(r(99680)),a=n.__importDefault(r(71869)),s=r(15746);t.default=function(){function e(e){var t;e.sendApiKeyAsQueryParam=null==(t=e.sendApiKeyAsQueryParam)||t,!0===e.sendApiKeyAsQueryParam&&(e.apiKey||"").length>2e3&&(console.warn("[typesense] API Key is longer than 2000 characters which is over the allowed limit, so disabling sending it as a query parameter."),e.sendApiKeyAsQueryParam=!1),this.configuration=new i.default(e),this.apiCall=new o.default(this.configuration),this.multiSearch=new a.default(this.apiCall,this.configuration,!0),this.individualCollections={}}return e.prototype.clearCache=function(){this.multiSearch.clearCache(),Object.entries(this.individualCollections).forEach(function(e){e[0],e[1].documents().clearCache()})},e.prototype.collections=function(e){if(e)return void 0===this.individualCollections[e]&&(this.individualCollections[e]=new s.SearchOnlyCollection(e,this.apiCall,this.configuration)),this.individualCollections[e];throw Error("Typesense.SearchClient only supports search operations, so the collectionName that needs to be searched must be specified. Use Typesense.Client if you need to access the collection object.")},e}()},75980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},77499:(e,t,r)=>{"use strict";var n,i,o=r(16298);function a(e,t){return function(){return e.apply(t,arguments)}}let{toString:s}=Object.prototype,{getPrototypeOf:u}=Object,{iterator:l,toStringTag:c}=Symbol,f=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),h=(e,t)=>{let r=e,n=[];for(;null!=r&&r!==Object.prototype&&-1===n.indexOf(r);){if(n.push(r),f(r,t))return!0;r=u(r)}return!1},d=(e=>t=>{let r=s.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>d(t)===e),g=e=>t=>typeof t===e,{isArray:y}=Array,m=g("undefined");function v(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let _=p("ArrayBuffer"),b=g("string"),w=g("function"),C=g("number"),R=e=>null!==e&&"object"==typeof e,E=e=>{if(!R(e))return!1;let t=u(e);return(null===t||t===Object.prototype||null===u(t))&&!h(e,c)&&!h(e,l)},P=p("Date"),S=p("File"),O=p("Blob"),A=p("FileList"),T=p("Set"),U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},N=void 0!==U.FormData?U.FormData:void 0,j=p("URLSearchParams"),[x,D,k,I]=["ReadableStream","Request","Response","Headers"].map(p);function M(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),y(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(v(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}function L(e,t){let r;if(v(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,q=e=>!m(e)&&e!==B,H=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&u(Uint8Array)),F=p("HTMLFormElement"),{propertyIsEnumerable:z}=Object.prototype,W=p("RegExp"),$=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};M(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},J=p("AsyncFunction"),K=(n="function"==typeof setImmediate,i=w(B.postMessage),n?setImmediate:i?((e,t)=>(B.addEventListener("message",({source:r,data:n})=>{r===B&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),B.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(B):void 0!==o&&o.nextTick||K,V=e=>null!=e&&w(e[l]);var X={isArray:y,isArrayBuffer:_,isBuffer:v,isFormData:e=>{if(!e)return!1;if(N&&e instanceof N)return!0;let t=u(e);if(!t||t===Object.prototype||!w(e.append))return!1;let r=d(e);return"formdata"===r||"object"===r&&w(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_(e.buffer)},isString:b,isNumber:C,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:E,isEmptyObject:e=>{if(!R(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:x,isRequest:D,isResponse:k,isHeaders:I,isUndefined:m,isDate:P,isFile:S,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:O,isRegExp:W,isFunction:w,isStream:e=>R(e)&&w(e.pipe),isURLSearchParams:j,isTypedArray:H,isFileList:A,forEach:M,merge:function e(...t){let{caseless:r,skipUndefined:n}=q(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let a=r&&"string"==typeof o&&L(i,o)||o,s=f(i,a)?i[a]:void 0;E(s)&&E(t)?i[a]=e(s,t):E(t)?i[a]=e({},t):y(t)?i[a]=t.slice():n&&m(t)||(i[a]=t)};for(let e=0,r=t.length;e<r;e++){let r=t[e];if(!r||v(r)||(M(r,o),"object"!=typeof r||y(r)))continue;let n=Object.getOwnPropertySymbols(r);for(let e=0;e<n.length;e++){let t=n[e];z.call(r,t)&&o(r[t],t)}}return i},extend:(e,t,r,{allOwnKeys:n}={})=>(M(t,(t,n)=>{r&&w(t)?Object.defineProperty(e,n,{__proto__:null,value:a(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==r&&u(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:p,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(y(e))return e;let t=e.length;if(!C(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[l]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:F,hasOwnProperty:f,hasOwnProp:f,hasOwnInPrototypeChain:h,getSafeProp:(e,t)=>null!=e&&h(e,t)?e[t]:void 0,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(w(e)&&["arguments","caller","callee"].includes(r))return!1;if(w(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(y(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:L,global:B,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[c]&&e[l])},toJSONObject:e=>{let t=new WeakSet,r=e=>{if(R(e)){if(t.has(e))return;if(v(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),T(e))for(let t of(n=[],e)){let e=r(t);m(e)||n.push(e)}else n=y(e)?[]:{},M(e,(e,t)=>{let i=r(e);m(i)||(n[t]=i)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:J,isThenable:e=>e&&(R(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:K,asap:Q,isIterable:V,isSafeIterable:e=>null!=e&&h(e,l)&&V(e)};let Y=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),G=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Z=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ee(e,t){return X.isArray(e)?e.map(e=>ee(e,t)):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function et(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,r)=>{t[r]=ee(e,Z)}),t}let er=Symbol("internals");function en(e){return e&&String(e).trim().toLowerCase()}function ei(e){return!1===e||null==e?e:X.isArray(e)?e.map(ei):ee(String(e),G)}let eo=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ea(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function es(e,t,r,n,i){if(X.isFunction(n))return n.call(this,t,r);if(i&&(t=r),X.isString(t)){if(X.isString(n))return -1!==t.indexOf(n);if(X.isRegExp(n))return n.test(t)}}class eu{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=en(t);if(!i)return;let o=X.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=ei(e))}let o=(e,t)=>X.forEach(e,(e,r)=>i(e,r,t));if(X.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(X.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim())))o((e=>{let t,r,n,i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim();let o=X.hasOwnProp(i,t);!t||o&&X.hasOwnProp(Y,t)||("set-cookie"===t?o?i[t].push(r):i[t]=[r]:i[t]=o?i[t]+", "+r:r)}),i})(e),t);else if(X.isObject(e)&&X.isSafeIterable(e)){let r=Object.create(null),n,i;for(let t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");i=t[0],X.hasOwnProp(r,i)?(n=r[i],r[i]=X.isArray(n)?[...n,t[1]]:[n,t[1]]):r[i]=t[1]}o(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=en(e)){let r=X.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(X.isFunction(t))return t.call(this,e,r);if(X.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=en(e)){let r=X.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||es(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=en(e)){let i=X.findKey(r,e);i&&(!t||es(r,r[i],i,t))&&(delete r[i],n=!0)}}return X.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||es(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return X.forEach(this,(n,i)=>{let o=X.findKey(r,i);if(o){t[o]=ei(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=ei(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&X.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return X.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),r=String(e),n=0,i=!1,o=!1;function a(e){let i=ea(r.slice(n,e)),o=i.indexOf("=");if(o<1)return;let a=ea(i.slice(0,o));if(!eo.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let u=ea(i.slice(o+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n<t;n++){let i=e.charCodeAt(n);if(34===i||92===i&&(n+=1)>=t)return e;r+=e[n]}return r}(u)}for(let e=0;e<r.length;e++){let t=r.charCodeAt(e);i?o?o=!1:92===t?o=!0:34===t&&(i=!1):34===t?i=!0:(44===t||59===t)&&(a(e),n=e+1)}return a(r.length),t}(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[er]=this[er]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=en(e);if(!t[n]){let i=X.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{__proto__:null,value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return X.isArray(e)?e.forEach(n):n(e),this}}eu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(eu.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),X.freezeMethods(eu);let el="[REDACTED ****]";function ec(e){try{return String(e)}catch(e){return""}}class ef extends Error{static from(e,t,r,n,i,o){let a=e.message;!a&&X.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?ec(e.message):ec(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new ef(a,t||e.code,r,n,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&X.hasOwnProp(e,"redact")?e.redact:void 0,r=X.isArray(t)&&t.length>0?function(e,t){let r=new Set(t.map(e=>String(e).toLowerCase())),n=[],i=e=>{let t;if(null===e||"object"!=typeof e||X.isBuffer(e))return e;if(-1===n.indexOf(e)){if(e instanceof eu&&(e=e.toJSON()),n.push(e),X.isArray(e))t=[],e.forEach((e,r)=>{let n=i(e);X.isUndefined(n)||(t[r]=n)});else{if(!X.isPlainObject(e)&&function(e){if(X.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(X.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;for(let[n,o]of(t=Object.create(null),Object.entries(e))){let e=r.has(n.toLowerCase())?el:i(o);X.isUndefined(e)||(t[n]=e)}}return n.pop(),t}};return i(e)}(e,t):X.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}function eh(e){return X.isPlainObject(e)||X.isArray(e)}function ed(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,r){return e?e.concat(t).map(function(e,t){return e=ed(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}ef.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ef.ERR_BAD_OPTION="ERR_BAD_OPTION",ef.ECONNABORTED="ECONNABORTED",ef.ETIMEDOUT="ETIMEDOUT",ef.ECONNREFUSED="ECONNREFUSED",ef.ERR_NETWORK="ERR_NETWORK",ef.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ef.ERR_DEPRECATED="ERR_DEPRECATED",ef.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ef.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ef.ERR_CANCELED="ERR_CANCELED",ef.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ef.ERR_INVALID_URL="ERR_INVALID_URL",ef.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let eg=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function ey(e,t,r){if(!X.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,i=r.visitor||d,o=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===r.maxDepth?100:r.maxDepth,l=s&&X.isSpecCompliantForm(t),c=[];if(!X.isFunction(i))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!l&&X.isBlob(e))throw new ef("Blob is not supported. Use a Buffer instead.");if(X.isArrayBuffer(e)||X.isTypedArray(e)){if(l&&"function"==typeof s)return new s([e]);throw new ef("Blob is not supported. Use a Buffer instead.",ef.ERR_NOT_SUPPORT)}return e}function h(e){if(e>u)throw new ef("Object is too deeply nested ("+e+" levels). Max depth: "+u,ef.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(e,r,i){let s=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(ep(i,r,o),f(e)),!1;if(e&&!i&&"object"==typeof e)if(X.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);let r=[];return JSON.stringify(e,function(e,t){if(!X.isObject(t))return t;for(;r.length&&r[r.length-1]!==this;)r.pop();return r.push(t),h(1+r.length-1),t})}(e,0);else{var l;if(X.isArray(e)&&(l=e,X.isArray(l)&&!l.some(eh))||(X.isFileList(e)||X.endsWith(r,"[]"))&&(s=X.toArray(e)))return r=ed(r),s.forEach(function(e,n){X.isUndefined(e)||null===e||t.append(!0===a?ep([r],n,o):null===a?r:r+"[]",f(e))}),!1}return!!eh(e)||(t.append(ep(i,r,o),f(e)),!1)}let p=Object.assign(eg,{defaultVisitor:d,convertValue:f,isVisitable:eh});if(!X.isObject(e))throw TypeError("data must be an object");return!function e(r,n,o=0){if(!X.isUndefined(r)){if(h(o),-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),X.forEach(r,function(r,a){!0===(!(X.isUndefined(r)||null===r)&&i.call(t,r,X.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a],o+1)}),c.pop()}}(e),t}function em(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ev(e,t){this._pairs=[],e&&ey(e,this,t)}let e_=ev.prototype;function eb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ew(e,t,r){let n;if(!t)return e;e=e||"";let i=X.isFunction(r)?{serialize:r}:r,o=X.getSafeProp(i,"encode")||eb,a=X.getSafeProp(i,"serialize");if(n=a?a(t,i):X.isURLSearchParams(t)?t.toString():new ev(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}e_.append=function(e,t){this._pairs.push([e,t])},e_.toString=function(e){let t=e?t=>e.call(this,t,em):em;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eC{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},eE="undefined"!=typeof URLSearchParams?URLSearchParams:ev,eP="undefined"!=typeof FormData?FormData:null,eS="undefined"!=typeof Blob?Blob:null;let eO="undefined"!=typeof window&&"undefined"!=typeof document,eA="object"==typeof navigator&&navigator||void 0,eT=eO&&(!eA||0>["ReactNative","NativeScript","NS"].indexOf(eA.product)),eU="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eN=eO&&window.location.href||"http://localhost";var ej={...Object.freeze({__proto__:null,hasBrowserEnv:eO,hasStandardBrowserEnv:eT,hasStandardBrowserWebWorkerEnv:eU,navigator:eA,origin:eN}),isBrowser:!0,classes:{URLSearchParams:eE,FormData:eP,Blob:eS},protocols:["http","https","file","blob","url","data"]};function ex(e){if(e>100)throw new ef("FormData field is too deeply nested ("+e+" levels). Max depth: 100",ef.ERR_FORM_DATA_DEPTH_EXCEEDED)}function eD(e){if(X.isFormData(e)&&X.isFunction(e.entries)){let t={};return X.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){ex(i);let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&X.isArray(n)?n.length:o,s)?X.hasOwnProp(n,o)?n[o]=X.isArray(n[o])?n[o].concat(r):[n[o],r]:n[o]=r:(X.hasOwnProp(n,o)&&X.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&X.isArray(n[o])&&(n[o]=function(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o]))),!a}(function(e){let t,r=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=n.exec(e));)ex(r.length),r.push("[]"===t[0]?"":t[1]||t[0]);return r}(e),r,t,0)}),t}return null}let ek=(e,t)=>null!=e&&X.hasOwnProp(e,t)?e[t]:void 0,eI={transitional:eR,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=X.isObject(e);if(o&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return i?JSON.stringify(eD(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){let t=ek(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ey(e,new ej.classes.URLSearchParams,{visitor:function(e,t,r,n){return ej.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=X.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ek(this,"env"),i=n&&n.FormData;return ey(r?{"files[]":e}:e,i&&new i,t)}}if(o||i){t.setContentType("application/json",!1);var a=e;if(X.isString(a))try{return(0,JSON.parse)(a),X.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=ek(this,"transitional")||eI.transitional,r=t&&t.forcedJSONParsing,n=ek(this,"responseType"),i="json"===n;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(r&&!n||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,ek(this,"parseReviver"))}catch(e){if(!r&&i){if("SyntaxError"===e.name)throw ef.from(e,ef.ERR_BAD_RESPONSE,this,null,ek(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ej.classes.FormData,Blob:ej.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function eM(e,t){let r=this||eI,n=t||r,i=eu.from(n.headers),o=n.data;return X.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eL(e){return!!(e&&e.__CANCEL__)}X.forEach(["delete","get","head","post","put","patch","query"],e=>{eI.headers[e]={}});class eB extends ef{constructor(e,t,r){super(null==e?"canceled":e,ef.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function eq(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ef("Request failed with status code "+r.status,r.status>=400&&r.status<500?ef.ERR_BAD_REQUEST:ef.ERR_BAD_RESPONSE,r.config,r.request,r))}let eH=(e,t,r=3)=>{let n=0,i=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let u=Date.now(),l=i[a];r||(r=u),n[o]=s,i[o]=u;let c=a,f=0;for(;c!==o;)f+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),u-r<t)return;let h=l&&u-l;return h?Math.round(1e3*f/h):void 0}}(50,250);return function(e,t){let r,n,i=0,o=1e3/t,a=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=o?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},o-s)))},()=>r&&a(r)]}(r=>{if(!r||"number"!=typeof r.loaded)return;let o=r.loaded,a=r.lengthComputable?r.total:void 0,s=Math.max(0,null!=a?Math.min(o,a):o),u=Math.max(0,s-n),l=i(u);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},eF=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},ez=(e,t=X.asap)=>(...r)=>t(()=>e(...r));var eW=ej.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ej.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ej.origin),ej.navigator&&/(msie|trident)/i.test(ej.navigator.userAgent)):()=>!0,e$=ej.hasStandardBrowserEnv?{write(e,t,r,n,i,o,a){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),X.isString(n)&&s.push(`path=${n}`),X.isString(i)&&s.push(`domain=${i}`),!0===o&&s.push("secure"),X.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),i=n.indexOf("=");if(-1!==i&&n.slice(0,i)===e)try{return decodeURIComponent(n.slice(i+1))}catch(e){return n.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};let eJ=/^https?:(?!\/\/)/i,eK=/[\t\n\r]/g;function eQ(e,t){if("string"==typeof e){let r=(function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(eK,"");if(eJ.test(r))throw new ef(`Invalid URL ${JSON.stringify(function(e){var t;let r=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${el}@`),n=r.indexOf("#"),i=(-1===n?r:r.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${el}`);return -1===n?i:`${i}#${!(t=r.slice(n+1))?t:t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${el}`)}`}(r))}: missing "//" after protocol`,ef.ERR_INVALID_URL,t)}}function eV(e,t,r,n){eQ(t,n);let i=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(i||!1===r)){eQ(e,n);if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}return t}let eX=e=>e instanceof eu?{...e}:e;function eY(e,t){var r;e=e||{},t=t||{};let n=Object.create(null);function i(e,t,r,n){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:n},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function o(e,t,r,n){return X.isUndefined(t)?X.isUndefined(e)?void 0:i(void 0,e,r,n):i(e,t,r,n)}function a(e,t){if(!X.isUndefined(t))return i(void 0,t)}function s(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function u(r,n,o){return X.hasOwnProp(t,o)?i(r,n):X.hasOwnProp(e,o)?i(void 0,r):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:u,headers:(e,t,r)=>o(eX(e),eX(t),r,!0)};return X.forEach((r={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(r).concat(Object.getOwnPropertySymbols(r).filter(e=>Object.getOwnPropertyDescriptor(r,e).enumerable)):Object.keys(r)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let i=X.hasOwnProp(l,r)?l[r]:o,a=i(X.hasOwnProp(e,r)?e[r]:void 0,X.hasOwnProp(t,r)?t[r]:void 0,r);X.isUndefined(a)&&i!==u||(n[r]=a)}),X.hasOwnProp(t,"validateStatus")&&X.isUndefined(t.validateStatus)&&!1===function(r){let n=X.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!X.isUndefined(n)){if(!X.isPlainObject(n))return;else if(X.hasOwnProp(n,r))return n[r]}let i=X.hasOwnProp(e,"transitional")?e.transitional:void 0;if(X.isPlainObject(i)&&X.hasOwnProp(i,r))return i[r]}("validateStatusUndefinedResolves")&&(X.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}let eG=["content-type","content-length"];function eZ(e){let t=eY({},e),r=e=>X.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),i=r("withXSRFToken"),o=r("xsrfHeaderName"),a=r("xsrfCookieName"),s=r("headers"),u=r("auth"),l=r("baseURL"),c=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=eu.from(s),t.url=ew(eV(l,f,c,t),r("params"),r("paramsSerializer")),u){let t=X.getSafeProp(u,"username")||"",r=X.getSafeProp(u,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw ef.from(t,ef.ERR_BAD_OPTION_VALUE,e)}}if(X.isFormData(n)&&(ej.hasStandardBrowserEnv||ej.hasStandardBrowserWebWorkerEnv||X.isReactNative(n)?s.setContentType(void 0):X.isFunction(n.getHeaders)&&function(e,t,r){if("content-only"!==r)return e.set(t);Object.entries(t||{}).forEach(([t,r])=>{eG.includes(t.toLowerCase())&&e.set(t,r)})}(s,n.getHeaders(),r("formDataHeaderPolicy"))),ej.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),!0===i||null==i&&eW(t.url))){let e=o&&a&&e$.read(a);e&&s.set(o,e)}return t}var e0="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,o,a,s,u=eZ(e),l=u.data,c=eu.from(u.headers).normalize(),{responseType:f,onUploadProgress:h,onDownloadProgress:d}=u;function p(){a&&a(),s&&s(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let g=new XMLHttpRequest;function y(){if(!g)return;let n=eu.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eq(function(e){t(e),p()},function(e){r(e),p()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(u.method.toUpperCase(),u.url,!0),g.timeout=u.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new ef("Request aborted",ef.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){let n=new ef(t&&t.message?t.message:"Network Error",ef.ERR_NETWORK,e,g);n.event=t||null,r(n),p(),g=null},g.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||eR;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new ef(t,n.clarifyTimeoutError?ef.ETIMEDOUT:ef.ECONNABORTED,e,g)),p(),g=null},void 0===l&&c.setContentType(null),"setRequestHeader"in g&&X.forEach(et(c),function(e,t){g.setRequestHeader(t,e)}),X.isUndefined(u.withCredentials)||(g.withCredentials=!!u.withCredentials),f&&"json"!==f&&(g.responseType=u.responseType),d&&([o,s]=eH(d,!0),g.addEventListener("progress",o)),h&&g.upload&&([i,a]=eH(h),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(u.cancelToken||u.signal)&&(n=t=>{g&&(r(!t||t.type?new eB(null,e,g):t),g.abort(),p(),g=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let m=function(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(u.url);if(m&&!ej.protocols.includes(m)){r(new ef("Unsupported protocol "+m+":",ef.ERR_BAD_REQUEST,e)),p();return}g.send(l||null)})};let e1=function*(e,t){let r,n=e.byteLength;if(n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},e2=async function*(e,t){for await(let r of e3(e))yield*e1(r,t)},e3=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},e8=(e,t,r,n)=>{let i,o=e2(e,t),a=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},e5=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,e6=(e,t,r)=>t+2<r&&e5(e.charCodeAt(t+1))&&e5(e.charCodeAt(t+2)),e4=e=>e<=57?e-48:(223&e)-55,e7=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,e9=e=>9===e||10===e||12===e||13===e||32===e,te=e=>{let t=e.length,r=0,n=0,i=!1;for(let o=0;o<t;o++){let a=e.charCodeAt(o);if(37===a&&e6(e,o,t)&&(a=16*e4(e.charCodeAt(o+1))+e4(e.charCodeAt(o+2)),o+=2),!e9(a)){if(61===a){n++;continue}if(!e7(a)||n>0){i=!0;continue}r++}}return i||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{let t=e.length,r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor((t-r)*3/4)})(e):(e=>{let t=Math.floor(e/4),r=e%4;return 3*t+(2===r?1:2*(3===r))})(r)},tt="1.19.0",{isFunction:tr}=X,tn=e=>{if(!X.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ti=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},to=e=>{let t,r=void 0!==X.global&&null!==X.global?X.global:globalThis,{ReadableStream:n,TextEncoder:i}=r,{fetch:o,Request:a,Response:s}=e=X.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),u=o?tr(o):"function"==typeof fetch,l=tr(a),c=tr(s);if(!u)return!1;let f=u&&tr(n),h=u&&("function"==typeof i?(t=new i,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),d=l&&f&&ti(()=>{let e=!1,t=new a(ej.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=c&&f&&ti(()=>X.isReadableStream(new s("").body)),g={stream:p&&(e=>e.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{g[e]||(g[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ef(`Response type '${e}' is not supported`,ef.ERR_NOT_SUPPORT,r)})});let y=async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){let t=new a(ej.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e))?(await h(e)).byteLength:void 0},m=async(e,t)=>{let r=X.toFiniteNumber(e.getContentLength());return null==r?y(t):r};return async e=>{let t,{url:r,method:n,data:u,signal:c,cancelToken:h,timeout:v,onDownloadProgress:_,onUploadProgress:b,responseType:w,headers:C,withCredentials:R="same-origin",fetchOptions:E,maxContentLength:P,maxBodyLength:S}=eZ(e),O=X.isNumber(P)&&P>-1,A=X.isNumber(S)&&S>-1,T=o||fetch;w=w?(w+"").toLowerCase():"text";let U=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof ef?t:new eB(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new ef(`timeout of ${t}ms exceeded`,ef.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{if(!n){if(e.aborted)return void i.call(e);e.addEventListener("abort",i,{once:!0})}});let{signal:s}=r;return s.unsubscribe=()=>X.asap(a),s})([c,h&&h.toAbortSignal()],v),N=null,j=U&&U.unsubscribe&&(()=>{U.unsubscribe()}),x=null,D=()=>new ef("Request body larger than maxBodyLength limit",ef.ERR_BAD_REQUEST,e,N);try{let o,c=(t=>X.hasOwnProp(e,t)?e[t]:void 0)("auth");if(c){let e=X.getSafeProp(c,"username")||"",t=X.getSafeProp(c,"password")||"";o={username:e,password:t}}if((e=>{let t=e.indexOf("://"),r=e;return -1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(r)){let e=new URL(r,ej.origin);if(!o&&(e.username||e.password)){let t=tn(e.username),r=tn(e.password);o={username:t,password:r}}(e.username||e.password)&&(e.username="",e.password="",r=e.href)}if(o){let e;C.delete("authorization"),C.set("Authorization","Basic "+btoa((e=(o.username||"")+":"+(o.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(O&&"string"==typeof r&&r.startsWith("data:")&&function(e){let t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let r=e.indexOf(",");if(r<0)return 0;let n=e.slice(5,r),i=e.slice(r+1);if(/;base64/i.test(n))return t(i);let o=0;for(let e=0,t=i.length;e<t;e++){let r=i.charCodeAt(e);if(37===r&&e6(i,e,t))o+=1,e+=2;else if(r<128)o+=1;else if(r<2048)o+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o})(-1===t?e:e.slice(0,t),te)}(r)>P)throw new ef("maxContentLength size of "+P+" exceeded",ef.ERR_BAD_RESPONSE,e,N);if(A&&"get"!==n&&"head"!==n){let e=await y(u);if("number"==typeof e&&isFinite(e)&&(t=e,e>S))throw D()}let h=A&&(X.isReadableStream(u)||X.isStream(u)),v=(e,t,r)=>e8(e,65536,e=>{if(A&&e>S)throw x=D();t&&t(e)},r);if(d&&"get"!==n&&"head"!==n&&(b||h)){if(t=null==t?await m(C,u):t,0!==t||h){let e,n=new a(r,{method:"POST",body:u,duplex:"half"});if(X.isFormData(u)&&(e=n.headers.get("content-type"))&&C.setContentType(e),n.body){let[e,r]=b&&eF(t,eH(ez(b)))||[];u=v(n.body,e,r)}}}else if(h&&!l&&f&&"get"!==n&&"head"!==n)u=v(u);else if(h&&l&&!d&&"get"!==n&&"head"!==n)throw new ef("Stream request bodies are not supported by the current fetch implementation",ef.ERR_NOT_SUPPORT,e,N);X.isString(R)||(R=R?"include":"omit");let k=l&&"credentials"in a.prototype;if(X.isFormData(u)){let e=C.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&C.delete("content-type")}C.set("User-Agent","axios/"+tt,!1);let I={...E,signal:U,method:n.toUpperCase(),headers:et(C.normalize()),body:u,duplex:"half",credentials:k?R:void 0};N=l&&new a(r,I);let M=await (l?T(N,E):T(r,I)),L=eu.from(M.headers);if(O){let t=X.toFiniteNumber(L.getContentLength());if(null!=t&&t>P)throw new ef("maxContentLength size of "+P+" exceeded",ef.ERR_BAD_RESPONSE,e,N)}let B=p&&("stream"===w||"response"===w);if(p&&M.body&&(_||O||B&&j)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});let r=X.toFiniteNumber(L.getContentLength()),[n,i]=_&&eF(r,eH(ez(_),!0))||[];M=new s(e8(M.body,65536,t=>{if(O&&t>P)throw new ef("maxContentLength size of "+P+" exceeded",ef.ERR_BAD_RESPONSE,e,N);n&&n(t)},()=>{i&&i(),j&&j()}),t)}w=w||"text";let q=await g[X.findKey(g,w)||"text"](M,e);if(O&&!p&&!B){let t;if(null!=q&&("number"==typeof q.byteLength?t=q.byteLength:"number"==typeof q.size?t=q.size:"string"==typeof q&&(t="function"==typeof i?new i().encode(q).byteLength:q.length)),"number"==typeof t&&t>P)throw new ef("maxContentLength size of "+P+" exceeded",ef.ERR_BAD_RESPONSE,e,N)}return!B&&j&&j(),await new Promise((t,r)=>{eq(t,r,{data:q,headers:eu.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:N})})}catch(t){if(j&&j(),U&&U.aborted&&U.reason instanceof ef){let r=U.reason;throw r.config=e,N&&(r.request=N),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(x)throw N&&!x.request&&(x.request=N),x;if(t instanceof ef)throw N&&!t.request&&(t.request=N),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let r=new ef("Network Error",ef.ERR_NETWORK,e,N,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw ef.from(t,t&&t.code,e,N,t&&t.response)}}},ta=new Map,ts=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],a=o.length,s,u,l=ta;for(;a--;)s=o[a],void 0===(u=l.get(s))&&l.set(s,u=a?new Map:to(t)),l=u;return u};ts();let tu={http:null,xhr:e0,fetch:{get:ts}};X.forEach(tu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let tl=e=>`- ${e}`,tc=e=>X.isFunction(e)||null===e||!1===e;var tf={getAdapter:function(e,t){let r,n,{length:i}=e=X.isArray(e)?e:[e],o={};for(let a=0;a<i;a++){let i;if(n=r=e[a],!tc(r)&&void 0===(n=tu[(i=String(r)).toLowerCase()]))throw new ef(`Unknown adapter '${i}'`);if(n&&(X.isFunction(n)||(n=n.get(t))))break;o[i||"#"+a]=n}if(!n){let e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ef("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tl).join("\n"):" "+tl(e[0]):"as no adapter specified"),ef.ERR_NOT_SUPPORT)}return n}};function th(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eB(null,e)}function td(e){return th(e),e.headers=eu.from(e.headers),e.data=eM.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tf.getAdapter(e.adapter||eI.adapter,e)(e).then(function(t){th(e),e.response=t;try{t.data=eM.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=eu.from(t.headers),t},function(t){if(!eL(t)&&(th(e),t&&t.response)){e.response=t.response;try{t.response.data=eM.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=eu.from(t.response.headers)}return Promise.reject(t)})}let tp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tg={};tp.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tt+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ef(n(i," has been removed"+(t?" in "+t:"")),ef.ERR_DEPRECATED);return t&&!tg[i]&&(tg[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},tp.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ty={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new ef("options must be an object",ef.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ef("option "+o+" must be "+r,ef.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ef("Unknown option "+o,ef.ERR_BAD_OPTION)}},validators:tp};let tm=ty.validators;class tv{constructor(e){this.defaults=e||{},this.interceptors={request:new eC,response:new eC}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eY(this.defaults,t);void 0!==i&&ty.assertOptions(i,{silentJSONParsing:tm.transitional(tm.boolean),forcedJSONParsing:tm.transitional(tm.boolean),clarifyTimeoutError:tm.transitional(tm.boolean),legacyInterceptorReqResOrdering:tm.transitional(tm.boolean),advertiseZstdAcceptEncoding:tm.transitional(tm.boolean),validateStatusUndefinedResolves:tm.transitional(tm.boolean)},!1),null!=o&&(X.isFunction(o)?t.paramsSerializer={serialize:o}:ty.assertOptions(o,{encode:tm.function,serialize:tm.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ty.assertOptions(t,{baseUrl:tm.spelling("baseURL"),withXsrfToken:tm.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&X.merge(a.common,a[t.method]);a&&X.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=eu.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let r=t.transitional||eR;r&&r.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[td.bind(this),void 0];for(e.unshift(...u),e.push(...c),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=u.length;let h=t;for(;f<n;){let e=u[f++],t=u[f++];try{h=e?e(h):h}catch(e){if(!t){r=Promise.reject(e);break}try{let n=t.call(this,e);X.isThenable(n)&&(r=Promise.resolve(n).then(()=>td.call(this,h)))}catch(e){r=Promise.reject(e)}break}}if(!r)try{r=td.call(this,h)}catch(e){r=Promise.reject(e)}for(f=0,n=c.length;f<n;)r=r.then(c[f++],c[f++]);return r}getUri(e){return ew(eV((e=eY(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(e){tv.prototype[e]=function(t,r){return this.request(eY(r||{},{method:e,url:t,data:r&&X.hasOwnProp(r,"data")?r.data:void 0}))}}),X.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,i){return this.request(eY(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tv.prototype[e]=t(),"query"!==e&&(tv.prototype[e+"Form"]=t(!0))});class t_{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eB(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new t_(function(t){e=t}),cancel:e}}}let tb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tb).forEach(([e,t])=>{tb[t]=e});let tw=function e(t){let r=new tv(t),n=a(tv.prototype.request,r);return X.extend(n,tv.prototype,r,{allOwnKeys:!0}),X.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eY(t,r))},n}(eI);tw.Axios=tv,tw.CanceledError=eB,tw.CancelToken=t_,tw.isCancel=eL,tw.VERSION=tt,tw.toFormData=ey,tw.AxiosError=ef,tw.Cancel=tw.CanceledError,tw.all=function(e){return Promise.all(e)},tw.spread=function(e){return function(t){return e.apply(null,t)}},tw.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},tw.mergeConfig=eY,tw.AxiosHeaders=eu,tw.formToJSON=e=>eD(X.isHTMLForm(e)?new FormData(e):e),tw.getAdapter=tf.getAdapter,tw.HttpStatusCode=tb,tw.default=tw,e.exports=tw},78444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(n.__importDefault(r(26528)).default)},78513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(94066)),o=n.__importDefault(r(2504)),a=n.__importDefault(r(50529));t.default=function(){function e(e){this.apiCall=e,this.individualAnalyticsRules={},this.apiCall=e,this._analyticsRules=new i.default(this.apiCall),this._analyticsEvents=new a.default(this.apiCall)}return e.prototype.rules=function(t){return(e.hasWarnedDeprecation||(console.warn("[typesense] 'analyticsV1' is deprecated starting with Typesense Server v30 and will be removed in a future release. Please use 'analytics' instead."),e.hasWarnedDeprecation=!0),void 0===t)?this._analyticsRules:(void 0===this.individualAnalyticsRules[t]&&(this.individualAnalyticsRules[t]=new o.default(t,this.apiCall)),this.individualAnalyticsRules[t])},e.prototype.events=function(){return this._analyticsEvents},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics"},enumerable:!1,configurable:!0}),e.hasWarnedDeprecation=!1,e}()},80521:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeArrayableParams=function(e){var t=n.__assign({},e);if(!Object.keys(i.arrayableParams).filter(function(e){return Array.isArray(t[e])}).map(function(e){return t[e]=t[e].join(","),e}).length&&o(t))return t;if(!o(t))throw Error("Failed to normalize arrayable params: ".concat(JSON.stringify(t)));return t},t.toErrorWithMessage=function(e){if("object"==typeof e&&null!==e&&"message"in e&&"string"==typeof e.message)return e;try{if("string"==typeof e)return Error(e);return Error(JSON.stringify(e))}catch(t){return Error(String(e))}};var n=r(13083),i=r(57309);function o(e){return Object.keys(i.arrayableParams).filter(function(t){return void 0!==e[t]}).every(function(t){return!Array.isArray(e[t])})}},83292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(27385)),o=n.__importDefault(r(73284)),a="/conversations";t.default=function(){function e(e){this.apiCall=e,this.individualConversationModels={},this.apiCall=e,this._conversationsModels=new i.default(this.apiCall)}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(a)]})})},e.prototype.models=function(e){return void 0===e?this._conversationsModels:(void 0===this.individualConversationModels[e]&&(this.individualConversationModels[e]=new o.default(e,this.apiCall)),this.individualConversationModels[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return a},enumerable:!1,configurable:!0}),e}()},83713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(1536));t.default=function(){function e(e,t){this.synonymSetName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(e){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.synonymSetName),"/items").concat(void 0===e?"":"/"+encodeURIComponent(e))},e}()},90648:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(26182).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},93118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(57474));t.default=function(){function e(e,t,r){this.name=e,this.itemId=t,this.apiCall=r}return e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.upsert=function(e){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){return[2,this.apiCall.put(this.endpointPath(),e)]})})},e.prototype.delete=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.delete(this.endpointPath())]})})},e.prototype.endpointPath=function(){return"".concat(i.default.RESOURCEPATH,"/").concat(encodeURIComponent(this.name),"/items/").concat(encodeURIComponent(this.itemId))},e}()},94066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083);t.default=function(){function e(e){this.apiCall=e,this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/analytics/rules"},enumerable:!1,configurable:!0}),e}()},94420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=r(80521);t.default=function(){function e(e){this.apiCall=e}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){var r,o;return n.__generator(this,function(n){return"object"==typeof t.value&&"searches"in t.value?(r=t.value.searches.map(function(e){return(0,i.normalizeArrayableParams)(e)}),[2,this.apiCall.put(this.endpointPath(e),{value:{searches:r}})]):(o=(0,i.normalizeArrayableParams)(t.value),[2,this.apiCall.put(this.endpointPath(e),{value:o})])})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/presets"},enumerable:!1,configurable:!0}),e}()},97872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(65308)),o=n.__importDefault(r(16940));t.default=function(){function e(e){this.apiCall=e,this.individualStemmingDictionaries={},this.apiCall=e,this._stemmingDictionaries=new i.default(this.apiCall)}return e.prototype.dictionaries=function(e){return void 0===e?this._stemmingDictionaries:(void 0===this.individualStemmingDictionaries[e]&&(this.individualStemmingDictionaries[e]=new o.default(e,this.apiCall)),this.individualStemmingDictionaries[e])},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/stemming"},enumerable:!1,configurable:!0}),e}()},98669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13083),i=n.__importDefault(r(64661));t.default=function(){function e(e,t){this.collectionName=e,this.apiCall=t}return e.prototype.upsert=function(e,t){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(r){return[2,this.apiCall.put(this.endpointPath(e),t)]})})},e.prototype.retrieve=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){return[2,this.apiCall.get(this.endpointPath())]})})},e.prototype.endpointPath=function(t){return"".concat(i.default.RESOURCEPATH,"/").concat(this.collectionName).concat(e.RESOURCEPATH).concat(void 0===t?"":"/"+encodeURIComponent(t))},Object.defineProperty(e,"RESOURCEPATH",{get:function(){return"/overrides"},enumerable:!1,configurable:!0}),e}()},99302:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(26182).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},99680:(e,t,r)=>{"use strict";var n=r(16298);Object.defineProperty(t,"__esModule",{value:!0});var i=r(13083),o=i.__importDefault(r(77499)),a=r(17784),s=r(17715),u=r(52800),l=i.__importDefault(r(26528)),c=r(80521),f=void 0!==n&&null!=n.versions&&null!=n.versions.node&&"undefined"==typeof window;t.default=function(){function e(e){this.configuration=e,this.apiKey=this.configuration.apiKey,this.nodes=null==this.configuration.nodes?this.configuration.nodes:JSON.parse(JSON.stringify(this.configuration.nodes)),this.nearestNode=null==this.configuration.nearestNode?this.configuration.nearestNode:JSON.parse(JSON.stringify(this.configuration.nearestNode)),this.connectionTimeoutSeconds=this.configuration.connectionTimeoutSeconds,this.healthcheckIntervalSeconds=this.configuration.healthcheckIntervalSeconds,this.numRetriesPerRequest=this.configuration.numRetries,this.retryIntervalSeconds=this.configuration.retryIntervalSeconds,this.sendApiKeyAsQueryParam=this.configuration.sendApiKeyAsQueryParam,this.additionalUserHeaders=this.configuration.additionalHeaders,this.logger=this.configuration.logger,this.initializeMetadataForNodes(),this.currentNodeIndex=-1}return e.prototype.get=function(e){return i.__awaiter(this,arguments,void 0,function(e,t,r){void 0===t&&(t={});var n=void 0===r?{}:r,o=n.abortSignal,a=void 0===o?null:o,s=n.responseType,u=void 0===s?void 0:s,l=n.streamConfig,c=void 0===l?void 0:l,f=n.isStreamingRequest;return i.__generator(this,function(r){return[2,this.performRequest("get",e,{queryParameters:t,abortSignal:a,responseType:u,streamConfig:c,isStreamingRequest:f})]})})},e.prototype.delete=function(e){return i.__awaiter(this,arguments,void 0,function(e,t){return void 0===t&&(t={}),i.__generator(this,function(r){return[2,this.performRequest("delete",e,{queryParameters:t,isStreamingRequest:!1})]})})},e.prototype.post=function(e){return i.__awaiter(this,arguments,void 0,function(e,t,r,n,o){void 0===t&&(t={}),void 0===r&&(r={}),void 0===n&&(n={});var a=void 0===o?{}:o,s=a.abortSignal,u=void 0===s?null:s,l=a.responseType,c=void 0===l?void 0:l,f=a.streamConfig,h=void 0===f?void 0:f,d=a.isStreamingRequest;return i.__generator(this,function(i){return[2,this.performRequest("post",e,{queryParameters:r,bodyParameters:t,additionalHeaders:n,abortSignal:u,responseType:c,streamConfig:h,isStreamingRequest:d})]})})},e.prototype.put=function(e){return i.__awaiter(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("put",e,{queryParameters:r,bodyParameters:t,isStreamingRequest:!1})]})})},e.prototype.patch=function(e){return i.__awaiter(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),i.__generator(this,function(n){return[2,this.performRequest("patch",e,{queryParameters:r,bodyParameters:t,isStreamingRequest:!1})]})})},e.prototype.getAdapter=function(){if(this.configuration.axiosAdapter)return"function"==typeof this.configuration.axiosAdapter?this.configuration.axiosAdapter:"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent?o.default.getAdapter(this.configuration.axiosAdapter).bind(globalThis):o.default.getAdapter(this.configuration.axiosAdapter)},e.prototype.performRequest=function(e,t,r){return i.__awaiter(this,arguments,void 0,function(e,t,r){var n,u,l,c,h,d,p,g,y,m,v,_=r.queryParameters,b=void 0===_?null:_,w=r.bodyParameters,C=void 0===w?null:w,R=r.additionalHeaders,E=void 0===R?{}:R,P=r.abortSignal,S=void 0===P?null:P,O=r.responseType,A=void 0===O?void 0:O,T=r.skipConnectionTimeout,U=void 0!==T&&T,N=r.enableKeepAlive,j=void 0===N?void 0:N,x=r.streamConfig,D=void 0===x?void 0:x,k=r.isStreamingRequest;return i.__generator(this,function(r){switch(r.label){case 0:this.configuration.validate(),k&&(this.logger.debug("Request: Performing streaming request to ".concat(t)),f||"undefined"==typeof fetch||(this.logger.debug("Using fetch adapter for browser streaming"),A="stream")),n=Date.now(),l=!1,this.logger.debug("Request #".concat(n,": Performing ").concat(e.toUpperCase()," request: ").concat(t)),c=function(r){var c,d,p,_,w,R;return i.__generator(this,function(P){switch(P.label){case 0:if(c=h.getNextNode(n),h.logger.debug("Request #".concat(n,": Attempting ").concat(e.toUpperCase()," request Try #").concat(r," to Node ").concat(c.index)),S&&S.aborted)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];d=void 0,P.label=1;case 1:return P.trys.push([1,3,5,6]),(p={method:e,url:h.uriFor(t,c),headers:Object.assign({},h.defaultHeaders(),E,h.additionalUserHeaders),maxContentLength:1/0,maxBodyLength:1/0,validateStatus:function(e){return e>0},transformResponse:[function(e,t){var r=e;return void 0!==t&&"string"==typeof e&&t["content-type"]&&t["content-type"].startsWith("application/json")&&(r=JSON.parse(e)),r}]}).adapter=k&&!f?"fetch":h.getAdapter(),!0!==U&&(p.timeout=1e3*h.connectionTimeoutSeconds),b&&0!==Object.keys(b).length&&(p.params=b),h.sendApiKeyAsQueryParam&&(p.params=p.params||{},p.params["x-typesense-api-key"]=h.apiKey),h.configuration.httpAgent?(h.logger.debug("Request #".concat(n,": Using custom httpAgent")),p.httpAgent=h.configuration.httpAgent):!0===j&&(f?(h.logger.debug("Request #".concat(n,": Enabling KeepAlive")),p.httpAgent=new a.Agent({keepAlive:!0})):h.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),h.configuration.httpsAgent?(h.logger.debug("Request #".concat(n,": Using custom httpsAgent")),p.httpsAgent=h.configuration.httpsAgent):!0===j&&(f?(h.logger.debug("Request #".concat(n,": Enabling keepAlive")),p.httpsAgent=new s.Agent({keepAlive:!0})):h.logger.warn("Request #".concat(n,": Cannot use custom httpAgent in a browser environment to enable keepAlive"))),h.configuration.paramsSerializer&&(h.logger.debug("Request #".concat(n,": Using custom paramsSerializer")),p.paramsSerializer=h.configuration.paramsSerializer),C&&("string"==typeof C&&0!==C.length||"object"==typeof C&&0!==Object.keys(C).length)&&(p.data=C),S&&(_=o.default.CancelToken.source(),d=function(){l=!0,_.cancel()},S.addEventListener("abort",d),p.cancelToken=_.token),k?(p.responseType="stream",f||(p.headers=i.__assign(i.__assign({},p.headers),{Accept:"text/event-stream"}))):A&&(p.responseType=A),[4,(0,o.default)(p)];case 2:if((w=P.sent()).status>=1&&w.status<=499&&h.setNodeHealthcheck(c,!0),h.logger.debug("Request #".concat(n,": Request to Node ").concat(c.index," was made. Response Code was ").concat(w.status,".")),w.status>=200&&w.status<300){if(k)return[2,{value:h.handleStreamingResponse(w,D)}];return[2,{value:Promise.resolve(w.data)}]}if(w.status<500)return[2,{value:Promise.reject(h.customErrorForResponse(w,null==(g=w.data)?void 0:g.message,p.data))}];throw h.customErrorForResponse(w,null==(y=w.data)?void 0:y.message,p.data);case 3:if(R=P.sent(),l||h.setNodeHealthcheck(c,!1),u=R,h.logger.warn("Request #".concat(n,": Request to Node ").concat(c.index,' failed due to "').concat(null!=(m=null==R?void 0:R.code)?m:""," ").concat(R.message).concat(null==R.response?"":" - "+JSON.stringify(null==(v=R.response)?void 0:v.data),'"')),l)return[2,{value:Promise.reject(Error("Request aborted by caller."))}];if(k&&h.invokeOnErrorCallback(R,D),!(r<h.numRetriesPerRequest+1))return h.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,{value:Promise.reject(u)}];return h.logger.warn("Request #".concat(n,": Sleeping for ").concat(h.retryIntervalSeconds,"s and then retrying request...")),[4,h.timer(h.retryIntervalSeconds)];case 4:return P.sent(),[3,6];case 5:return S&&d&&S.removeEventListener("abort",d),[7];case 6:return[2]}})},h=this,d=1,r.label=1;case 1:if(!(d<=this.numRetriesPerRequest+1))return[3,4];return[5,c(d)];case 2:if("object"==typeof(p=r.sent()))return[2,p.value];r.label=3;case 3:return d++,[3,1];case 4:return this.logger.debug("Request #".concat(n,": No retries left. Raising last error")),[2,Promise.reject(u)]}})})},e.prototype.processStreamingLine=function(e){if(!e.trim()||"data: [DONE]"===e)return null;if(e.startsWith("data: "))return this.processDataLine(e.slice(6).trim());if(e.trim().startsWith("{"))try{var t=JSON.parse(e.trim());if(t&&"object"==typeof t)return t.conversation_id||(t.conversation_id="unknown"),t.message||""===t.message||(t.message=""),t;return{conversation_id:"unknown",message:JSON.stringify(t)}}catch(e){}return{conversation_id:"unknown",message:e.trim()}},e.prototype.processDataLine=function(e){if(!e)return null;if(e.startsWith("{"))try{var t=JSON.parse(e);if(t&&"object"==typeof t)return t.conversation_id||(t.conversation_id="unknown"),t.message||""===t.message||(t.message=""),t;return{conversation_id:"unknown",message:JSON.stringify(t)}}catch(e){}return{conversation_id:"unknown",message:e}},e.prototype.handleStreamingResponse=function(e,t){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(r){return(this.logger.debug("Handling streaming response. Environment: ".concat(f?"Node.js":"Browser")),f&&e.data)?[2,this.handleNodeStreaming(e,t)]:f?(this.logger.debug("Processing non-streaming response"),this.invokeOnCompleteCallback(e.data,t),[2,Promise.resolve(e.data)]):[2,this.handleBrowserStreaming(e,t)]})})},e.prototype.handleNodeStreaming=function(e,t){var r=this;return this.logger.debug("Processing Node.js stream"),new Promise(function(n,i){var o=e.data,a=[],s="";o.on("data",function(e){var n;try{var o=e.toString(),u=(s+=o).split("\n");s=null!=(n=u.pop())?n:"",r.processStreamLines(u,a,t)}catch(e){i(e)}}),o.on("end",function(){if(s.trim().length>0){var i=s.split("\n");r.processStreamLines(i,a,t)}r.finalizeStreamResult(a,n,e,t)}),o.on("error",function(e){r.logger.error("Stream error: ".concat(e)),r.invokeOnErrorCallback(e,t),i(e)})})},e.prototype.handleBrowserStreaming=function(e,t){var r=this;return this.logger.debug("Processing browser stream"),new Promise(function(n,o){return i.__awaiter(r,void 0,void 0,function(){return i.__generator(this,function(r){try{if(e.data&&"function"==typeof e.data.getReader)return[2,this.handleBrowserReadableStream(e.data,n,o,e,t)];if("string"==typeof e.data)return[2,this.handleBrowserStringResponse(e.data,n,e,t)];if("object"==typeof e.data&&null!==e.data)return this.logger.debug("No stream found, but data object is available"),this.invokeOnCompleteCallback(e.data,t),[2,n(e.data)];return this.logger.error("No usable data found in response"),[2,o(Error("No usable data found in response"))]}catch(e){this.logger.error("Error processing streaming response: ".concat(e)),this.invokeOnErrorCallback(e,t),o(e)}return[2]})})})},e.prototype.handleBrowserReadableStream=function(e,t,r,n,o){return i.__awaiter(this,void 0,void 0,function(){var a,s,u,l,c,f,h,d,p,g;return i.__generator(this,function(i){switch(i.label){case 0:this.logger.debug("Found ReadableStream in response.data"),a=e.getReader(),s=[],u="",i.label=1;case 1:i.trys.push([1,5,,6]),i.label=2;case 2:return[4,a.read()];case 3:if(c=(l=i.sent()).done,f=l.value,c)return this.logger.debug("Stream reading complete"),u.trim()&&(h=u.split("\n"),this.processStreamLines(h,s,o)),[3,4];return d=new TextDecoder().decode(f),this.logger.debug("Received chunk: ".concat(d.length," bytes")),u+=d,u=(p=u.split("\n")).pop()||"",this.processStreamLines(p,s,o),[3,2];case 4:return this.finalizeStreamResult(s,t,n,o),[3,6];case 5:return g=i.sent(),this.logger.error("Stream error: ".concat(g)),this.invokeOnErrorCallback(g,o),r(g),[3,6];case 6:return[2]}})})},e.prototype.handleBrowserStringResponse=function(e,t,r,n){this.logger.debug("Processing text response as stream data");var i=[],o=e.split("\n");if(this.processStreamLines(o,i,n),i.length>0){var a=this.combineStreamingChunks(i);this.invokeOnCompleteCallback(a,n),t(a)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),t(r.data)},e.prototype.processStreamLines=function(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(i.trim()&&"data: [DONE]"!==i){var o=this.processStreamingLine(i);null!==o&&(this.invokeOnChunkCallback(o,r),t.push(o))}}},e.prototype.finalizeStreamResult=function(e,t,r,n){if(e.length>0){var i=this.combineStreamingChunks(e);this.logger.debug("Stream processing complete"),this.invokeOnCompleteCallback(i,n),t(i)}else this.logger.debug("No chunks processed, returning original API response"),this.invokeOnCompleteCallback(r.data,n),t(r.data)},e.prototype.combineStreamingChunks=function(e){if(0===e.length)return{};if(1===e.length)return e[0];var t=this.getMessageChunks(e);if(t.length>0)return this.combineMessageChunks(e,t);var r=e[e.length-1];if(!this.isCompleteSearchResponse(r))throw Error("Last chunk is not a complete search response");return r},e.prototype.getMessageChunks=function(e){return e.filter(this.isChunkMessage)},e.prototype.isChunkMessage=function(e){return"object"==typeof e&&null!==e&&"message"in e&&"conversation_id"in e},e.prototype.combineMessageChunks=function(e,t){this.logger.debug("Found ".concat(t.length," message chunks to combine"));var r=e[e.length-1];if(this.isCompleteSearchResponse(r))return r;var n=e.find(this.isCompleteSearchResponse);if(!n)throw Error("No metadata chunk found");return n},e.prototype.isCompleteSearchResponse=function(e){return"object"==typeof e&&null!==e&&Object.keys(e).length>0&&("results"in e||"found"in e||"hits"in e||"page"in e||"search_time_ms"in e)},e.prototype.getNextNode=function(e){if(void 0===e&&(e=0),null!=this.nearestNode){if(this.logger.debug("Request #".concat(e,": Nodes Health: Node ").concat(this.nearestNode.index," is ").concat(!0===this.nearestNode.isHealthy?"Healthy":"Unhealthy")),!0===this.nearestNode.isHealthy||this.nodeDueForHealthcheck(this.nearestNode,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(this.nearestNode.index)),this.nearestNode;this.logger.debug("Request #".concat(e,": Falling back to individual nodes"))}this.logger.debug("Request #".concat(e,": Nodes Health: ").concat(this.nodes.map(function(e){return"Node ".concat(e.index," is ").concat(!0===e.isHealthy?"Healthy":"Unhealthy")}).join(" || ")));for(var t=this.nodes[0],r=0;r<=this.nodes.length;r++)if(this.currentNodeIndex=(this.currentNodeIndex+1)%this.nodes.length,!0===(t=this.nodes[this.currentNodeIndex]).isHealthy||this.nodeDueForHealthcheck(t,e))return this.logger.debug("Request #".concat(e,": Updated current node to Node ").concat(t.index)),t;return this.logger.debug("Request #".concat(e,": No healthy nodes were found. Returning the next node, Node ").concat(t.index)),t},e.prototype.nodeDueForHealthcheck=function(e,t){void 0===t&&(t=0);var r=Date.now()-e.lastAccessTimestamp>1e3*this.healthcheckIntervalSeconds;return r&&this.logger.debug("Request #".concat(t,": Node ").concat(e.index," has exceeded healtcheckIntervalSeconds of ").concat(this.healthcheckIntervalSeconds,". Adding it back into rotation.")),r},e.prototype.initializeMetadataForNodes=function(){var e=this;null!=this.nearestNode&&(this.nearestNode.index="nearestNode",this.setNodeHealthcheck(this.nearestNode,!0)),this.nodes.forEach(function(t,r){t.index=r,e.setNodeHealthcheck(t,!0)})},e.prototype.setNodeHealthcheck=function(e,t){e.isHealthy=t,e.lastAccessTimestamp=Date.now()},e.prototype.uriFor=function(e,t){return null!=t.url?"".concat(t.url).concat(e):"".concat(t.protocol,"://").concat(t.host,":").concat(t.port).concat(t.path).concat(e)},e.prototype.defaultHeaders=function(){var e={};return this.sendApiKeyAsQueryParam||(e["X-TYPESENSE-API-KEY"]=this.apiKey),e["Content-Type"]="application/json",e},e.prototype.timer=function(e){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(t){return[2,new Promise(function(t){return setTimeout(t,1e3*e)})]})})},e.prototype.customErrorForResponse=function(e,t,r){var n="Request failed with HTTP code ".concat(e.status);"string"==typeof t&&""!==t.trim()&&(n+=" | Server said: ".concat(t));new l.default(n,r,e.status);return 400===e.status?new u.RequestMalformed(n,r,e.status):401===e.status?new u.RequestUnauthorized(n,r,e.status):404===e.status?new u.ObjectNotFound(n,r,e.status):409===e.status?new u.ObjectAlreadyExists(n,r,e.status):422===e.status?new u.ObjectUnprocessable(n,r,e.status):e.status>=500&&e.status<=599?new u.ServerError(n,r,e.status):new u.HTTPError(n,r,e.status)},e.prototype.invokeOnChunkCallback=function(e,t){if(null==t?void 0:t.onChunk)try{t.onChunk(e)}catch(e){this.logger.warn("Error in onChunk callback: ".concat(e))}},e.prototype.invokeOnCompleteCallback=function(e,t){if(null==t?void 0:t.onComplete)try{t.onComplete(e)}catch(e){this.logger.warn("Error in onComplete callback: ".concat(e))}},e.prototype.invokeOnErrorCallback=function(e,t){if(null==t?void 0:t.onError){var r=(0,c.toErrorWithMessage)(e);try{t.onError(r)}catch(e){this.logger.warn("Error in onError callback: ".concat(e))}}},e}()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8616],{3192:(e,n,t)=>{t.d(n,{Ay:()=>s,F3:()=>a,nQ:()=>l});var r=t(47034);let a="en_us",l="en-US",i=[{name:"English",code:"en_us",prefix:"en",file:"en_US",internal:"en-US",icon:r.US},{name:"Čeština",code:"cs_cz",prefix:"cs",file:"cs_CZ",internal:"cs-CZ",icon:r.CZ},{name:"Deutsch",code:"de_de",prefix:"de",file:"de_DE",internal:"de-DE",icon:r.DE},{name:"Espa\xf1ol",code:"es_es",prefix:"es",file:"es_ES",internal:"es-ES",icon:r.ES,crowdin:"es-ES"},{name:"Fran\xe7ais",code:"fr_fr",prefix:"fr",file:"fr_FR",internal:"fr-FR",icon:r.FR},{name:"Magyar",code:"hu_hu",prefix:"hu",file:"hu_HU",internal:"hu-HU",icon:r.HU},{name:"Italiano",code:"it_it",prefix:"it",file:"it_IT",internal:"it-IT",icon:r.IT},{name:"日本語",code:"ja_jp",prefix:"ja",file:"ja_JP",internal:"ja-JP",icon:r.JP},{name:"한국어",code:"ko_kr",prefix:"ko",file:"ko_KR",internal:"ko-KR",icon:r.KR},{name:"Bahasa Melayu",code:"ms_my",prefix:"ms",file:"ms_MY",internal:"ms-MY",icon:r.MY},{name:"بهاس ملايو",code:"zml_arab",prefix:"ms_Ar",file:"ms_Arab",internal:"ms-Arab",icon:r.MY,crowdin:"ms-Arab",rtl:!0},{name:"Polski",code:"pl_pl",prefix:"pl",file:"pl_PL",internal:"pl-PL",icon:r.PL},{name:"Русский",code:"ru_ru",prefix:"ru",file:"ru_RU",internal:"ru-RU",icon:r.RU},{name:"Svenska",code:"sv_se",prefix:"sv",file:"sv_SE",internal:"sv-SE",icon:r.SE,crowdin:"sv-SE"},{name:"T\xfcrk\xe7e",code:"tr_tr",prefix:"tr",file:"tr_TR",internal:"tr-TR",icon:r.TR},{name:"Українська",code:"uk_ua",prefix:"uk",file:"uk_UA",internal:"uk-UA",icon:r.UA},{name:"简体中文",code:"zh_cn",prefix:"zh_cn",file:"zh_CN",internal:"zh-CN",icon:r.CN,crowdin:"zh-CN"},{name:"繁體中文",code:"zh_tw",prefix:"zh_tw",file:"zh_TW",internal:"zh-TW",icon:r.TW,crowdin:"zh-TW"}];function o(e){return i.find(n=>n.prefix===e)}let s={getAvailableLocales:function(){return i},getLanguagePaths:function(){return i.map(e=>e.prefix)},getInternalCodes:function(){return i.map(e=>e.internal)},getPathPrefixes:function(){return i.reduce((e,n)=>({...e,[n.internal]:"/"+n.prefix}),{})},getForUrlParam:o,getForInternalCode:function(e){return i.find(n=>n.internal===e)},getCrowdinLanguageId:function(e){let n=o(e);return(null==n?void 0:n.crowdin)||(null==n?void 0:n.prefix)},isRTL:function(e){var n;return(null==(n=o(e))?void 0:n.rtl)||!1},actualLocale:function(e){var n;if(!e||e===a)return null;let t=o(e);return null!=(n=null==t?void 0:t.file.toLowerCase())?n:null},resolveParam:function(e){return o(e).code},getUrlPrefixForCode:function(e){var n;return null==(n=i.find(n=>n.code===e))?void 0:n.prefix}}},21559:(e,n,t)=>{t.d(n,{default:()=>o});var r=t(7893),a=t(95745),l=t(28081),i=t(45585);let o=(0,l.forwardRef)(function(e,n){let{title:t,className:o,innerClassName:s,tagName:c,children:d,type:u,solid:f}=e,{open:m}=(0,l.useContext)(i.p);return(0,r.jsx)("aside",{"data-open":m==u,className:(0,a.cn)(o,"fixed z-30 h-[88vh] w-full overflow-hidden border-tertiary bg-primary transition-all duration-300 ease-in-out sm:h-[calc(100vh_-_9.5rem)] lg:top-[6rem]! lg:transition-none",f?"lg:static":"lg:sticky","left"==u&&"border-r data-[open=false]:-translate-x-full data-[open=false]:border-0 lg:border-r-0 lg:data-[open=false]:-translate-x-0","right"==u&&"border-l data-[open=false]:translate-x-full data-[open=false]:border-0 lg:border-l-0 lg:data-[open=false]:translate-x-0"),children:(0,r.jsxs)(c||"div",{ref:n,className:(0,a.cn)("scrollbar-thumb-secondary scrollbar-track-secondary/20 scrollbar-thin h-full space-y-2 overflow-y-auto p-4",s),children:[(0,r.jsx)("div",{className:"mb-4 flex items-center justify-between",children:(0,r.jsx)("h3",{className:"text-sm font-semibold text-secondary",children:t})}),d]})})})},24989:(e,n,t)=>{t.d(n,{default:()=>c});var r=t(7893),a=t(32482),l=t(74994),i=t(64870),o=t(82601),s=t(35865);function c(){let[e,n]=(0,a.ZA)("tab"),t=(0,s.c)("DocsEntryTabs"),c=async e=>{await n(e),window.scrollTo(0,0)};return(0,r.jsx)("div",{className:"flex h-full flex-col items-center justify-center",children:"history"===e?(0,r.jsx)(o.$,{title:t("home"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("home"),children:(0,r.jsx)(l.A,{className:"size-4"})}):(0,r.jsx)(o.$,{title:t("history"),variant:"ghost",size:"icon",className:"size-8",onClick:()=>c("history"),children:(0,r.jsx)(i.A,{className:"size-4"})})})}},34882:(e,n,t)=>{t.d(n,{XO:()=>o,a8:()=>c});var r=t(85151),a=t(37588),l=t(3192);let i=(0,r.A)({locales:l.Ay.getInternalCodes(),defaultLocale:l.nQ,localePrefix:{mode:"always",prefixes:l.Ay.getPathPrefixes()}}),{Link:o,redirect:s,usePathname:c,useRouter:d}=(0,a.A)(i)},37588:(e,n,t)=>{t.d(n,{A:()=>m});var r=t(41574),a=t(28081),l=t.t(a,2),i=t(40739),o=l["use".trim()],s=t(32936),c=t(55605),d=t(16353),u=t(7893),f=t(62491);function m(e){let{Link:n,config:t,getPathname:l,...m}=function(e,n){var t,l,i;let f={...t=n||{},localePrefix:"object"==typeof(i=t.localePrefix)?i:{mode:i||"always"},localeCookie:!!((l=t.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof l&&l},localeDetection:t.localeDetection??!0,alternateLinks:t.alternateLinks??!0},m=f.pathnames,h=(0,a.forwardRef)(function({href:n,locale:t,...r},a){let l,i;"object"==typeof n?(l=n.pathname,i=n.params):l=n;let d=(0,s._x)(n),h=e(),x=(0,s.yL)(h)?o(h):h,v=d?p({locale:t||x,href:null==m?l:{pathname:l,params:i},forcePrefix:null!=t||void 0}):l;return(0,u.jsx)(c.default,{ref:a,href:"object"==typeof n?{...n,pathname:v}:v,locale:t,localeCookie:f.localeCookie,...r})});function p(e){let n,{forcePrefix:t,href:r,locale:a}=e;return null==m?"object"==typeof r?(n=r.pathname,r.query&&(n+=(0,d.Zn)(r.query))):n=r:n=(0,d.FP)({locale:a,...(0,d.TK)(r),pathnames:f.pathnames}),(0,d.x3)(n,a,f,t)}function x(e){return function(n,...t){return e(p(n),...t)}}return{config:f,Link:h,redirect:x(r.redirect),permanentRedirect:x(r.permanentRedirect),getPathname:p}}(i.Ym,e);return{...m,Link:n,usePathname:function(){let e=function(e){let n=(0,r.usePathname)(),t=(0,i.Ym)();return(0,a.useMemo)(()=>{if(!n)return n;let r=n,a=(0,s.XP)(t,e.localePrefix);if((0,s.wO)(a,n))r=(0,s.MY)(n,a);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,s.bL)(t);(0,s.wO)(e,n)&&(r=(0,s.MY)(n,e))}return r},[e.localePrefix,t,n])}(t),n=(0,i.Ym)();return(0,a.useMemo)(()=>e&&t.pathnames?(0,d.aM)(n,e,t.pathnames):e,[n,e])},useRouter:function(){let e=(0,r.useRouter)(),n=(0,i.Ym)(),o=(0,r.usePathname)();return(0,a.useMemo)(()=>{function r(e){return function(r,a){let{locale:i,...s}=a||{},c=[l({href:r,locale:i||n,forcePrefix:null!=i||void 0})];Object.keys(s).length>0&&c.push(s),(0,f.A)(t.localeCookie,o,n,i),e(...c)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[n,o,e])},getPathname:l}}},45585:(e,n,t)=>{t.d(n,{default:()=>o,p:()=>i});var r=t(7893),a=t(28081),l=t(34882);let i=(0,a.createContext)(null);function o(e){let{children:n}=e,t=(0,l.a8)(),[o,s]=(0,a.useState)("none");return(0,a.useEffect)(()=>{"none"===o?window.document.body.classList.remove("no-scroll"):window.document.body.classList.add("no-scroll")},[o]),(0,a.useEffect)(()=>{s("none")},[t]),(0,r.jsx)(i.Provider,{value:{open:o,setOpen:s},children:n})}},76365:(e,n,t)=>{t.d(n,{A:()=>d});var r=t(7893),a=t(28081),l=t(21559),i=t(95745),o=t(35865),s=t(96090);function c(e){let{node:n,activeId:t,collapsed:a,setCollapsed:l,first:o}=e,{heading:d,children:u}=n,f=!a[d.id],m=t===d.id||!f&&function e(n,t){return n.children.some(n=>n.heading.id===t||e(n,t))}(n,t),h=(0,r.jsx)("a",{href:"#".concat(d.id),className:(0,i.cn)("block py-1 text-secondary transition-colors hover:text-primary",m&&"text-primary",o&&"pt-0!"),onClick:e=>{var n;e.preventDefault(),null==(n=document.getElementById(d.id))||n.scrollIntoView({behavior:"smooth"})},children:d.value});return 0===u.length?(0,r.jsxs)("li",{className:"flex items-start gap-1",children:[(0,r.jsx)("span",{className:"size-4 shrink-0"}),h]}):(0,r.jsx)("li",{children:(0,r.jsxs)("details",{className:"group",open:f,onToggle:e=>l(d.id,!e.currentTarget.open),children:[(0,r.jsxs)("summary",{className:"flex list-none items-start gap-1 [&::-webkit-details-marker]:hidden",onClick:e=>e.preventDefault(),children:[(0,r.jsx)("button",{type:"button","aria-expanded":f,"aria-label":d.value,className:(0,i.cn)("shrink-0 cursor-pointer py-1 text-secondary hover:text-primary",o&&"pt-0!"),onClick:()=>l(d.id,f),children:(0,r.jsx)(s.default,{className:"size-4 group-open:rotate-180"})}),h]}),(0,r.jsx)("ul",{className:"space-y-1 pl-3",children:u.map(e=>(0,r.jsx)(c,{node:e,activeId:t,collapsed:a,setCollapsed:l},e.heading.id))})]})})}function d(e){let{headings:n,type:t,className:s,solid:d}=e,u=(0,o.c)("DocsNonContentRightSidebar"),[f,m]=(0,a.useState)(""),[h,p]=(0,a.useState)({}),[x,v]=(0,a.useState)(!1),[g,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),_=(0,a.useMemo)(()=>n.filter(e=>e.depth<4),[n]),k=(0,a.useMemo)(()=>(function(e){let n=[],t=[];for(let r of e){let e={heading:r,children:[]};for(;t.length>0&&t[t.length-1].heading.depth>=r.depth;)t.pop();let a=t[t.length-1];(a?a.children:n).push(e),t.push(e)}return n})(_),[_]),w=(e,n)=>p(t=>t[e]===n?t:{...t,[e]:n});return(0,a.useEffect)(()=>{let e=()=>{let e=_.map(e=>document.getElementById(e.id)).filter(Boolean).find(e=>{if(e){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=window.innerHeight/2}return!1});e&&m(e.id)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[_]),(0,a.useEffect)(()=>{let e=()=>{if(y.current){let{scrollTop:e,scrollHeight:n,clientHeight:t}=y.current;v(e>0),b(e+t<n)}},n=y.current;return n&&(n.addEventListener("scroll",e),window.addEventListener("resize",e),e()),()=>{n&&n.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[_,h]),(0,r.jsx)(l.default,{type:t,title:u("title"),className:(0,i.cn)("shrink-0",s),tagName:"nav",solid:d,children:(0,r.jsxs)("div",{className:"relative",children:[x&&(0,r.jsx)("div",{className:"from-background pointer-events-none absolute top-0 right-0 left-0 h-12 bg-linear-to-b to-transparent"}),(0,r.jsx)("div",{ref:y,className:"scrollbar-thin max-h-[80vh] scrollbar-thumb-gray-300 scrollbar-track-transparent overflow-y-auto pr-4",children:(0,r.jsx)("ul",{className:"space-y-1 text-sm",children:k.map((e,n)=>(0,r.jsx)(c,{node:e,activeId:f,collapsed:h,setCollapsed:w,first:0===n},e.heading.id))})}),g&&(0,r.jsx)("div",{className:"from-background pointer-events-none absolute right-0 bottom-0 left-0 h-12 bg-linear-to-t to-transparent"})]})})}},85151:(e,n,t)=>{t.d(n,{A:()=>r});function r(e){return e}},93656:(e,n,t)=>{t.d(n,{default:()=>a});var r=t(41574);function a(e){let{main:n,history:t}=e;return"history"==(0,r.useSearchParams)().get("tab")&&t?t:n}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3857],{43397:(e,t,r)=>{Promise.resolve().then(r.bind(r,73744)),Promise.resolve().then(r.bind(r,57370))},57370:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var l=r(28081),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},i=r(84796),u=r(73744);let o=(0,l.forwardRef)((e,t)=>{var r,o,s;let{color:a,size:d,strokeWidth:h,absoluteStrokeWidth:c,className:m="",children:f,iconNode:k,...v}=e,{size:w=24,strokeWidth:C=2,absoluteStrokeWidth:b=!1,color:g="currentColor",className:x=""}=null!=(r=(0,u.useLucideContext)())?r:{},N=(null!=c?c:b)?24*Number(null!=h?h:C)/Number(null!=d?d:w):null!=h?h:C;return(0,l.createElement)("svg",{ref:t,...n,width:null!=(o=null!=d?d:w)?o:n.width,height:null!=(s=null!=d?d:w)?s:n.height,stroke:null!=a?a:g,strokeWidth:N,className:(0,i.z)("lucide",x,m),...!f&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(v)&&{"aria-hidden":"true"},...v},[...k.map(e=>{let[t,r]=e;return(0,l.createElement)(t,r)}),...Array.isArray(f)?f:[f]])})},73744:(e,t,r)=>{"use strict";r.d(t,{LucideProvider:()=>i,useLucideContext:()=>u});var l=r(28081);let n=(0,l.createContext)({});function i(e){let{children:t,size:r,color:i,strokeWidth:u,absoluteStrokeWidth:o,className:s}=e,a=(0,l.useMemo)(()=>({size:r,color:i,strokeWidth:u,absoluteStrokeWidth:o,className:s}),[r,i,u,o,s]);return(0,l.createElement)(n.Provider,{value:a},t)}let u=()=>(0,l.useContext)(n)},84796:(e,t,r)=>{"use strict";r.d(t,{z:()=>l});let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}}},e=>{e.O(0,[7411,9029,7358],()=>e(e.s=43397)),_N_E=e.O()}]);