@fluidattacks/design 3.1.11 → 3.1.12

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 (204) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +9 -1
  4. package/dist/components/accordion/index.js +21 -1
  5. package/dist/components/alert/index.js +111 -4
  6. package/dist/components/button/index.js +18 -1
  7. package/dist/components/card/card-header/index.js +14 -1
  8. package/dist/components/card/card-with-image/index.js +18 -1
  9. package/dist/components/card/card-with-input/index.js +57 -3
  10. package/dist/components/card/card-with-selector/index.js +16 -1
  11. package/dist/components/card/card-with-switch/index.js +12 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +36 -10
  14. package/dist/components/checkbox/index.js +84 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +27 -1
  17. package/dist/components/code-snippet/location-code/index.js +125 -1
  18. package/dist/components/colors/index.js +9 -1
  19. package/dist/components/confirm-dialog/index.js +23 -1
  20. package/dist/components/container/index.js +27 -3
  21. package/dist/components/content-card/category-tag/index.js +13 -1
  22. package/dist/components/content-card/event-date/index.js +18 -1
  23. package/dist/components/content-card/index.js +63 -3
  24. package/dist/components/content-card-carousel/index.js +15 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +10 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +21 -8
  29. package/dist/components/file-preview/index.js +15 -3
  30. package/dist/components/form/index.js +26 -3
  31. package/dist/components/grid-container/index.js +26 -5
  32. package/dist/components/group-selector/index.js +26 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +42 -4
  35. package/dist/components/icon-button/index.js +27 -3
  36. package/dist/components/indicator-card/index.js +15 -1
  37. package/dist/components/info-sidebar/index.js +16 -1
  38. package/dist/components/inputs/fields/combobox/index.js +26 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +16 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +15 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +16 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +15 -1
  44. package/dist/components/inputs/fields/date/index.js +18 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +16 -1
  46. package/dist/components/inputs/fields/date-range/index.js +28 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +31 -5
  48. package/dist/components/inputs/fields/date-time/index.js +18 -1
  49. package/dist/components/inputs/fields/editable/index.js +16 -1
  50. package/dist/components/inputs/fields/input/index.js +13 -1
  51. package/dist/components/inputs/fields/input-file/index.js +24 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +14 -2
  53. package/dist/components/inputs/fields/number/index.js +10 -1
  54. package/dist/components/inputs/fields/number-range/index.js +11 -1
  55. package/dist/components/inputs/fields/phone/index.js +414 -11
  56. package/dist/components/inputs/fields/text-area/index.js +13 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +12 -1
  59. package/dist/components/inputs/outline-container/index.js +18 -1
  60. package/dist/components/inputs/utils/action-button/index.js +10 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +13 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +8 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +32 -1
  64. package/dist/components/inputs/utils/dialog/index.js +11 -1
  65. package/dist/components/inputs/utils/number-field/index.js +13 -1
  66. package/dist/components/inputs/utils/popover/index.js +13 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +15 -1
  69. package/dist/components/language-selector/index.js +13 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +52 -7
  72. package/dist/components/list-item/index.js +16 -1
  73. package/dist/components/little-flag/index.js +15 -3
  74. package/dist/components/loading/index.js +28 -14
  75. package/dist/components/logo/index.js +7 -1
  76. package/dist/components/logo-carousel/index.js +10 -4
  77. package/dist/components/lottie/index.js +15 -3
  78. package/dist/components/menu/index.js +23 -1
  79. package/dist/components/message-banner/index.js +21 -4
  80. package/dist/components/modal/index.js +19 -1
  81. package/dist/components/modal/modal-confirm/index.js +10 -1
  82. package/dist/components/modal/modal-footer/index.js +16 -1
  83. package/dist/components/modal/modal-header/index.js +25 -1
  84. package/dist/components/notification/index.js +68 -5
  85. package/dist/components/notification-sign/index.js +26 -6
  86. package/dist/components/number-input/index.js +25 -7
  87. package/dist/components/oauth-selector/index.js +26 -1
  88. package/dist/components/oauth-selector/option-container/index.js +15 -1
  89. package/dist/components/plan-card/index.js +84 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +10 -1
  91. package/dist/components/pop-up/description/index.js +13 -1
  92. package/dist/components/pop-up/index.js +23 -1
  93. package/dist/components/premium-feature/index.js +45 -3
  94. package/dist/components/priority-score/index.js +14 -1
  95. package/dist/components/progress/index.js +23 -3
  96. package/dist/components/progress-bar/index.js +95 -5
  97. package/dist/components/radio-button/index.js +88 -3
  98. package/dist/components/scroll-button/index.js +20 -2
  99. package/dist/components/search/index.js +63 -7
  100. package/dist/components/search-bar/index.js +32 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +14 -1
  103. package/dist/components/severity-overview/badge/index.js +18 -1
  104. package/dist/components/severity-overview/index.js +7 -1
  105. package/dist/components/show-on-hover/index.js +25 -3
  106. package/dist/components/slide-out-menu/index.js +2009 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +15 -1
  108. package/dist/components/slider/index.js +93 -7
  109. package/dist/components/slider/thumb/index.js +10 -1
  110. package/dist/components/step-lapse/index.js +95 -9
  111. package/dist/components/table-button/index.js +56 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +9 -1
  113. package/dist/components/tabs/index.js +14 -1
  114. package/dist/components/tabs/tab/index.js +8 -1
  115. package/dist/components/tag/index.js +116 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +7 -1
  118. package/dist/components/toggle/index.js +45 -14
  119. package/dist/components/toggle-buttons/index.js +74 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +2481 -4
  122. package/dist/components/typography/heading/index.js +9 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +9 -1
  125. package/dist/components/typography/text/index.js +9 -1
  126. package/dist/components/web-form/index.js +59 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-38JqtnAI.mjs +122 -0
  129. package/dist/index-B5yoGFs6.mjs +54 -0
  130. package/dist/index-BLbKylyw.mjs +209 -0
  131. package/dist/{index-C0_LPuYU.mjs → index-Bu448Tz2.mjs} +22 -22
  132. package/dist/index-BwFnfaRh.mjs +2310 -0
  133. package/dist/index-Co_k0WFk.mjs +75 -0
  134. package/dist/index-Cu7uUMlx.mjs +82 -0
  135. package/dist/index-D-lcuEHY.mjs +1018 -0
  136. package/dist/index-DrfjITyT.mjs +61 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-7_q7nHce.mjs +110 -0
  139. package/dist/styles-BA0WIQL-.mjs +74 -0
  140. package/dist/styles-C3cZmKVJ.mjs +131 -0
  141. package/dist/styles-CI-I6joH.mjs +144 -0
  142. package/dist/styles-Cx93EcVo.mjs +76 -0
  143. package/dist/styles-D85YYIjM.mjs +131 -0
  144. package/dist/styles-EIbGRPlk.mjs +106 -0
  145. package/dist/styles-Q1VXuWI7.mjs +65 -0
  146. package/dist/styles-fH2c4cfc.mjs +77 -0
  147. package/dist/{styles-BAhpqi6C.mjs → styles-lSVV9kjn.mjs} +28 -28
  148. package/dist/use-carousel-CvRxi2FI.mjs +17 -0
  149. package/dist/use-click-outside-BtZLIoU1.mjs +18 -0
  150. package/dist/use-cloudinary-image-fG7ODNgr.mjs +611 -0
  151. package/dist/use-modal-CkrZ-_-M.mjs +14 -0
  152. package/dist/use-search-DpLNvt7Q.mjs +12 -0
  153. package/dist/utils-CQvBF-wY.mjs +4 -0
  154. package/package.json +1 -1
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C8zdgAVH.mjs +0 -82
  160. package/dist/index-CA_9DXWd.js +0 -5
  161. package/dist/index-CmylnDrF.js +0 -14
  162. package/dist/index-DUMgwAbO.js +0 -26
  163. package/dist/index-DpQYiwGu.js +0 -5
  164. package/dist/index-Dy8ZUIYs.js +0 -5
  165. package/dist/index-JPf5Yzg6.js +0 -17
  166. package/dist/index-OBZtKZuT.mjs +0 -1021
  167. package/dist/index-SsXlDjK4.mjs +0 -122
  168. package/dist/index-TKLFHcRp.js +0 -18
  169. package/dist/index-TnyKqJHo.mjs +0 -61
  170. package/dist/index-Yr95Cb7Z.mjs +0 -54
  171. package/dist/index-h9-U5wxq.mjs +0 -209
  172. package/dist/index-qCiUU4sZ.js +0 -9
  173. package/dist/index-qe0nJwzl.js +0 -15
  174. package/dist/styles--Elze-LV.js +0 -3
  175. package/dist/styles-3pR4Xdvy.js +0 -33
  176. package/dist/styles-59h91S9m.mjs +0 -65
  177. package/dist/styles-BCwLWpC3.mjs +0 -126
  178. package/dist/styles-BJ7-0I5X.mjs +0 -74
  179. package/dist/styles-BKObp9bh.mjs +0 -76
  180. package/dist/styles-BWVdbvFu.js +0 -5
  181. package/dist/styles-Bl-CstrT.js +0 -5
  182. package/dist/styles-Bn42XCW5.js +0 -7
  183. package/dist/styles-C2CoGJl7.js +0 -33
  184. package/dist/styles-CNzziAXG.js +0 -5
  185. package/dist/styles-CdD9waPD.js +0 -29
  186. package/dist/styles-CnKTwnFk.mjs +0 -110
  187. package/dist/styles-D4R-eerv.mjs +0 -77
  188. package/dist/styles-DNIIhyRC.mjs +0 -144
  189. package/dist/styles-DV8yOaqV.mjs +0 -131
  190. package/dist/styles-DYoftbd3.js +0 -42
  191. package/dist/styles-DlmKLhPh.js +0 -7
  192. package/dist/styles-be8gOdgy.mjs +0 -106
  193. package/dist/use-carousel-64dKFW4E.js +0 -1
  194. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  195. package/dist/use-click-outside-BqkLISED.js +0 -1
  196. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  197. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  198. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  199. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  200. package/dist/use-modal-_bYY6M_n.js +0 -1
  201. package/dist/use-search-75ip5xR-.mjs +0 -12
  202. package/dist/use-search-DeL4UDMh.js +0 -1
  203. package/dist/utils-C2whpEd3.js +0 -1
  204. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1,4 +1,323 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash"),n=require("react"),r=require("../../_commonjsHelpers-C37NGDzP.js"),o=require("react-dom");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const s=i(n),a=i(o);function l(e){return t=>typeof t===e}var c=l("function"),u=e=>"RegExp"===Object.prototype.toString.call(e).slice(8,-1),p=e=>!f(e)&&!(e=>null===e)(e)&&(c(e)||"object"==typeof e),f=l("undefined");function d(e,t){if(e===t)return!0;if(e&&p(e)&&t&&p(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;0!=r--;)if(!d(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!d(n[1],t.get(n[0])))return!1;return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(u(e)&&u(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e=n.length;0!=e--;)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=n.length;0!=o--;){const r=n[o];if(!("_owner"===r&&e.$$typeof||d(e[r],t[r])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var h=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],y=["bigint","boolean","null","number","string","symbol","undefined"];function m(e){const t=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(t)?"HTMLElement":(n=t,h.includes(n)?t:void 0);var n}function b(e){return t=>m(t)===e}function g(e){return t=>typeof t===e}var v=["innerHTML","ownerDocument","style","attributes","nodeValue"];function w(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(w.array(e))return"Array";if(w.plainFunction(e))return"Function";return m(e)||"Object"}w.array=Array.isArray,w.arrayOf=(e,t)=>!(!w.array(e)&&!w.function(t))&&e.every((e=>t(e))),w.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===m(e),w.asyncFunction=b("AsyncFunction"),w.bigint=g("bigint"),w.boolean=e=>!0===e||!1===e,w.date=b("Date"),w.defined=e=>!w.undefined(e),w.domElement=e=>w.object(e)&&!w.plainObject(e)&&1===e.nodeType&&w.string(e.nodeName)&&v.every((t=>t in e)),w.empty=e=>w.string(e)&&0===e.length||w.array(e)&&0===e.length||w.object(e)&&!w.map(e)&&!w.set(e)&&0===Object.keys(e).length||w.set(e)&&0===e.size||w.map(e)&&0===e.size,w.error=b("Error"),w.function=g("function"),w.generator=e=>w.iterable(e)&&w.function(e.next)&&w.function(e.throw),w.generatorFunction=b("GeneratorFunction"),w.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,w.iterable=e=>!w.nullOrUndefined(e)&&w.function(e[Symbol.iterator]),w.map=b("Map"),w.nan=e=>Number.isNaN(e),w.null=e=>null===e,w.nullOrUndefined=e=>w.null(e)||w.undefined(e),w.number=e=>g("number")(e)&&!w.nan(e),w.numericString=e=>w.string(e)&&e.length>0&&!Number.isNaN(Number(e)),w.object=e=>!w.nullOrUndefined(e)&&(w.function(e)||"object"==typeof e),w.oneOf=(e,t)=>!!w.array(e)&&e.indexOf(t)>-1,w.plainFunction=b("Function"),w.plainObject=e=>{if("Object"!==m(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},w.primitive=e=>{return w.null(e)||(t=typeof e,y.includes(t));var t},w.promise=b("Promise"),w.propertyOf=(e,t,n)=>{if(!w.object(e)||!t)return!1;const r=e[t];return w.function(n)?n(r):w.defined(r)},w.regexp=b("RegExp"),w.set=b("Set"),w.string=g("string"),w.symbol=g("symbol"),w.undefined=g("undefined"),w.weakMap=b("WeakMap"),w.weakSet=b("WeakSet");var O,E,S=w;function x(e,t,n){const{actual:r,key:o,previous:i,type:s}=n,a=R(e,o),l=R(t,o);let c=[a,l].every(S.number)&&("increased"===s?a<l:a>l);return S.undefined(r)||(c=c&&l===r),S.undefined(i)||(c=c&&a===i),c}function T(e,t,n){const{key:r,type:o,value:i}=n,s=R(e,r),a=R(t,r),l="added"===o?s:a,c="added"===o?a:s;return S.nullOrUndefined(i)?[s,a].every(S.array)?!c.every(j(l)):[s,a].every(S.plainObject)?(u=Object.keys(l),Object.keys(c).some((e=>!u.includes(e)))):![s,a].every((e=>S.primitive(e)&&S.defined(e)))&&("added"===o?!S.defined(s)&&S.defined(a):S.defined(s)&&!S.defined(a)):S.defined(l)?!(!S.array(l)&&!S.plainObject(l))&&function(e,t,n){return!!I(e,t)&&([e,t].every(S.array)?!e.some(N(n))&&t.some(N(n)):[e,t].every(S.plainObject)?!Object.entries(e).some(P(n))&&Object.entries(t).some(P(n)):t===n)}(l,c,i):d(c,i);var u}function k(e,t,{key:n}={}){let r=R(e,n),o=R(t,n);if(!I(r,o))throw new TypeError("Inputs have different types");if(!function(...e){return e.every((e=>S.string(e)||S.array(e)||S.plainObject(e)))}(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(S.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function P(e){return([t,n])=>S.array(e)?d(e,n)||e.some((e=>d(e,n)||S.array(n)&&j(n)(e))):S.plainObject(e)&&e[t]?!!e[t]&&d(e[t],n):d(e,n)}function N(e){return t=>S.array(e)?e.some((e=>d(e,t)||S.array(t)&&j(t)(e))):d(e,t)}function C(e,t){return S.array(e)?e.some((e=>d(e,t))):d(e,t)}function j(e){return t=>e.some((e=>d(e,t)))}function I(...e){return e.every(S.array)||e.every(S.number)||e.every(S.plainObject)||e.every(S.string)}function R(e,t){return S.plainObject(e)||S.array(e)?S.string(t)?t.split(".").reduce(((e,t)=>e&&e[t]),e):S.number(t)?e[t]:e:e}function L(e,t){if([e,t].some(S.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((e=>S.plainObject(e)||S.array(e))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return T(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,o)=>{try{const i=R(e,n),s=R(t,n),a=S.defined(r),l=S.defined(o);if(a||l){const e=l?C(o,i):!C(r,i),t=C(r,s);return e&&t}return[i,s].every(S.array)||[i,s].every(S.plainObject)?!d(i,s):i!==s}catch{return!1}},changedFrom:(n,r,o)=>{if(!S.defined(n))return!1;try{const i=R(e,n),s=R(t,n),a=S.defined(o);return C(r,i)&&(a?C(o,s):!a)}catch{return!1}},decreased:(n,r,o)=>{if(!S.defined(n))return!1;try{return x(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,o]=k(e,t,{key:n});return!!r.length&&!o.length}catch{return!1}},filled:n=>{try{const[r,o]=k(e,t,{key:n});return!r.length&&!!o.length}catch{return!1}},increased:(n,r,o)=>{if(!S.defined(n))return!1;try{return x(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return T(e,t,{key:n,type:"removed",value:r})}catch{return!1}}}}var A=function(){if(E)return O;E=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;function o(o){return function(a,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var p=r(),f=a[o],d=c.ease||i,h=isNaN(c.duration)?350:+c.duration,y=!1;return f===l?u(e,a[o]):requestAnimationFrame((function e(i){if(y)return u(t,a[o]);var s=r(),c=n(1,(s-p)/h),m=d(c);a[o]=m*(l-f)+f,c<1?requestAnimationFrame(e):requestAnimationFrame((function(){u(null,a[o])}))})),function(){y=!0}}}function i(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}return O={left:o("scrollLeft"),top:o("scrollTop")}}();const M=r.getDefaultExportFromCjs(A);var D,F,_,B,W={exports:{}},z=(D||(D=1,_=W.exports,B=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}return function(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}},(F=W).exports?F.exports=B():_.Scrollparent=B()),W.exports);const H=r.getDefaultExportFromCjs(z);var U,$,V=function(){if($)return U;$=1;var e=function(e,n){return e+t(n)},t=function(n){return null===n||"boolean"==typeof n||void 0===n?"":"number"==typeof n?n.toString():"string"==typeof n?n:Array.isArray(n)?n.reduce(e,""):(r=n,Object.prototype.hasOwnProperty.call(r,"props")&&Object.prototype.hasOwnProperty.call(n.props,"children")?t(n.props.children):"");var r};return t.default=t,U=t}();const q=r.getDefaultExportFromCjs(V);var G,Y,K=function(){if(Y)return G;Y=1;var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&(n=e,!("[object RegExp]"===(r=Object.prototype.toString.call(n))||"[object Date]"===r||n.$$typeof===t));var n,r},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]));var t}function i(e,t){try{return t in e}catch(n){return!1}}function s(t,a,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(a);return c===Array.isArray(t)?c?l.arrayMerge(t,a,l):function(e,t,r){var a={};return r.isMergeableObject(e)&&o(e).forEach((function(t){a[t]=n(e[t],r)})),o(t).forEach((function(o){var l,c;i(l=e,c=o)&&(!Object.hasOwnProperty.call(l,c)||!Object.propertyIsEnumerable.call(l,c))||(i(e,o)&&r.isMergeableObject(t[o])?a[o]=function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s}(o,r)(e[o],t[o],r):a[o]=n(t[o],r))})),a}(t,a,l):n(a,l)}return s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})},G=s}();const J=r.getDefaultExportFromCjs(K);var X,Z,Q,ee,te,ne,re,oe,ie,se,ae,le,ce,ue,pe,fe,de={exports:{}},he={exports:{}},ye={},me={};
1
+ import { jsx as dr } from "react/jsx-runtime";
2
+ import { isUndefined as hr } from "lodash";
3
+ import * as _ from "react";
4
+ import D, { isValidElement as Cn, cloneElement as Tt, useState as kt, useCallback as yr } from "react";
5
+ import { g as Le } from "../../_commonjsHelpers-C6fGbg64.mjs";
6
+ import * as Qe from "react-dom";
7
+ import He, { createPortal as mr } from "react-dom";
8
+ function jn(e) {
9
+ return (t) => typeof t === e;
10
+ }
11
+ var gr = jn("function"), Pt = (e) => Object.prototype.toString.call(e).slice(8, -1) === "RegExp", Nt = (e) => !br(e) && !/* @__PURE__ */ ((t) => t === null)(e) && (gr(e) || typeof e == "object"), br = jn("undefined");
12
+ function q(e, t) {
13
+ if (e === t) return !0;
14
+ if (e && Nt(e) && t && Nt(t)) {
15
+ if (e.constructor !== t.constructor) return !1;
16
+ if (Array.isArray(e) && Array.isArray(t)) return function(o, i) {
17
+ const { length: s } = o;
18
+ if (s !== i.length) return !1;
19
+ for (let a = s; a-- != 0; ) if (!q(o[a], i[a])) return !1;
20
+ return !0;
21
+ }(e, t);
22
+ if (e instanceof Map && t instanceof Map) return function(o, i) {
23
+ if (o.size !== i.size) return !1;
24
+ for (const s of o.entries()) if (!i.has(s[0])) return !1;
25
+ for (const s of o.entries()) if (!q(s[1], i.get(s[0]))) return !1;
26
+ return !0;
27
+ }(e, t);
28
+ if (e instanceof Set && t instanceof Set) return function(o, i) {
29
+ if (o.size !== i.size) return !1;
30
+ for (const s of o.entries()) if (!i.has(s[0])) return !1;
31
+ return !0;
32
+ }(e, t);
33
+ if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return function(o, i) {
34
+ if (o.byteLength !== i.byteLength) return !1;
35
+ const s = new DataView(o.buffer), a = new DataView(i.buffer);
36
+ let l = o.byteLength;
37
+ for (; l--; ) if (s.getUint8(l) !== a.getUint8(l)) return !1;
38
+ return !0;
39
+ }(e, t);
40
+ if (Pt(e) && Pt(t)) return e.source === t.source && e.flags === t.flags;
41
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
42
+ if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
43
+ const n = Object.keys(e), r = Object.keys(t);
44
+ if (n.length !== r.length) return !1;
45
+ for (let o = n.length; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, n[o])) return !1;
46
+ for (let o = n.length; o-- != 0; ) {
47
+ const i = n[o];
48
+ if ((i !== "_owner" || !e.$$typeof) && !q(e[i], t[i])) return !1;
49
+ }
50
+ return !0;
51
+ }
52
+ return !(!Number.isNaN(e) || !Number.isNaN(t)) || e === t;
53
+ }
54
+ var vr = ["Array", "ArrayBuffer", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Date", "Error", "Function", "Generator", "GeneratorFunction", "HTMLElement", "Map", "Object", "Promise", "RegExp", "Set", "WeakMap", "WeakSet"], wr = ["bigint", "boolean", "null", "number", "string", "symbol", "undefined"];
55
+ function Ge(e) {
56
+ const t = Object.prototype.toString.call(e).slice(8, -1);
57
+ return /HTML\w+Element/.test(t) ? "HTMLElement" : (n = t, vr.includes(n) ? t : void 0);
58
+ var n;
59
+ }
60
+ function X(e) {
61
+ return (t) => Ge(t) === e;
62
+ }
63
+ function he(e) {
64
+ return (t) => typeof t === e;
65
+ }
66
+ var Or = ["innerHTML", "ownerDocument", "style", "attributes", "nodeValue"];
67
+ function T(e) {
68
+ if (e === null) return "null";
69
+ switch (typeof e) {
70
+ case "bigint":
71
+ return "bigint";
72
+ case "boolean":
73
+ return "boolean";
74
+ case "number":
75
+ return "number";
76
+ case "string":
77
+ return "string";
78
+ case "symbol":
79
+ return "symbol";
80
+ case "undefined":
81
+ return "undefined";
82
+ }
83
+ return T.array(e) ? "Array" : T.plainFunction(e) ? "Function" : Ge(e) || "Object";
84
+ }
85
+ T.array = Array.isArray, T.arrayOf = (e, t) => !(!T.array(e) && !T.function(t)) && e.every((n) => t(n)), T.asyncGeneratorFunction = (e) => Ge(e) === "AsyncGeneratorFunction", T.asyncFunction = X("AsyncFunction"), T.bigint = he("bigint"), T.boolean = (e) => e === !0 || e === !1, T.date = X("Date"), T.defined = (e) => !T.undefined(e), T.domElement = (e) => T.object(e) && !T.plainObject(e) && e.nodeType === 1 && T.string(e.nodeName) && Or.every((t) => t in e), T.empty = (e) => T.string(e) && e.length === 0 || T.array(e) && e.length === 0 || T.object(e) && !T.map(e) && !T.set(e) && Object.keys(e).length === 0 || T.set(e) && e.size === 0 || T.map(e) && e.size === 0, T.error = X("Error"), T.function = he("function"), T.generator = (e) => T.iterable(e) && T.function(e.next) && T.function(e.throw), T.generatorFunction = X("GeneratorFunction"), T.instanceOf = (e, t) => !(!e || !t) && Object.getPrototypeOf(e) === t.prototype, T.iterable = (e) => !T.nullOrUndefined(e) && T.function(e[Symbol.iterator]), T.map = X("Map"), T.nan = (e) => Number.isNaN(e), T.null = (e) => e === null, T.nullOrUndefined = (e) => T.null(e) || T.undefined(e), T.number = (e) => he("number")(e) && !T.nan(e), T.numericString = (e) => T.string(e) && e.length > 0 && !Number.isNaN(Number(e)), T.object = (e) => !T.nullOrUndefined(e) && (T.function(e) || typeof e == "object"), T.oneOf = (e, t) => !!T.array(e) && e.indexOf(t) > -1, T.plainFunction = X("Function"), T.plainObject = (e) => {
86
+ if (Ge(e) !== "Object") return !1;
87
+ const t = Object.getPrototypeOf(e);
88
+ return t === null || t === Object.getPrototypeOf({});
89
+ }, T.primitive = (e) => {
90
+ return T.null(e) || (t = typeof e, wr.includes(t));
91
+ var t;
92
+ }, T.promise = X("Promise"), T.propertyOf = (e, t, n) => {
93
+ if (!T.object(e) || !t) return !1;
94
+ const r = e[t];
95
+ return T.function(n) ? n(r) : T.defined(r);
96
+ }, T.regexp = X("RegExp"), T.set = X("Set"), T.string = he("string"), T.symbol = he("symbol"), T.undefined = he("undefined"), T.weakMap = X("WeakMap"), T.weakSet = X("WeakSet");
97
+ var Ct, jt, P = T;
98
+ function It(e, t, n) {
99
+ const { actual: r, key: o, previous: i, type: s } = n, a = ne(e, o), l = ne(t, o);
100
+ let c = [a, l].every(P.number) && (s === "increased" ? a < l : a > l);
101
+ return P.undefined(r) || (c = c && l === r), P.undefined(i) || (c = c && a === i), c;
102
+ }
103
+ function Rt(e, t, n) {
104
+ const { key: r, type: o, value: i } = n, s = ne(e, r), a = ne(t, r), l = o === "added" ? s : a, c = o === "added" ? a : s;
105
+ return P.nullOrUndefined(i) ? [s, a].every(P.array) ? !c.every(gt(l)) : [s, a].every(P.plainObject) ? function(u, p) {
106
+ return p.some((d) => !u.includes(d));
107
+ }(Object.keys(l), Object.keys(c)) : ![s, a].every((u) => P.primitive(u) && P.defined(u)) && (o === "added" ? !P.defined(s) && P.defined(a) : P.defined(s) && !P.defined(a)) : P.defined(l) ? !(!P.array(l) && !P.plainObject(l)) && function(u, p, d) {
108
+ return !!In(u, p) && ([u, p].every(P.array) ? !u.some(Mt(d)) && p.some(Mt(d)) : [u, p].every(P.plainObject) ? !Object.entries(u).some(At(d)) && Object.entries(p).some(At(d)) : p === d);
109
+ }(l, c, i) : q(c, i);
110
+ }
111
+ function Lt(e, t, { key: n } = {}) {
112
+ let r = ne(e, n), o = ne(t, n);
113
+ if (!In(r, o)) throw new TypeError("Inputs have different types");
114
+ if (!function(...i) {
115
+ return i.every((s) => P.string(s) || P.array(s) || P.plainObject(s));
116
+ }(r, o)) throw new TypeError("Inputs don't have length");
117
+ return [r, o].every(P.plainObject) && (r = Object.keys(r), o = Object.keys(o)), [r, o];
118
+ }
119
+ function At(e) {
120
+ return ([t, n]) => P.array(e) ? q(e, n) || e.some((r) => q(r, n) || P.array(n) && gt(n)(r)) : P.plainObject(e) && e[t] ? !!e[t] && q(e[t], n) : q(e, n);
121
+ }
122
+ function Mt(e) {
123
+ return (t) => P.array(e) ? e.some((n) => q(n, t) || P.array(t) && gt(t)(n)) : q(e, t);
124
+ }
125
+ function xe(e, t) {
126
+ return P.array(e) ? e.some((n) => q(n, t)) : q(e, t);
127
+ }
128
+ function gt(e) {
129
+ return (t) => e.some((n) => q(n, t));
130
+ }
131
+ function In(...e) {
132
+ return e.every(P.array) || e.every(P.number) || e.every(P.plainObject) || e.every(P.string);
133
+ }
134
+ function ne(e, t) {
135
+ return P.plainObject(e) || P.array(e) ? P.string(t) ? t.split(".").reduce((n, r) => n && n[r], e) : P.number(t) ? e[t] : e : e;
136
+ }
137
+ function qe(e, t) {
138
+ if ([e, t].some(P.nullOrUndefined)) throw new Error("Missing required parameters");
139
+ if (![e, t].every((n) => P.plainObject(n) || P.array(n))) throw new Error("Expected plain objects or array");
140
+ return { added: (n, r) => {
141
+ try {
142
+ return Rt(e, t, { key: n, type: "added", value: r });
143
+ } catch {
144
+ return !1;
145
+ }
146
+ }, changed: (n, r, o) => {
147
+ try {
148
+ const i = ne(e, n), s = ne(t, n), a = P.defined(r), l = P.defined(o);
149
+ if (a || l) {
150
+ const c = l ? xe(o, i) : !xe(r, i), u = xe(r, s);
151
+ return c && u;
152
+ }
153
+ return [i, s].every(P.array) || [i, s].every(P.plainObject) ? !q(i, s) : i !== s;
154
+ } catch {
155
+ return !1;
156
+ }
157
+ }, changedFrom: (n, r, o) => {
158
+ if (!P.defined(n)) return !1;
159
+ try {
160
+ const i = ne(e, n), s = ne(t, n), a = P.defined(o);
161
+ return xe(r, i) && (a ? xe(o, s) : !a);
162
+ } catch {
163
+ return !1;
164
+ }
165
+ }, decreased: (n, r, o) => {
166
+ if (!P.defined(n)) return !1;
167
+ try {
168
+ return It(e, t, { key: n, actual: r, previous: o, type: "decreased" });
169
+ } catch {
170
+ return !1;
171
+ }
172
+ }, emptied: (n) => {
173
+ try {
174
+ const [r, o] = Lt(e, t, { key: n });
175
+ return !!r.length && !o.length;
176
+ } catch {
177
+ return !1;
178
+ }
179
+ }, filled: (n) => {
180
+ try {
181
+ const [r, o] = Lt(e, t, { key: n });
182
+ return !r.length && !!o.length;
183
+ } catch {
184
+ return !1;
185
+ }
186
+ }, increased: (n, r, o) => {
187
+ if (!P.defined(n)) return !1;
188
+ try {
189
+ return It(e, t, { key: n, actual: r, previous: o, type: "increased" });
190
+ } catch {
191
+ return !1;
192
+ }
193
+ }, removed: (n, r) => {
194
+ try {
195
+ return Rt(e, t, { key: n, type: "removed", value: r });
196
+ } catch {
197
+ return !1;
198
+ }
199
+ } };
200
+ }
201
+ var Er = function() {
202
+ if (jt) return Ct;
203
+ jt = 1;
204
+ var e = new Error("Element already at target scroll position"), t = new Error("Scroll cancelled"), n = Math.min, r = Date.now;
205
+ function o(a) {
206
+ return function(l, c, u, p) {
207
+ typeof (u = u || {}) == "function" && (p = u, u = {}), typeof p != "function" && (p = s);
208
+ var d = r(), h = l[a], y = u.ease || i, v = isNaN(u.duration) ? 350 : +u.duration, g = !1;
209
+ return h === c ? p(e, l[a]) : requestAnimationFrame(function x(w) {
210
+ if (g) return p(t, l[a]);
211
+ var b = r(), k = n(1, (b - d) / v), f = y(k);
212
+ l[a] = f * (c - h) + h, k < 1 ? requestAnimationFrame(x) : requestAnimationFrame(function() {
213
+ p(null, l[a]);
214
+ });
215
+ }), function() {
216
+ g = !0;
217
+ };
218
+ };
219
+ }
220
+ function i(a) {
221
+ return 0.5 * (1 - Math.cos(Math.PI * a));
222
+ }
223
+ function s() {
224
+ }
225
+ return Ct = { left: o("scrollLeft"), top: o("scrollTop") };
226
+ }();
227
+ const Sr = Le(Er);
228
+ var Dt, Ft, _t, et, tt = { exports: {} };
229
+ const Rn = Le((Dt || (Dt = 1, _t = tt.exports, et = function() {
230
+ function e(t) {
231
+ var n = getComputedStyle(t, null).getPropertyValue("overflow");
232
+ return n.indexOf("scroll") > -1 || n.indexOf("auto") > -1;
233
+ }
234
+ return function(t) {
235
+ if (t instanceof HTMLElement || t instanceof SVGElement) {
236
+ for (var n = t.parentNode; n.parentNode; ) {
237
+ if (e(n)) return n;
238
+ n = n.parentNode;
239
+ }
240
+ return document.scrollingElement || document.documentElement;
241
+ }
242
+ };
243
+ }, (Ft = tt).exports ? Ft.exports = et() : _t.Scrollparent = et()), tt.exports));
244
+ var Bt, Wt, xr = function() {
245
+ if (Wt) return Bt;
246
+ Wt = 1;
247
+ var e = function(n, r) {
248
+ return n + t(r);
249
+ }, t = function(n) {
250
+ return n === null || typeof n == "boolean" || n === void 0 ? "" : typeof n == "number" ? n.toString() : typeof n == "string" ? n : Array.isArray(n) ? n.reduce(e, "") : function(r) {
251
+ return Object.prototype.hasOwnProperty.call(r, "props");
252
+ }(n) && Object.prototype.hasOwnProperty.call(n.props, "children") ? t(n.props.children) : "";
253
+ };
254
+ return t.default = t, Bt = t;
255
+ }();
256
+ const zt = Le(xr);
257
+ var Ut, Ht;
258
+ const Q = Le(function() {
259
+ if (Ht) return Ut;
260
+ Ht = 1;
261
+ var e = function(l) {
262
+ return /* @__PURE__ */ function(c) {
263
+ return !!c && typeof c == "object";
264
+ }(l) && !function(c) {
265
+ var u = Object.prototype.toString.call(c);
266
+ return u === "[object RegExp]" || u === "[object Date]" || function(p) {
267
+ return p.$$typeof === t;
268
+ }(c);
269
+ }(l);
270
+ }, t = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
271
+ function n(l, c) {
272
+ return c.clone !== !1 && c.isMergeableObject(l) ? a((u = l, Array.isArray(u) ? [] : {}), l, c) : l;
273
+ var u;
274
+ }
275
+ function r(l, c, u) {
276
+ return l.concat(c).map(function(p) {
277
+ return n(p, u);
278
+ });
279
+ }
280
+ function o(l) {
281
+ return Object.keys(l).concat(function(c) {
282
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(c).filter(function(u) {
283
+ return Object.propertyIsEnumerable.call(c, u);
284
+ }) : [];
285
+ }(l));
286
+ }
287
+ function i(l, c) {
288
+ try {
289
+ return c in l;
290
+ } catch {
291
+ return !1;
292
+ }
293
+ }
294
+ function s(l, c, u) {
295
+ var p = {};
296
+ return u.isMergeableObject(l) && o(l).forEach(function(d) {
297
+ p[d] = n(l[d], u);
298
+ }), o(c).forEach(function(d) {
299
+ (function(h, y) {
300
+ return i(h, y) && !(Object.hasOwnProperty.call(h, y) && Object.propertyIsEnumerable.call(h, y));
301
+ })(l, d) || (i(l, d) && u.isMergeableObject(c[d]) ? p[d] = function(h, y) {
302
+ if (!y.customMerge) return a;
303
+ var v = y.customMerge(h);
304
+ return typeof v == "function" ? v : a;
305
+ }(d, u)(l[d], c[d], u) : p[d] = n(c[d], u));
306
+ }), p;
307
+ }
308
+ function a(l, c, u) {
309
+ (u = u || {}).arrayMerge = u.arrayMerge || r, u.isMergeableObject = u.isMergeableObject || e, u.cloneUnlessOtherwiseSpecified = n;
310
+ var p = Array.isArray(c);
311
+ return p === Array.isArray(l) ? p ? u.arrayMerge(l, c, u) : s(l, c, u) : n(c, u);
312
+ }
313
+ return a.all = function(l, c) {
314
+ if (!Array.isArray(l)) throw new Error("first argument should be an array");
315
+ return l.reduce(function(u, p) {
316
+ return a(u, p, c);
317
+ }, {});
318
+ }, Ut = a;
319
+ }());
320
+ var $t, ze = { exports: {} }, nt = { exports: {} }, z = {}, Vt, Gt, rt, qt, Yt, Kt, Jt, Xt, Zt, Qt, ot, en, tn, nn, rn, U = {};
2
321
  /** @license React v16.13.1
3
322
  * react-is.development.js
4
323
  *
@@ -7,12 +326,454 @@
7
326
  * This source code is licensed under the MIT license found in the
8
327
  * LICENSE file in the root directory of this source tree.
9
328
  */
10
- function be(){return Q||(Q=1,"production"===process.env.NODE_ENV?he.exports=function(){if(X)return ye;X=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case a:case u:case h:case d:case s:return e;default:return f}}case n:return f}}}function w(e){return v(e)===c}return ye.AsyncMode=l,ye.ConcurrentMode=c,ye.ContextConsumer=a,ye.ContextProvider=s,ye.Element=t,ye.ForwardRef=u,ye.Fragment=r,ye.Lazy=h,ye.Memo=d,ye.Portal=n,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=p,ye.isAsyncMode=function(e){return w(e)||v(e)===l},ye.isConcurrentMode=w,ye.isContextConsumer=function(e){return v(e)===a},ye.isContextProvider=function(e){return v(e)===s},ye.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ye.isForwardRef=function(e){return v(e)===u},ye.isFragment=function(e){return v(e)===r},ye.isLazy=function(e){return v(e)===h},ye.isMemo=function(e){return v(e)===d},ye.isPortal=function(e){return v(e)===n},ye.isProfiler=function(e){return v(e)===i},ye.isStrictMode=function(e){return v(e)===o},ye.isSuspense=function(e){return v(e)===p},ye.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||e.$$typeof===b||e.$$typeof===g||e.$$typeof===y)},ye.typeOf=v,ye}():he.exports=(Z||(Z=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var y=e.type;switch(y){case l:case c:case r:case i:case o:case p:return y;default:var m=y&&y.$$typeof;switch(m){case a:case u:case h:case d:case s:return m;default:return f}}case n:return f}}}var w=l,O=c,E=a,S=s,x=t,T=u,k=r,P=h,N=d,C=n,j=i,I=o,R=p,L=!1;function A(e){return v(e)===c}me.AsyncMode=w,me.ConcurrentMode=O,me.ContextConsumer=E,me.ContextProvider=S,me.Element=x,me.ForwardRef=T,me.Fragment=k,me.Lazy=P,me.Memo=N,me.Portal=C,me.Profiler=j,me.StrictMode=I,me.Suspense=R,me.isAsyncMode=function(e){return L||(L=!0),A(e)||v(e)===l},me.isConcurrentMode=A,me.isContextConsumer=function(e){return v(e)===a},me.isContextProvider=function(e){return v(e)===s},me.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},me.isForwardRef=function(e){return v(e)===u},me.isFragment=function(e){return v(e)===r},me.isLazy=function(e){return v(e)===h},me.isMemo=function(e){return v(e)===d},me.isPortal=function(e){return v(e)===n},me.isProfiler=function(e){return v(e)===i},me.isStrictMode=function(e){return v(e)===o},me.isSuspense=function(e){return v(e)===p},me.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||e.$$typeof===b||e.$$typeof===g||e.$$typeof===y)},me.typeOf=v}()),me)),he.exports
329
+ function Ln() {
330
+ return Gt || (Gt = 1, process.env.NODE_ENV === "production" ? nt.exports = function() {
331
+ if ($t) return z;
332
+ $t = 1;
333
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
334
+ function b(f) {
335
+ if (typeof f == "object" && f !== null) {
336
+ var E = f.$$typeof;
337
+ switch (E) {
338
+ case t:
339
+ switch (f = f.type) {
340
+ case l:
341
+ case c:
342
+ case r:
343
+ case i:
344
+ case o:
345
+ case p:
346
+ return f;
347
+ default:
348
+ switch (f = f && f.$$typeof) {
349
+ case a:
350
+ case u:
351
+ case y:
352
+ case h:
353
+ case s:
354
+ return f;
355
+ default:
356
+ return E;
357
+ }
358
+ }
359
+ case n:
360
+ return E;
361
+ }
362
+ }
363
+ }
364
+ function k(f) {
365
+ return b(f) === c;
366
+ }
367
+ return z.AsyncMode = l, z.ConcurrentMode = c, z.ContextConsumer = a, z.ContextProvider = s, z.Element = t, z.ForwardRef = u, z.Fragment = r, z.Lazy = y, z.Memo = h, z.Portal = n, z.Profiler = i, z.StrictMode = o, z.Suspense = p, z.isAsyncMode = function(f) {
368
+ return k(f) || b(f) === l;
369
+ }, z.isConcurrentMode = k, z.isContextConsumer = function(f) {
370
+ return b(f) === a;
371
+ }, z.isContextProvider = function(f) {
372
+ return b(f) === s;
373
+ }, z.isElement = function(f) {
374
+ return typeof f == "object" && f !== null && f.$$typeof === t;
375
+ }, z.isForwardRef = function(f) {
376
+ return b(f) === u;
377
+ }, z.isFragment = function(f) {
378
+ return b(f) === r;
379
+ }, z.isLazy = function(f) {
380
+ return b(f) === y;
381
+ }, z.isMemo = function(f) {
382
+ return b(f) === h;
383
+ }, z.isPortal = function(f) {
384
+ return b(f) === n;
385
+ }, z.isProfiler = function(f) {
386
+ return b(f) === i;
387
+ }, z.isStrictMode = function(f) {
388
+ return b(f) === o;
389
+ }, z.isSuspense = function(f) {
390
+ return b(f) === p;
391
+ }, z.isValidElementType = function(f) {
392
+ return typeof f == "string" || typeof f == "function" || f === r || f === c || f === i || f === o || f === p || f === d || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === h || f.$$typeof === s || f.$$typeof === a || f.$$typeof === u || f.$$typeof === g || f.$$typeof === x || f.$$typeof === w || f.$$typeof === v);
393
+ }, z.typeOf = b, z;
394
+ }() : nt.exports = (Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
395
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
396
+ function b(R) {
397
+ if (typeof R == "object" && R !== null) {
398
+ var Ze = R.$$typeof;
399
+ switch (Ze) {
400
+ case t:
401
+ var We = R.type;
402
+ switch (We) {
403
+ case l:
404
+ case c:
405
+ case r:
406
+ case i:
407
+ case o:
408
+ case p:
409
+ return We;
410
+ default:
411
+ var xt = We && We.$$typeof;
412
+ switch (xt) {
413
+ case a:
414
+ case u:
415
+ case y:
416
+ case h:
417
+ case s:
418
+ return xt;
419
+ default:
420
+ return Ze;
421
+ }
422
+ }
423
+ case n:
424
+ return Ze;
425
+ }
426
+ }
427
+ }
428
+ var k = l, f = c, E = a, C = s, O = t, j = u, I = r, L = y, M = h, B = n, $ = i, H = o, oe = p, ue = !1;
429
+ function Se(R) {
430
+ return b(R) === c;
431
+ }
432
+ U.AsyncMode = k, U.ConcurrentMode = f, U.ContextConsumer = E, U.ContextProvider = C, U.Element = O, U.ForwardRef = j, U.Fragment = I, U.Lazy = L, U.Memo = M, U.Portal = B, U.Profiler = $, U.StrictMode = H, U.Suspense = oe, U.isAsyncMode = function(R) {
433
+ return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Se(R) || b(R) === l;
434
+ }, U.isConcurrentMode = Se, U.isContextConsumer = function(R) {
435
+ return b(R) === a;
436
+ }, U.isContextProvider = function(R) {
437
+ return b(R) === s;
438
+ }, U.isElement = function(R) {
439
+ return typeof R == "object" && R !== null && R.$$typeof === t;
440
+ }, U.isForwardRef = function(R) {
441
+ return b(R) === u;
442
+ }, U.isFragment = function(R) {
443
+ return b(R) === r;
444
+ }, U.isLazy = function(R) {
445
+ return b(R) === y;
446
+ }, U.isMemo = function(R) {
447
+ return b(R) === h;
448
+ }, U.isPortal = function(R) {
449
+ return b(R) === n;
450
+ }, U.isProfiler = function(R) {
451
+ return b(R) === i;
452
+ }, U.isStrictMode = function(R) {
453
+ return b(R) === o;
454
+ }, U.isSuspense = function(R) {
455
+ return b(R) === p;
456
+ }, U.isValidElementType = function(R) {
457
+ return typeof R == "string" || typeof R == "function" || R === r || R === c || R === i || R === o || R === p || R === d || typeof R == "object" && R !== null && (R.$$typeof === y || R.$$typeof === h || R.$$typeof === s || R.$$typeof === a || R.$$typeof === u || R.$$typeof === g || R.$$typeof === x || R.$$typeof === w || R.$$typeof === v);
458
+ }, U.typeOf = b;
459
+ }()), U)), nt.exports;
460
+ }
11
461
  /*
12
462
  object-assign
13
463
  (c) Sindre Sorhus
14
464
  @license MIT
15
- */}function ge(){return re?ne:(re=1,ne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function ve(){return ie?oe:(ie=1,oe=Function.call.bind(Object.prototype.hasOwnProperty))}function we(){if(ce)return le;ce=1;var e=be(),t=function(){if(te)return ee;te=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ee=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(r,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(a[c]=i[c]);if(e){s=e(i);for(var u=0;u<s.length;u++)n.call(i,s[u])&&(a[s[u]]=i[s[u]])}}return a},ee}(),n=ge(),r=ve(),o=function(){if(ae)return se;ae=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ge(),n={},r=ve();e=function(e){var t="Warning: "+e;try{throw new Error(t)}catch(n){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var p=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=o[c](i,c,a,s,null,t)}catch(d){u=d}if(!u||u instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=l?l():"";e("Failed "+s+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},se=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;try{throw new Error(t)}catch(n){}}),le=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:h(s),arrayOf:function(e){return h((function(t,r,o,i,s){if("function"!=typeof e)return new d("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new d("Invalid "+i+" `"+s+"` of type `"+g(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:h((function(e,t,n,r,o){var i=e[t];return a(i)?null:new d("Invalid "+r+" `"+o+"` of type `"+g(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:h((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new d("Invalid "+o+" `"+i+"` of type `"+g(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||u;return new d("Invalid "+o+" `"+i+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:h((function(e,t,n,r,o){return b(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,o,i,s,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=g(l);if("object"!==c)return new d("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var p=e(l,u,i,s,a+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(f(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new d("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),s}return h((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,s,a,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new d("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,o,i,s){var a=t[r],l=g(a);if("object"!==l)return new d("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return m(o,i,s,c,v(u));var p=u(a,c,o,i,s+"."+c,n);if(p)return p}return null}))},exact:function(e){return h((function(o,i,s,a,l){var c=o[i],u=g(c);if("object"!==u)return new d("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var p=t({},o[i],e);for(var f in p){var h=e[f];if(r(e,f)&&"function"!=typeof h)return m(s,a,l,f,v(h));if(!h)return new d("Invalid "+a+" `"+l+"` key `"+f+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=h(c,f,s,a,l+"."+f,n);if(y)return y}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,s,a,c,p,f,h){if(c=c||u,f=f||a,h!==n){if(l){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+a;!t[m]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,r++)}}return null==s[a]?o?null===s[a]?new d("The "+p+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new d("The "+p+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,p,f)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function y(e){return h((function(t,n,r,o,i,s){var a=t[n];return g(a)!==e?new d("Invalid "+o+" `"+i+"` of type `"+v(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,n,r,o){return new d((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(e){var t,n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(t=e,"symbol"===n||t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)?"symbol":n)}function v(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},le}var Oe=function(){if(fe)return de.exports;if(fe=1,"production"!==process.env.NODE_ENV){var e=be();de.exports=we()(e.isElement,!0)}else de.exports=function(){if(pe)return ue;pe=1;var e=ge();function t(){}function n(){}return n.resetWarningCache=t,ue=function(){function r(t,n,r,o,i,s){if(s!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();return de.exports}();const Ee=r.getDefaultExportFromCjs(Oe);
465
+ */
466
+ function Tr() {
467
+ if (qt) return rt;
468
+ qt = 1;
469
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
470
+ return rt = function() {
471
+ try {
472
+ if (!Object.assign) return !1;
473
+ var r = new String("abc");
474
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5") return !1;
475
+ for (var o = {}, i = 0; i < 10; i++) o["_" + String.fromCharCode(i)] = i;
476
+ if (Object.getOwnPropertyNames(o).map(function(a) {
477
+ return o[a];
478
+ }).join("") !== "0123456789") return !1;
479
+ var s = {};
480
+ return "abcdefghijklmnopqrst".split("").forEach(function(a) {
481
+ s[a] = a;
482
+ }), Object.keys(Object.assign({}, s)).join("") === "abcdefghijklmnopqrst";
483
+ } catch {
484
+ return !1;
485
+ }
486
+ }() ? Object.assign : function(r, o) {
487
+ for (var i, s, a = function(p) {
488
+ if (p == null) throw new TypeError("Object.assign cannot be called with null or undefined");
489
+ return Object(p);
490
+ }(r), l = 1; l < arguments.length; l++) {
491
+ for (var c in i = Object(arguments[l])) t.call(i, c) && (a[c] = i[c]);
492
+ if (e) {
493
+ s = e(i);
494
+ for (var u = 0; u < s.length; u++) n.call(i, s[u]) && (a[s[u]] = i[s[u]]);
495
+ }
496
+ }
497
+ return a;
498
+ }, rt;
499
+ }
500
+ function bt() {
501
+ return Kt ? Yt : (Kt = 1, Yt = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
502
+ }
503
+ function An() {
504
+ return Xt ? Jt : (Xt = 1, Jt = Function.call.bind(Object.prototype.hasOwnProperty));
505
+ }
506
+ function kr() {
507
+ if (Qt) return Zt;
508
+ Qt = 1;
509
+ var e = function() {
510
+ };
511
+ if (process.env.NODE_ENV !== "production") {
512
+ var t = bt(), n = {}, r = An();
513
+ e = function(i) {
514
+ var s = "Warning: " + i;
515
+ typeof console < "u" && console.error(s);
516
+ try {
517
+ throw new Error(s);
518
+ } catch {
519
+ }
520
+ };
521
+ }
522
+ function o(i, s, a, l, c) {
523
+ if (process.env.NODE_ENV !== "production") {
524
+ for (var u in i) if (r(i, u)) {
525
+ var p;
526
+ try {
527
+ if (typeof i[u] != "function") {
528
+ var d = Error((l || "React class") + ": " + a + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
529
+ throw d.name = "Invariant Violation", d;
530
+ }
531
+ p = i[u](s, u, l, a, null, t);
532
+ } catch (y) {
533
+ p = y;
534
+ }
535
+ if (!p || p instanceof Error || e((l || "React class") + ": type specification of " + a + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), p instanceof Error && !(p.message in n)) {
536
+ n[p.message] = !0;
537
+ var h = c ? c() : "";
538
+ e("Failed " + a + " type: " + p.message + (h ?? ""));
539
+ }
540
+ }
541
+ }
542
+ }
543
+ return o.resetWarningCache = function() {
544
+ process.env.NODE_ENV !== "production" && (n = {});
545
+ }, Zt = o;
546
+ }
547
+ function Pr() {
548
+ if (en) return ot;
549
+ en = 1;
550
+ var e = Ln(), t = Tr(), n = bt(), r = An(), o = kr(), i = function() {
551
+ };
552
+ function s() {
553
+ return null;
554
+ }
555
+ return process.env.NODE_ENV !== "production" && (i = function(a) {
556
+ var l = "Warning: " + a;
557
+ typeof console < "u" && console.error(l);
558
+ try {
559
+ throw new Error(l);
560
+ } catch {
561
+ }
562
+ }), ot = function(a, l) {
563
+ var c = typeof Symbol == "function" && Symbol.iterator, u = "<<anonymous>>", p = { array: v("array"), bigint: v("bigint"), bool: v("boolean"), func: v("function"), number: v("number"), object: v("object"), string: v("string"), symbol: v("symbol"), any: y(s), arrayOf: function(f) {
564
+ return y(function(E, C, O, j, I) {
565
+ if (typeof f != "function") return new h("Property `" + I + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
566
+ var L = E[C];
567
+ if (!Array.isArray(L)) return new h("Invalid " + j + " `" + I + "` of type `" + w(L) + "` supplied to `" + O + "`, expected an array.");
568
+ for (var M = 0; M < L.length; M++) {
569
+ var B = f(L, M, O, j, I + "[" + M + "]", n);
570
+ if (B instanceof Error) return B;
571
+ }
572
+ return null;
573
+ });
574
+ }, element: y(function(f, E, C, O, j) {
575
+ var I = f[E];
576
+ return a(I) ? null : new h("Invalid " + O + " `" + j + "` of type `" + w(I) + "` supplied to `" + C + "`, expected a single ReactElement.");
577
+ }), elementType: y(function(f, E, C, O, j) {
578
+ var I = f[E];
579
+ return e.isValidElementType(I) ? null : new h("Invalid " + O + " `" + j + "` of type `" + w(I) + "` supplied to `" + C + "`, expected a single ReactElement type.");
580
+ }), instanceOf: function(f) {
581
+ return y(function(E, C, O, j, I) {
582
+ if (!(E[C] instanceof f)) {
583
+ var L = f.name || u;
584
+ return new h("Invalid " + j + " `" + I + "` of type `" + (((M = E[C]).constructor && M.constructor.name ? M.constructor.name : u) + "` supplied to `") + O + "`, expected instance of `" + L + "`.");
585
+ }
586
+ var M;
587
+ return null;
588
+ });
589
+ }, node: y(function(f, E, C, O, j) {
590
+ return x(f[E]) ? null : new h("Invalid " + O + " `" + j + "` supplied to `" + C + "`, expected a ReactNode.");
591
+ }), objectOf: function(f) {
592
+ return y(function(E, C, O, j, I) {
593
+ if (typeof f != "function") return new h("Property `" + I + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
594
+ var L = E[C], M = w(L);
595
+ if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected an object.");
596
+ for (var B in L) if (r(L, B)) {
597
+ var $ = f(L, B, O, j, I + "." + B, n);
598
+ if ($ instanceof Error) return $;
599
+ }
600
+ return null;
601
+ });
602
+ }, oneOf: function(f) {
603
+ return Array.isArray(f) ? y(function(E, C, O, j, I) {
604
+ for (var L = E[C], M = 0; M < f.length; M++) if (d(L, f[M])) return null;
605
+ var B = JSON.stringify(f, function($, H) {
606
+ return b(H) === "symbol" ? String(H) : H;
607
+ });
608
+ return new h("Invalid " + j + " `" + I + "` of value `" + String(L) + "` supplied to `" + O + "`, expected one of " + B + ".");
609
+ }) : (process.env.NODE_ENV !== "production" && i(arguments.length > 1 ? "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." : "Invalid argument supplied to oneOf, expected an array."), s);
610
+ }, oneOfType: function(f) {
611
+ if (!Array.isArray(f)) return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
612
+ for (var E = 0; E < f.length; E++) {
613
+ var C = f[E];
614
+ if (typeof C != "function") return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + k(C) + " at index " + E + "."), s;
615
+ }
616
+ return y(function(O, j, I, L, M) {
617
+ for (var B = [], $ = 0; $ < f.length; $++) {
618
+ var H = (0, f[$])(O, j, I, L, M, n);
619
+ if (H == null) return null;
620
+ H.data && r(H.data, "expectedType") && B.push(H.data.expectedType);
621
+ }
622
+ return new h("Invalid " + L + " `" + M + "` supplied to `" + I + "`" + (B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "") + ".");
623
+ });
624
+ }, shape: function(f) {
625
+ return y(function(E, C, O, j, I) {
626
+ var L = E[C], M = w(L);
627
+ if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected `object`.");
628
+ for (var B in f) {
629
+ var $ = f[B];
630
+ if (typeof $ != "function") return g(O, j, I, B, b($));
631
+ var H = $(L, B, O, j, I + "." + B, n);
632
+ if (H) return H;
633
+ }
634
+ return null;
635
+ });
636
+ }, exact: function(f) {
637
+ return y(function(E, C, O, j, I) {
638
+ var L = E[C], M = w(L);
639
+ if (M !== "object") return new h("Invalid " + j + " `" + I + "` of type `" + M + "` supplied to `" + O + "`, expected `object`.");
640
+ var B = t({}, E[C], f);
641
+ for (var $ in B) {
642
+ var H = f[$];
643
+ if (r(f, $) && typeof H != "function") return g(O, j, I, $, b(H));
644
+ if (!H) return new h("Invalid " + j + " `" + I + "` key `" + $ + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(E[C], null, " ") + `
645
+ Valid keys: ` + JSON.stringify(Object.keys(f), null, " "));
646
+ var oe = H(L, $, O, j, I + "." + $, n);
647
+ if (oe) return oe;
648
+ }
649
+ return null;
650
+ });
651
+ } };
652
+ function d(f, E) {
653
+ return f === E ? f !== 0 || 1 / f == 1 / E : f != f && E != E;
654
+ }
655
+ function h(f, E) {
656
+ this.message = f, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
657
+ }
658
+ function y(f) {
659
+ if (process.env.NODE_ENV !== "production") var E = {}, C = 0;
660
+ function O(I, L, M, B, $, H, oe) {
661
+ if (B = B || u, H = H || M, oe !== n) {
662
+ if (l) {
663
+ var ue = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
664
+ throw ue.name = "Invariant Violation", ue;
665
+ }
666
+ if (process.env.NODE_ENV !== "production" && typeof console < "u") {
667
+ var Se = B + ":" + M;
668
+ !E[Se] && C < 3 && (i("You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), E[Se] = !0, C++);
669
+ }
670
+ }
671
+ return L[M] == null ? I ? L[M] === null ? new h("The " + $ + " `" + H + "` is marked as required in `" + B + "`, but its value is `null`.") : new h("The " + $ + " `" + H + "` is marked as required in `" + B + "`, but its value is `undefined`.") : null : f(L, M, B, $, H);
672
+ }
673
+ var j = O.bind(null, !1);
674
+ return j.isRequired = O.bind(null, !0), j;
675
+ }
676
+ function v(f) {
677
+ return y(function(E, C, O, j, I, L) {
678
+ var M = E[C];
679
+ return w(M) !== f ? new h("Invalid " + j + " `" + I + "` of type `" + b(M) + "` supplied to `" + O + "`, expected `" + f + "`.", { expectedType: f }) : null;
680
+ });
681
+ }
682
+ function g(f, E, C, O, j) {
683
+ return new h((f || "React class") + ": " + E + " type `" + C + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`.");
684
+ }
685
+ function x(f) {
686
+ switch (typeof f) {
687
+ case "number":
688
+ case "string":
689
+ case "undefined":
690
+ return !0;
691
+ case "boolean":
692
+ return !f;
693
+ case "object":
694
+ if (Array.isArray(f)) return f.every(x);
695
+ if (f === null || a(f)) return !0;
696
+ var E = function(I) {
697
+ var L = I && (c && I[c] || I["@@iterator"]);
698
+ if (typeof L == "function") return L;
699
+ }(f);
700
+ if (!E) return !1;
701
+ var C, O = E.call(f);
702
+ if (E !== f.entries) {
703
+ for (; !(C = O.next()).done; ) if (!x(C.value)) return !1;
704
+ } else for (; !(C = O.next()).done; ) {
705
+ var j = C.value;
706
+ if (j && !x(j[1])) return !1;
707
+ }
708
+ return !0;
709
+ default:
710
+ return !1;
711
+ }
712
+ }
713
+ function w(f) {
714
+ var E = typeof f;
715
+ return Array.isArray(f) ? "array" : f instanceof RegExp ? "object" : function(C, O) {
716
+ return C === "symbol" || !!O && (O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol);
717
+ }(E, f) ? "symbol" : E;
718
+ }
719
+ function b(f) {
720
+ if (f == null) return "" + f;
721
+ var E = w(f);
722
+ if (E === "object") {
723
+ if (f instanceof Date) return "date";
724
+ if (f instanceof RegExp) return "regexp";
725
+ }
726
+ return E;
727
+ }
728
+ function k(f) {
729
+ var E = b(f);
730
+ switch (E) {
731
+ case "array":
732
+ case "object":
733
+ return "an " + E;
734
+ case "boolean":
735
+ case "date":
736
+ case "regexp":
737
+ return "a " + E;
738
+ default:
739
+ return E;
740
+ }
741
+ }
742
+ return h.prototype = Error.prototype, p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
743
+ }, ot;
744
+ }
745
+ function Nr() {
746
+ if (nn) return tn;
747
+ nn = 1;
748
+ var e = bt();
749
+ function t() {
750
+ }
751
+ function n() {
752
+ }
753
+ return n.resetWarningCache = t, tn = function() {
754
+ function r(s, a, l, c, u, p) {
755
+ if (p !== e) {
756
+ var d = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
757
+ throw d.name = "Invariant Violation", d;
758
+ }
759
+ }
760
+ function o() {
761
+ return r;
762
+ }
763
+ r.isRequired = r;
764
+ var i = { array: r, bigint: r, bool: r, func: r, number: r, object: r, string: r, symbol: r, any: r, arrayOf: o, element: r, elementType: r, instanceOf: o, node: r, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: n, resetWarningCache: t };
765
+ return i.PropTypes = i, i;
766
+ };
767
+ }
768
+ function Cr() {
769
+ if (rn) return ze.exports;
770
+ if (rn = 1, process.env.NODE_ENV !== "production") {
771
+ var e = Ln();
772
+ ze.exports = Pr()(e.isElement, !0);
773
+ } else ze.exports = Nr()();
774
+ return ze.exports;
775
+ }
776
+ const S = Le(Cr());
16
777
  /**!
17
778
  * @fileOverview Kickass library to create and place poppers near their reference elements.
18
779
  * @version 1.16.1
@@ -36,4 +797,1720 @@ object-assign
36
797
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
798
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
799
  * SOFTWARE.
39
- */var Se="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,xe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Se&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),Te=Se&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),xe))}};function ke(e){return e&&"[object Function]"==={}.toString.call(e)}function Pe(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Ne(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Ce(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Pe(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Ce(Ne(e))}function je(e){return e&&e.referenceNode?e.referenceNode:e}var Ie=Se&&!(!window.MSInputMethodContext||!document.documentMode),Re=Se&&/MSIE 10/.test(navigator.userAgent);function Le(e){return 11===e?Ie:10===e?Re:Ie||Re}function Ae(e){if(!e)return document.documentElement;for(var t=Le(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Pe(n,"position")?Ae(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Me(e){return null!==e.parentNode?Me(e.parentNode):e}function De(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var s,a,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Ae(s.firstElementChild)!==s?Ae(l):l;var c=Me(e);return c.host?De(c.host,t):De(e,Me(t).host)}function Fe(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Be(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Le(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function We(e){var t=e.body,n=e.documentElement,r=Le(10)&&getComputedStyle(n);return{height:Be("Height",t,n,r),width:Be("Width",t,n,r)}}var ze=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),He=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function $e(e){return Ue({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ve(e){var t={};try{if(Le(10)){t=e.getBoundingClientRect();var n=Fe(e,"top"),r=Fe(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(p){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?We(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,a=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=Pe(e);l-=_e(u,"x"),c-=_e(u,"y"),o.width-=l,o.height-=c}return $e(o)}function qe(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Le(10),o="HTML"===t.nodeName,i=Ve(e),s=Ve(t),a=Ce(e),l=Pe(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=$e({top:i.top-s.top-c,left:i.left-s.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var f=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-f,p.bottom-=c-f,p.left-=u-d,p.right-=u-d,p.marginTop=f,p.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Fe(t,"top"),o=Fe(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(p,t)),p}function Ge(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Pe(e,"position"))return!0;var n=Ne(e);return!!n&&Ge(n)}function Ye(e){if(!e||!e.parentElement||Le())return document.documentElement;for(var t=e.parentElement;t&&"none"===Pe(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ke(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?Ye(e):De(e,je(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=qe(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Fe(n),a=t?0:Fe(n,"left");return $e({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(s,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=Ce(Ne(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var l=qe(a,s,o);if("HTML"!==a.nodeName||Ge(s))i=l;else{var c=We(e.ownerDocument),u=c.height,p=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=p+l.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Je(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=Ke(n,r,i,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map((function(e){return Ue({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function Xe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return qe(n,r?Ye(t):De(t,je(n)),r)}function Ze(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Qe(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function et(e,t,n){n=n.split("-")[0];var r=Ze(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[s]=t[s]+t[l]/2-r[l]/2,o[a]=n===a?t[a]-r[c]:t[Qe(a)],o}function tt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function nt(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=tt(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function;var n=e.function||e.fn;e.enabled&&ke(n)&&(t.offsets.popper=$e(t.offsets.popper),t.offsets.reference=$e(t.offsets.reference),t=n(t,e))})),t}function rt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Xe(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Je(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=et(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ot(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function it(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function st(){return this.state.isDestroyed=!0,ot(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[it("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function at(e){var t=e.ownerDocument;return t?t.defaultView:window}function lt(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||lt(Ce(i.parentNode),t,n,r),r.push(i)}function ct(e,t,n,r){n.updateBound=r,at(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Ce(e);return lt(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function ut(){this.state.eventsEnabled||(this.state=ct(this.reference,this.options,this.state,this.scheduleUpdate))}function pt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,at(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ft(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function dt(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ft(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ht=Se&&/Firefox/i.test(navigator.userAgent);function yt(e,t,n){var r=tt(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o);return o}var mt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],bt=mt.slice(3);function gt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=bt.indexOf(e),r=bt.slice(n+1).concat(bt.slice(0,n));return t?r.reverse():r}var vt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:He({},l,i[l]),end:He({},l,i[l]+i[c]-s[c])};e.offsets.popper=Ue({},s,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,o=e.placement,i=e.offsets,s=i.popper,a=i.reference,l=o.split("-")[0];return n=ft(+r)?[+r,0]:function(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=s.indexOf(tt(s,(function(e){return-1!==e.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",s=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)}),[]).map((function(e){return i=o,s=t,a=n,c=+(l=(r=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],u=l[2],c?0===u.indexOf("%")?$e("%p"===u?s:a)[i]/100*c:"vh"===u||"vw"===u?("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*c:c:r;var r,i,s,a,l,c,u}))}))).forEach((function(e,t){e.forEach((function(n,r){ft(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}(r,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Ae(e.instance.popper);e.instance.reference===n&&(n=Ae(n));var r=it("transform"),o=e.instance.popper.style,i=o.top,s=o.left,a=o[r];o.top="",o.left="",o[r]="";var l=Ke(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=s,o[r]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),He({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),He({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Ue({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[a])&&(e.offsets.popper[l]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!yt(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",h=Ze(r)[c];a[d]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(a[d]-h)),a[p]+h>s[d]&&(e.offsets.popper[p]+=a[p]+h-s[d]),e.offsets.popper=$e(e.offsets.popper);var y=a[p]+a[c]/2-h/2,m=Pe(e.instance.popper),b=parseFloat(m["margin"+u]),g=parseFloat(m["border"+u+"Width"]),v=y-e.offsets.popper[p]-b-g;return v=Math.max(Math.min(s[c]-h,v),0),e.arrowElement=r,e.offsets.arrow=(He(n={},p,Math.round(v)),He(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ot(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ke(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Qe(r),i=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[r,o];break;case"clockwise":s=gt(r);break;case"counterclockwise":s=gt(r,!0);break;default:s=t.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return e;r=e.placement.split("-")[0],o=Qe(r);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),y=p(c.top)<p(n.top),m=p(c.bottom)>p(n.bottom),b="left"===r&&d||"right"===r&&h||"top"===r&&y||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(g&&"start"===i&&d||g&&"end"===i&&h||!g&&"start"===i&&y||!g&&"end"===i&&m),w=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&d||!g&&"start"===i&&m||!g&&"end"===i&&y),O=v||w;(f||b||O)&&(e.flipped=!0,(f||b)&&(r=s[l+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Ue({},e.offsets.popper,et(e.instance.popper,e.offsets.reference,e.placement)),e=nt(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=i[n]-(a?o[s?"width":"height"]:0),e.placement=Qe(t),e.offsets.popper=$e(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!yt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=tt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,o,i,s,a,l,c,u,p,f,d,h,y,m,b,g=t.x,v=t.y,w=e.offsets.popper,O=tt(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration,E=void 0!==O?O:t.gpuAcceleration,S=Ae(e.instance.popper),x=Ve(S),T={position:w.position},k=(o=e,i=window.devicePixelRatio<2||!ht,s=o.offsets,a=s.popper,l=s.reference,c=Math.round,u=Math.floor,p=function(e){return e},f=c(l.width),d=c(a.width),h=-1!==["left","right"].indexOf(o.placement),y=-1!==o.placement.indexOf("-"),b=i?c:p,{left:(m=i?h||y||f%2==d%2?c:u:p)(f%2==1&&d%2==1&&!y&&i?a.left-1:a.left),top:b(a.top),bottom:b(a.bottom),right:m(a.right)}),P="bottom"===g?"top":"bottom",N="right"===v?"left":"right",C=it("transform");if(r="bottom"===P?"HTML"===S.nodeName?-S.clientHeight+k.bottom:-x.height+k.bottom:k.top,n="right"===N?"HTML"===S.nodeName?-S.clientWidth+k.right:-x.width+k.right:k.left,E&&C)T[C]="translate3d("+n+"px, "+r+"px, 0)",T[P]=0,T[N]=0,T.willChange="transform";else{var j="bottom"===P?-1:1,I="right"===N?-1:1;T[P]=r*j,T[N]=n*I,T.willChange=P+", "+N}var R={"x-placement":e.placement};return e.attributes=Ue({},R,e.attributes),e.styles=Ue({},T,e.styles),e.arrowStyles=Ue({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return dt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&dt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=Xe(o,t,e,n.positionFixed),s=Je(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),dt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},wt=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Te(this.update.bind(this)),this.options=Ue({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ue({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Ue({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Ue({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&ke(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ze(e,[{key:"update",value:function(){return rt.call(this)}},{key:"destroy",value:function(){return st.call(this)}},{key:"enableEventListeners",value:function(){return ut.call(this)}},{key:"disableEventListeners",value:function(){return pt.call(this)}}]),e}();wt.Utils=("undefined"!=typeof window?window:global).PopperUtils,wt.placements=mt,wt.Defaults=vt;var Ot=["innerHTML","ownerDocument","style","attributes","nodeValue"],Et=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],St=["bigint","boolean","null","number","string","symbol","undefined"];function xt(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,Et.includes(t)?n:void 0)}function Tt(e){return function(t){return xt(t)===e}}function kt(e){return function(t){return typeof t===e}}function Pt(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return Pt.array(e)?"Array":Pt.plainFunction(e)?"Function":xt(e)||"Object"}function Nt(e){return function(t){return typeof t===e}}Pt.array=Array.isArray,Pt.arrayOf=function(e,t){return!(!Pt.array(e)&&!Pt.function(t))&&e.every((function(e){return t(e)}))},Pt.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===xt(e)},Pt.asyncFunction=Tt("AsyncFunction"),Pt.bigint=kt("bigint"),Pt.boolean=function(e){return!0===e||!1===e},Pt.date=Tt("Date"),Pt.defined=function(e){return!Pt.undefined(e)},Pt.domElement=function(e){return Pt.object(e)&&!Pt.plainObject(e)&&1===e.nodeType&&Pt.string(e.nodeName)&&Ot.every((function(t){return t in e}))},Pt.empty=function(e){return Pt.string(e)&&0===e.length||Pt.array(e)&&0===e.length||Pt.object(e)&&!Pt.map(e)&&!Pt.set(e)&&0===Object.keys(e).length||Pt.set(e)&&0===e.size||Pt.map(e)&&0===e.size},Pt.error=Tt("Error"),Pt.function=kt("function"),Pt.generator=function(e){return Pt.iterable(e)&&Pt.function(e.next)&&Pt.function(e.throw)},Pt.generatorFunction=Tt("GeneratorFunction"),Pt.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},Pt.iterable=function(e){return!Pt.nullOrUndefined(e)&&Pt.function(e[Symbol.iterator])},Pt.map=Tt("Map"),Pt.nan=function(e){return Number.isNaN(e)},Pt.null=function(e){return null===e},Pt.nullOrUndefined=function(e){return Pt.null(e)||Pt.undefined(e)},Pt.number=function(e){return kt("number")(e)&&!Pt.nan(e)},Pt.numericString=function(e){return Pt.string(e)&&e.length>0&&!Number.isNaN(Number(e))},Pt.object=function(e){return!Pt.nullOrUndefined(e)&&(Pt.function(e)||"object"==typeof e)},Pt.oneOf=function(e,t){return!!Pt.array(e)&&e.indexOf(t)>-1},Pt.plainFunction=Tt("Function"),Pt.plainObject=function(e){if("Object"!==xt(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},Pt.primitive=function(e){return Pt.null(e)||(t=typeof e,St.includes(t));var t},Pt.promise=Tt("Promise"),Pt.propertyOf=function(e,t,n){if(!Pt.object(e)||!t)return!1;var r=e[t];return Pt.function(n)?n(r):Pt.defined(r)},Pt.regexp=Tt("RegExp"),Pt.set=Tt("Set"),Pt.string=kt("string"),Pt.symbol=kt("symbol"),Pt.undefined=kt("undefined"),Pt.weakMap=Tt("WeakMap"),Pt.weakSet=Tt("WeakSet");var Ct=Nt("function"),jt=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},It=function(e){return!Rt(e)&&!function(e){return null===e}(e)&&(Ct(e)||"object"==typeof e)},Rt=Nt("undefined"),Lt=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function At(e,t){if(e===t)return!0;if(e&&It(e)&&t&&It(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!=r--;)if(!At(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var s=Lt(e.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!t.has(l[0]))return!1}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var c=Lt(e.entries()),u=c.next();!u.done;u=c.next())if(!At((l=u.value)[1],t.get(l[0])))return!1}catch(p){o={error:p}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=Lt(e.entries()),i=o.next();!i.done;i=o.next()){var s=i.value;if(!t.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(jt(e)&&jt(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=n.length;0!=o--;){var i=n[o];if(!("_owner"===i&&e.$$typeof||At(e[i],t[i])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}function Mt(e,t,n){var r=n.actual,o=n.key,i=n.previous,s=n.type,a=Ut(e,o),l=Ut(t,o),c=[a,l].every(Pt.number)&&("increased"===s?a<l:a>l);return Pt.undefined(r)||(c=c&&l===r),Pt.undefined(i)||(c=c&&a===i),c}function Dt(e,t,n){var r,o=n.key,i=n.type,s=n.value,a=Ut(e,o),l=Ut(t,o),c="added"===i?a:l,u="added"===i?l:a;return Pt.nullOrUndefined(s)?[a,l].every(Pt.array)?!u.every(zt(c)):[a,l].every(Pt.plainObject)?(r=Object.keys(c),Object.keys(u).some((function(e){return!r.includes(e)}))):![a,l].every((function(e){return Pt.primitive(e)&&Pt.defined(e)}))&&("added"===i?!Pt.defined(a)&&Pt.defined(l):Pt.defined(a)&&!Pt.defined(l)):Pt.defined(c)?!(!Pt.array(c)&&!Pt.plainObject(c))&&function(e,t,n){return!!Ht(e,t)&&([e,t].every(Pt.array)?!e.some(Bt(n))&&t.some(Bt(n)):[e,t].every(Pt.plainObject)?!Object.entries(e).some(_t(n))&&Object.entries(t).some(_t(n)):t===n)}(c,u,s):At(u,s)}function Ft(e,t,n){var r=(void 0===n?{}:n).key,o=Ut(e,r),i=Ut(t,r);if(!Ht(o,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every((function(e){return Pt.string(e)||Pt.array(e)||Pt.plainObject(e)}))}(o,i))throw new TypeError("Inputs don't have length");return[o,i].every(Pt.plainObject)&&(o=Object.keys(o),i=Object.keys(i)),[o,i]}function _t(e){return function(t){var n=t[0],r=t[1];return Pt.array(e)?At(e,r)||e.some((function(e){return At(e,r)||Pt.array(r)&&zt(r)(e)})):Pt.plainObject(e)&&e[n]?!!e[n]&&At(e[n],r):At(e,r)}}function Bt(e){return function(t){return Pt.array(e)?e.some((function(e){return At(e,t)||Pt.array(t)&&zt(t)(e)})):At(e,t)}}function Wt(e,t){return Pt.array(e)?e.some((function(e){return At(e,t)})):At(e,t)}function zt(e){return function(t){return e.some((function(e){return At(e,t)}))}}function Ht(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Pt.array)||e.every(Pt.number)||e.every(Pt.plainObject)||e.every(Pt.string)}function Ut(e,t){return Pt.plainObject(e)||Pt.array(e)?Pt.string(t)?t.split(".").reduce((function(e,t){return e&&e[t]}),e):Pt.number(t)?e[t]:e:e}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tn(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yt(e,t,n){return(t=tn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Jt(e);if(t){var o=Jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}(this,n)}}function tn(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var nn={flip:{padding:20},preventOverflow:{padding:10}};function rn(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(t))throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(n,r,o){for(var i=arguments.length,s=new Array(i>3?i-3:0),a=3;a<i;a++)s[a-3]=arguments[a];return c=n,u=r,p=o,("boolean"==typeof(l=t)?l:"function"==typeof l?l(c,u,p):!0===Boolean(l)&&Boolean(l))?function(e,t){return Object.hasOwnProperty.call(e,t)}(n,r)?e.apply(void 0,[n,r,o].concat(s)):function(e,t,n){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}(n,r,o):e.apply(void 0,[n,r,o].concat(s));var l,c,u,p}}var on={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},sn=void 0!==o.createPortal;function an(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function ln(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function cn(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,s=void 0!==i&&i,a=o?console.warn||console.error:console.log;s&&t&&n&&(Array.isArray(n)?n.forEach((function(e){Pt.plainObject(e)&&e.key?a.apply(console,[e.key,e.value]):a.apply(console,[e])})):a.apply(console,[n]))}function un(){}var pn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"componentDidMount",value:function(){an()&&(this.node||this.appendNode(),sn||this.renderPortal())}},{key:"componentDidUpdate",value:function(){an()&&(sn||this.renderPortal())}},{key:"componentWillUnmount",value:function(){an()&&this.node&&(sn||o.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,n=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!an())return null;var e=this.props,t=e.children,r=e.setRef;return this.node||this.appendNode(),sn?o.createPortal(t,this.node):(r(o.unstable_renderSubtreeIntoContainer(this,t.length>1?n.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return sn?this.renderReact16():null}}]),t}();Yt(pn,"propTypes",{children:Ee.oneOfType([Ee.element,Ee.array]),hasChildren:Ee.bool,id:Ee.oneOfType([Ee.string,Ee.number]),placement:Ee.string,setRef:Ee.func.isRequired,target:Ee.oneOfType([Ee.object,Ee.string]),zIndex:Ee.number});var fn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,r=t.placement,o=t.setArrowRef,i=t.styles.arrow,s=i.color,a=i.display,l=i.length,c=i.margin,u=i.position,p=i.spread,f={display:a,position:u},d=p,h=l;return r.startsWith("top")?(e="0,0 ".concat(d/2,",").concat(h," ").concat(d,",0"),f.bottom=0,f.marginLeft=c,f.marginRight=c):r.startsWith("bottom")?(e="".concat(d,",").concat(h," ").concat(d/2,",0 0,").concat(h),f.top=0,f.marginLeft=c,f.marginRight=c):r.startsWith("left")?(h=p,e="0,0 ".concat(d=l,",").concat(h/2," 0,").concat(h),f.right=0,f.marginTop=c,f.marginBottom=c):r.startsWith("right")&&(h=p,e="".concat(d=l,",").concat(h," ").concat(d,",0 0,").concat(h/2),f.left=0,f.marginTop=c,f.marginBottom=c),n.createElement("div",{className:"__floater__arrow",style:this.parentStyle},n.createElement("span",{ref:o,style:f},n.createElement("svg",{width:d,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},n.createElement("polygon",{points:e,fill:s}))))}}]),t}();Yt(fn,"propTypes",{placement:Ee.string.isRequired,setArrowRef:Ee.func.isRequired,styles:Ee.object.isRequired});var dn=["color","height","width"];function hn(e){var t=e.handleClick,r=e.styles,o=r.color,i=r.height,s=r.width,a=Zt(r,dn);return n.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},n.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}function yn(e){var t=e.content,r=e.footer,o=e.handleClick,i=e.open,s=e.positionWrapper,a=e.showCloseButton,l=e.title,c=e.styles,u={content:n.isValidElement(t)?t:n.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=n.isValidElement(l)?l:n.createElement("div",{className:"__floater__title",style:c.title},l)),r&&(u.footer=n.isValidElement(r)?r:n.createElement("div",{className:"__floater__footer",style:c.footer},r)),!a&&!s||Pt.boolean(i)||(u.close=n.createElement(hn,{styles:c.close,handleClick:o})),n.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}hn.propTypes={handleClick:Ee.func.isRequired,styles:Ee.object.isRequired},yn.propTypes={content:Ee.node.isRequired,footer:Ee.node,handleClick:Ee.func.isRequired,open:Ee.bool,positionWrapper:Ee.bool.isRequired,showCloseButton:Ee.bool.isRequired,styles:Ee.object.isRequired,title:Ee.node};var mn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,s=e.styles,a=s.arrow.length,l=s.floater,c=s.floaterCentered,u=s.floaterClosing,p=s.floaterOpening,f=s.floaterWithAnimation,d=s.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(a,"px"):r.startsWith("bottom")?h.padding="".concat(a,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(a,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(a,"px"))),-1!==[on.OPENING,on.OPEN].indexOf(i)&&(h=Vt(Vt({},h),p)),i===on.CLOSING&&(h=Vt(Vt({},h),u)),i!==on.OPEN||t||(h=Vt(Vt({},h),f)),"center"===r&&(h=Vt(Vt({},h),c)),n&&(h=Vt(Vt({},h),d)),Vt(Vt({},l),h)}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,s=e.status,a={},l=["__floater"];return a.content=t?n.isValidElement(t)?n.cloneElement(t,{closeFn:r}):t({closeFn:r}):n.createElement(yn,this.props),s===on.OPEN&&l.push("__floater__open"),o||(a.arrow=n.createElement(fn,this.props)),n.createElement("div",{ref:i,className:l.join(" "),style:this.style},n.createElement("div",{className:"__floater__body"},a.content,a.arrow))}}]),t}();Yt(mn,"propTypes",{component:Ee.oneOfType([Ee.func,Ee.element]),content:Ee.node,disableAnimation:Ee.bool.isRequired,footer:Ee.node,handleClick:Ee.func.isRequired,hideArrow:Ee.bool.isRequired,open:Ee.bool,placement:Ee.string.isRequired,positionWrapper:Ee.bool.isRequired,setArrowRef:Ee.func.isRequired,setFloaterRef:Ee.func.isRequired,showCloseButton:Ee.bool,status:Ee.string.isRequired,styles:Ee.object.isRequired,title:Ee.node});var bn=function(){Kt(t,n.Component);var e=en(t);function t(){return qt(this,t),e.apply(this,arguments)}return Gt(t,[{key:"render",value:function(){var e,t=this.props,r=t.children,o=t.handleClick,i=t.handleMouseEnter,s=t.handleMouseLeave,a=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(r)if(1===n.Children.count(r))if(n.isValidElement(r)){var p=Pt.function(r.type)?"innerRef":"ref";e=n.cloneElement(n.Children.only(r),Yt({},p,a))}else e=n.createElement("span",null,r);else e=r;return e?n.createElement("span",{ref:l,style:Vt(Vt({},u),c),onClick:o,onMouseEnter:i,onMouseLeave:s},e):null}}]),t}();Yt(bn,"propTypes",{children:Ee.node,handleClick:Ee.func.isRequired,handleMouseEnter:Ee.func.isRequired,handleMouseLeave:Ee.func.isRequired,setChildRef:Ee.func.isRequired,setWrapperRef:Ee.func.isRequired,style:Ee.object,styles:Ee.object.isRequired});var gn={zIndex:100},vn=["arrow","flip","offset"],wn=["position","top","right","bottom","left"],On=function(){Kt(t,n.Component);var e=en(t);function t(n){var r;return qt(this,t),Yt(Qt(r=e.call(this,n)),"setArrowRef",(function(e){r.arrowRef=e})),Yt(Qt(r),"setChildRef",(function(e){r.childRef=e})),Yt(Qt(r),"setFloaterRef",(function(e){r.floaterRef=e})),Yt(Qt(r),"setWrapperRef",(function(e){r.wrapperRef=e})),Yt(Qt(r),"handleTransitionEnd",(function(){var e=r.state.status,t=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:e===on.OPENING?on.OPEN:on.IDLE},(function(){var e=r.state.status;t(e===on.OPEN?"open":"close",r.props)}))})),Yt(Qt(r),"handleClick",(function(){var e=r.props,t=e.event,n=e.open;if(!Pt.boolean(n)){var o=r.state,i=o.positionWrapper,s=o.status;("click"===r.event||"hover"===r.event&&i)&&(cn({title:"click",data:[{event:t,status:s===on.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),Yt(Qt(r),"handleMouseEnter",(function(){var e=r.props,t=e.event,n=e.open;if(!Pt.boolean(n)&&!ln()){var o=r.state.status;"hover"===r.event&&o===on.IDLE&&(cn({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),Yt(Qt(r),"handleMouseLeave",(function(){var e=r.props,t=e.event,n=e.eventDelay,o=e.open;if(!Pt.boolean(o)&&!ln()){var i=r.state,s=i.status,a=i.positionWrapper;"hover"===r.event&&(cn({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:r.debug}),n?-1===[on.OPENING,on.OPEN].indexOf(s)||a||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(on.IDLE))}})),r.state={currentPlacement:n.placement,needsUpdate:!1,positionWrapper:n.wrapperOptions.position&&!!n.target,status:on.INIT,statusWrapper:on.INIT},r._isMounted=!1,r.hasMounted=!1,an()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return Gt(t,[{key:"componentDidMount",value:function(){if(an()){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,cn({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:Pt.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&o&&Pt.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(an()){var n,r=this.props,o=r.autoOpen,i=r.open,s=r.target,a=r.wrapperOptions,l=function(e,t){if([e,t].some(Pt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((function(e){return Pt.plainObject(e)||Pt.array(e)})))throw new Error("Expected plain objects or array");var n=function(n,r,o){try{var i=Ut(e,n),s=Ut(t,n),a=Pt.defined(r),l=Pt.defined(o);if(a||l){var c=l?Wt(o,i):!Wt(r,i),u=Wt(r,s);return c&&u}return[i,s].every(Pt.array)||[i,s].every(Pt.plainObject)?!At(i,s):i!==s}catch(p){return!1}};return{added:function(n,r){try{return Dt(e,t,{key:n,type:"added",value:r})}catch(o){return!1}},changed:n,changedFrom:function(n,r,o){if(!Pt.defined(n))return!1;try{var i=Ut(e,n),s=Ut(t,n),a=Pt.defined(o);return Wt(r,i)&&(a?Wt(o,s):!a)}catch(l){return!1}},changedTo:function(e,t){return!!Pt.defined(e)&&(process.env.NODE_ENV,n(e,t))},decreased:function(n,r,o){if(!Pt.defined(n))return!1;try{return Mt(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch(i){return!1}},emptied:function(n){try{var r=Ft(e,t,{key:n}),o=r[0],i=r[1];return!!o.length&&!i.length}catch(s){return!1}},filled:function(n){try{var r=Ft(e,t,{key:n}),o=r[0],i=r[1];return!o.length&&!!i.length}catch(s){return!1}},increased:function(n,r,o){if(!Pt.defined(n))return!1;try{return Mt(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch(i){return!1}},removed:function(n,r){try{return Dt(e,t,{key:n,type:"removed",value:r})}catch(o){return!1}}}}(t,this.state),c=l.changedFrom,u=l.changed;e.open!==i&&(Pt.boolean(i)&&(n=i?on.OPENING:on.CLOSING),this.toggle(n)),e.wrapperOptions.position===a.position&&e.target===s||this.changeWrapperPosition(this.props),(u("status",on.IDLE)&&i||c("status",on.INIT,on.IDLE)&&o)&&this.toggle(on.OPEN),this.popper&&u("status",on.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",on.OPENING)||u("status",on.CLOSING))&&function(e,t,n){var r;r=function(o){n(o),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}(e,t,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){an()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,s=r.hideArrow,a=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:on.IDLE});else if(t&&this.floaterRef){var p=this.options,f=p.arrow,d=p.flip,h=p.offset,y=Zt(p,vn);new wt(t,this.floaterRef,{placement:l,modifiers:Vt({arrow:Vt({enabled:!s,element:this.arrowRef},f),flip:Vt({enabled:!o,behavior:u},d),offset:Vt({offset:"0, ".concat(a,"px")},h)},y),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:on.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var m=Pt.undefined(c.offset)?0:c.offset;new wt(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(m,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:on.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval((function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===on.OPEN?on.CLOSING:on.OPENING;Pt.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||an()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&ln()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return J(nn,e||{})}},{key:"styles",get:function(){var e,t,n=this,r=this.state,o=r.status,i=r.positionWrapper,s=r.statusWrapper,a=this.props.styles,l=J({wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:(t=J(gn,a.options||{})).zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t},a);if(i&&(e=-1===[on.IDLE].indexOf(o)||-1===[on.IDLE].indexOf(s)?l.wrapperPosition:this.wrapperPopper.styles,l.wrapper=Vt(Vt({},l.wrapper),e)),this.target){var c=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=Vt(Vt({},l.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(c.position)&&(this.wrapperStyles={},i||(wn.forEach((function(e){n.wrapperStyles[e]=c[e]})),l.wrapper=Vt(Vt({},l.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!an())return null;var e=this.props.target;return e?Pt.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,r=e.positionWrapper,o=e.status,i=this.props,s=i.children,a=i.component,l=i.content,c=i.disableAnimation,u=i.footer,p=i.hideArrow,f=i.id,d=i.open,h=i.showCloseButton,y=i.style,m=i.target,b=i.title,g=n.createElement(bn,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},s),v={};return r?v.wrapperInPortal=g:v.wrapperAsChildren=g,n.createElement("span",null,n.createElement(pn,{hasChildren:!!s,id:f,placement:t,setRef:this.setFloaterRef,target:m,zIndex:this.styles.options.zIndex},n.createElement(mn,{component:a,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===t,open:d,placement:t,positionWrapper:r,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:b}),v.wrapperInPortal),v.wrapperAsChildren)}}]),t}();Yt(On,"propTypes",{autoOpen:Ee.bool,callback:Ee.func,children:Ee.node,component:rn(Ee.oneOfType([Ee.func,Ee.element]),(function(e){return!e.content})),content:rn(Ee.node,(function(e){return!e.component})),debug:Ee.bool,disableAnimation:Ee.bool,disableFlip:Ee.bool,disableHoverToClick:Ee.bool,event:Ee.oneOf(["hover","click"]),eventDelay:Ee.number,footer:Ee.node,getPopper:Ee.func,hideArrow:Ee.bool,id:Ee.oneOfType([Ee.string,Ee.number]),offset:Ee.number,open:Ee.bool,options:Ee.object,placement:Ee.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Ee.bool,style:Ee.object,styles:Ee.object,target:Ee.oneOfType([Ee.object,Ee.string]),title:Ee.node,wrapperOptions:Ee.shape({offset:Ee.number,placement:Ee.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Ee.bool})}),Yt(On,"defaultProps",{autoOpen:!1,callback:un,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:un,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var En=Object.defineProperty,Sn=(e,t,n)=>{return i=n,(o="symbol"!=typeof t?t+"":t)in(r=e)?En(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var r,o,i},xn="start",Tn="stop",kn="reset",Pn="prev",Nn="next",Cn="close",jn="skip",In="update",Rn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Ln={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},An={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function Mn(){var e;return!("undefined"==typeof window||!(null==(e=window.document)?void 0:e.createElement))}function Dn(e){return e?e.getBoundingClientRect():null}function Fn(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const e=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort(((e,t)=>e-t)),r=Math.floor(e.length/2);return e.length%2==0?(e[r-1]+e[r])/2:e[r]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function _n(e){if("string"==typeof e)try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV,null}return e}function Bn(e,t,n){if(!e)return Hn();const r=H(e);if(r){if(r.isSameNode(Hn()))return n?document:Hn();if(!(r.scrollHeight>r.offsetHeight||t))return r.style.overflow="initial",Hn()}return r}function Wn(e,t){if(!e)return!1;const n=Bn(e,t);return!!n&&!n.isSameNode(Hn())}function zn(e,t="fixed"){if(!(e&&e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=(o=e)&&1===o.nodeType?getComputedStyle(o):null;var o;return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==t)||!!e.parentNode&&zn(e.parentNode,t))}function Hn(){var e;return null!=(e=document.scrollingElement)?e:document.documentElement}var Un=void 0!==o.createPortal;function $n(e=navigator.userAgent){let t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.includes(" OPR/")?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Vn(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qn(e,t={}){const{defaultValue:r,step:o,steps:i}=t;let s=q(e);return s?(s.includes("{step}")||s.includes("{steps}"))&&o&&i&&(s=s.replace("{step}",o.toString()).replace("{steps}",i.toString())):s=n.isValidElement(e)&&!Object.values(e.props).length&&"function"===Vn(e.type)?qn(e.type({}),t):q(r),s}function Gn(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((e,t,n,r)=>t+t+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Yn(e){return e.disableBeacon||"center"===e.placement}function Kn(){return!["chrome","safari","firefox","opera"].includes($n())}function Jn({data:e,debug:t=!1,title:n,warn:r=!1}){const o=r?console.warn||console.error:console.log;t&&n&&e&&(Array.isArray(e)?e.forEach((e=>{S.plainObject(e)&&e.key?o.apply(console,[e.key,e.value]):o.apply(console,[e])})):o.apply(console,[e]))}function Xn(e,...t){if(!S.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Zn(e,t,r){const o=e=>e.replace("{step}",String(t)).replace("{steps}",String(r));if("string"===Vn(e))return o(e);if(!n.isValidElement(e))return e;const{children:i}=e.props;return"string"===Vn(i)&&i.includes("{step}")?n.cloneElement(e,{children:o(i)}):Array.isArray(i)?n.cloneElement(e,{children:i.map((e=>"string"==typeof e?o(e):Zn(e,t,r)))}):"function"!==Vn(e.type)||Object.values(e.props).length?e:Zn(e.type({}),t,r)}var Qn={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},er={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},tr={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:er,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},nr={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},rr={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},or={borderRadius:4,position:"absolute"};function ir(e){return function(e,...t){if(!S.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function sr(e,t){var n,r,o,i,s,a;const l=null!=t?t:{},c=J.all([tr,ir(e),l],{isMergeableObject:S.plainObject}),u=function(e,t){var n,r,o,i,s;const{floaterProps:a,styles:l}=e,c=J(null!=(n=t.floaterProps)?n:{},null!=a?a:{}),u=J(null!=l?l:{},null!=(r=t.styles)?r:{}),p=J(nr,u.options||{}),f="center"===t.placement||t.disableBeacon;let{width:d}=p;window.innerWidth>480&&(d=380),"width"in p&&(d="number"==typeof p.width&&window.innerWidth<p.width?window.innerWidth-30:p.width);const h={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:p.zIndex},y={beacon:{...rr,display:f?"none":"inline-block",height:p.beaconSize,position:"relative",width:p.beaconSize,zIndex:p.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:p.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Gn(p.primaryColor).join(",")}, 0.2)`,border:`2px solid ${p.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:p.backgroundColor,borderRadius:5,boxSizing:"border-box",color:p.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:d},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...rr,backgroundColor:p.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...rr,color:p.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...rr,color:p.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...rr,color:p.textColor,fontSize:14},overlay:{...h,backgroundColor:p.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...h},overlayLegacyCenter:{...h,backgroundColor:p.overlayColor},spotlight:{...or,backgroundColor:"gray"},spotlightLegacy:{...or,boxShadow:`0 0 0 9999px ${p.overlayColor}, ${p.spotlightShadow}`},floaterStyles:{arrow:{color:null!=(s=null==(i=null==(o=null==c?void 0:c.styles)?void 0:o.arrow)?void 0:i.color)?s:p.arrowColor},options:{zIndex:p.zIndex+100}},options:p};return J(y,u)}(e,c),p=Wn(_n(c.target),c.disableScrollParentFix),f=J.all([Qn,null!=(n=e.floaterProps)?n:{},null!=(r=c.floaterProps)?r:{}]);return f.offset=c.offset,f.styles=J(null!=(o=f.styles)?o:{},u.floaterStyles),f.offset+=null!=(s=null!=(i=e.spotlightPadding)?i:c.spotlightPadding)?s:0,c.placementBeacon&&f.wrapperOptions&&(f.wrapperOptions.placement=c.placementBeacon),p&&f.options.preventOverflow&&(f.options.preventOverflow.boundariesElement="window"),{...c,locale:J.all([er,null!=(a=e.locale)?a:{},c.locale||{}]),floaterProps:f,styles:Xn(u,"floaterStyles")}}function ar(e,t=!1){return S.plainObject(e)?!!e.target||(Jn({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Jn({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function lr(e,t=!1){return S.array(e)?e.every((e=>ar(e,t))):(Jn({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var cr,ur={action:"init",controlled:!1,index:0,lifecycle:Ln.INIT,origin:null,size:0,status:An.IDLE},pr=(cr=Xn(ur,"controlled","size"),Object.keys(cr)),fr=class{constructor(e){Sn(this,"beaconPopper"),Sn(this,"tooltipPopper"),Sn(this,"data",new Map),Sn(this,"listener"),Sn(this,"store",new Map),Sn(this,"addListener",(e=>{this.listener=e})),Sn(this,"setSteps",(e=>{const{size:t,status:n}=this.getState(),r={size:e.length,status:n};this.data.set("steps",e),n===An.WAITING&&!t&&e.length&&(r.status=An.RUNNING),this.setState(r)})),Sn(this,"getPopper",(e=>"beacon"===e?this.beaconPopper:this.tooltipPopper)),Sn(this,"setPopper",((e,t)=>{"beacon"===e?this.beaconPopper=t:this.tooltipPopper=t})),Sn(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),Sn(this,"close",((e=null)=>{const{index:t,status:n}=this.getState();n===An.RUNNING&&this.setState({...this.getNextState({action:Cn,index:t+1,origin:e})})})),Sn(this,"go",(e=>{const{controlled:t,status:n}=this.getState();if(t||n!==An.RUNNING)return;const r=this.getSteps()[e];this.setState({...this.getNextState({action:"go",index:e}),status:r?n:An.FINISHED})})),Sn(this,"info",(()=>this.getState())),Sn(this,"next",(()=>{const{index:e,status:t}=this.getState();t===An.RUNNING&&this.setState(this.getNextState({action:Nn,index:e+1}))})),Sn(this,"open",(()=>{const{status:e}=this.getState();e===An.RUNNING&&this.setState({...this.getNextState({action:In,lifecycle:Ln.TOOLTIP})})})),Sn(this,"prev",(()=>{const{index:e,status:t}=this.getState();t===An.RUNNING&&this.setState({...this.getNextState({action:Pn,index:e-1})})})),Sn(this,"reset",((e=!1)=>{const{controlled:t}=this.getState();t||this.setState({...this.getNextState({action:kn,index:0}),status:e?An.RUNNING:An.READY})})),Sn(this,"skip",(()=>{const{status:e}=this.getState();e===An.RUNNING&&this.setState({action:jn,lifecycle:Ln.INIT,status:An.SKIPPED})})),Sn(this,"start",(e=>{const{index:t,size:n}=this.getState();this.setState({...this.getNextState({action:xn,index:S.number(e)?e:t},!0),status:n?An.RUNNING:An.WAITING})})),Sn(this,"stop",((e=!1)=>{const{index:t,status:n}=this.getState();[An.FINISHED,An.SKIPPED].includes(n)||this.setState({...this.getNextState({action:Tn,index:t+(e?1:0)}),status:An.PAUSED})})),Sn(this,"update",(e=>{var t,n,r,o;if(r=e,o=pr,!(S.plainObject(r)&&S.array(o)&&Object.keys(r).every((e=>o.includes(e)))))throw new Error(`State is not valid. Valid keys: ${pr.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...e,action:null!=(t=e.action)?t:In,origin:null!=(n=e.origin)?n:null},!0)})}));const{continuous:t=!1,stepIndex:n,steps:r=[]}=null!=e?e:{};this.setState({action:"init",controlled:S.number(n),continuous:t,index:S.number(n)?n:0,lifecycle:Ln.INIT,origin:null,status:r.length?An.READY:An.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...ur}}getNextState(e,t=!1){var n,r,o,i,s;const{action:a,controlled:l,index:c,size:u,status:p}=this.getState(),f=S.number(e.index)?e.index:c,d=l&&!t?c:Math.min(Math.max(f,0),u);return{action:null!=(n=e.action)?n:a,controlled:l,index:d,lifecycle:null!=(r=e.lifecycle)?r:Ln.INIT,origin:null!=(o=e.origin)?o:null,size:null!=(i=e.size)?i:u,status:d===u?An.FINISHED:null!=(s=e.status)?s:p}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}setState(e,t=!1){const n=this.getState(),{action:r,index:o,lifecycle:i,origin:s=null,size:a,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}},dr=function({styles:e}){return s.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})},hr=class extends s.Component{constructor(){super(...arguments),Sn(this,"isActive",!1),Sn(this,"resizeTimeout"),Sn(this,"scrollTimeout"),Sn(this,"scrollParent"),Sn(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Sn(this,"hideSpotlight",(()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ln.INIT,Ln.BEACON,Ln.COMPLETE,Ln.ERROR];return t||(e?r.includes(n):n!==Ln.TOOLTIP)})),Sn(this,"handleMouseMove",(e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:o,top:i,width:s}=this.spotlightStyles,a="fixed"===o?e.clientY:e.pageY,l="fixed"===o?e.clientX:e.pageX,c=l>=r&&l<=r+s&&a>=i&&a<=i+n;c!==t&&this.updateState({mouseOverSpotlight:c})})),Sn(this,"handleScroll",(()=>{const{target:e}=this.props,t=_n(e);if(this.scrollParent!==document){const{isScrolling:e}=this.state;e||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else zn(t,"sticky")&&this.updateState({})})),Sn(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,o=_n(r);this.scrollParent=Bn(null!=o?o:document.body,n,!0),this.isActive=!0,"production"!==process.env.NODE_ENV&&!t&&Wn(o,!0)&&Jn({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:o,target:i}=this.props,{changed:s}=L(e,this.props);if(s("target")||s("disableScrollParentFix")){const e=_n(i);this.scrollParent=Bn(null!=e?e:document.body,n,!0)}s("lifecycle",Ln.TOOLTIP)&&(null==(t=this.scrollParent)||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:e}=this.state;e||this.updateState({showSpotlight:!0})}),100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(o&&r===Ln.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ln.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(e=this.scrollParent)||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let o=r.overlay;return Kn()&&(o="center"===n?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Fn(),pointerEvents:e?"none":"auto",...o}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:o=!1,spotlightClicks:i,spotlightPadding:s=0,styles:a,target:l}=this.props,c=_n(l),u=Dn(c),p=zn(c),f=function(e,t,n){var r,o,i;const s=Dn(e),a=Bn(e,n),l=Wn(e,n),c=zn(e);let u=0,p=null!=(r=null==s?void 0:s.top)?r:0;return l&&c?p=(null!=(o=null==e?void 0:e.offsetTop)?o:0)-(null!=(i=null==a?void 0:a.scrollTop)?i:0):a instanceof HTMLElement&&(u=a.scrollTop,l||zn(e)||(p+=u),a.isSameNode(Hn())||(p+=Hn().scrollTop)),Math.floor(p-t)}(c,s,o);return{...Kn()?a.spotlightLegacy:a.spotlight,height:Math.round((null!=(e=null==u?void 0:u.height)?e:0)+2*s),left:Math.round((null!=(t=null==u?void 0:u.left)?t:0)-s),opacity:r?1:0,pointerEvents:i?"none":"auto",position:p?"fixed":"absolute",top:f,transition:"opacity 0.2s",width:Math.round((null!=(n=null==u?void 0:u.width)?n:0)+2*s)}}updateState(e){this.isActive&&this.setState((t=>({...t,...e})))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:o,spotlightStyles:i}=this;if(r())return null;let a="center"!==n&&e&&s.createElement(dr,{styles:i});if("safari"===$n()){const{mixBlendMode:e,zIndex:t,...n}=o;a=s.createElement("div",{style:{...n}},a),delete o.backgroundColor}return s.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:o},a)}},yr=class extends s.Component{constructor(){super(...arguments),Sn(this,"node",null)}componentDidMount(){const{id:e}=this.props;Mn()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Un||this.renderReact15())}componentDidUpdate(){Mn()&&(Un||this.renderReact15())}componentWillUnmount(){Mn()&&this.node&&(Un||a.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Mn())return;const{children:e}=this.props;this.node&&a.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Mn()||!Un)return null;const{children:e}=this.props;return this.node?a.createPortal(e,this.node):null}render(){return Un?this.renderReact16():null}},mr=class{constructor(e,t){if(Sn(this,"element"),Sn(this,"options"),Sn(this,"canBeTabbed",(e=>{const{tabIndex:t}=e;return!(null===t||t<0)&&this.canHaveFocus(e)})),Sn(this,"canHaveFocus",(e=>{const t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&this.isVisible(e)})),Sn(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),Sn(this,"handleKeyDown",(e=>{const{code:t="Tab"}=this.options;e.code===t&&this.interceptTab(e)})),Sn(this,"interceptTab",(e=>{e.preventDefault();const t=this.findValidTabElements(),{shiftKey:n}=e;if(!t.length)return;let r=document.activeElement?t.indexOf(document.activeElement):0;-1===r||!n&&r+1===t.length?r=0:n&&0===r?r=t.length-1:r+=n?-1:1,t[r].focus()})),Sn(this,"isHidden",(e=>{const t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")})),Sn(this,"isVisible",(e=>{let t=e;for(;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(this.isHidden(t))return!1;t=t.parentNode}return!0})),Sn(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),Sn(this,"checkFocus",(e=>{document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((()=>this.checkFocus(e))))})),Sn(this,"setFocus",(()=>{const{selector:e}=this.options;if(!e)return;const t=this.element.querySelector(e);t&&window.requestAnimationFrame((()=>this.checkFocus(t)))})),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},br=class extends s.Component{constructor(e){if(super(e),Sn(this,"beacon",null),Sn(this,"setBeaconRef",(e=>{this.beacon=e})),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;"production"!==process.env.NODE_ENV&&S.domElement(this.beacon),setTimeout((()=>{S.domElement(this.beacon)&&e&&this.beacon.focus()}),0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:o,onClickOrHover:i,size:a,step:l,styles:c}=this.props,u=qn(o.open),p={"aria-label":u,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:u};let f;if(e){const o=e;f=s.createElement(o,{continuous:t,index:n,isLastStep:r,size:a,step:l,...p})}else f=s.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},s.createElement("span",{style:c.beaconInner}),s.createElement("span",{style:c.beaconOuter}));return f}},gr=function({styles:e,...t}){const{color:r,height:o,width:i,...s}=e;return n.createElement("button",{style:s,type:"button",...t},n.createElement("svg",{height:"number"==typeof o?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"==typeof i?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",null,n.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))},vr=function(e){const{backProps:t,closeProps:n,index:r,isLastStep:o,primaryProps:i,skipProps:a,step:l,tooltipProps:c}=e,{content:u,hideBackButton:p,hideCloseButton:f,hideFooter:d,showSkipButton:h,styles:y,title:m}=l,b={};return b.primary=s.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...i}),h&&!o&&(b.skip=s.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...a})),!p&&r>0&&(b.back=s.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),b.close=!f&&s.createElement(gr,{"data-test-id":"button-close",styles:y.buttonClose,...n}),s.createElement("div",{key:"JoyrideTooltip","aria-label":qn(null!=m?m:u),className:"react-joyride__tooltip",style:y.tooltip,...c},s.createElement("div",{style:y.tooltipContainer},m&&s.createElement("h1",{"aria-label":qn(m),style:y.tooltipTitle},m),s.createElement("div",{style:y.tooltipContent},u)),!d&&s.createElement("div",{style:y.tooltipFooter},s.createElement("div",{style:y.tooltipFooterSpacer},b.skip),b.back,b.primary),b.close)},wr=class extends s.Component{constructor(){super(...arguments),Sn(this,"handleClickBack",(e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()})),Sn(this,"handleClickClose",(e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")})),Sn(this,"handleClickPrimary",(e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;t?n.next():n.close("button_primary")})),Sn(this,"handleClickSkip",(e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()})),Sn(this,"getElementsProps",(()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{back:s,close:a,last:l,next:c,nextLabelWithProgress:u,skip:p}=i.locale,f=qn(s),d=qn(a),h=qn(l),y=qn(c),m=qn(p);let b=a,g=d;if(e){if(b=c,g=y,i.showProgress&&!n){const e=qn(u,{step:t+1,steps:o});b=Zn(u,t+1,o),g=e}n&&(b=l,g=h)}return{backProps:{"aria-label":f,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:f},closeProps:{"aria-label":d,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":g,children:b,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:g},skipProps:{"aria-label":m,children:p,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:m},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}}))}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{beaconComponent:a,tooltipComponent:l,...c}=i;let u;if(l){const i={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:c,setTooltipRef:r},a=l;u=s.createElement(a,{...i})}else u=s.createElement(vr,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:i});return u}},Or=class extends s.Component{constructor(){super(...arguments),Sn(this,"scope",null),Sn(this,"tooltip",null),Sn(this,"handleClickHoverBeacon",(e=>{const{step:t,store:n}=this.props;"mouseenter"===e.type&&"hover"!==t.event||n.update({lifecycle:Ln.TOOLTIP})})),Sn(this,"setTooltipRef",(e=>{this.tooltip=e})),Sn(this,"setPopper",((e,t)=>{var n;const{action:r,lifecycle:o,step:i,store:s}=this.props;"wrapper"===t?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||"center"===i.placement)&&o===Ln.INIT&&s.update({action:r,lifecycle:Ln.READY}),(null==(n=i.floaterProps)?void 0:n.getPopper)&&i.floaterProps.getPopper(e,t)})),Sn(this,"renderTooltip",(e=>{const{continuous:t,helpers:n,index:r,size:o,step:i}=this.props;return s.createElement(wr,{continuous:t,helpers:n,index:r,isLastStep:r+1===o,setTooltipRef:this.setTooltipRef,size:o,step:i,...e})}))}componentDidMount(){const{debug:e,index:t}=this.props;Jn({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:o,controlled:i,debug:s,helpers:a,index:l,lifecycle:c,shouldScroll:u,status:p,step:f,store:d}=this.props,{changed:h,changedFrom:y}=L(e,this.props),m=a.info(),b=o&&n!==Cn&&(l>0||n===Pn),g=h("action")||h("index")||h("lifecycle")||h("status"),v=y("lifecycle",[Ln.TOOLTIP,Ln.INIT],Ln.INIT),w=h("action",[Nn,Pn,jn,Cn]),O=i&&l===e.index;if(w&&(v||O)&&r({...m,index:e.index,lifecycle:Ln.COMPLETE,step:e.step,type:Rn.STEP_AFTER}),"center"===f.placement&&p===An.RUNNING&&h("index")&&n!==xn&&c===Ln.INIT&&d.update({lifecycle:Ln.READY}),g){const e=_n(f.target);!!e&&function(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:e,visibility:t}=getComputedStyle(n);if("none"===e||"hidden"===t)return!1}n=null!=(t=n.parentElement)?t:null}return!0}(e)?(y("status",An.READY,An.RUNNING)||y("lifecycle",Ln.INIT,Ln.READY))&&r({...m,step:f,type:Rn.STEP_BEFORE}):(r({...m,type:Rn.TARGET_NOT_FOUND,step:f}),i||d.update({index:l+(n===Pn?-1:1)}))}y("lifecycle",Ln.INIT,Ln.READY)&&d.update({lifecycle:Yn(f)||b?Ln.TOOLTIP:Ln.BEACON}),h("index")&&Jn({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:s}),h("lifecycle",Ln.BEACON)&&r({...m,step:f,type:Rn.BEACON}),h("lifecycle",Ln.TOOLTIP)&&(r({...m,step:f,type:Rn.TOOLTIP}),u&&this.tooltip&&(this.scope=new mr(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),y("lifecycle",[Ln.TOOLTIP,Ln.INIT],Ln.INIT)&&(null==(t=this.scope)||t.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var e;null==(e=this.scope)||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Yn(t)||e===Ln.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:o,size:i,step:a}=this.props,l=_n(a.target);return ar(a)&&S.domElement(l)?s.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},s.createElement(On,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},s.createElement(br,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===i,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:o,size:i,step:a,styles:a.styles}))):null}},Er=class extends s.Component{constructor(e){super(e),Sn(this,"helpers"),Sn(this,"store"),Sn(this,"callback",(e=>{const{callback:t}=this.props;S.function(t)&&t(e)})),Sn(this,"handleKeyboard",(e=>{const{index:t,lifecycle:n}=this.state,{steps:r}=this.props,o=r[t];n===Ln.TOOLTIP&&"Escape"===e.code&&o&&!o.disableCloseOnEsc&&this.store.close("keyboard")})),Sn(this,"handleClickOverlay",(()=>{const{index:e}=this.state,{steps:t}=this.props;sr(this.props,t[e]).disableOverlayClose||this.helpers.close("overlay")})),Sn(this,"syncState",(e=>{this.setState(e)}));const{debug:t,getHelpers:n,run:r=!0,stepIndex:o}=e;var i;this.store=(i={...e,controlled:r&&S.number(o)},new fr(i)),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Jn({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Mn())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:o}=this.store;lr(r,e)&&n&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Mn())return;const{action:n,controlled:r,index:o,status:i}=this.state,{debug:s,run:a,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:p}=e,{reset:f,setSteps:h,start:y,stop:m,update:b}=this.store,{changed:g}=L(e,this.props),{changed:v,changedFrom:w}=L(t,this.state),O=sr(this.props,c[o]),E=!d(p,c),x=S.number(l)&&g("stepIndex"),T=_n(O.target);if(E&&(lr(c,s)&&h(c)),g("run")&&(a?y(l):m()),x){let e=S.number(u)&&u<l?Nn:Pn;n===Tn&&(e=xn),[An.FINISHED,An.SKIPPED].includes(i)||b({action:n===Cn?Cn:e,index:l,lifecycle:Ln.INIT})}r||i!==An.RUNNING||0!==o||T||(this.store.update({index:o+1}),this.callback({...this.state,type:Rn.TARGET_NOT_FOUND,step:O}));const k={...this.state,index:o,step:O};if(v("action",[Nn,Pn,jn,Cn])&&v("status",An.PAUSED)){const e=sr(this.props,c[t.index]);this.callback({...k,index:t.index,lifecycle:Ln.COMPLETE,step:e,type:Rn.STEP_AFTER})}if(v("status",[An.FINISHED,An.SKIPPED])){const e=sr(this.props,c[t.index]);r||this.callback({...k,index:t.index,lifecycle:Ln.COMPLETE,step:e,type:Rn.STEP_AFTER}),this.callback({...k,type:Rn.TOUR_END,step:e,index:t.index}),f()}else w("status",[An.IDLE,An.READY],An.RUNNING)?this.callback({...k,type:Rn.TOUR_START}):(v("status")||v("action",kn))&&this.callback({...k,type:Rn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:o,disableScrollParentFix:i=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=sr(this.props,c[t]),p=_n(u.target),f=function(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:o,step:i,target:s}=e;return!i.disableScrolling&&(!t||o||n===Ln.TOOLTIP)&&"center"!==i.placement&&(!i.isFixed||!zn(s))&&r!==n&&[Ln.BEACON,Ln.TOOLTIP].includes(n)}({isFirstStep:0===t,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:p});if(r===An.RUNNING&&f){const e=Wn(p,i),l=Bn(p,i);let c=Math.floor(function(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=null!=(r=H(e))?r:{};let s=e.getBoundingClientRect().top+i;o&&(Wn(e,n)||e.offsetParent!==document.body)&&(s-=o);const a=Math.floor(s-t);return a<0?0:a}(p,a,i))||0;Jn({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:o});const f=this.store.getPopper("beacon"),d=this.store.getPopper("tooltip");if(n===Ln.BEACON&&f){const{offsets:t,placement:n}=f;["bottom"].includes(n)||e||(c=Math.floor(t.popper.top-a))}else if(n===Ln.TOOLTIP&&d){const{flipped:t,offsets:n,placement:r}=d;!["top","right","left"].includes(r)||t||e?c-=u.spotlightPadding:c=Math.floor(n.popper.top-a)}c=c>=0?c:0,r===An.RUNNING&&function(e,t){const{duration:n,element:r}=t;return new Promise(((t,o)=>{const{scrollTop:i}=r,s=e>i?e-i:i-e;M.top(r,e,{duration:s<100?50:n},(e=>e&&"Element already at target scroll position"!==e.message?o(e):t()))}))}(c,{element:l,duration:s}).then((()=>{setTimeout((()=>{var e;null==(e=this.store.getPopper("tooltip"))||e.instance.update()}),10)}))}}render(){if(!Mn())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:o=!1,nonce:i,scrollToFirstStep:a=!1,steps:l}=this.props,c={};if(n===An.RUNNING&&l[e]){const n=sr(this.props,l[e]);c.step=s.createElement(Or,{...this.state,callback:this.callback,continuous:r,debug:o,helpers:this.helpers,nonce:i,shouldScroll:!n.disableScrolling&&(0!==e||a),step:n,store:this.store}),c.overlay=s.createElement(yr,{id:"react-joyride-portal"},s.createElement(hr,{...n,continuous:r,debug:o,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return s.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};Sn(Er,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Sr=Er;exports.Tour=({run:r,steps:o,onFinish:i})=>{const[s,a]=n.useState(r),[l,c]=n.useState(0),u=n.useCallback((e=>{const{action:n,index:r,status:o,type:s}=e;[Rn.STEP_AFTER,Rn.TARGET_NOT_FOUND].includes(s)?c(r+(n===Pn?-1:1)):([An.FINISHED,An.SKIPPED].includes(o)||"close"===n)&&(a(!1),t.isUndefined(i)||i())}),[i]);return e.jsx(Sr,{callback:u,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:s,spotlightClicks:!0,stepIndex:l,steps:o,styles:{buttonNext:{display:l===o.length-1?"none":"block"},options:{zIndex:9999}}})},exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""};
800
+ */
801
+ var Ae = typeof window < "u" && typeof document < "u" && typeof navigator < "u", jr = function() {
802
+ for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1) if (Ae && navigator.userAgent.indexOf(e[t]) >= 0) return 1;
803
+ return 0;
804
+ }(), Ir = Ae && window.Promise ? function(e) {
805
+ var t = !1;
806
+ return function() {
807
+ t || (t = !0, window.Promise.resolve().then(function() {
808
+ t = !1, e();
809
+ }));
810
+ };
811
+ } : function(e) {
812
+ var t = !1;
813
+ return function() {
814
+ t || (t = !0, setTimeout(function() {
815
+ t = !1, e();
816
+ }, jr));
817
+ };
818
+ };
819
+ function Mn(e) {
820
+ return e && {}.toString.call(e) === "[object Function]";
821
+ }
822
+ function de(e, t) {
823
+ if (e.nodeType !== 1) return [];
824
+ var n = e.ownerDocument.defaultView.getComputedStyle(e, null);
825
+ return t ? n[t] : n;
826
+ }
827
+ function vt(e) {
828
+ return e.nodeName === "HTML" ? e : e.parentNode || e.host;
829
+ }
830
+ function Me(e) {
831
+ if (!e) return document.body;
832
+ switch (e.nodeName) {
833
+ case "HTML":
834
+ case "BODY":
835
+ return e.ownerDocument.body;
836
+ case "#document":
837
+ return e.body;
838
+ }
839
+ var t = de(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
840
+ return /(auto|scroll|overlay)/.test(n + o + r) ? e : Me(vt(e));
841
+ }
842
+ function Dn(e) {
843
+ return e && e.referenceNode ? e.referenceNode : e;
844
+ }
845
+ var on = Ae && !(!window.MSInputMethodContext || !document.documentMode), sn = Ae && /MSIE 10/.test(navigator.userAgent);
846
+ function Ee(e) {
847
+ return e === 11 ? on : e === 10 ? sn : on || sn;
848
+ }
849
+ function ve(e) {
850
+ if (!e) return document.documentElement;
851
+ for (var t = Ee(10) ? document.body : null, n = e.offsetParent || null; n === t && e.nextElementSibling; ) n = (e = e.nextElementSibling).offsetParent;
852
+ var r = n && n.nodeName;
853
+ return r && r !== "BODY" && r !== "HTML" ? ["TH", "TD", "TABLE"].indexOf(n.nodeName) !== -1 && de(n, "position") === "static" ? ve(n) : n : e ? e.ownerDocument.documentElement : document.documentElement;
854
+ }
855
+ function ct(e) {
856
+ return e.parentNode !== null ? ct(e.parentNode) : e;
857
+ }
858
+ function Ye(e, t) {
859
+ if (!(e && e.nodeType && t && t.nodeType)) return document.documentElement;
860
+ var n = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, r = n ? e : t, o = n ? t : e, i = document.createRange();
861
+ i.setStart(r, 0), i.setEnd(o, 0);
862
+ var s, a, l = i.commonAncestorContainer;
863
+ if (e !== l && t !== l || r.contains(o)) return (a = (s = l).nodeName) === "BODY" || a !== "HTML" && ve(s.firstElementChild) !== s ? ve(l) : l;
864
+ var c = ct(e);
865
+ return c.host ? Ye(c.host, t) : Ye(e, ct(t).host);
866
+ }
867
+ function Oe(e) {
868
+ var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top") === "top" ? "scrollTop" : "scrollLeft", n = e.nodeName;
869
+ if (n === "BODY" || n === "HTML") {
870
+ var r = e.ownerDocument.documentElement;
871
+ return (e.ownerDocument.scrollingElement || r)[t];
872
+ }
873
+ return e[t];
874
+ }
875
+ function an(e, t) {
876
+ var n = t === "x" ? "Left" : "Top", r = n === "Left" ? "Right" : "Bottom";
877
+ return parseFloat(e["border" + n + "Width"]) + parseFloat(e["border" + r + "Width"]);
878
+ }
879
+ function ln(e, t, n, r) {
880
+ return Math.max(t["offset" + e], t["scroll" + e], n["client" + e], n["offset" + e], n["scroll" + e], Ee(10) ? parseInt(n["offset" + e]) + parseInt(r["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(r["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
881
+ }
882
+ function Fn(e) {
883
+ var t = e.body, n = e.documentElement, r = Ee(10) && getComputedStyle(n);
884
+ return { height: ln("Height", t, n, r), width: ln("Width", t, n, r) };
885
+ }
886
+ var Rr = /* @__PURE__ */ function() {
887
+ function e(t, n) {
888
+ for (var r = 0; r < n.length; r++) {
889
+ var o = n[r];
890
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
891
+ }
892
+ }
893
+ return function(t, n, r) {
894
+ return n && e(t.prototype, n), r && e(t, r), t;
895
+ };
896
+ }(), ye = function(e, t, n) {
897
+ return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
898
+ }, J = Object.assign || function(e) {
899
+ for (var t = 1; t < arguments.length; t++) {
900
+ var n = arguments[t];
901
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
902
+ }
903
+ return e;
904
+ };
905
+ function le(e) {
906
+ return J({}, e, { right: e.left + e.width, bottom: e.top + e.height });
907
+ }
908
+ function ut(e) {
909
+ var t = {};
910
+ try {
911
+ if (Ee(10)) {
912
+ t = e.getBoundingClientRect();
913
+ var n = Oe(e, "top"), r = Oe(e, "left");
914
+ t.top += n, t.left += r, t.bottom += n, t.right += r;
915
+ } else t = e.getBoundingClientRect();
916
+ } catch {
917
+ }
918
+ var o = { left: t.left, top: t.top, width: t.right - t.left, height: t.bottom - t.top }, i = e.nodeName === "HTML" ? Fn(e.ownerDocument) : {}, s = i.width || e.clientWidth || o.width, a = i.height || e.clientHeight || o.height, l = e.offsetWidth - s, c = e.offsetHeight - a;
919
+ if (l || c) {
920
+ var u = de(e);
921
+ l -= an(u, "x"), c -= an(u, "y"), o.width -= l, o.height -= c;
922
+ }
923
+ return le(o);
924
+ }
925
+ function pt(e, t) {
926
+ var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = Ee(10), o = t.nodeName === "HTML", i = ut(e), s = ut(t), a = Me(e), l = de(t), c = parseFloat(l.borderTopWidth), u = parseFloat(l.borderLeftWidth);
927
+ n && o && (s.top = Math.max(s.top, 0), s.left = Math.max(s.left, 0));
928
+ var p = le({ top: i.top - s.top - c, left: i.left - s.left - u, width: i.width, height: i.height });
929
+ if (p.marginTop = 0, p.marginLeft = 0, !r && o) {
930
+ var d = parseFloat(l.marginTop), h = parseFloat(l.marginLeft);
931
+ p.top -= c - d, p.bottom -= c - d, p.left -= u - h, p.right -= u - h, p.marginTop = d, p.marginLeft = h;
932
+ }
933
+ return (r && !n ? t.contains(a) : t === a && a.nodeName !== "BODY") && (p = function(y, v) {
934
+ var g = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], x = Oe(v, "top"), w = Oe(v, "left"), b = g ? -1 : 1;
935
+ return y.top += x * b, y.bottom += x * b, y.left += w * b, y.right += w * b, y;
936
+ }(p, t)), p;
937
+ }
938
+ function _n(e) {
939
+ var t = e.nodeName;
940
+ if (t === "BODY" || t === "HTML") return !1;
941
+ if (de(e, "position") === "fixed") return !0;
942
+ var n = vt(e);
943
+ return !!n && _n(n);
944
+ }
945
+ function Bn(e) {
946
+ if (!e || !e.parentElement || Ee()) return document.documentElement;
947
+ for (var t = e.parentElement; t && de(t, "transform") === "none"; ) t = t.parentElement;
948
+ return t || document.documentElement;
949
+ }
950
+ function ft(e, t, n, r) {
951
+ var o = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], i = { top: 0, left: 0 }, s = o ? Bn(e) : Ye(e, Dn(t));
952
+ if (r === "viewport") i = function(h) {
953
+ var y = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], v = h.ownerDocument.documentElement, g = pt(h, v), x = Math.max(v.clientWidth, window.innerWidth || 0), w = Math.max(v.clientHeight, window.innerHeight || 0), b = y ? 0 : Oe(v), k = y ? 0 : Oe(v, "left");
954
+ return le({ top: b - g.top + g.marginTop, left: k - g.left + g.marginLeft, width: x, height: w });
955
+ }(s, o);
956
+ else {
957
+ var a = void 0;
958
+ r === "scrollParent" ? (a = Me(vt(t))).nodeName === "BODY" && (a = e.ownerDocument.documentElement) : a = r === "window" ? e.ownerDocument.documentElement : r;
959
+ var l = pt(a, s, o);
960
+ if (a.nodeName !== "HTML" || _n(s)) i = l;
961
+ else {
962
+ var c = Fn(e.ownerDocument), u = c.height, p = c.width;
963
+ i.top += l.top - l.marginTop, i.bottom = u + l.top, i.left += l.left - l.marginLeft, i.right = p + l.left;
964
+ }
965
+ }
966
+ var d = typeof (n = n || 0) == "number";
967
+ return i.left += d ? n : n.left || 0, i.top += d ? n : n.top || 0, i.right -= d ? n : n.right || 0, i.bottom -= d ? n : n.bottom || 0, i;
968
+ }
969
+ function Wn(e, t, n, r, o) {
970
+ var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
971
+ if (e.indexOf("auto") === -1) return e;
972
+ var s = ft(n, r, i, o), a = { top: { width: s.width, height: t.top - s.top }, right: { width: s.right - t.right, height: s.height }, bottom: { width: s.width, height: s.bottom - t.bottom }, left: { width: t.left - s.left, height: s.height } }, l = Object.keys(a).map(function(d) {
973
+ return J({ key: d }, a[d], { area: (h = a[d], h.width * h.height) });
974
+ var h;
975
+ }).sort(function(d, h) {
976
+ return h.area - d.area;
977
+ }), c = l.filter(function(d) {
978
+ var h = d.width, y = d.height;
979
+ return h >= n.clientWidth && y >= n.clientHeight;
980
+ }), u = c.length > 0 ? c[0].key : l[0].key, p = e.split("-")[1];
981
+ return u + (p ? "-" + p : "");
982
+ }
983
+ function zn(e, t, n) {
984
+ var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
985
+ return pt(n, r ? Bn(t) : Ye(t, Dn(n)), r);
986
+ }
987
+ function Un(e) {
988
+ var t = e.ownerDocument.defaultView.getComputedStyle(e), n = parseFloat(t.marginTop || 0) + parseFloat(t.marginBottom || 0), r = parseFloat(t.marginLeft || 0) + parseFloat(t.marginRight || 0);
989
+ return { width: e.offsetWidth + r, height: e.offsetHeight + n };
990
+ }
991
+ function $e(e) {
992
+ var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
993
+ return e.replace(/left|right|bottom|top/g, function(n) {
994
+ return t[n];
995
+ });
996
+ }
997
+ function Hn(e, t, n) {
998
+ n = n.split("-")[0];
999
+ var r = Un(e), o = { width: r.width, height: r.height }, i = ["right", "left"].indexOf(n) !== -1, s = i ? "top" : "left", a = i ? "left" : "top", l = i ? "height" : "width", c = i ? "width" : "height";
1000
+ return o[s] = t[s] + t[l] / 2 - r[l] / 2, o[a] = n === a ? t[a] - r[c] : t[$e(a)], o;
1001
+ }
1002
+ function Ie(e, t) {
1003
+ return Array.prototype.find ? e.find(t) : e.filter(t)[0];
1004
+ }
1005
+ function $n(e, t, n) {
1006
+ return (n === void 0 ? e : e.slice(0, function(r, o, i) {
1007
+ if (Array.prototype.findIndex) return r.findIndex(function(a) {
1008
+ return a[o] === i;
1009
+ });
1010
+ var s = Ie(r, function(a) {
1011
+ return a[o] === i;
1012
+ });
1013
+ return r.indexOf(s);
1014
+ }(e, "name", n))).forEach(function(r) {
1015
+ r.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
1016
+ var o = r.function || r.fn;
1017
+ r.enabled && Mn(o) && (t.offsets.popper = le(t.offsets.popper), t.offsets.reference = le(t.offsets.reference), t = o(t, r));
1018
+ }), t;
1019
+ }
1020
+ function Lr() {
1021
+ if (!this.state.isDestroyed) {
1022
+ var e = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: !1, offsets: {} };
1023
+ e.offsets.reference = zn(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = Wn(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = Hn(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = $n(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
1024
+ }
1025
+ }
1026
+ function Vn(e, t) {
1027
+ return e.some(function(n) {
1028
+ var r = n.name;
1029
+ return n.enabled && r === t;
1030
+ });
1031
+ }
1032
+ function dt(e) {
1033
+ for (var t = [!1, "ms", "Webkit", "Moz", "O"], n = e.charAt(0).toUpperCase() + e.slice(1), r = 0; r < t.length; r++) {
1034
+ var o = t[r], i = o ? "" + o + n : e;
1035
+ if (document.body.style[i] !== void 0) return i;
1036
+ }
1037
+ return null;
1038
+ }
1039
+ function Ar() {
1040
+ return this.state.isDestroyed = !0, Vn(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[dt("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
1041
+ }
1042
+ function Gn(e) {
1043
+ var t = e.ownerDocument;
1044
+ return t ? t.defaultView : window;
1045
+ }
1046
+ function qn(e, t, n, r) {
1047
+ var o = e.nodeName === "BODY", i = o ? e.ownerDocument.defaultView : e;
1048
+ i.addEventListener(t, n, { passive: !0 }), o || qn(Me(i.parentNode), t, n, r), r.push(i);
1049
+ }
1050
+ function Mr(e, t, n, r) {
1051
+ n.updateBound = r, Gn(e).addEventListener("resize", n.updateBound, { passive: !0 });
1052
+ var o = Me(e);
1053
+ return qn(o, "scroll", n.updateBound, n.scrollParents), n.scrollElement = o, n.eventsEnabled = !0, n;
1054
+ }
1055
+ function Dr() {
1056
+ this.state.eventsEnabled || (this.state = Mr(this.reference, this.options, this.state, this.scheduleUpdate));
1057
+ }
1058
+ function Fr() {
1059
+ var e, t;
1060
+ this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = (e = this.reference, t = this.state, Gn(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(n) {
1061
+ n.removeEventListener("scroll", t.updateBound);
1062
+ }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t));
1063
+ }
1064
+ function wt(e) {
1065
+ return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
1066
+ }
1067
+ function it(e, t) {
1068
+ Object.keys(t).forEach(function(n) {
1069
+ var r = "";
1070
+ ["width", "height", "top", "right", "bottom", "left"].indexOf(n) !== -1 && wt(t[n]) && (r = "px"), e.style[n] = t[n] + r;
1071
+ });
1072
+ }
1073
+ var _r = Ae && /Firefox/i.test(navigator.userAgent);
1074
+ function cn(e, t, n) {
1075
+ var r = Ie(e, function(a) {
1076
+ return a.name === t;
1077
+ }), o = !!r && e.some(function(a) {
1078
+ return a.name === n && a.enabled && a.order < r.order;
1079
+ });
1080
+ if (!o) {
1081
+ var i = "`" + t + "`", s = "`" + n + "`";
1082
+ console.warn(s + " modifier is required by " + i + " modifier in order to work, be sure to include it before " + i + "!");
1083
+ }
1084
+ return o;
1085
+ }
1086
+ var Yn = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], st = Yn.slice(3);
1087
+ function un(e) {
1088
+ var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = st.indexOf(e), r = st.slice(n + 1).concat(st.slice(0, n));
1089
+ return t ? r.reverse() : r;
1090
+ }
1091
+ var Br = "flip", Wr = "clockwise", zr = "counterclockwise";
1092
+ function Ur(e, t, n, r) {
1093
+ var o = [0, 0], i = ["right", "left"].indexOf(r) !== -1, s = e.split(/(\+|\-)/).map(function(u) {
1094
+ return u.trim();
1095
+ }), a = s.indexOf(Ie(s, function(u) {
1096
+ return u.search(/,|\s/) !== -1;
1097
+ }));
1098
+ s[a] && s[a].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
1099
+ var l = /\s*,\s*|\s+/, c = a !== -1 ? [s.slice(0, a).concat([s[a].split(l)[0]]), [s[a].split(l)[1]].concat(s.slice(a + 1))] : [s];
1100
+ return c = c.map(function(u, p) {
1101
+ var d = (p === 1 ? !i : i) ? "height" : "width", h = !1;
1102
+ return u.reduce(function(y, v) {
1103
+ return y[y.length - 1] === "" && ["+", "-"].indexOf(v) !== -1 ? (y[y.length - 1] = v, h = !0, y) : h ? (y[y.length - 1] += v, h = !1, y) : y.concat(v);
1104
+ }, []).map(function(y) {
1105
+ return function(v, g, x, w) {
1106
+ var b = v.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), k = +b[1], f = b[2];
1107
+ return k ? f.indexOf("%") === 0 ? le(f === "%p" ? x : w)[g] / 100 * k : f === "vh" || f === "vw" ? (f === "vh" ? Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : Math.max(document.documentElement.clientWidth, window.innerWidth || 0)) / 100 * k : k : v;
1108
+ }(y, d, t, n);
1109
+ });
1110
+ }), c.forEach(function(u, p) {
1111
+ u.forEach(function(d, h) {
1112
+ wt(d) && (o[p] += d * (u[h - 1] === "-" ? -1 : 1));
1113
+ });
1114
+ }), o;
1115
+ }
1116
+ var Hr = { shift: { order: 100, enabled: !0, fn: function(e) {
1117
+ var t = e.placement, n = t.split("-")[0], r = t.split("-")[1];
1118
+ if (r) {
1119
+ var o = e.offsets, i = o.reference, s = o.popper, a = ["bottom", "top"].indexOf(n) !== -1, l = a ? "left" : "top", c = a ? "width" : "height", u = { start: ye({}, l, i[l]), end: ye({}, l, i[l] + i[c] - s[c]) };
1120
+ e.offsets.popper = J({}, s, u[r]);
1121
+ }
1122
+ return e;
1123
+ } }, offset: { order: 200, enabled: !0, fn: function(e, t) {
1124
+ var n = t.offset, r = e.placement, o = e.offsets, i = o.popper, s = o.reference, a = r.split("-")[0], l = void 0;
1125
+ return l = wt(+n) ? [+n, 0] : Ur(n, i, s, a), a === "left" ? (i.top += l[0], i.left -= l[1]) : a === "right" ? (i.top += l[0], i.left += l[1]) : a === "top" ? (i.left += l[0], i.top -= l[1]) : a === "bottom" && (i.left += l[0], i.top += l[1]), e.popper = i, e;
1126
+ }, offset: 0 }, preventOverflow: { order: 300, enabled: !0, fn: function(e, t) {
1127
+ var n = t.boundariesElement || ve(e.instance.popper);
1128
+ e.instance.reference === n && (n = ve(n));
1129
+ var r = dt("transform"), o = e.instance.popper.style, i = o.top, s = o.left, a = o[r];
1130
+ o.top = "", o.left = "", o[r] = "";
1131
+ var l = ft(e.instance.popper, e.instance.reference, t.padding, n, e.positionFixed);
1132
+ o.top = i, o.left = s, o[r] = a, t.boundaries = l;
1133
+ var c = t.priority, u = e.offsets.popper, p = { primary: function(d) {
1134
+ var h = u[d];
1135
+ return u[d] < l[d] && !t.escapeWithReference && (h = Math.max(u[d], l[d])), ye({}, d, h);
1136
+ }, secondary: function(d) {
1137
+ var h = d === "right" ? "left" : "top", y = u[h];
1138
+ return u[d] > l[d] && !t.escapeWithReference && (y = Math.min(u[h], l[d] - (d === "right" ? u.width : u.height))), ye({}, h, y);
1139
+ } };
1140
+ return c.forEach(function(d) {
1141
+ var h = ["left", "top"].indexOf(d) !== -1 ? "primary" : "secondary";
1142
+ u = J({}, u, p[h](d));
1143
+ }), e.offsets.popper = u, e;
1144
+ }, priority: ["left", "right", "top", "bottom"], padding: 5, boundariesElement: "scrollParent" }, keepTogether: { order: 400, enabled: !0, fn: function(e) {
1145
+ var t = e.offsets, n = t.popper, r = t.reference, o = e.placement.split("-")[0], i = Math.floor, s = ["top", "bottom"].indexOf(o) !== -1, a = s ? "right" : "bottom", l = s ? "left" : "top", c = s ? "width" : "height";
1146
+ return n[a] < i(r[l]) && (e.offsets.popper[l] = i(r[l]) - n[c]), n[l] > i(r[a]) && (e.offsets.popper[l] = i(r[a])), e;
1147
+ } }, arrow: { order: 500, enabled: !0, fn: function(e, t) {
1148
+ var n;
1149
+ if (!cn(e.instance.modifiers, "arrow", "keepTogether")) return e;
1150
+ var r = t.element;
1151
+ if (typeof r == "string") {
1152
+ if (!(r = e.instance.popper.querySelector(r))) return e;
1153
+ } else if (!e.instance.popper.contains(r)) return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
1154
+ var o = e.placement.split("-")[0], i = e.offsets, s = i.popper, a = i.reference, l = ["left", "right"].indexOf(o) !== -1, c = l ? "height" : "width", u = l ? "Top" : "Left", p = u.toLowerCase(), d = l ? "left" : "top", h = l ? "bottom" : "right", y = Un(r)[c];
1155
+ a[h] - y < s[p] && (e.offsets.popper[p] -= s[p] - (a[h] - y)), a[p] + y > s[h] && (e.offsets.popper[p] += a[p] + y - s[h]), e.offsets.popper = le(e.offsets.popper);
1156
+ var v = a[p] + a[c] / 2 - y / 2, g = de(e.instance.popper), x = parseFloat(g["margin" + u]), w = parseFloat(g["border" + u + "Width"]), b = v - e.offsets.popper[p] - x - w;
1157
+ return b = Math.max(Math.min(s[c] - y, b), 0), e.arrowElement = r, e.offsets.arrow = (ye(n = {}, p, Math.round(b)), ye(n, d, ""), n), e;
1158
+ }, element: "[x-arrow]" }, flip: { order: 600, enabled: !0, fn: function(e, t) {
1159
+ if (Vn(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement) return e;
1160
+ var n = ft(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), r = e.placement.split("-")[0], o = $e(r), i = e.placement.split("-")[1] || "", s = [];
1161
+ switch (t.behavior) {
1162
+ case Br:
1163
+ s = [r, o];
1164
+ break;
1165
+ case Wr:
1166
+ s = un(r);
1167
+ break;
1168
+ case zr:
1169
+ s = un(r, !0);
1170
+ break;
1171
+ default:
1172
+ s = t.behavior;
1173
+ }
1174
+ return s.forEach(function(a, l) {
1175
+ if (r !== a || s.length === l + 1) return e;
1176
+ r = e.placement.split("-")[0], o = $e(r);
1177
+ var c = e.offsets.popper, u = e.offsets.reference, p = Math.floor, d = r === "left" && p(c.right) > p(u.left) || r === "right" && p(c.left) < p(u.right) || r === "top" && p(c.bottom) > p(u.top) || r === "bottom" && p(c.top) < p(u.bottom), h = p(c.left) < p(n.left), y = p(c.right) > p(n.right), v = p(c.top) < p(n.top), g = p(c.bottom) > p(n.bottom), x = r === "left" && h || r === "right" && y || r === "top" && v || r === "bottom" && g, w = ["top", "bottom"].indexOf(r) !== -1, b = !!t.flipVariations && (w && i === "start" && h || w && i === "end" && y || !w && i === "start" && v || !w && i === "end" && g), k = !!t.flipVariationsByContent && (w && i === "start" && y || w && i === "end" && h || !w && i === "start" && g || !w && i === "end" && v), f = b || k;
1178
+ (d || x || f) && (e.flipped = !0, (d || x) && (r = s[l + 1]), f && (i = /* @__PURE__ */ function(E) {
1179
+ return E === "end" ? "start" : E === "start" ? "end" : E;
1180
+ }(i)), e.placement = r + (i ? "-" + i : ""), e.offsets.popper = J({}, e.offsets.popper, Hn(e.instance.popper, e.offsets.reference, e.placement)), e = $n(e.instance.modifiers, e, "flip"));
1181
+ }), e;
1182
+ }, behavior: "flip", padding: 5, boundariesElement: "viewport", flipVariations: !1, flipVariationsByContent: !1 }, inner: { order: 700, enabled: !1, fn: function(e) {
1183
+ var t = e.placement, n = t.split("-")[0], r = e.offsets, o = r.popper, i = r.reference, s = ["left", "right"].indexOf(n) !== -1, a = ["top", "left"].indexOf(n) === -1;
1184
+ return o[s ? "left" : "top"] = i[n] - (a ? o[s ? "width" : "height"] : 0), e.placement = $e(t), e.offsets.popper = le(o), e;
1185
+ } }, hide: { order: 800, enabled: !0, fn: function(e) {
1186
+ if (!cn(e.instance.modifiers, "hide", "preventOverflow")) return e;
1187
+ var t = e.offsets.reference, n = Ie(e.instance.modifiers, function(r) {
1188
+ return r.name === "preventOverflow";
1189
+ }).boundaries;
1190
+ if (t.bottom < n.top || t.left > n.right || t.top > n.bottom || t.right < n.left) {
1191
+ if (e.hide === !0) return e;
1192
+ e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
1193
+ } else {
1194
+ if (e.hide === !1) return e;
1195
+ e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
1196
+ }
1197
+ return e;
1198
+ } }, computeStyle: { order: 850, enabled: !0, fn: function(e, t) {
1199
+ var n = t.x, r = t.y, o = e.offsets.popper, i = Ie(e.instance.modifiers, function(b) {
1200
+ return b.name === "applyStyle";
1201
+ }).gpuAcceleration;
1202
+ i !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
1203
+ var s = i !== void 0 ? i : t.gpuAcceleration, a = ve(e.instance.popper), l = ut(a), c = { position: o.position }, u = function(b, k) {
1204
+ var f = b.offsets, E = f.popper, C = f.reference, O = Math.round, j = Math.floor, I = function(ue) {
1205
+ return ue;
1206
+ }, L = O(C.width), M = O(E.width), B = ["left", "right"].indexOf(b.placement) !== -1, $ = b.placement.indexOf("-") !== -1, H = k ? B || $ || L % 2 == M % 2 ? O : j : I, oe = k ? O : I;
1207
+ return { left: H(L % 2 == 1 && M % 2 == 1 && !$ && k ? E.left - 1 : E.left), top: oe(E.top), bottom: oe(E.bottom), right: H(E.right) };
1208
+ }(e, window.devicePixelRatio < 2 || !_r), p = n === "bottom" ? "top" : "bottom", d = r === "right" ? "left" : "right", h = dt("transform"), y = void 0, v = void 0;
1209
+ if (v = p === "bottom" ? a.nodeName === "HTML" ? -a.clientHeight + u.bottom : -l.height + u.bottom : u.top, y = d === "right" ? a.nodeName === "HTML" ? -a.clientWidth + u.right : -l.width + u.right : u.left, s && h) c[h] = "translate3d(" + y + "px, " + v + "px, 0)", c[p] = 0, c[d] = 0, c.willChange = "transform";
1210
+ else {
1211
+ var g = p === "bottom" ? -1 : 1, x = d === "right" ? -1 : 1;
1212
+ c[p] = v * g, c[d] = y * x, c.willChange = p + ", " + d;
1213
+ }
1214
+ var w = { "x-placement": e.placement };
1215
+ return e.attributes = J({}, w, e.attributes), e.styles = J({}, c, e.styles), e.arrowStyles = J({}, e.offsets.arrow, e.arrowStyles), e;
1216
+ }, gpuAcceleration: !0, x: "bottom", y: "right" }, applyStyle: { order: 900, enabled: !0, fn: function(e) {
1217
+ var t, n;
1218
+ return it(e.instance.popper, e.styles), t = e.instance.popper, n = e.attributes, Object.keys(n).forEach(function(r) {
1219
+ n[r] !== !1 ? t.setAttribute(r, n[r]) : t.removeAttribute(r);
1220
+ }), e.arrowElement && Object.keys(e.arrowStyles).length && it(e.arrowElement, e.arrowStyles), e;
1221
+ }, onLoad: function(e, t, n, r, o) {
1222
+ var i = zn(o, t, e, n.positionFixed), s = Wn(n.placement, i, t, e, n.modifiers.flip.boundariesElement, n.modifiers.flip.padding);
1223
+ return t.setAttribute("x-placement", s), it(t, { position: n.positionFixed ? "fixed" : "absolute" }), n;
1224
+ }, gpuAcceleration: void 0 } }, $r = { placement: "bottom", positionFixed: !1, eventsEnabled: !0, removeOnDestroy: !1, onCreate: function() {
1225
+ }, onUpdate: function() {
1226
+ }, modifiers: Hr }, Ce = function() {
1227
+ function e(t, n) {
1228
+ var r = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1229
+ (function(s, a) {
1230
+ if (!(s instanceof a)) throw new TypeError("Cannot call a class as a function");
1231
+ })(this, e), this.scheduleUpdate = function() {
1232
+ return requestAnimationFrame(r.update);
1233
+ }, this.update = Ir(this.update.bind(this)), this.options = J({}, e.Defaults, o), this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }, this.reference = t && t.jquery ? t[0] : t, this.popper = n && n.jquery ? n[0] : n, this.options.modifiers = {}, Object.keys(J({}, e.Defaults.modifiers, o.modifiers)).forEach(function(s) {
1234
+ r.options.modifiers[s] = J({}, e.Defaults.modifiers[s] || {}, o.modifiers ? o.modifiers[s] : {});
1235
+ }), this.modifiers = Object.keys(this.options.modifiers).map(function(s) {
1236
+ return J({ name: s }, r.options.modifiers[s]);
1237
+ }).sort(function(s, a) {
1238
+ return s.order - a.order;
1239
+ }), this.modifiers.forEach(function(s) {
1240
+ s.enabled && Mn(s.onLoad) && s.onLoad(r.reference, r.popper, r.options, s, r.state);
1241
+ }), this.update();
1242
+ var i = this.options.eventsEnabled;
1243
+ i && this.enableEventListeners(), this.state.eventsEnabled = i;
1244
+ }
1245
+ return Rr(e, [{ key: "update", value: function() {
1246
+ return Lr.call(this);
1247
+ } }, { key: "destroy", value: function() {
1248
+ return Ar.call(this);
1249
+ } }, { key: "enableEventListeners", value: function() {
1250
+ return Dr.call(this);
1251
+ } }, { key: "disableEventListeners", value: function() {
1252
+ return Fr.call(this);
1253
+ } }]), e;
1254
+ }();
1255
+ Ce.Utils = (typeof window < "u" ? window : global).PopperUtils, Ce.placements = Yn, Ce.Defaults = $r;
1256
+ var Vr = ["innerHTML", "ownerDocument", "style", "attributes", "nodeValue"], Gr = ["Array", "ArrayBuffer", "AsyncFunction", "AsyncGenerator", "AsyncGeneratorFunction", "Date", "Error", "Function", "Generator", "GeneratorFunction", "HTMLElement", "Map", "Object", "Promise", "RegExp", "Set", "WeakMap", "WeakSet"], qr = ["bigint", "boolean", "null", "number", "string", "symbol", "undefined"];
1257
+ function Ke(e) {
1258
+ var t, n = Object.prototype.toString.call(e).slice(8, -1);
1259
+ return /HTML\w+Element/.test(n) ? "HTMLElement" : (t = n, Gr.includes(t) ? n : void 0);
1260
+ }
1261
+ function Z(e) {
1262
+ return function(t) {
1263
+ return Ke(t) === e;
1264
+ };
1265
+ }
1266
+ function me(e) {
1267
+ return function(t) {
1268
+ return typeof t === e;
1269
+ };
1270
+ }
1271
+ function m(e) {
1272
+ if (e === null) return "null";
1273
+ switch (typeof e) {
1274
+ case "bigint":
1275
+ return "bigint";
1276
+ case "boolean":
1277
+ return "boolean";
1278
+ case "number":
1279
+ return "number";
1280
+ case "string":
1281
+ return "string";
1282
+ case "symbol":
1283
+ return "symbol";
1284
+ case "undefined":
1285
+ return "undefined";
1286
+ }
1287
+ if (m.array(e)) return "Array";
1288
+ if (m.plainFunction(e)) return "Function";
1289
+ var t = Ke(e);
1290
+ return t || "Object";
1291
+ }
1292
+ function Kn(e) {
1293
+ return function(t) {
1294
+ return typeof t === e;
1295
+ };
1296
+ }
1297
+ m.array = Array.isArray, m.arrayOf = function(e, t) {
1298
+ return !(!m.array(e) && !m.function(t)) && e.every(function(n) {
1299
+ return t(n);
1300
+ });
1301
+ }, m.asyncGeneratorFunction = function(e) {
1302
+ return Ke(e) === "AsyncGeneratorFunction";
1303
+ }, m.asyncFunction = Z("AsyncFunction"), m.bigint = me("bigint"), m.boolean = function(e) {
1304
+ return e === !0 || e === !1;
1305
+ }, m.date = Z("Date"), m.defined = function(e) {
1306
+ return !m.undefined(e);
1307
+ }, m.domElement = function(e) {
1308
+ return m.object(e) && !m.plainObject(e) && e.nodeType === 1 && m.string(e.nodeName) && Vr.every(function(t) {
1309
+ return t in e;
1310
+ });
1311
+ }, m.empty = function(e) {
1312
+ return m.string(e) && e.length === 0 || m.array(e) && e.length === 0 || m.object(e) && !m.map(e) && !m.set(e) && Object.keys(e).length === 0 || m.set(e) && e.size === 0 || m.map(e) && e.size === 0;
1313
+ }, m.error = Z("Error"), m.function = me("function"), m.generator = function(e) {
1314
+ return m.iterable(e) && m.function(e.next) && m.function(e.throw);
1315
+ }, m.generatorFunction = Z("GeneratorFunction"), m.instanceOf = function(e, t) {
1316
+ return !(!e || !t) && Object.getPrototypeOf(e) === t.prototype;
1317
+ }, m.iterable = function(e) {
1318
+ return !m.nullOrUndefined(e) && m.function(e[Symbol.iterator]);
1319
+ }, m.map = Z("Map"), m.nan = function(e) {
1320
+ return Number.isNaN(e);
1321
+ }, m.null = function(e) {
1322
+ return e === null;
1323
+ }, m.nullOrUndefined = function(e) {
1324
+ return m.null(e) || m.undefined(e);
1325
+ }, m.number = function(e) {
1326
+ return me("number")(e) && !m.nan(e);
1327
+ }, m.numericString = function(e) {
1328
+ return m.string(e) && e.length > 0 && !Number.isNaN(Number(e));
1329
+ }, m.object = function(e) {
1330
+ return !m.nullOrUndefined(e) && (m.function(e) || typeof e == "object");
1331
+ }, m.oneOf = function(e, t) {
1332
+ return !!m.array(e) && e.indexOf(t) > -1;
1333
+ }, m.plainFunction = Z("Function"), m.plainObject = function(e) {
1334
+ if (Ke(e) !== "Object") return !1;
1335
+ var t = Object.getPrototypeOf(e);
1336
+ return t === null || t === Object.getPrototypeOf({});
1337
+ }, m.primitive = function(e) {
1338
+ return m.null(e) || (t = typeof e, qr.includes(t));
1339
+ var t;
1340
+ }, m.promise = Z("Promise"), m.propertyOf = function(e, t, n) {
1341
+ if (!m.object(e) || !t) return !1;
1342
+ var r = e[t];
1343
+ return m.function(n) ? n(r) : m.defined(r);
1344
+ }, m.regexp = Z("RegExp"), m.set = Z("Set"), m.string = me("string"), m.symbol = me("symbol"), m.undefined = me("undefined"), m.weakMap = Z("WeakMap"), m.weakSet = Z("WeakSet");
1345
+ var Yr = Kn("function"), pn = function(e) {
1346
+ return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
1347
+ }, fn = function(e) {
1348
+ return !Kr(e) && !/* @__PURE__ */ function(t) {
1349
+ return t === null;
1350
+ }(e) && (Yr(e) || typeof e == "object");
1351
+ }, Kr = Kn("undefined"), at = function(e) {
1352
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
1353
+ if (n) return n.call(e);
1354
+ if (e && typeof e.length == "number") return { next: function() {
1355
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
1356
+ } };
1357
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
1358
+ };
1359
+ function Y(e, t) {
1360
+ if (e === t) return !0;
1361
+ if (e && fn(e) && t && fn(t)) {
1362
+ if (e.constructor !== t.constructor) return !1;
1363
+ if (Array.isArray(e) && Array.isArray(t)) return function(s, a) {
1364
+ var l = s.length;
1365
+ if (l !== a.length) return !1;
1366
+ for (var c = l; c-- != 0; ) if (!Y(s[c], a[c])) return !1;
1367
+ return !0;
1368
+ }(e, t);
1369
+ if (e instanceof Map && t instanceof Map) return function(s, a) {
1370
+ var l, c, u, p;
1371
+ if (s.size !== a.size) return !1;
1372
+ try {
1373
+ for (var d = at(s.entries()), h = d.next(); !h.done; h = d.next()) {
1374
+ var y = h.value;
1375
+ if (!a.has(y[0])) return !1;
1376
+ }
1377
+ } catch (x) {
1378
+ l = { error: x };
1379
+ } finally {
1380
+ try {
1381
+ h && !h.done && (c = d.return) && c.call(d);
1382
+ } finally {
1383
+ if (l) throw l.error;
1384
+ }
1385
+ }
1386
+ try {
1387
+ for (var v = at(s.entries()), g = v.next(); !g.done; g = v.next()) if (!Y((y = g.value)[1], a.get(y[0]))) return !1;
1388
+ } catch (x) {
1389
+ u = { error: x };
1390
+ } finally {
1391
+ try {
1392
+ g && !g.done && (p = v.return) && p.call(v);
1393
+ } finally {
1394
+ if (u) throw u.error;
1395
+ }
1396
+ }
1397
+ return !0;
1398
+ }(e, t);
1399
+ if (e instanceof Set && t instanceof Set) return function(s, a) {
1400
+ var l, c;
1401
+ if (s.size !== a.size) return !1;
1402
+ try {
1403
+ for (var u = at(s.entries()), p = u.next(); !p.done; p = u.next()) {
1404
+ var d = p.value;
1405
+ if (!a.has(d[0])) return !1;
1406
+ }
1407
+ } catch (h) {
1408
+ l = { error: h };
1409
+ } finally {
1410
+ try {
1411
+ p && !p.done && (c = u.return) && c.call(u);
1412
+ } finally {
1413
+ if (l) throw l.error;
1414
+ }
1415
+ }
1416
+ return !0;
1417
+ }(e, t);
1418
+ if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) return function(s, a) {
1419
+ if (s.byteLength !== a.byteLength) return !1;
1420
+ for (var l = new DataView(s.buffer), c = new DataView(a.buffer), u = s.byteLength; u--; ) if (l.getUint8(u) !== c.getUint8(u)) return !1;
1421
+ return !0;
1422
+ }(e, t);
1423
+ if (pn(e) && pn(t)) return e.source === t.source && e.flags === t.flags;
1424
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
1425
+ if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
1426
+ var n = Object.keys(e), r = Object.keys(t);
1427
+ if (n.length !== r.length) return !1;
1428
+ for (var o = n.length; o-- != 0; ) if (!Object.prototype.hasOwnProperty.call(t, n[o])) return !1;
1429
+ for (o = n.length; o-- != 0; ) {
1430
+ var i = n[o];
1431
+ if ((i !== "_owner" || !e.$$typeof) && !Y(e[i], t[i])) return !1;
1432
+ }
1433
+ return !0;
1434
+ }
1435
+ return !(!Number.isNaN(e) || !Number.isNaN(t)) || e === t;
1436
+ }
1437
+ function dn(e, t, n) {
1438
+ var r = n.actual, o = n.key, i = n.previous, s = n.type, a = re(e, o), l = re(t, o), c = [a, l].every(m.number) && (s === "increased" ? a < l : a > l);
1439
+ return m.undefined(r) || (c = c && l === r), m.undefined(i) || (c = c && a === i), c;
1440
+ }
1441
+ function hn(e, t, n) {
1442
+ var r = n.key, o = n.type, i = n.value, s = re(e, r), a = re(t, r), l = o === "added" ? s : a, c = o === "added" ? a : s;
1443
+ return m.nullOrUndefined(i) ? [s, a].every(m.array) ? !c.every(Ot(l)) : [s, a].every(m.plainObject) ? function(u, p) {
1444
+ return p.some(function(d) {
1445
+ return !u.includes(d);
1446
+ });
1447
+ }(Object.keys(l), Object.keys(c)) : ![s, a].every(function(u) {
1448
+ return m.primitive(u) && m.defined(u);
1449
+ }) && (o === "added" ? !m.defined(s) && m.defined(a) : m.defined(s) && !m.defined(a)) : m.defined(l) ? !(!m.array(l) && !m.plainObject(l)) && function(u, p, d) {
1450
+ return !!Jn(u, p) && ([u, p].every(m.array) ? !u.some(gn(d)) && p.some(gn(d)) : [u, p].every(m.plainObject) ? !Object.entries(u).some(mn(d)) && Object.entries(p).some(mn(d)) : p === d);
1451
+ }(l, c, i) : Y(c, i);
1452
+ }
1453
+ function yn(e, t, n) {
1454
+ var r = (n === void 0 ? {} : n).key, o = re(e, r), i = re(t, r);
1455
+ if (!Jn(o, i)) throw new TypeError("Inputs have different types");
1456
+ if (!function() {
1457
+ for (var s = [], a = 0; a < arguments.length; a++) s[a] = arguments[a];
1458
+ return s.every(function(l) {
1459
+ return m.string(l) || m.array(l) || m.plainObject(l);
1460
+ });
1461
+ }(o, i)) throw new TypeError("Inputs don't have length");
1462
+ return [o, i].every(m.plainObject) && (o = Object.keys(o), i = Object.keys(i)), [o, i];
1463
+ }
1464
+ function mn(e) {
1465
+ return function(t) {
1466
+ var n = t[0], r = t[1];
1467
+ return m.array(e) ? Y(e, r) || e.some(function(o) {
1468
+ return Y(o, r) || m.array(r) && Ot(r)(o);
1469
+ }) : m.plainObject(e) && e[n] ? !!e[n] && Y(e[n], r) : Y(e, r);
1470
+ };
1471
+ }
1472
+ function gn(e) {
1473
+ return function(t) {
1474
+ return m.array(e) ? e.some(function(n) {
1475
+ return Y(n, t) || m.array(t) && Ot(t)(n);
1476
+ }) : Y(e, t);
1477
+ };
1478
+ }
1479
+ function Te(e, t) {
1480
+ return m.array(e) ? e.some(function(n) {
1481
+ return Y(n, t);
1482
+ }) : Y(e, t);
1483
+ }
1484
+ function Ot(e) {
1485
+ return function(t) {
1486
+ return e.some(function(n) {
1487
+ return Y(n, t);
1488
+ });
1489
+ };
1490
+ }
1491
+ function Jn() {
1492
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1493
+ return e.every(m.array) || e.every(m.number) || e.every(m.plainObject) || e.every(m.string);
1494
+ }
1495
+ function re(e, t) {
1496
+ return m.plainObject(e) || m.array(e) ? m.string(t) ? t.split(".").reduce(function(n, r) {
1497
+ return n && n[r];
1498
+ }, e) : m.number(t) ? e[t] : e : e;
1499
+ }
1500
+ function bn(e, t) {
1501
+ var n = Object.keys(e);
1502
+ if (Object.getOwnPropertySymbols) {
1503
+ var r = Object.getOwnPropertySymbols(e);
1504
+ t && (r = r.filter(function(o) {
1505
+ return Object.getOwnPropertyDescriptor(e, o).enumerable;
1506
+ })), n.push.apply(n, r);
1507
+ }
1508
+ return n;
1509
+ }
1510
+ function V(e) {
1511
+ for (var t = 1; t < arguments.length; t++) {
1512
+ var n = arguments[t] != null ? arguments[t] : {};
1513
+ t % 2 ? bn(Object(n), !0).forEach(function(r) {
1514
+ G(e, r, n[r]);
1515
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bn(Object(n)).forEach(function(r) {
1516
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1517
+ });
1518
+ }
1519
+ return e;
1520
+ }
1521
+ function De(e, t) {
1522
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1523
+ }
1524
+ function Fe(e, t, n) {
1525
+ return t && function(r, o) {
1526
+ for (var i = 0; i < o.length; i++) {
1527
+ var s = o[i];
1528
+ s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(r, Zn(s.key), s);
1529
+ }
1530
+ }(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1531
+ }
1532
+ function G(e, t, n) {
1533
+ return (t = Zn(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1534
+ }
1535
+ function _e(e, t) {
1536
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1537
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ht(e, t);
1538
+ }
1539
+ function Je(e) {
1540
+ return Je = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1541
+ return t.__proto__ || Object.getPrototypeOf(t);
1542
+ }, Je(e);
1543
+ }
1544
+ function ht(e, t) {
1545
+ return ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1546
+ return n.__proto__ = r, n;
1547
+ }, ht(e, t);
1548
+ }
1549
+ function Xn(e, t) {
1550
+ if (e == null) return {};
1551
+ var n, r, o = function(s, a) {
1552
+ if (s == null) return {};
1553
+ var l, c, u = {}, p = Object.keys(s);
1554
+ for (c = 0; c < p.length; c++) l = p[c], a.indexOf(l) >= 0 || (u[l] = s[l]);
1555
+ return u;
1556
+ }(e, t);
1557
+ if (Object.getOwnPropertySymbols) {
1558
+ var i = Object.getOwnPropertySymbols(e);
1559
+ for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
1560
+ }
1561
+ return o;
1562
+ }
1563
+ function ie(e) {
1564
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1565
+ return e;
1566
+ }
1567
+ function Be(e) {
1568
+ var t = function() {
1569
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1570
+ if (typeof Proxy == "function") return !0;
1571
+ try {
1572
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1573
+ })), !0;
1574
+ } catch {
1575
+ return !1;
1576
+ }
1577
+ }();
1578
+ return function() {
1579
+ var n, r = Je(e);
1580
+ if (t) {
1581
+ var o = Je(this).constructor;
1582
+ n = Reflect.construct(r, arguments, o);
1583
+ } else n = r.apply(this, arguments);
1584
+ return function(i, s) {
1585
+ if (s && (typeof s == "object" || typeof s == "function")) return s;
1586
+ if (s !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1587
+ return ie(i);
1588
+ }(this, n);
1589
+ };
1590
+ }
1591
+ function Zn(e) {
1592
+ var t = function(n, r) {
1593
+ if (typeof n != "object" || n === null) return n;
1594
+ var o = n[Symbol.toPrimitive];
1595
+ if (o !== void 0) {
1596
+ var i = o.call(n, r || "default");
1597
+ if (typeof i != "object") return i;
1598
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1599
+ }
1600
+ return (r === "string" ? String : Number)(n);
1601
+ }(e, "string");
1602
+ return typeof t == "symbol" ? t : String(t);
1603
+ }
1604
+ var Jr = { flip: { padding: 20 }, preventOverflow: { padding: 10 } };
1605
+ function vn(e, t, n) {
1606
+ return function(r, o) {
1607
+ if (typeof r != "function") throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");
1608
+ if (o) throw new TypeError("The error message is optional, but must be a string if provided.");
1609
+ }(e, n), function(r, o, i) {
1610
+ for (var s = arguments.length, a = new Array(s > 3 ? s - 3 : 0), l = 3; l < s; l++) a[l - 3] = arguments[l];
1611
+ return function(c, u, p, d) {
1612
+ return typeof c == "boolean" ? c : typeof c == "function" ? c(u, p, d) : !!c && !!c;
1613
+ }(t, r, o, i) ? function(c, u) {
1614
+ return Object.hasOwnProperty.call(c, u);
1615
+ }(r, o) ? e.apply(void 0, [r, o, i].concat(a)) : function(c, u, p) {
1616
+ return new Error("Required ".concat(c[u], " `").concat(u, "` was not specified in `").concat(p, "`."));
1617
+ }(r, o, i) : e.apply(void 0, [r, o, i].concat(a));
1618
+ };
1619
+ }
1620
+ var W = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing", ERROR: "error" }, ke = He.createPortal !== void 0;
1621
+ function ee() {
1622
+ return !(typeof window > "u" || !window.document || !window.document.createElement);
1623
+ }
1624
+ function lt() {
1625
+ return "ontouchstart" in window && /Mobi/.test(navigator.userAgent);
1626
+ }
1627
+ function Ue(e) {
1628
+ var t = e.title, n = e.data, r = e.warn, o = r !== void 0 && r, i = e.debug, s = i !== void 0 && i, a = o ? console.warn || console.error : console.log;
1629
+ s && t && n && (console.groupCollapsed("%creact-floater: ".concat(t), "color: #9b00ff; font-weight: bold; font-size: 12px;"), Array.isArray(n) ? n.forEach(function(l) {
1630
+ m.plainObject(l) && l.key ? a.apply(console, [l.key, l.value]) : a.apply(console, [l]);
1631
+ }) : a.apply(console, [n]), console.groupEnd());
1632
+ }
1633
+ function wn() {
1634
+ }
1635
+ var Qn = function() {
1636
+ _e(t, D.Component);
1637
+ var e = Be(t);
1638
+ function t() {
1639
+ return De(this, t), e.apply(this, arguments);
1640
+ }
1641
+ return Fe(t, [{ key: "componentDidMount", value: function() {
1642
+ ee() && (this.node || this.appendNode(), ke || this.renderPortal());
1643
+ } }, { key: "componentDidUpdate", value: function() {
1644
+ ee() && (ke || this.renderPortal());
1645
+ } }, { key: "componentWillUnmount", value: function() {
1646
+ ee() && this.node && (ke || He.unmountComponentAtNode(this.node), this.node && this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = void 0));
1647
+ } }, { key: "appendNode", value: function() {
1648
+ var n = this.props, r = n.id, o = n.zIndex;
1649
+ this.node || (this.node = document.createElement("div"), r && (this.node.id = r), o && (this.node.style.zIndex = o), document.body.appendChild(this.node));
1650
+ } }, { key: "renderPortal", value: function() {
1651
+ if (!ee()) return null;
1652
+ var n = this.props, r = n.children, o = n.setRef;
1653
+ return this.node || this.appendNode(), ke ? He.createPortal(r, this.node) : (o(He.unstable_renderSubtreeIntoContainer(this, r.length > 1 ? D.createElement("div", null, r) : r[0], this.node)), null);
1654
+ } }, { key: "renderReact16", value: function() {
1655
+ var n = this.props, r = n.hasChildren, o = n.placement, i = n.target;
1656
+ return r || i || o === "center" ? this.renderPortal() : null;
1657
+ } }, { key: "render", value: function() {
1658
+ return ke ? this.renderReact16() : null;
1659
+ } }]), t;
1660
+ }();
1661
+ G(Qn, "propTypes", { children: S.oneOfType([S.element, S.array]), hasChildren: S.bool, id: S.oneOfType([S.string, S.number]), placement: S.string, setRef: S.func.isRequired, target: S.oneOfType([S.object, S.string]), zIndex: S.number });
1662
+ var er = function() {
1663
+ _e(t, D.Component);
1664
+ var e = Be(t);
1665
+ function t() {
1666
+ return De(this, t), e.apply(this, arguments);
1667
+ }
1668
+ return Fe(t, [{ key: "parentStyle", get: function() {
1669
+ var n = this.props, r = n.placement, o = n.styles.arrow.length, i = { pointerEvents: "none", position: "absolute", width: "100%" };
1670
+ return r.startsWith("top") ? (i.bottom = 0, i.left = 0, i.right = 0, i.height = o) : r.startsWith("bottom") ? (i.left = 0, i.right = 0, i.top = 0, i.height = o) : r.startsWith("left") ? (i.right = 0, i.top = 0, i.bottom = 0) : r.startsWith("right") && (i.left = 0, i.top = 0), i;
1671
+ } }, { key: "render", value: function() {
1672
+ var n, r = this.props, o = r.placement, i = r.setArrowRef, s = r.styles.arrow, a = s.color, l = s.display, c = s.length, u = s.margin, p = s.position, d = s.spread, h = { display: l, position: p }, y = d, v = c;
1673
+ return o.startsWith("top") ? (n = "0,0 ".concat(y / 2, ",").concat(v, " ").concat(y, ",0"), h.bottom = 0, h.marginLeft = u, h.marginRight = u) : o.startsWith("bottom") ? (n = "".concat(y, ",").concat(v, " ").concat(y / 2, ",0 0,").concat(v), h.top = 0, h.marginLeft = u, h.marginRight = u) : o.startsWith("left") ? (v = d, n = "0,0 ".concat(y = c, ",").concat(v / 2, " 0,").concat(v), h.right = 0, h.marginTop = u, h.marginBottom = u) : o.startsWith("right") && (v = d, n = "".concat(y = c, ",").concat(v, " ").concat(y, ",0 0,").concat(v / 2), h.left = 0, h.marginTop = u, h.marginBottom = u), D.createElement("div", { className: "__floater__arrow", style: this.parentStyle }, D.createElement("span", { ref: i, style: h }, D.createElement("svg", { width: y, height: v, version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, D.createElement("polygon", { points: n, fill: a }))));
1674
+ } }]), t;
1675
+ }();
1676
+ G(er, "propTypes", { placement: S.string.isRequired, setArrowRef: S.func.isRequired, styles: S.object.isRequired });
1677
+ var Xr = ["color", "height", "width"];
1678
+ function tr(e) {
1679
+ var t = e.handleClick, n = e.styles, r = n.color, o = n.height, i = n.width, s = Xn(n, Xr);
1680
+ return D.createElement("button", { "aria-label": "close", onClick: t, style: s, type: "button" }, D.createElement("svg", { width: "".concat(i, "px"), height: "".concat(o, "px"), viewBox: "0 0 18 18", version: "1.1", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid" }, D.createElement("g", null, D.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: r }))));
1681
+ }
1682
+ function nr(e) {
1683
+ var t = e.content, n = e.footer, r = e.handleClick, o = e.open, i = e.positionWrapper, s = e.showCloseButton, a = e.title, l = e.styles, c = { content: D.isValidElement(t) ? t : D.createElement("div", { className: "__floater__content", style: l.content }, t) };
1684
+ return a && (c.title = D.isValidElement(a) ? a : D.createElement("div", { className: "__floater__title", style: l.title }, a)), n && (c.footer = D.isValidElement(n) ? n : D.createElement("div", { className: "__floater__footer", style: l.footer }, n)), !s && !i || m.boolean(o) || (c.close = D.createElement(tr, { styles: l.close, handleClick: r })), D.createElement("div", { className: "__floater__container", style: l.container }, c.close, c.title, c.content, c.footer);
1685
+ }
1686
+ tr.propTypes = { handleClick: S.func.isRequired, styles: S.object.isRequired }, nr.propTypes = { content: S.node.isRequired, footer: S.node, handleClick: S.func.isRequired, open: S.bool, positionWrapper: S.bool.isRequired, showCloseButton: S.bool.isRequired, styles: S.object.isRequired, title: S.node };
1687
+ var rr = function() {
1688
+ _e(t, D.Component);
1689
+ var e = Be(t);
1690
+ function t() {
1691
+ return De(this, t), e.apply(this, arguments);
1692
+ }
1693
+ return Fe(t, [{ key: "style", get: function() {
1694
+ var n = this.props, r = n.disableAnimation, o = n.component, i = n.placement, s = n.hideArrow, a = n.status, l = n.styles, c = l.arrow.length, u = l.floater, p = l.floaterCentered, d = l.floaterClosing, h = l.floaterOpening, y = l.floaterWithAnimation, v = l.floaterWithComponent, g = {};
1695
+ return s || (i.startsWith("top") ? g.padding = "0 0 ".concat(c, "px") : i.startsWith("bottom") ? g.padding = "".concat(c, "px 0 0") : i.startsWith("left") ? g.padding = "0 ".concat(c, "px 0 0") : i.startsWith("right") && (g.padding = "0 0 0 ".concat(c, "px"))), [W.OPENING, W.OPEN].indexOf(a) !== -1 && (g = V(V({}, g), h)), a === W.CLOSING && (g = V(V({}, g), d)), a !== W.OPEN || r || (g = V(V({}, g), y)), i === "center" && (g = V(V({}, g), p)), o && (g = V(V({}, g), v)), V(V({}, u), g);
1696
+ } }, { key: "render", value: function() {
1697
+ var n = this.props, r = n.component, o = n.handleClick, i = n.hideArrow, s = n.setFloaterRef, a = n.status, l = {}, c = ["__floater"];
1698
+ return l.content = r ? D.isValidElement(r) ? D.cloneElement(r, { closeFn: o }) : r({ closeFn: o }) : D.createElement(nr, this.props), a === W.OPEN && c.push("__floater__open"), i || (l.arrow = D.createElement(er, this.props)), D.createElement("div", { ref: s, className: c.join(" "), style: this.style }, D.createElement("div", { className: "__floater__body" }, l.content, l.arrow));
1699
+ } }]), t;
1700
+ }();
1701
+ G(rr, "propTypes", { component: S.oneOfType([S.func, S.element]), content: S.node, disableAnimation: S.bool.isRequired, footer: S.node, handleClick: S.func.isRequired, hideArrow: S.bool.isRequired, open: S.bool, placement: S.string.isRequired, positionWrapper: S.bool.isRequired, setArrowRef: S.func.isRequired, setFloaterRef: S.func.isRequired, showCloseButton: S.bool, status: S.string.isRequired, styles: S.object.isRequired, title: S.node });
1702
+ var or = function() {
1703
+ _e(t, D.Component);
1704
+ var e = Be(t);
1705
+ function t() {
1706
+ return De(this, t), e.apply(this, arguments);
1707
+ }
1708
+ return Fe(t, [{ key: "render", value: function() {
1709
+ var n, r = this.props, o = r.children, i = r.handleClick, s = r.handleMouseEnter, a = r.handleMouseLeave, l = r.setChildRef, c = r.setWrapperRef, u = r.style, p = r.styles;
1710
+ if (o) if (D.Children.count(o) === 1) if (D.isValidElement(o)) {
1711
+ var d = m.function(o.type) ? "innerRef" : "ref";
1712
+ n = D.cloneElement(D.Children.only(o), G({}, d, l));
1713
+ } else n = D.createElement("span", null, o);
1714
+ else n = o;
1715
+ return n ? D.createElement("span", { ref: c, style: V(V({}, p), u), onClick: i, onMouseEnter: s, onMouseLeave: a }, n) : null;
1716
+ } }]), t;
1717
+ }();
1718
+ G(or, "propTypes", { children: S.node, handleClick: S.func.isRequired, handleMouseEnter: S.func.isRequired, handleMouseLeave: S.func.isRequired, setChildRef: S.func.isRequired, setWrapperRef: S.func.isRequired, style: S.object, styles: S.object.isRequired });
1719
+ var Zr = { zIndex: 100 }, Qr = ["arrow", "flip", "offset"], eo = ["position", "top", "right", "bottom", "left"], yt = function() {
1720
+ _e(t, D.Component);
1721
+ var e = Be(t);
1722
+ function t(n) {
1723
+ var r;
1724
+ return De(this, t), G(ie(r = e.call(this, n)), "setArrowRef", function(o) {
1725
+ r.arrowRef = o;
1726
+ }), G(ie(r), "setChildRef", function(o) {
1727
+ r.childRef = o;
1728
+ }), G(ie(r), "setFloaterRef", function(o) {
1729
+ r.floaterRef = o;
1730
+ }), G(ie(r), "setWrapperRef", function(o) {
1731
+ r.wrapperRef = o;
1732
+ }), G(ie(r), "handleTransitionEnd", function() {
1733
+ var o = r.state.status, i = r.props.callback;
1734
+ r.wrapperPopper && r.wrapperPopper.instance.update(), r.setState({ status: o === W.OPENING ? W.OPEN : W.IDLE }, function() {
1735
+ var s = r.state.status;
1736
+ i(s === W.OPEN ? "open" : "close", r.props);
1737
+ });
1738
+ }), G(ie(r), "handleClick", function() {
1739
+ var o = r.props, i = o.event, s = o.open;
1740
+ if (!m.boolean(s)) {
1741
+ var a = r.state, l = a.positionWrapper, c = a.status;
1742
+ (r.event === "click" || r.event === "hover" && l) && (Ue({ title: "click", data: [{ event: i, status: c === W.OPEN ? "closing" : "opening" }], debug: r.debug }), r.toggle());
1743
+ }
1744
+ }), G(ie(r), "handleMouseEnter", function() {
1745
+ var o = r.props, i = o.event, s = o.open;
1746
+ if (!m.boolean(s) && !lt()) {
1747
+ var a = r.state.status;
1748
+ r.event === "hover" && a === W.IDLE && (Ue({ title: "mouseEnter", data: [{ key: "originalEvent", value: i }], debug: r.debug }), clearTimeout(r.eventDelayTimeout), r.toggle());
1749
+ }
1750
+ }), G(ie(r), "handleMouseLeave", function() {
1751
+ var o = r.props, i = o.event, s = o.eventDelay, a = o.open;
1752
+ if (!m.boolean(a) && !lt()) {
1753
+ var l = r.state, c = l.status, u = l.positionWrapper;
1754
+ r.event === "hover" && (Ue({ title: "mouseLeave", data: [{ key: "originalEvent", value: i }], debug: r.debug }), s ? [W.OPENING, W.OPEN].indexOf(c) === -1 || u || r.eventDelayTimeout || (r.eventDelayTimeout = setTimeout(function() {
1755
+ delete r.eventDelayTimeout, r.toggle();
1756
+ }, 1e3 * s)) : r.toggle(W.IDLE));
1757
+ }
1758
+ }), r.state = { currentPlacement: n.placement, needsUpdate: !1, positionWrapper: n.wrapperOptions.position && !!n.target, status: W.INIT, statusWrapper: W.INIT }, r._isMounted = !1, r.hasMounted = !1, ee() && window.addEventListener("load", function() {
1759
+ r.popper && r.popper.instance.update(), r.wrapperPopper && r.wrapperPopper.instance.update();
1760
+ }), r;
1761
+ }
1762
+ return Fe(t, [{ key: "componentDidMount", value: function() {
1763
+ if (ee()) {
1764
+ var n = this.state.positionWrapper, r = this.props, o = r.children, i = r.open, s = r.target;
1765
+ this._isMounted = !0, Ue({ title: "init", data: { hasChildren: !!o, hasTarget: !!s, isControlled: m.boolean(i), positionWrapper: n, target: this.target, floater: this.floaterRef }, debug: this.debug }), this.hasMounted || (this.initPopper(), this.hasMounted = !0), !o && s && m.boolean(i);
1766
+ }
1767
+ } }, { key: "componentDidUpdate", value: function(n, r) {
1768
+ if (ee()) {
1769
+ var o, i = this.props, s = i.autoOpen, a = i.open, l = i.target, c = i.wrapperOptions, u = function(h, y) {
1770
+ if ([h, y].some(m.nullOrUndefined)) throw new Error("Missing required parameters");
1771
+ if (![h, y].every(function(g) {
1772
+ return m.plainObject(g) || m.array(g);
1773
+ })) throw new Error("Expected plain objects or array");
1774
+ var v = function(g, x, w) {
1775
+ try {
1776
+ var b = re(h, g), k = re(y, g), f = m.defined(x), E = m.defined(w);
1777
+ if (f || E) {
1778
+ var C = E ? Te(w, b) : !Te(x, b), O = Te(x, k);
1779
+ return C && O;
1780
+ }
1781
+ return [b, k].every(m.array) || [b, k].every(m.plainObject) ? !Y(b, k) : b !== k;
1782
+ } catch {
1783
+ return !1;
1784
+ }
1785
+ };
1786
+ return { added: function(g, x) {
1787
+ try {
1788
+ return hn(h, y, { key: g, type: "added", value: x });
1789
+ } catch {
1790
+ return !1;
1791
+ }
1792
+ }, changed: v, changedFrom: function(g, x, w) {
1793
+ if (!m.defined(g)) return !1;
1794
+ try {
1795
+ var b = re(h, g), k = re(y, g), f = m.defined(w);
1796
+ return Te(x, b) && (f ? Te(w, k) : !f);
1797
+ } catch {
1798
+ return !1;
1799
+ }
1800
+ }, changedTo: function(g, x) {
1801
+ return !!m.defined(g) && (process.env.NODE_ENV === "development" && console.warn("`changedTo` is deprecated! Replace it with `change`"), v(g, x));
1802
+ }, decreased: function(g, x, w) {
1803
+ if (!m.defined(g)) return !1;
1804
+ try {
1805
+ return dn(h, y, { key: g, actual: x, previous: w, type: "decreased" });
1806
+ } catch {
1807
+ return !1;
1808
+ }
1809
+ }, emptied: function(g) {
1810
+ try {
1811
+ var x = yn(h, y, { key: g }), w = x[0], b = x[1];
1812
+ return !!w.length && !b.length;
1813
+ } catch {
1814
+ return !1;
1815
+ }
1816
+ }, filled: function(g) {
1817
+ try {
1818
+ var x = yn(h, y, { key: g }), w = x[0], b = x[1];
1819
+ return !w.length && !!b.length;
1820
+ } catch {
1821
+ return !1;
1822
+ }
1823
+ }, increased: function(g, x, w) {
1824
+ if (!m.defined(g)) return !1;
1825
+ try {
1826
+ return dn(h, y, { key: g, actual: x, previous: w, type: "increased" });
1827
+ } catch {
1828
+ return !1;
1829
+ }
1830
+ }, removed: function(g, x) {
1831
+ try {
1832
+ return hn(h, y, { key: g, type: "removed", value: x });
1833
+ } catch {
1834
+ return !1;
1835
+ }
1836
+ } };
1837
+ }(r, this.state), p = u.changedFrom, d = u.changed;
1838
+ n.open !== a && (m.boolean(a) && (o = a ? W.OPENING : W.CLOSING), this.toggle(o)), n.wrapperOptions.position === c.position && n.target === l || this.changeWrapperPosition(this.props), (d("status", W.IDLE) && a || p("status", W.INIT, W.IDLE) && s) && this.toggle(W.OPEN), this.popper && d("status", W.OPENING) && this.popper.instance.update(), this.floaterRef && (d("status", W.OPENING) || d("status", W.CLOSING)) && function(h, y, v) {
1839
+ var g;
1840
+ g = function(x) {
1841
+ v(x), function(w, b, k) {
1842
+ var f = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1843
+ w.removeEventListener(b, k, f);
1844
+ }(h, y, g);
1845
+ }, function(x, w, b) {
1846
+ var k = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
1847
+ x.addEventListener(w, b, k);
1848
+ }(h, y, g, arguments.length > 3 && arguments[3] !== void 0 && arguments[3]);
1849
+ }(this.floaterRef, "transitionend", this.handleTransitionEnd), d("needsUpdate", !0) && this.rebuildPopper();
1850
+ }
1851
+ } }, { key: "componentWillUnmount", value: function() {
1852
+ ee() && (this._isMounted = !1, this.popper && this.popper.instance.destroy(), this.wrapperPopper && this.wrapperPopper.instance.destroy());
1853
+ } }, { key: "initPopper", value: function() {
1854
+ var n = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.target, o = this.state.positionWrapper, i = this.props, s = i.disableFlip, a = i.getPopper, l = i.hideArrow, c = i.offset, u = i.placement, p = i.wrapperOptions, d = u === "top" || u === "bottom" ? "flip" : ["right", "bottom-end", "top-end", "left", "top-start", "bottom-start"];
1855
+ if (u === "center") this.setState({ status: W.IDLE });
1856
+ else if (r && this.floaterRef) {
1857
+ var h = this.options, y = h.arrow, v = h.flip, g = h.offset, x = Xn(h, Qr);
1858
+ new Ce(r, this.floaterRef, { placement: u, modifiers: V({ arrow: V({ enabled: !l, element: this.arrowRef }, y), flip: V({ enabled: !s, behavior: d }, v), offset: V({ offset: "0, ".concat(c, "px") }, g) }, x), onCreate: function(b) {
1859
+ var k;
1860
+ n.popper = b, (k = n.floaterRef) !== null && k !== void 0 && k.isConnected ? (a(b, "floater"), n._isMounted && n.setState({ currentPlacement: b.placement, status: W.IDLE }), u !== b.placement && setTimeout(function() {
1861
+ b.instance.update();
1862
+ }, 1)) : n.setState({ needsUpdate: !0 });
1863
+ }, onUpdate: function(b) {
1864
+ n.popper = b;
1865
+ var k = n.state.currentPlacement;
1866
+ n._isMounted && b.placement !== k && n.setState({ currentPlacement: b.placement });
1867
+ } });
1868
+ }
1869
+ if (o) {
1870
+ var w = m.undefined(p.offset) ? 0 : p.offset;
1871
+ new Ce(this.target, this.wrapperRef, { placement: p.placement || u, modifiers: { arrow: { enabled: !1 }, offset: { offset: "0, ".concat(w, "px") }, flip: { enabled: !1 } }, onCreate: function(b) {
1872
+ n.wrapperPopper = b, n._isMounted && n.setState({ statusWrapper: W.IDLE }), a(b, "wrapper"), u !== b.placement && setTimeout(function() {
1873
+ b.instance.update();
1874
+ }, 1);
1875
+ } });
1876
+ }
1877
+ } }, { key: "rebuildPopper", value: function() {
1878
+ var n = this;
1879
+ this.floaterRefInterval = setInterval(function() {
1880
+ var r;
1881
+ (r = n.floaterRef) !== null && r !== void 0 && r.isConnected && (clearInterval(n.floaterRefInterval), n.setState({ needsUpdate: !1 }), n.initPopper());
1882
+ }, 50);
1883
+ } }, { key: "changeWrapperPosition", value: function(n) {
1884
+ var r = n.target, o = n.wrapperOptions;
1885
+ this.setState({ positionWrapper: o.position && !!r });
1886
+ } }, { key: "toggle", value: function(n) {
1887
+ var r = this.state.status === W.OPEN ? W.CLOSING : W.OPENING;
1888
+ m.undefined(n) || (r = n), this.setState({ status: r });
1889
+ } }, { key: "debug", get: function() {
1890
+ return this.props.debug || ee() && "ReactFloaterDebug" in window && !!window.ReactFloaterDebug;
1891
+ } }, { key: "event", get: function() {
1892
+ var n = this.props, r = n.disableHoverToClick, o = n.event;
1893
+ return o === "hover" && lt() && !r ? "click" : o;
1894
+ } }, { key: "options", get: function() {
1895
+ var n = this.props.options;
1896
+ return Q(Jr, n || {});
1897
+ } }, { key: "styles", get: function() {
1898
+ var n, r = this, o = this.state, i = o.status, s = o.positionWrapper, a = o.statusWrapper, l = this.props.styles, c = Q(function(p) {
1899
+ var d = Q(Zr, p.options || {});
1900
+ return { wrapper: { cursor: "help", display: "inline-flex", flexDirection: "column", zIndex: d.zIndex }, wrapperPosition: { left: -1e3, position: "absolute", top: -1e3, visibility: "hidden" }, floater: { display: "inline-block", filter: "drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))", maxWidth: 300, opacity: 0, position: "relative", transition: "opacity 0.3s", visibility: "hidden", zIndex: d.zIndex }, floaterOpening: { opacity: 1, visibility: "visible" }, floaterWithAnimation: { opacity: 1, transition: "opacity 0.3s, transform 0.2s", visibility: "visible" }, floaterWithComponent: { maxWidth: "100%" }, floaterClosing: { opacity: 0, visibility: "visible" }, floaterCentered: { left: "50%", position: "fixed", top: "50%", transform: "translate(-50%, -50%)" }, container: { backgroundColor: "#fff", color: "#666", minHeight: 60, minWidth: 200, padding: 20, position: "relative", zIndex: 10 }, title: { borderBottom: "1px solid #555", color: "#555", fontSize: 18, marginBottom: 5, paddingBottom: 6, paddingRight: 18 }, content: { fontSize: 15 }, close: { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", fontSize: 0, height: 15, outline: "none", padding: 10, position: "absolute", right: 0, top: 0, width: 15, WebkitAppearance: "none" }, footer: { borderTop: "1px solid #ccc", fontSize: 13, marginTop: 10, paddingTop: 5 }, arrow: { color: "#fff", display: "inline-flex", length: 16, margin: 8, position: "absolute", spread: 32 }, options: d };
1901
+ }(l), l);
1902
+ if (s && (n = [W.IDLE].indexOf(i) === -1 || [W.IDLE].indexOf(a) === -1 ? c.wrapperPosition : this.wrapperPopper.styles, c.wrapper = V(V({}, c.wrapper), n)), this.target) {
1903
+ var u = window.getComputedStyle(this.target);
1904
+ this.wrapperStyles ? c.wrapper = V(V({}, c.wrapper), this.wrapperStyles) : ["relative", "static"].indexOf(u.position) === -1 && (this.wrapperStyles = {}, s || (eo.forEach(function(p) {
1905
+ r.wrapperStyles[p] = u[p];
1906
+ }), c.wrapper = V(V({}, c.wrapper), this.wrapperStyles), this.target.style.position = "relative", this.target.style.top = "auto", this.target.style.right = "auto", this.target.style.bottom = "auto", this.target.style.left = "auto"));
1907
+ }
1908
+ return c;
1909
+ } }, { key: "target", get: function() {
1910
+ if (!ee()) return null;
1911
+ var n = this.props.target;
1912
+ return n ? m.domElement(n) ? n : document.querySelector(n) : this.childRef || this.wrapperRef;
1913
+ } }, { key: "render", value: function() {
1914
+ var n = this.state, r = n.currentPlacement, o = n.positionWrapper, i = n.status, s = this.props, a = s.children, l = s.component, c = s.content, u = s.disableAnimation, p = s.footer, d = s.hideArrow, h = s.id, y = s.open, v = s.showCloseButton, g = s.style, x = s.target, w = s.title, b = D.createElement(or, { handleClick: this.handleClick, handleMouseEnter: this.handleMouseEnter, handleMouseLeave: this.handleMouseLeave, setChildRef: this.setChildRef, setWrapperRef: this.setWrapperRef, style: g, styles: this.styles.wrapper }, a), k = {};
1915
+ return o ? k.wrapperInPortal = b : k.wrapperAsChildren = b, D.createElement("span", null, D.createElement(Qn, { hasChildren: !!a, id: h, placement: r, setRef: this.setFloaterRef, target: x, zIndex: this.styles.options.zIndex }, D.createElement(rr, { component: l, content: c, disableAnimation: u, footer: p, handleClick: this.handleClick, hideArrow: d || r === "center", open: y, placement: r, positionWrapper: o, setArrowRef: this.setArrowRef, setFloaterRef: this.setFloaterRef, showCloseButton: v, status: i, styles: this.styles, title: w }), k.wrapperInPortal), k.wrapperAsChildren);
1916
+ } }]), t;
1917
+ }();
1918
+ G(yt, "propTypes", { autoOpen: S.bool, callback: S.func, children: S.node, component: vn(S.oneOfType([S.func, S.element]), function(e) {
1919
+ return !e.content;
1920
+ }), content: vn(S.node, function(e) {
1921
+ return !e.component;
1922
+ }), debug: S.bool, disableAnimation: S.bool, disableFlip: S.bool, disableHoverToClick: S.bool, event: S.oneOf(["hover", "click"]), eventDelay: S.number, footer: S.node, getPopper: S.func, hideArrow: S.bool, id: S.oneOfType([S.string, S.number]), offset: S.number, open: S.bool, options: S.object, placement: S.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto", "center"]), showCloseButton: S.bool, style: S.object, styles: S.object, target: S.oneOfType([S.object, S.string]), title: S.node, wrapperOptions: S.shape({ offset: S.number, placement: S.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto"]), position: S.bool }) }), G(yt, "defaultProps", { autoOpen: !1, callback: wn, debug: !1, disableAnimation: !1, disableFlip: !1, disableHoverToClick: !1, event: "click", eventDelay: 0.4, getPopper: wn, hideArrow: !1, offset: 15, placement: "bottom", showCloseButton: !1, styles: {}, target: null, wrapperOptions: { position: !1 } });
1923
+ var to = Object.defineProperty, N = (e, t, n) => ((r, o, i) => o in r ? to(r, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[o] = i)(e, typeof t != "symbol" ? t + "" : t, n), no = "init", Et = "start", ir = "stop", sr = "reset", fe = "prev", Xe = "next", ro = "go", we = "close", St = "skip", On = "update", K = { TOUR_START: "tour:start", STEP_BEFORE: "step:before", BEACON: "beacon", TOOLTIP: "tooltip", STEP_AFTER: "step:after", TOUR_END: "tour:end", TOUR_STATUS: "tour:status", TARGET_NOT_FOUND: "error:target_not_found", ERROR: "error" }, A = { INIT: "init", READY: "ready", BEACON: "beacon", TOOLTIP: "tooltip", COMPLETE: "complete", ERROR: "error" }, F = { IDLE: "idle", READY: "ready", WAITING: "waiting", RUNNING: "running", PAUSED: "paused", SKIPPED: "skipped", FINISHED: "finished", ERROR: "error" };
1924
+ function ae() {
1925
+ var e;
1926
+ return !(typeof window > "u" || !((e = window.document) != null && e.createElement));
1927
+ }
1928
+ function En(e) {
1929
+ return e ? e.getBoundingClientRect() : null;
1930
+ }
1931
+ function oo(e = !1) {
1932
+ const { body: t, documentElement: n } = document;
1933
+ if (!t || !n) return 0;
1934
+ if (e) {
1935
+ const r = [t.scrollHeight, t.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight].sort((i, s) => i - s), o = Math.floor(r.length / 2);
1936
+ return r.length % 2 == 0 ? (r[o - 1] + r[o]) / 2 : r[o];
1937
+ }
1938
+ return Math.max(t.scrollHeight, t.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight);
1939
+ }
1940
+ function se(e) {
1941
+ if (typeof e == "string") try {
1942
+ return document.querySelector(e);
1943
+ } catch (t) {
1944
+ return process.env.NODE_ENV !== "production" && console.error(t), null;
1945
+ }
1946
+ return e;
1947
+ }
1948
+ function je(e, t, n) {
1949
+ if (!e) return pe();
1950
+ const r = Rn(e);
1951
+ if (r) {
1952
+ if (r.isSameNode(pe())) return n ? document : pe();
1953
+ if (!(r.scrollHeight > r.offsetHeight) && !t) return r.style.overflow = "initial", pe();
1954
+ }
1955
+ return r;
1956
+ }
1957
+ function Re(e, t) {
1958
+ if (!e) return !1;
1959
+ const n = je(e, t);
1960
+ return !!n && !n.isSameNode(pe());
1961
+ }
1962
+ function be(e, t = "fixed") {
1963
+ if (!(e && e instanceof HTMLElement)) return !1;
1964
+ const { nodeName: n } = e, r = function(o) {
1965
+ return o && o.nodeType === 1 ? getComputedStyle(o) : null;
1966
+ }(e);
1967
+ return n !== "BODY" && n !== "HTML" && (!(!r || r.position !== t) || !!e.parentNode && be(e.parentNode, t));
1968
+ }
1969
+ function io(e, t, n) {
1970
+ var r;
1971
+ if (!e) return 0;
1972
+ const { offsetTop: o = 0, scrollTop: i = 0 } = (r = Rn(e)) != null ? r : {};
1973
+ let s = e.getBoundingClientRect().top + i;
1974
+ o && (Re(e, n) || function(l) {
1975
+ return l.offsetParent !== document.body;
1976
+ }(e)) && (s -= o);
1977
+ const a = Math.floor(s - t);
1978
+ return a < 0 ? 0 : a;
1979
+ }
1980
+ function pe() {
1981
+ var e;
1982
+ return (e = document.scrollingElement) != null ? e : document.documentElement;
1983
+ }
1984
+ var Pe = mr !== void 0;
1985
+ function ar(e = navigator.userAgent) {
1986
+ let t = e;
1987
+ return typeof window > "u" ? t = "node" : document.documentMode ? t = "ie" : /Edge/.test(e) ? t = "edge" : window.opera || e.includes(" OPR/") ? t = "opera" : window.InstallTrigger !== void 0 ? t = "firefox" : window.chrome ? t = "chrome" : /(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e) && (t = "safari"), t;
1988
+ }
1989
+ function Ve(e) {
1990
+ return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
1991
+ }
1992
+ function te(e, t = {}) {
1993
+ const { defaultValue: n, step: r, steps: o } = t;
1994
+ let i = zt(e);
1995
+ return i ? (i.includes("{step}") || i.includes("{steps}")) && r && o && (i = i.replace("{step}", r.toString()).replace("{steps}", o.toString())) : Cn(e) && !Object.values(e.props).length && Ve(e.type) === "function" ? i = te(e.type({}), t) : i = zt(n), i;
1996
+ }
1997
+ function so(e) {
1998
+ const t = e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i, (r, o, i, s) => o + o + i + i + s + s), n = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);
1999
+ return n ? [parseInt(n[1], 16), parseInt(n[2], 16), parseInt(n[3], 16)] : [];
2000
+ }
2001
+ function Sn(e) {
2002
+ return e.disableBeacon || e.placement === "center";
2003
+ }
2004
+ function xn() {
2005
+ return !["chrome", "safari", "firefox", "opera"].includes(ar());
2006
+ }
2007
+ function ce({ data: e, debug: t = !1, title: n, warn: r = !1 }) {
2008
+ const o = r ? console.warn || console.error : console.log;
2009
+ t && (n && e ? (console.groupCollapsed(`%creact-joyride: ${n}`, "color: #ff0044; font-weight: bold; font-size: 12px;"), Array.isArray(e) ? e.forEach((i) => {
2010
+ P.plainObject(i) && i.key ? o.apply(console, [i.key, i.value]) : o.apply(console, [i]);
2011
+ }) : o.apply(console, [e]), console.groupEnd()) : console.error("Missing title or data props"));
2012
+ }
2013
+ function lr(e, ...t) {
2014
+ if (!P.plainObject(e)) throw new TypeError("Expected an object");
2015
+ const n = {};
2016
+ for (const r in e) ({}).hasOwnProperty.call(e, r) && (t.includes(r) || (n[r] = e[r]));
2017
+ return n;
2018
+ }
2019
+ function mt(e, t, n) {
2020
+ const r = (i) => i.replace("{step}", String(t)).replace("{steps}", String(n));
2021
+ if (Ve(e) === "string") return r(e);
2022
+ if (!Cn(e)) return e;
2023
+ const { children: o } = e.props;
2024
+ return Ve(o) === "string" && o.includes("{step}") ? Tt(e, { children: r(o) }) : Array.isArray(o) ? Tt(e, { children: o.map((i) => typeof i == "string" ? r(i) : mt(i, t, n)) }) : Ve(e.type) === "function" && !Object.values(e.props).length ? mt(e.type({}), t, n) : e;
2025
+ }
2026
+ var ao = { options: { preventOverflow: { boundariesElement: "scrollParent" } }, wrapperOptions: { offset: -18, position: !0 } }, cr = { back: "Back", close: "Close", last: "Last", next: "Next", nextLabelWithProgress: "Next (Step {step} of {steps})", open: "Open the dialog", skip: "Skip" }, lo = { event: "click", placement: "bottom", offset: 10, disableBeacon: !1, disableCloseOnEsc: !1, disableOverlay: !1, disableOverlayClose: !1, disableScrollParentFix: !1, disableScrolling: !1, hideBackButton: !1, hideCloseButton: !1, hideFooter: !1, isFixed: !1, locale: cr, showProgress: !1, showSkipButton: !1, spotlightClicks: !1, spotlightPadding: 10 }, co = { continuous: !1, debug: !1, disableCloseOnEsc: !1, disableOverlay: !1, disableOverlayClose: !1, disableScrolling: !1, disableScrollParentFix: !1, getHelpers: void 0, hideBackButton: !1, run: !0, scrollOffset: 20, scrollDuration: 300, scrollToFirstStep: !1, showSkipButton: !1, showProgress: !1, spotlightClicks: !1, spotlightPadding: 10, steps: [] }, uo = { arrowColor: "#fff", backgroundColor: "#fff", beaconSize: 36, overlayColor: "rgba(0, 0, 0, 0.5)", primaryColor: "#f04", spotlightShadow: "0 0 15px rgba(0, 0, 0, 0.5)", textColor: "#333", width: 380, zIndex: 100 }, Ne = { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", cursor: "pointer", fontSize: 16, lineHeight: 1, padding: 8, WebkitAppearance: "none" }, Tn = { borderRadius: 4, position: "absolute" };
2027
+ function po(e) {
2028
+ return function(t, ...n) {
2029
+ if (!P.plainObject(t)) throw new TypeError("Expected an object");
2030
+ if (!n.length) return t;
2031
+ const r = {};
2032
+ for (const o in t) ({}).hasOwnProperty.call(t, o) && n.includes(o) && (r[o] = t[o]);
2033
+ return r;
2034
+ }(e, "beaconComponent", "disableCloseOnEsc", "disableOverlay", "disableOverlayClose", "disableScrolling", "disableScrollParentFix", "floaterProps", "hideBackButton", "hideCloseButton", "locale", "showProgress", "showSkipButton", "spotlightClicks", "spotlightPadding", "styles", "tooltipComponent");
2035
+ }
2036
+ function ge(e, t) {
2037
+ var n, r, o, i, s, a;
2038
+ const l = t ?? {}, c = Q.all([lo, po(e), l], { isMergeableObject: P.plainObject }), u = function(h, y) {
2039
+ var v, g, x, w, b;
2040
+ const { floaterProps: k, styles: f } = h, E = Q((v = y.floaterProps) != null ? v : {}, k ?? {}), C = Q(f ?? {}, (g = y.styles) != null ? g : {}), O = Q(uo, C.options || {}), j = y.placement === "center" || y.disableBeacon;
2041
+ let { width: I } = O;
2042
+ window.innerWidth > 480 && (I = 380), "width" in O && (I = typeof O.width == "number" && window.innerWidth < O.width ? window.innerWidth - 30 : O.width);
2043
+ const L = { bottom: 0, left: 0, overflow: "hidden", position: "absolute", right: 0, top: 0, zIndex: O.zIndex }, M = { beacon: { ...Ne, display: j ? "none" : "inline-block", height: O.beaconSize, position: "relative", width: O.beaconSize, zIndex: O.zIndex }, beaconInner: { animation: "joyride-beacon-inner 1.2s infinite ease-in-out", backgroundColor: O.primaryColor, borderRadius: "50%", display: "block", height: "50%", left: "50%", opacity: 0.7, position: "absolute", top: "50%", transform: "translate(-50%, -50%)", width: "50%" }, beaconOuter: { animation: "joyride-beacon-outer 1.2s infinite ease-in-out", backgroundColor: `rgba(${so(O.primaryColor).join(",")}, 0.2)`, border: `2px solid ${O.primaryColor}`, borderRadius: "50%", boxSizing: "border-box", display: "block", height: "100%", left: 0, opacity: 0.9, position: "absolute", top: 0, transformOrigin: "center", width: "100%" }, tooltip: { backgroundColor: O.backgroundColor, borderRadius: 5, boxSizing: "border-box", color: O.textColor, fontSize: 16, maxWidth: "100%", padding: 15, position: "relative", width: I }, tooltipContainer: { lineHeight: 1.4, textAlign: "center" }, tooltipTitle: { fontSize: 18, margin: 0 }, tooltipContent: { padding: "20px 10px" }, tooltipFooter: { alignItems: "center", display: "flex", justifyContent: "flex-end", marginTop: 15 }, tooltipFooterSpacer: { flex: 1 }, buttonNext: { ...Ne, backgroundColor: O.primaryColor, borderRadius: 4, color: "#fff" }, buttonBack: { ...Ne, color: O.primaryColor, marginLeft: "auto", marginRight: 5 }, buttonClose: { ...Ne, color: O.textColor, height: 14, padding: 15, position: "absolute", right: 0, top: 0, width: 14 }, buttonSkip: { ...Ne, color: O.textColor, fontSize: 14 }, overlay: { ...L, backgroundColor: O.overlayColor, mixBlendMode: "hard-light" }, overlayLegacy: { ...L }, overlayLegacyCenter: { ...L, backgroundColor: O.overlayColor }, spotlight: { ...Tn, backgroundColor: "gray" }, spotlightLegacy: { ...Tn, boxShadow: `0 0 0 9999px ${O.overlayColor}, ${O.spotlightShadow}` }, floaterStyles: { arrow: { color: (b = (w = (x = E == null ? void 0 : E.styles) == null ? void 0 : x.arrow) == null ? void 0 : w.color) != null ? b : O.arrowColor }, options: { zIndex: O.zIndex + 100 } }, options: O };
2044
+ return Q(M, C);
2045
+ }(e, c), p = Re(se(c.target), c.disableScrollParentFix), d = Q.all([ao, (n = e.floaterProps) != null ? n : {}, (r = c.floaterProps) != null ? r : {}]);
2046
+ return d.offset = c.offset, d.styles = Q((o = d.styles) != null ? o : {}, u.floaterStyles), d.offset += (s = (i = e.spotlightPadding) != null ? i : c.spotlightPadding) != null ? s : 0, c.placementBeacon && d.wrapperOptions && (d.wrapperOptions.placement = c.placementBeacon), p && d.options.preventOverflow && (d.options.preventOverflow.boundariesElement = "window"), { ...c, locale: Q.all([cr, (a = e.locale) != null ? a : {}, c.locale || {}]), floaterProps: d, styles: lr(u, "floaterStyles") };
2047
+ }
2048
+ function ur(e, t = !1) {
2049
+ return P.plainObject(e) ? !!e.target || (ce({ title: "validateStep", data: "target is missing from the step", warn: !0, debug: t }), !1) : (ce({ title: "validateStep", data: "step must be an object", warn: !0, debug: t }), !1);
2050
+ }
2051
+ function kn(e, t = !1) {
2052
+ return P.array(e) ? e.every((n) => ur(n, t)) : (ce({ title: "validateSteps", data: "steps must be an array", warn: !0, debug: t }), !1);
2053
+ }
2054
+ var Pn, pr = { action: "init", controlled: !1, index: 0, lifecycle: A.INIT, origin: null, size: 0, status: F.IDLE }, Nn = (Pn = lr(pr, "controlled", "size"), Object.keys(Pn)), fo = class {
2055
+ constructor(e) {
2056
+ N(this, "beaconPopper"), N(this, "tooltipPopper"), N(this, "data", /* @__PURE__ */ new Map()), N(this, "listener"), N(this, "store", /* @__PURE__ */ new Map()), N(this, "addListener", (o) => {
2057
+ this.listener = o;
2058
+ }), N(this, "setSteps", (o) => {
2059
+ const { size: i, status: s } = this.getState(), a = { size: o.length, status: s };
2060
+ this.data.set("steps", o), s === F.WAITING && !i && o.length && (a.status = F.RUNNING), this.setState(a);
2061
+ }), N(this, "getPopper", (o) => o === "beacon" ? this.beaconPopper : this.tooltipPopper), N(this, "setPopper", (o, i) => {
2062
+ o === "beacon" ? this.beaconPopper = i : this.tooltipPopper = i;
2063
+ }), N(this, "cleanupPoppers", () => {
2064
+ this.beaconPopper = null, this.tooltipPopper = null;
2065
+ }), N(this, "close", (o = null) => {
2066
+ const { index: i, status: s } = this.getState();
2067
+ s === F.RUNNING && this.setState({ ...this.getNextState({ action: we, index: i + 1, origin: o }) });
2068
+ }), N(this, "go", (o) => {
2069
+ const { controlled: i, status: s } = this.getState();
2070
+ if (i || s !== F.RUNNING) return;
2071
+ const a = this.getSteps()[o];
2072
+ this.setState({ ...this.getNextState({ action: ro, index: o }), status: a ? s : F.FINISHED });
2073
+ }), N(this, "info", () => this.getState()), N(this, "next", () => {
2074
+ const { index: o, status: i } = this.getState();
2075
+ i === F.RUNNING && this.setState(this.getNextState({ action: Xe, index: o + 1 }));
2076
+ }), N(this, "open", () => {
2077
+ const { status: o } = this.getState();
2078
+ o === F.RUNNING && this.setState({ ...this.getNextState({ action: On, lifecycle: A.TOOLTIP }) });
2079
+ }), N(this, "prev", () => {
2080
+ const { index: o, status: i } = this.getState();
2081
+ i === F.RUNNING && this.setState({ ...this.getNextState({ action: fe, index: o - 1 }) });
2082
+ }), N(this, "reset", (o = !1) => {
2083
+ const { controlled: i } = this.getState();
2084
+ i || this.setState({ ...this.getNextState({ action: sr, index: 0 }), status: o ? F.RUNNING : F.READY });
2085
+ }), N(this, "skip", () => {
2086
+ const { status: o } = this.getState();
2087
+ o === F.RUNNING && this.setState({ action: St, lifecycle: A.INIT, status: F.SKIPPED });
2088
+ }), N(this, "start", (o) => {
2089
+ const { index: i, size: s } = this.getState();
2090
+ this.setState({ ...this.getNextState({ action: Et, index: P.number(o) ? o : i }, !0), status: s ? F.RUNNING : F.WAITING });
2091
+ }), N(this, "stop", (o = !1) => {
2092
+ const { index: i, status: s } = this.getState();
2093
+ [F.FINISHED, F.SKIPPED].includes(s) || this.setState({ ...this.getNextState({ action: ir, index: i + (o ? 1 : 0) }), status: F.PAUSED });
2094
+ }), N(this, "update", (o) => {
2095
+ var i, s, a, l;
2096
+ if (a = o, l = Nn, !(P.plainObject(a) && P.array(l) && Object.keys(a).every((c) => l.includes(c)))) throw new Error(`State is not valid. Valid keys: ${Nn.join(", ")}`);
2097
+ this.setState({ ...this.getNextState({ ...this.getState(), ...o, action: (i = o.action) != null ? i : On, origin: (s = o.origin) != null ? s : null }, !0) });
2098
+ });
2099
+ const { continuous: t = !1, stepIndex: n, steps: r = [] } = e ?? {};
2100
+ this.setState({ action: no, controlled: P.number(n), continuous: t, index: P.number(n) ? n : 0, lifecycle: A.INIT, origin: null, status: r.length ? F.READY : F.IDLE }, !0), this.beaconPopper = null, this.tooltipPopper = null, this.listener = null, this.setSteps(r);
2101
+ }
2102
+ getState() {
2103
+ return this.store.size ? { action: this.store.get("action") || "", controlled: this.store.get("controlled") || !1, index: parseInt(this.store.get("index"), 10), lifecycle: this.store.get("lifecycle") || "", origin: this.store.get("origin") || null, size: this.store.get("size") || 0, status: this.store.get("status") || "" } : { ...pr };
2104
+ }
2105
+ getNextState(e, t = !1) {
2106
+ var n, r, o, i, s;
2107
+ const { action: a, controlled: l, index: c, size: u, status: p } = this.getState(), d = P.number(e.index) ? e.index : c, h = l && !t ? c : Math.min(Math.max(d, 0), u);
2108
+ return { action: (n = e.action) != null ? n : a, controlled: l, index: h, lifecycle: (r = e.lifecycle) != null ? r : A.INIT, origin: (o = e.origin) != null ? o : null, size: (i = e.size) != null ? i : u, status: h === u ? F.FINISHED : (s = e.status) != null ? s : p };
2109
+ }
2110
+ getSteps() {
2111
+ const e = this.data.get("steps");
2112
+ return Array.isArray(e) ? e : [];
2113
+ }
2114
+ hasUpdatedState(e) {
2115
+ return JSON.stringify(e) !== JSON.stringify(this.getState());
2116
+ }
2117
+ setState(e, t = !1) {
2118
+ const n = this.getState(), { action: r, index: o, lifecycle: i, origin: s = null, size: a, status: l } = { ...n, ...e };
2119
+ this.store.set("action", r), this.store.set("index", o), this.store.set("lifecycle", i), this.store.set("origin", s), this.store.set("size", a), this.store.set("status", l), t && (this.store.set("controlled", e.controlled), this.store.set("continuous", e.continuous)), this.listener && this.hasUpdatedState(n) && this.listener(this.getState());
2120
+ }
2121
+ getHelpers() {
2122
+ return { close: this.close, go: this.go, info: this.info, next: this.next, open: this.open, prev: this.prev, reset: this.reset, skip: this.skip };
2123
+ }
2124
+ }, ho = function({ styles: e }) {
2125
+ return _.createElement("div", { key: "JoyrideSpotlight", className: "react-joyride__spotlight", "data-test-id": "spotlight", style: e });
2126
+ }, yo = class extends _.Component {
2127
+ constructor() {
2128
+ super(...arguments), N(this, "isActive", !1), N(this, "resizeTimeout"), N(this, "scrollTimeout"), N(this, "scrollParent"), N(this, "state", { isScrolling: !1, mouseOverSpotlight: !1, showSpotlight: !0 }), N(this, "hideSpotlight", () => {
2129
+ const { continuous: e, disableOverlay: t, lifecycle: n } = this.props, r = [A.INIT, A.BEACON, A.COMPLETE, A.ERROR];
2130
+ return t || (e ? r.includes(n) : n !== A.TOOLTIP);
2131
+ }), N(this, "handleMouseMove", (e) => {
2132
+ const { mouseOverSpotlight: t } = this.state, { height: n, left: r, position: o, top: i, width: s } = this.spotlightStyles, a = o === "fixed" ? e.clientY : e.pageY, l = o === "fixed" ? e.clientX : e.pageX, c = l >= r && l <= r + s && a >= i && a <= i + n;
2133
+ c !== t && this.updateState({ mouseOverSpotlight: c });
2134
+ }), N(this, "handleScroll", () => {
2135
+ const { target: e } = this.props, t = se(e);
2136
+ if (this.scrollParent !== document) {
2137
+ const { isScrolling: n } = this.state;
2138
+ n || this.updateState({ isScrolling: !0, showSpotlight: !1 }), clearTimeout(this.scrollTimeout), this.scrollTimeout = window.setTimeout(() => {
2139
+ this.updateState({ isScrolling: !1, showSpotlight: !0 });
2140
+ }, 50);
2141
+ } else be(t, "sticky") && this.updateState({});
2142
+ }), N(this, "handleResize", () => {
2143
+ clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(() => {
2144
+ this.isActive && this.forceUpdate();
2145
+ }, 100);
2146
+ });
2147
+ }
2148
+ componentDidMount() {
2149
+ const { debug: e, disableScrolling: t, disableScrollParentFix: n = !1, target: r } = this.props, o = se(r);
2150
+ this.scrollParent = je(o ?? document.body, n, !0), this.isActive = !0, process.env.NODE_ENV !== "production" && !t && Re(o, !0) && ce({ title: "step has a custom scroll parent and can cause trouble with scrolling", data: [{ key: "parent", value: this.scrollParent }], debug: e }), window.addEventListener("resize", this.handleResize);
2151
+ }
2152
+ componentDidUpdate(e) {
2153
+ var t;
2154
+ const { disableScrollParentFix: n, lifecycle: r, spotlightClicks: o, target: i } = this.props, { changed: s } = qe(e, this.props);
2155
+ if (s("target") || s("disableScrollParentFix")) {
2156
+ const a = se(i);
2157
+ this.scrollParent = je(a ?? document.body, n, !0);
2158
+ }
2159
+ s("lifecycle", A.TOOLTIP) && ((t = this.scrollParent) == null || t.addEventListener("scroll", this.handleScroll, { passive: !0 }), setTimeout(() => {
2160
+ const { isScrolling: a } = this.state;
2161
+ a || this.updateState({ showSpotlight: !0 });
2162
+ }, 100)), (s("spotlightClicks") || s("disableOverlay") || s("lifecycle")) && (o && r === A.TOOLTIP ? window.addEventListener("mousemove", this.handleMouseMove, !1) : r !== A.TOOLTIP && window.removeEventListener("mousemove", this.handleMouseMove));
2163
+ }
2164
+ componentWillUnmount() {
2165
+ var e;
2166
+ this.isActive = !1, window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("resize", this.handleResize), clearTimeout(this.resizeTimeout), clearTimeout(this.scrollTimeout), (e = this.scrollParent) == null || e.removeEventListener("scroll", this.handleScroll);
2167
+ }
2168
+ get overlayStyles() {
2169
+ const { mouseOverSpotlight: e } = this.state, { disableOverlayClose: t, placement: n, styles: r } = this.props;
2170
+ let o = r.overlay;
2171
+ return xn() && (o = n === "center" ? r.overlayLegacyCenter : r.overlayLegacy), { cursor: t ? "default" : "pointer", height: oo(), pointerEvents: e ? "none" : "auto", ...o };
2172
+ }
2173
+ get spotlightStyles() {
2174
+ var e, t, n;
2175
+ const { showSpotlight: r } = this.state, { disableScrollParentFix: o = !1, spotlightClicks: i, spotlightPadding: s = 0, styles: a, target: l } = this.props, c = se(l), u = En(c), p = be(c), d = function(h, y, v) {
2176
+ var g, x, w;
2177
+ const b = En(h), k = je(h, v), f = Re(h, v), E = be(h);
2178
+ let C = 0, O = (g = b == null ? void 0 : b.top) != null ? g : 0;
2179
+ return f && E ? O = ((x = h == null ? void 0 : h.offsetTop) != null ? x : 0) - ((w = k == null ? void 0 : k.scrollTop) != null ? w : 0) : k instanceof HTMLElement && (C = k.scrollTop, f || be(h) || (O += C), k.isSameNode(pe()) || (O += pe().scrollTop)), Math.floor(O - y);
2180
+ }(c, s, o);
2181
+ return { ...xn() ? a.spotlightLegacy : a.spotlight, height: Math.round(((e = u == null ? void 0 : u.height) != null ? e : 0) + 2 * s), left: Math.round(((t = u == null ? void 0 : u.left) != null ? t : 0) - s), opacity: r ? 1 : 0, pointerEvents: i ? "none" : "auto", position: p ? "fixed" : "absolute", top: d, transition: "opacity 0.2s", width: Math.round(((n = u == null ? void 0 : u.width) != null ? n : 0) + 2 * s) };
2182
+ }
2183
+ updateState(e) {
2184
+ this.isActive && this.setState((t) => ({ ...t, ...e }));
2185
+ }
2186
+ render() {
2187
+ const { showSpotlight: e } = this.state, { onClickOverlay: t, placement: n } = this.props, { hideSpotlight: r, overlayStyles: o, spotlightStyles: i } = this;
2188
+ if (r()) return null;
2189
+ let s = n !== "center" && e && _.createElement(ho, { styles: i });
2190
+ if (ar() === "safari") {
2191
+ const { mixBlendMode: a, zIndex: l, ...c } = o;
2192
+ s = _.createElement("div", { style: { ...c } }, s), delete o.backgroundColor;
2193
+ }
2194
+ return _.createElement("div", { className: "react-joyride__overlay", "data-test-id": "overlay", onClick: t, role: "presentation", style: o }, s);
2195
+ }
2196
+ }, mo = class extends _.Component {
2197
+ constructor() {
2198
+ super(...arguments), N(this, "node", null);
2199
+ }
2200
+ componentDidMount() {
2201
+ const { id: e } = this.props;
2202
+ ae() && (this.node = document.createElement("div"), this.node.id = e, document.body.appendChild(this.node), Pe || this.renderReact15());
2203
+ }
2204
+ componentDidUpdate() {
2205
+ ae() && (Pe || this.renderReact15());
2206
+ }
2207
+ componentWillUnmount() {
2208
+ ae() && this.node && (Pe || Qe.unmountComponentAtNode(this.node), this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = null));
2209
+ }
2210
+ renderReact15() {
2211
+ if (!ae()) return;
2212
+ const { children: e } = this.props;
2213
+ this.node && Qe.unstable_renderSubtreeIntoContainer(this, e, this.node);
2214
+ }
2215
+ renderReact16() {
2216
+ if (!ae() || !Pe) return null;
2217
+ const { children: e } = this.props;
2218
+ return this.node ? Qe.createPortal(e, this.node) : null;
2219
+ }
2220
+ render() {
2221
+ return Pe ? this.renderReact16() : null;
2222
+ }
2223
+ }, go = class {
2224
+ constructor(e, t) {
2225
+ if (N(this, "element"), N(this, "options"), N(this, "canBeTabbed", (n) => {
2226
+ const { tabIndex: r } = n;
2227
+ return !(r === null || r < 0) && this.canHaveFocus(n);
2228
+ }), N(this, "canHaveFocus", (n) => {
2229
+ const r = n.nodeName.toLowerCase();
2230
+ return (/input|select|textarea|button|object/.test(r) && !n.getAttribute("disabled") || r === "a" && !!n.getAttribute("href")) && this.isVisible(n);
2231
+ }), N(this, "findValidTabElements", () => [].slice.call(this.element.querySelectorAll("*"), 0).filter(this.canBeTabbed)), N(this, "handleKeyDown", (n) => {
2232
+ const { code: r = "Tab" } = this.options;
2233
+ n.code === r && this.interceptTab(n);
2234
+ }), N(this, "interceptTab", (n) => {
2235
+ n.preventDefault();
2236
+ const r = this.findValidTabElements(), { shiftKey: o } = n;
2237
+ if (!r.length) return;
2238
+ let i = document.activeElement ? r.indexOf(document.activeElement) : 0;
2239
+ i === -1 || !o && i + 1 === r.length ? i = 0 : o && i === 0 ? i = r.length - 1 : i += o ? -1 : 1, r[i].focus();
2240
+ }), N(this, "isHidden", (n) => {
2241
+ const r = n.offsetWidth <= 0 && n.offsetHeight <= 0, o = window.getComputedStyle(n);
2242
+ return !(!r || n.innerHTML) || r && o.getPropertyValue("overflow") !== "visible" || o.getPropertyValue("display") === "none";
2243
+ }), N(this, "isVisible", (n) => {
2244
+ let r = n;
2245
+ for (; r; ) if (r instanceof HTMLElement) {
2246
+ if (r === document.body) break;
2247
+ if (this.isHidden(r)) return !1;
2248
+ r = r.parentNode;
2249
+ }
2250
+ return !0;
2251
+ }), N(this, "removeScope", () => {
2252
+ window.removeEventListener("keydown", this.handleKeyDown);
2253
+ }), N(this, "checkFocus", (n) => {
2254
+ document.activeElement !== n && (n.focus(), window.requestAnimationFrame(() => this.checkFocus(n)));
2255
+ }), N(this, "setFocus", () => {
2256
+ const { selector: n } = this.options;
2257
+ if (!n) return;
2258
+ const r = this.element.querySelector(n);
2259
+ r && window.requestAnimationFrame(() => this.checkFocus(r));
2260
+ }), !(e instanceof HTMLElement)) throw new TypeError("Invalid parameter: element must be an HTMLElement");
2261
+ this.element = e, this.options = t, window.addEventListener("keydown", this.handleKeyDown, !1), this.setFocus();
2262
+ }
2263
+ }, bo = class extends _.Component {
2264
+ constructor(e) {
2265
+ if (super(e), N(this, "beacon", null), N(this, "setBeaconRef", (r) => {
2266
+ this.beacon = r;
2267
+ }), e.beaconComponent) return;
2268
+ const t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
2269
+ n.id = "joyride-beacon-animation", e.nonce && n.setAttribute("nonce", e.nonce), n.appendChild(document.createTextNode(`
2270
+ @keyframes joyride-beacon-inner {
2271
+ 20% {
2272
+ opacity: 0.9;
2273
+ }
2274
+
2275
+ 90% {
2276
+ opacity: 0.7;
2277
+ }
2278
+ }
2279
+
2280
+ @keyframes joyride-beacon-outer {
2281
+ 0% {
2282
+ transform: scale(1);
2283
+ }
2284
+
2285
+ 45% {
2286
+ opacity: 0.7;
2287
+ transform: scale(0.75);
2288
+ }
2289
+
2290
+ 100% {
2291
+ opacity: 0.9;
2292
+ transform: scale(1);
2293
+ }
2294
+ }
2295
+ `)), t.appendChild(n);
2296
+ }
2297
+ componentDidMount() {
2298
+ const { shouldFocus: e } = this.props;
2299
+ process.env.NODE_ENV !== "production" && (P.domElement(this.beacon) || console.warn("beacon is not a valid DOM element")), setTimeout(() => {
2300
+ P.domElement(this.beacon) && e && this.beacon.focus();
2301
+ }, 0);
2302
+ }
2303
+ componentWillUnmount() {
2304
+ const e = document.getElementById("joyride-beacon-animation");
2305
+ e != null && e.parentNode && e.parentNode.removeChild(e);
2306
+ }
2307
+ render() {
2308
+ const { beaconComponent: e, continuous: t, index: n, isLastStep: r, locale: o, onClickOrHover: i, size: s, step: a, styles: l } = this.props, c = te(o.open), u = { "aria-label": c, onClick: i, onMouseEnter: i, ref: this.setBeaconRef, title: c };
2309
+ let p;
2310
+ if (e) {
2311
+ const d = e;
2312
+ p = _.createElement(d, { continuous: t, index: n, isLastStep: r, size: s, step: a, ...u });
2313
+ } else p = _.createElement("button", { key: "JoyrideBeacon", className: "react-joyride__beacon", "data-test-id": "button-beacon", style: l.beacon, type: "button", ...u }, _.createElement("span", { style: l.beaconInner }), _.createElement("span", { style: l.beaconOuter }));
2314
+ return p;
2315
+ }
2316
+ }, vo = function({ styles: e, ...t }) {
2317
+ const { color: n, height: r, width: o, ...i } = e;
2318
+ return D.createElement("button", { style: i, type: "button", ...t }, D.createElement("svg", { height: typeof r == "number" ? `${r}px` : r, preserveAspectRatio: "xMidYMid", version: "1.1", viewBox: "0 0 18 18", width: typeof o == "number" ? `${o}px` : o, xmlns: "http://www.w3.org/2000/svg" }, D.createElement("g", null, D.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: n }))));
2319
+ }, wo = function(e) {
2320
+ const { backProps: t, closeProps: n, index: r, isLastStep: o, primaryProps: i, skipProps: s, step: a, tooltipProps: l } = e, { content: c, hideBackButton: u, hideCloseButton: p, hideFooter: d, showSkipButton: h, styles: y, title: v } = a, g = {};
2321
+ return g.primary = _.createElement("button", { "data-test-id": "button-primary", style: y.buttonNext, type: "button", ...i }), h && !o && (g.skip = _.createElement("button", { "aria-live": "off", "data-test-id": "button-skip", style: y.buttonSkip, type: "button", ...s })), !u && r > 0 && (g.back = _.createElement("button", { "data-test-id": "button-back", style: y.buttonBack, type: "button", ...t })), g.close = !p && _.createElement(vo, { "data-test-id": "button-close", styles: y.buttonClose, ...n }), _.createElement("div", { key: "JoyrideTooltip", "aria-label": te(v ?? c), className: "react-joyride__tooltip", style: y.tooltip, ...l }, _.createElement("div", { style: y.tooltipContainer }, v && _.createElement("h1", { "aria-label": te(v), style: y.tooltipTitle }, v), _.createElement("div", { style: y.tooltipContent }, c)), !d && _.createElement("div", { style: y.tooltipFooter }, _.createElement("div", { style: y.tooltipFooterSpacer }, g.skip), g.back, g.primary), g.close);
2322
+ }, Oo = class extends _.Component {
2323
+ constructor() {
2324
+ super(...arguments), N(this, "handleClickBack", (e) => {
2325
+ e.preventDefault();
2326
+ const { helpers: t } = this.props;
2327
+ t.prev();
2328
+ }), N(this, "handleClickClose", (e) => {
2329
+ e.preventDefault();
2330
+ const { helpers: t } = this.props;
2331
+ t.close("button_close");
2332
+ }), N(this, "handleClickPrimary", (e) => {
2333
+ e.preventDefault();
2334
+ const { continuous: t, helpers: n } = this.props;
2335
+ t ? n.next() : n.close("button_primary");
2336
+ }), N(this, "handleClickSkip", (e) => {
2337
+ e.preventDefault();
2338
+ const { helpers: t } = this.props;
2339
+ t.skip();
2340
+ }), N(this, "getElementsProps", () => {
2341
+ const { continuous: e, index: t, isLastStep: n, setTooltipRef: r, size: o, step: i } = this.props, { back: s, close: a, last: l, next: c, nextLabelWithProgress: u, skip: p } = i.locale, d = te(s), h = te(a), y = te(l), v = te(c), g = te(p);
2342
+ let x = a, w = h;
2343
+ if (e) {
2344
+ if (x = c, w = v, i.showProgress && !n) {
2345
+ const b = te(u, { step: t + 1, steps: o });
2346
+ x = mt(u, t + 1, o), w = b;
2347
+ }
2348
+ n && (x = l, w = y);
2349
+ }
2350
+ return { backProps: { "aria-label": d, children: s, "data-action": "back", onClick: this.handleClickBack, role: "button", title: d }, closeProps: { "aria-label": h, children: a, "data-action": "close", onClick: this.handleClickClose, role: "button", title: h }, primaryProps: { "aria-label": w, children: x, "data-action": "primary", onClick: this.handleClickPrimary, role: "button", title: w }, skipProps: { "aria-label": g, children: p, "data-action": "skip", onClick: this.handleClickSkip, role: "button", title: g }, tooltipProps: { "aria-modal": !0, ref: r, role: "alertdialog" } };
2351
+ });
2352
+ }
2353
+ render() {
2354
+ const { continuous: e, index: t, isLastStep: n, setTooltipRef: r, size: o, step: i } = this.props, { beaconComponent: s, tooltipComponent: a, ...l } = i;
2355
+ let c;
2356
+ if (a) {
2357
+ const u = { ...this.getElementsProps(), continuous: e, index: t, isLastStep: n, size: o, step: l, setTooltipRef: r }, p = a;
2358
+ c = _.createElement(p, { ...u });
2359
+ } else c = _.createElement(wo, { ...this.getElementsProps(), continuous: e, index: t, isLastStep: n, size: o, step: i });
2360
+ return c;
2361
+ }
2362
+ }, Eo = class extends _.Component {
2363
+ constructor() {
2364
+ super(...arguments), N(this, "scope", null), N(this, "tooltip", null), N(this, "handleClickHoverBeacon", (e) => {
2365
+ const { step: t, store: n } = this.props;
2366
+ e.type === "mouseenter" && t.event !== "hover" || n.update({ lifecycle: A.TOOLTIP });
2367
+ }), N(this, "setTooltipRef", (e) => {
2368
+ this.tooltip = e;
2369
+ }), N(this, "setPopper", (e, t) => {
2370
+ var n;
2371
+ const { action: r, lifecycle: o, step: i, store: s } = this.props;
2372
+ t === "wrapper" ? s.setPopper("beacon", e) : s.setPopper("tooltip", e), s.getPopper("beacon") && (s.getPopper("tooltip") || i.placement === "center") && o === A.INIT && s.update({ action: r, lifecycle: A.READY }), (n = i.floaterProps) != null && n.getPopper && i.floaterProps.getPopper(e, t);
2373
+ }), N(this, "renderTooltip", (e) => {
2374
+ const { continuous: t, helpers: n, index: r, size: o, step: i } = this.props;
2375
+ return _.createElement(Oo, { continuous: t, helpers: n, index: r, isLastStep: r + 1 === o, setTooltipRef: this.setTooltipRef, size: o, step: i, ...e });
2376
+ });
2377
+ }
2378
+ componentDidMount() {
2379
+ const { debug: e, index: t } = this.props;
2380
+ ce({ title: `step:${t}`, data: [{ key: "props", value: this.props }], debug: e });
2381
+ }
2382
+ componentDidUpdate(e) {
2383
+ var t;
2384
+ const { action: n, callback: r, continuous: o, controlled: i, debug: s, helpers: a, index: l, lifecycle: c, shouldScroll: u, status: p, step: d, store: h } = this.props, { changed: y, changedFrom: v } = qe(e, this.props), g = a.info(), x = o && n !== we && (l > 0 || n === fe), w = y("action") || y("index") || y("lifecycle") || y("status"), b = v("lifecycle", [A.TOOLTIP, A.INIT], A.INIT), k = y("action", [Xe, fe, St, we]), f = i && l === e.index;
2385
+ if (k && (b || f) && r({ ...g, index: e.index, lifecycle: A.COMPLETE, step: e.step, type: K.STEP_AFTER }), d.placement === "center" && p === F.RUNNING && y("index") && n !== Et && c === A.INIT && h.update({ lifecycle: A.READY }), w) {
2386
+ const E = se(d.target), C = !!E;
2387
+ C && function(j) {
2388
+ var I;
2389
+ if (!j) return !1;
2390
+ let L = j;
2391
+ for (; L && L !== document.body; ) {
2392
+ if (L instanceof HTMLElement) {
2393
+ const { display: M, visibility: B } = getComputedStyle(L);
2394
+ if (M === "none" || B === "hidden") return !1;
2395
+ }
2396
+ L = (I = L.parentElement) != null ? I : null;
2397
+ }
2398
+ return !0;
2399
+ }(E) ? (v("status", F.READY, F.RUNNING) || v("lifecycle", A.INIT, A.READY)) && r({ ...g, step: d, type: K.STEP_BEFORE }) : (console.warn(C ? "Target not visible" : "Target not mounted", d), r({ ...g, type: K.TARGET_NOT_FOUND, step: d }), i || h.update({ index: l + (n === fe ? -1 : 1) }));
2400
+ }
2401
+ v("lifecycle", A.INIT, A.READY) && h.update({ lifecycle: Sn(d) || x ? A.TOOLTIP : A.BEACON }), y("index") && ce({ title: `step:${c}`, data: [{ key: "props", value: this.props }], debug: s }), y("lifecycle", A.BEACON) && r({ ...g, step: d, type: K.BEACON }), y("lifecycle", A.TOOLTIP) && (r({ ...g, step: d, type: K.TOOLTIP }), u && this.tooltip && (this.scope = new go(this.tooltip, { selector: "[data-action=primary]" }), this.scope.setFocus())), v("lifecycle", [A.TOOLTIP, A.INIT], A.INIT) && ((t = this.scope) == null || t.removeScope(), h.cleanupPoppers());
2402
+ }
2403
+ componentWillUnmount() {
2404
+ var e;
2405
+ (e = this.scope) == null || e.removeScope();
2406
+ }
2407
+ get open() {
2408
+ const { lifecycle: e, step: t } = this.props;
2409
+ return Sn(t) || e === A.TOOLTIP;
2410
+ }
2411
+ render() {
2412
+ const { continuous: e, debug: t, index: n, nonce: r, shouldScroll: o, size: i, step: s } = this.props, a = se(s.target);
2413
+ return ur(s) && P.domElement(a) ? _.createElement("div", { key: `JoyrideStep-${n}`, className: "react-joyride__step" }, _.createElement(yt, { ...s.floaterProps, component: this.renderTooltip, debug: t, getPopper: this.setPopper, id: `react-joyride-step-${n}`, open: this.open, placement: s.placement, target: s.target }, _.createElement(bo, { beaconComponent: s.beaconComponent, continuous: e, index: n, isLastStep: n + 1 === i, locale: s.locale, nonce: r, onClickOrHover: this.handleClickHoverBeacon, shouldFocus: o, size: i, step: s, styles: s.styles }))) : null;
2414
+ }
2415
+ }, fr = class extends _.Component {
2416
+ constructor(e) {
2417
+ super(e), N(this, "helpers"), N(this, "store"), N(this, "callback", (a) => {
2418
+ const { callback: l } = this.props;
2419
+ P.function(l) && l(a);
2420
+ }), N(this, "handleKeyboard", (a) => {
2421
+ const { index: l, lifecycle: c } = this.state, { steps: u } = this.props, p = u[l];
2422
+ c === A.TOOLTIP && a.code === "Escape" && p && !p.disableCloseOnEsc && this.store.close("keyboard");
2423
+ }), N(this, "handleClickOverlay", () => {
2424
+ const { index: a } = this.state, { steps: l } = this.props;
2425
+ ge(this.props, l[a]).disableOverlayClose || this.helpers.close("overlay");
2426
+ }), N(this, "syncState", (a) => {
2427
+ this.setState(a);
2428
+ });
2429
+ const { debug: t, getHelpers: n, run: r = !0, stepIndex: o } = e;
2430
+ var i;
2431
+ this.store = (i = { ...e, controlled: r && P.number(o) }, new fo(i)), this.helpers = this.store.getHelpers();
2432
+ const { addListener: s } = this.store;
2433
+ ce({ title: "init", data: [{ key: "props", value: this.props }, { key: "state", value: this.state }], debug: t }), s(this.syncState), n && n(this.helpers), this.state = this.store.getState();
2434
+ }
2435
+ componentDidMount() {
2436
+ if (!ae()) return;
2437
+ const { debug: e, disableCloseOnEsc: t, run: n, steps: r } = this.props, { start: o } = this.store;
2438
+ kn(r, e) && n && o(), t || document.body.addEventListener("keydown", this.handleKeyboard, { passive: !0 });
2439
+ }
2440
+ componentDidUpdate(e, t) {
2441
+ if (!ae()) return;
2442
+ const { action: n, controlled: r, index: o, status: i } = this.state, { debug: s, run: a, stepIndex: l, steps: c } = this.props, { stepIndex: u, steps: p } = e, { reset: d, setSteps: h, start: y, stop: v, update: g } = this.store, { changed: x } = qe(e, this.props), { changed: w, changedFrom: b } = qe(t, this.state), k = ge(this.props, c[o]), f = !q(p, c), E = P.number(l) && x("stepIndex"), C = se(k.target);
2443
+ if (f && (kn(c, s) ? h(c) : console.warn("Steps are not valid", c)), x("run") && (a ? y(l) : v()), E) {
2444
+ let j = P.number(u) && u < l ? Xe : fe;
2445
+ n === ir && (j = Et), [F.FINISHED, F.SKIPPED].includes(i) || g({ action: n === we ? we : j, index: l, lifecycle: A.INIT });
2446
+ }
2447
+ r || i !== F.RUNNING || o !== 0 || C || (this.store.update({ index: o + 1 }), this.callback({ ...this.state, type: K.TARGET_NOT_FOUND, step: k }));
2448
+ const O = { ...this.state, index: o, step: k };
2449
+ if (w("action", [Xe, fe, St, we]) && w("status", F.PAUSED)) {
2450
+ const j = ge(this.props, c[t.index]);
2451
+ this.callback({ ...O, index: t.index, lifecycle: A.COMPLETE, step: j, type: K.STEP_AFTER });
2452
+ }
2453
+ if (w("status", [F.FINISHED, F.SKIPPED])) {
2454
+ const j = ge(this.props, c[t.index]);
2455
+ r || this.callback({ ...O, index: t.index, lifecycle: A.COMPLETE, step: j, type: K.STEP_AFTER }), this.callback({ ...O, type: K.TOUR_END, step: j, index: t.index }), d();
2456
+ } else b("status", [F.IDLE, F.READY], F.RUNNING) ? this.callback({ ...O, type: K.TOUR_START }) : (w("status") || w("action", sr)) && this.callback({ ...O, type: K.TOUR_STATUS });
2457
+ this.scrollToStep(t);
2458
+ }
2459
+ componentWillUnmount() {
2460
+ const { disableCloseOnEsc: e } = this.props;
2461
+ e || document.body.removeEventListener("keydown", this.handleKeyboard);
2462
+ }
2463
+ scrollToStep(e) {
2464
+ const { index: t, lifecycle: n, status: r } = this.state, { debug: o, disableScrollParentFix: i = !1, scrollDuration: s, scrollOffset: a = 20, scrollToFirstStep: l = !1, steps: c } = this.props, u = ge(this.props, c[t]), p = se(u.target), d = function(h) {
2465
+ const { isFirstStep: y, lifecycle: v, previousLifecycle: g, scrollToFirstStep: x, step: w, target: b } = h;
2466
+ return !w.disableScrolling && (!y || x || v === A.TOOLTIP) && w.placement !== "center" && (!w.isFixed || !be(b)) && g !== v && [A.BEACON, A.TOOLTIP].includes(v);
2467
+ }({ isFirstStep: t === 0, lifecycle: n, previousLifecycle: e.lifecycle, scrollToFirstStep: l, step: u, target: p });
2468
+ if (r === F.RUNNING && d) {
2469
+ const h = Re(p, i), y = je(p, i);
2470
+ let v = Math.floor(io(p, a, i)) || 0;
2471
+ ce({ title: "scrollToStep", data: [{ key: "index", value: t }, { key: "lifecycle", value: n }, { key: "status", value: r }], debug: o });
2472
+ const g = this.store.getPopper("beacon"), x = this.store.getPopper("tooltip");
2473
+ if (n === A.BEACON && g) {
2474
+ const { offsets: w, placement: b } = g;
2475
+ ["bottom"].includes(b) || h || (v = Math.floor(w.popper.top - a));
2476
+ } else if (n === A.TOOLTIP && x) {
2477
+ const { flipped: w, offsets: b, placement: k } = x;
2478
+ !["top", "right", "left"].includes(k) || w || h ? v -= u.spotlightPadding : v = Math.floor(b.popper.top - a);
2479
+ }
2480
+ v = v >= 0 ? v : 0, r === F.RUNNING && function(w, b) {
2481
+ const { duration: k, element: f } = b;
2482
+ return new Promise((E, C) => {
2483
+ const { scrollTop: O } = f, j = w > O ? w - O : O - w;
2484
+ Sr.top(f, w, { duration: j < 100 ? 50 : k }, (I) => I && I.message !== "Element already at target scroll position" ? C(I) : E());
2485
+ });
2486
+ }(v, { element: y, duration: s }).then(() => {
2487
+ setTimeout(() => {
2488
+ var w;
2489
+ (w = this.store.getPopper("tooltip")) == null || w.instance.update();
2490
+ }, 10);
2491
+ });
2492
+ }
2493
+ }
2494
+ render() {
2495
+ if (!ae()) return null;
2496
+ const { index: e, lifecycle: t, status: n } = this.state, { continuous: r = !1, debug: o = !1, nonce: i, scrollToFirstStep: s = !1, steps: a } = this.props, l = {};
2497
+ if (n === F.RUNNING && a[e]) {
2498
+ const c = ge(this.props, a[e]);
2499
+ l.step = _.createElement(Eo, { ...this.state, callback: this.callback, continuous: r, debug: o, helpers: this.helpers, nonce: i, shouldScroll: !c.disableScrolling && (e !== 0 || s), step: c, store: this.store }), l.overlay = _.createElement(mo, { id: "react-joyride-portal" }, _.createElement(yo, { ...c, continuous: r, debug: o, lifecycle: t, onClickOverlay: this.handleClickOverlay }));
2500
+ }
2501
+ return _.createElement("div", { className: "react-joyride" }, l.step, l.overlay);
2502
+ }
2503
+ };
2504
+ N(fr, "defaultProps", co);
2505
+ var So = fr;
2506
+ const Co = { content: "", disableBeacon: !0, hideCloseButton: !1, locale: { back: "Back", close: "Close", last: "Close", next: "Next", open: "Open the dialog", skip: "Skip" }, showSkipButton: !0, styles: { buttonBack: { fontFamily: "roboto" }, buttonNext: { fontFamily: "roboto" }, buttonSkip: { fontFamily: "roboto" }, options: { zIndex: 9999 }, tooltipContainer: { fontFamily: "roboto", textAlign: "left" } }, target: "" }, jo = ({ run: e, steps: t, onFinish: n }) => {
2507
+ const [r, o] = kt(e), [i, s] = kt(0), a = yr((l) => {
2508
+ const { action: c, index: u, status: p, type: d } = l;
2509
+ [K.STEP_AFTER, K.TARGET_NOT_FOUND].includes(d) ? s(u + (c === fe ? -1 : 1)) : ([F.FINISHED, F.SKIPPED].includes(p) || c === "close") && (o(!1), hr(n) || n());
2510
+ }, [n]);
2511
+ return dr(So, { callback: a, continuous: !0, disableOverlayClose: !0, disableScrollParentFix: !0, run: r, spotlightClicks: !0, stepIndex: i, steps: t, styles: { buttonNext: { display: i === t.length - 1 ? "none" : "block" }, options: { zIndex: 9999 } } });
2512
+ };
2513
+ export {
2514
+ jo as Tour,
2515
+ Co as baseStep
2516
+ };