@seamly/web-ui 18.1.1 → 18.3.1

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 (165) hide show
  1. package/build/dist/lib/index.debug.js +286 -99
  2. package/build/dist/lib/index.debug.min.js +1 -1
  3. package/build/dist/lib/index.debug.min.js.LICENSE.txt +84 -16
  4. package/build/dist/lib/index.js +4104 -3887
  5. package/build/dist/lib/index.min.js +1 -1
  6. package/build/dist/lib/standalone.js +4351 -4084
  7. package/build/dist/lib/standalone.min.js +1 -1
  8. package/build/dist/lib/style-guide.js +746 -641
  9. package/build/dist/lib/style-guide.min.js +1 -1
  10. package/build/dist/lib/styles.css +1 -1
  11. package/build/dist/lib/utils.js +0 -1
  12. package/build/dist/lib/utils.min.js +1 -1
  13. package/build/dist/translations/de-informal.js +0 -1
  14. package/build/dist/translations/de-informal.min.js +1 -1
  15. package/build/dist/translations/en.js +0 -1
  16. package/build/dist/translations/en.min.js +1 -1
  17. package/build/dist/translations/es-informal.js +0 -1
  18. package/build/dist/translations/es-informal.min.js +1 -1
  19. package/build/dist/translations/nl-formal.js +0 -1
  20. package/build/dist/translations/nl-formal.min.js +1 -1
  21. package/build/dist/translations/nl-informal.js +0 -1
  22. package/build/dist/translations/nl-informal.min.js +1 -1
  23. package/package.json +4 -2
  24. package/src/javascripts/api/index.js +9 -9
  25. package/src/javascripts/api/producer.js +8 -8
  26. package/src/javascripts/config.js +9 -11
  27. package/src/javascripts/domains/app/actions.js +25 -0
  28. package/src/javascripts/domains/app/index.js +3 -0
  29. package/src/javascripts/domains/config/actions.js +6 -0
  30. package/src/javascripts/domains/config/hooks.js +6 -0
  31. package/src/javascripts/domains/config/index.js +8 -0
  32. package/src/javascripts/domains/config/middleware.js +26 -0
  33. package/src/javascripts/domains/config/reducer.js +74 -0
  34. package/src/javascripts/domains/config/selectors.js +23 -0
  35. package/src/javascripts/domains/forms/actions.js +1 -1
  36. package/src/javascripts/domains/forms/hooks.js +10 -14
  37. package/src/javascripts/domains/forms/provider.js +4 -6
  38. package/src/javascripts/domains/forms/selectors.js +3 -3
  39. package/src/javascripts/domains/i18n/index.js +9 -5
  40. package/src/javascripts/domains/interrupt/actions.js +6 -0
  41. package/src/javascripts/domains/interrupt/hooks.js +29 -0
  42. package/src/javascripts/domains/interrupt/index.js +9 -0
  43. package/src/javascripts/domains/interrupt/middleware.js +30 -0
  44. package/src/javascripts/domains/interrupt/reducer.js +22 -0
  45. package/src/javascripts/domains/interrupt/selectors.js +5 -0
  46. package/src/javascripts/domains/options/index.js +1 -0
  47. package/src/javascripts/domains/options/middleware.js +35 -0
  48. package/src/javascripts/domains/redux/create-redux-store.js +14 -6
  49. package/src/javascripts/domains/redux/hooks.js +2 -2
  50. package/src/javascripts/domains/redux/index.js +2 -1
  51. package/src/javascripts/domains/redux/provider.js +5 -0
  52. package/src/javascripts/domains/store/index.js +38 -0
  53. package/src/javascripts/{ui → domains}/store/state-reducer.js +4 -7
  54. package/src/javascripts/domains/translations/actions.js +3 -3
  55. package/src/javascripts/domains/translations/components/chat-status.js +6 -12
  56. package/src/javascripts/domains/translations/components/options-button.js +3 -3
  57. package/src/javascripts/domains/translations/components/options-dialog/form.js +2 -2
  58. package/src/javascripts/domains/translations/components/options-dialog/index.js +2 -5
  59. package/src/javascripts/domains/translations/hooks.js +1 -1
  60. package/src/javascripts/domains/translations/reducer.js +2 -2
  61. package/src/javascripts/domains/translations/selectors.js +2 -2
  62. package/src/javascripts/index.js +17 -5
  63. package/src/javascripts/lib/css.js +5 -5
  64. package/src/javascripts/lib/engine/index.js +38 -11
  65. package/src/javascripts/lib/external-api/index.js +6 -6
  66. package/src/javascripts/lib/i18n.js +2 -2
  67. package/src/javascripts/lib/parse-body.js +1 -1
  68. package/src/javascripts/lib/redux-helpers/index.js +18 -4
  69. package/src/javascripts/lib/split-url-params.js +2 -2
  70. package/src/javascripts/lib/store/providers/app-storage.js +1 -1
  71. package/src/javascripts/lib/store/providers/cookie-storage.js +1 -1
  72. package/src/javascripts/package/utils.js +0 -1
  73. package/src/javascripts/style-guide/components/app.js +5 -12
  74. package/src/javascripts/style-guide/components/links.js +6 -6
  75. package/src/javascripts/style-guide/components/static-core.js +23 -7
  76. package/src/javascripts/style-guide/state-helpers/index.js +1 -1
  77. package/src/javascripts/style-guide/states.js +27 -67
  78. package/src/javascripts/style-guide/style-guide-engine.js +1 -1
  79. package/src/javascripts/ui/components/chat-app.js +2 -2
  80. package/src/javascripts/ui/components/conversation/component-filter.js +2 -2
  81. package/src/javascripts/ui/components/conversation/conversation.js +2 -2
  82. package/src/javascripts/ui/components/conversation/event/card-component.js +29 -4
  83. package/src/javascripts/ui/components/conversation/event/carousel-component/components/pagination.js +2 -2
  84. package/src/javascripts/ui/components/conversation/event/carousel-component/index.js +4 -3
  85. package/src/javascripts/ui/components/conversation/event/carousel-message/components/slide.js +2 -1
  86. package/src/javascripts/ui/components/conversation/event/carousel-message/index.js +2 -2
  87. package/src/javascripts/ui/components/conversation/event/choice-prompt.js +11 -6
  88. package/src/javascripts/ui/components/conversation/event/cta.js +1 -6
  89. package/src/javascripts/ui/components/conversation/event/divider/variants/new-translation.js +1 -1
  90. package/src/javascripts/ui/components/conversation/event/event-participant.js +3 -5
  91. package/src/javascripts/ui/components/conversation/event/hooks/use-event-link-click-handler.js +2 -2
  92. package/src/javascripts/ui/components/conversation/event/hooks/use-formatted-date.js +3 -3
  93. package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +3 -3
  94. package/src/javascripts/ui/components/conversation/event/participant.js +2 -2
  95. package/src/javascripts/ui/components/conversation/event/upload.js +12 -27
  96. package/src/javascripts/ui/components/conversation/message-container.js +4 -6
  97. package/src/javascripts/ui/components/core/seamly-activity-monitor.js +4 -5
  98. package/src/javascripts/ui/components/core/seamly-core.js +6 -7
  99. package/src/javascripts/ui/components/core/seamly-event-subscriber.js +16 -17
  100. package/src/javascripts/ui/components/core/seamly-file-upload.js +5 -6
  101. package/src/javascripts/ui/components/core/seamly-idle-detach-counter.js +2 -6
  102. package/src/javascripts/ui/components/core/seamly-initializer.js +7 -60
  103. package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +10 -10
  104. package/src/javascripts/ui/components/core/seamly-live-region.js +1 -1
  105. package/src/javascripts/ui/components/core/seamly-new-notifications.js +1 -1
  106. package/src/javascripts/ui/components/core/seamly-read-state.js +2 -2
  107. package/src/javascripts/ui/components/entry/entry-container.js +7 -10
  108. package/src/javascripts/ui/components/entry/toggle-button.js +24 -10
  109. package/src/javascripts/ui/components/entry/upload/index.js +4 -11
  110. package/src/javascripts/ui/components/faq/faq.js +4 -4
  111. package/src/javascripts/ui/components/form-controls/error.js +22 -0
  112. package/src/javascripts/ui/components/form-controls/file-input.js +3 -9
  113. package/src/javascripts/ui/components/form-controls/select.js +1 -1
  114. package/src/javascripts/ui/components/form-controls/wrapper.js +2 -9
  115. package/src/javascripts/ui/components/layout/agent-info.js +4 -4
  116. package/src/javascripts/ui/components/layout/app-frame.js +5 -5
  117. package/src/javascripts/ui/components/layout/chat-frame.js +3 -5
  118. package/src/javascripts/ui/components/layout/header.js +4 -18
  119. package/src/javascripts/ui/components/layout/privacy-disclaimer.js +2 -2
  120. package/src/javascripts/ui/components/options/cobrowsing.js +3 -7
  121. package/src/javascripts/ui/components/options/options-button.js +9 -13
  122. package/src/javascripts/ui/components/options/options-frame.js +1 -1
  123. package/src/javascripts/ui/components/options/transcript/index.js +2 -2
  124. package/src/javascripts/ui/components/options/transcript/transcript-form.js +1 -1
  125. package/src/javascripts/ui/components/warnings/cobrowsing-active-frame.js +3 -6
  126. package/src/javascripts/ui/components/warnings/idle-detach-warning.js +2 -6
  127. package/src/javascripts/ui/components/widgets/in-out-transition.js +2 -2
  128. package/src/javascripts/ui/components/widgets/lightbox.js +4 -4
  129. package/src/javascripts/ui/components/widgets/modal.js +3 -3
  130. package/src/javascripts/ui/components/widgets/upload-progress.js +2 -13
  131. package/src/javascripts/ui/hooks/component-helper-hooks.js +4 -15
  132. package/src/javascripts/ui/hooks/file-upload-hooks.js +3 -3
  133. package/src/javascripts/ui/hooks/focus-helper-hooks.js +4 -4
  134. package/src/javascripts/ui/hooks/live-region-hooks.js +2 -2
  135. package/src/javascripts/ui/hooks/seamly-entry-hooks.js +7 -6
  136. package/src/javascripts/ui/hooks/seamly-hooks.js +3 -9
  137. package/src/javascripts/ui/hooks/seamly-option-hooks.js +4 -4
  138. package/src/javascripts/ui/hooks/seamly-state-hooks.js +8 -16
  139. package/src/javascripts/ui/hooks/use-event-component-mapping.js +1 -1
  140. package/src/javascripts/ui/hooks/use-seamly-chat.js +1 -0
  141. package/src/javascripts/ui/hooks/use-seamly-commands.js +27 -49
  142. package/src/javascripts/ui/hooks/use-seamly-idle-detach-countdown.js +3 -3
  143. package/src/javascripts/ui/hooks/use-seamly-stored-visibility.js +3 -3
  144. package/src/javascripts/ui/hooks/use-seamly-visibility.js +3 -3
  145. package/src/javascripts/ui/hooks/utility-hooks.js +2 -2
  146. package/src/javascripts/ui/utils/form-utils.js +3 -3
  147. package/src/javascripts/ui/utils/general-utils.js +17 -11
  148. package/src/javascripts/ui/utils/seamly-utils.js +15 -83
  149. package/src/javascripts/ui/utils/validations.js +10 -7
  150. package/src/stylesheets/5-components/_card.scss +0 -1
  151. package/src/stylesheets/5-components/_choice-prompt.scss +5 -0
  152. package/src/stylesheets/5-components/_message.scss +10 -0
  153. package/src/stylesheets/5-components/_options.scss +3 -2
  154. package/translations/de-informal.js +0 -2
  155. package/translations/en.js +0 -2
  156. package/translations/es-informal.js +0 -2
  157. package/translations/nl-formal.js +0 -2
  158. package/translations/nl-informal.js +0 -2
  159. package/webpack/config.common.js +3 -3
  160. package/webpack/config.package.js +4 -4
  161. package/webpack/config.site.js +8 -6
  162. package/CHANGELOG.md +0 -551
  163. package/src/javascripts/ui/components/core/seamly-api.js +0 -44
  164. package/src/javascripts/ui/hooks/use-seamly-interrupt.js +0 -62
  165. package/src/javascripts/ui/store/index.js +0 -37
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see standalone.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={6419:function(t,e,n){t.exports=n(7698)},1511:function(t,e,n){t.exports=n(3363)},1128:function(t,e,n){t.exports=n(7784)},4103:function(t,e,n){t.exports=n(8196)},7766:function(t,e,n){t.exports=n(8065)},62:function(t,e,n){t.exports=n(9455)},4494:function(t,e,n){t.exports=n(9743)},116:function(t,e,n){t.exports=n(1955)},2462:function(t,e,n){t.exports=n(6064)},4473:function(t,e,n){t.exports=n(1577)},6423:function(t,e,n){t.exports=n(4913)},8914:function(t,e,n){t.exports=n(6279)},8580:function(t,e,n){t.exports=n(3778)},1643:function(t,e,n){t.exports=n(9373)},3054:function(t,e,n){t.exports=n(1022)},2991:function(t,e,n){t.exports=n(1798)},2366:function(t,e,n){t.exports=n(2527)},7093:function(t,e,n){t.exports=n(8427)},3649:function(t,e,n){t.exports=n(2073)},7149:function(t,e,n){t.exports=n(5286)},7302:function(t,e,n){t.exports=n(2856)},2762:function(t,e,n){t.exports=n(2348)},771:function(t,e,n){t.exports=n(5799)},225:function(t,e,n){t.exports=n(353)},5843:function(t,e,n){t.exports=n(6361)},9340:function(t,e,n){t.exports=n(8933)},1864:function(t,e,n){t.exports=n(3383)},4943:function(t,e,n){t.exports=n(4471)},368:function(t,e,n){t.exports=n(7396)},3978:function(t,e,n){t.exports=n(1910)},6295:function(t,e,n){t.exports=n(6209)},4074:function(t,e,n){t.exports=n(9427)},9649:function(t,e,n){t.exports=n(2857)},8604:function(t,e,n){n(4477)},4310:function(t,e,n){t.exports=n(9534)},6902:function(t,e,n){t.exports=n(3059)},455:function(t,e,n){t.exports=n(7795)},1238:function(t,e,n){t.exports=n(6877)},4198:function(t,e,n){t.exports=n(4888)},3476:function(t,e,n){t.exports=n(7460)},1581:function(t,e,n){t.exports=n(3474)},3032:function(t,e,n){t.exports=n(7989)},6384:function(t,e,n){t.exports=n(5519)},5420:function(t,e,n){t.exports=n(2547)},8341:function(t,e,n){t.exports=n(6509)},9996:function(t,e,n){t.exports=n(2209)},6976:function(t,e,n){t.exports=n(1258)},5683:function(t,e,n){t.exports=n(9447)},8317:function(t,e,n){t.exports=n(4408)},2088:function(t,e,n){t.exports=n(269)},4341:function(t,e,n){t.exports=n(3685)},3263:function(t,e,n){t.exports=n(4710)},9356:function(t,e,n){t.exports=n(3799)},9853:function(t,e,n){var r=n(3978),o=n(3649),i=n(6419),a=n(5420),s=n(9996),u=n(4103),c=n(1511),l=n(4198),p=n(1643),f=n(5843),h=n(2762),d=n(2991),v=n(771),y=n(225),g=n(7149),m=n(4943),b=n(8914),_=n(6902),E=n(8580),x=n(3054),w=n(3032),D=n(7766);t.exports=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r,l=void 0!==a&&s(t)||t["@@iterator"];if(l)return u(r=(l=l.call(t)).next).call(r,l);if(c(t)||(l=function(t,n){var r;if(t){if("string"==typeof t)return e(t,n);var a=o(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?i(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){l&&(t=l);var p=0;return function(){return p>=t.length?{done:!0}:{done:!1,value:t[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var T={exports:{}};function A(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}T.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:A,changeDefaults:function(t){T.exports.defaults=t}};var C=/[&<>"']/,S=/[&<>"']/g,k=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},F=function(t){return I[t]};var N=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function R(t){return t.replace(N,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(l(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var j=/(^|[^\[])\^/g;var P=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var B={},U=/^[^:]+:\/*[^/]*$/,M=/^([^:]+:)[\s\S]*$/,z=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(t,e){B[" "+t]||(U.test(t)?B[" "+t]=t+"/":B[" "+t]=H(t,"/",!0)),t=B[" "+t];var n=-1===p(t).call(t,":");return"//"===e.substring(0,2)?n?e:t.replace(M,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(z,"$1")+e:t+e}function H(t,e,n){var r=t.length;if(0===r)return"";for(var o=0;o<r;){var i=t.charAt(r-o-1);if(i!==e||n){if(i===e||!n)break;o++}else o++}return t.substr(0,r-o)}var q=function(t,e){if(e){if(C.test(t))return t.replace(S,F)}else if(k.test(t))return t.replace(O,F);return t},V=R,W=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(j,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},G=function(t,e,n){if(t){var r;try{r=decodeURIComponent(R(n)).replace(P,"").toLowerCase()}catch(t){return null}if(0===p(r).call(r,"javascript:")||0===p(r).call(r,"vbscript:")||0===p(r).call(r,"data:"))return null}e&&!L.test(n)&&(n=$(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},Y={exec:function(){}},K=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},J=function(t,e){var n,r,o=t.replace(/\|/g,(function(t,e,n){for(var r=!1,o=e;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),i=0;if(f(n=o[0]).call(n)||o.shift(),f(r=o[o.length-1]).call(r)||o.pop(),o.length>e)h(o).call(o,e);else for(;o.length<e;)o.push("");for(;i<o.length;i++){var a;o[i]=f(a=o[i]).call(a).replace(/\\\|/g,"|")}return o},Q=H,Z=function(t,e){if(-1===p(t).call(t,e[1]))return-1;for(var n=t.length,r=0,o=0;o<n;o++)if("\\"===t[o])o++;else if(t[o]===e[0])r++;else if(t[o]===e[1]&&--r<0)return o;return-1},X=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},tt=function(t,e){if(e<1)return"";for(var n="";e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t},et=T.exports.defaults,nt=Q,rt=J,ot=q,it=Z;function at(t,e,n,r){var o=e.href,i=e.title?ot(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;var s={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,s}return{type:"image",raw:n,href:o,title:i,text:ot(a)}}var st=function(){function t(t){this.options=t||et}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:nt(n,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n,r=e[0],i=function(t,e){var n,r=t.match(/^(\s+)(?:```)/);if(null===r)return e;var i=r[1];return d(n=e.split("\n")).call(n,(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=i.length?o(t).call(t,i.length):t})).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?f(n=e[2]).call(n):e[2],text:i}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n,r=f(n=e[2]).call(n);if(/#$/.test(r)){var o=nt(r,"#");this.options.pedantic?r=f(o).call(o):o&&!/ $/.test(o)||(r=f(o).call(o))}var i={type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,r,i,a,s,u,c,l,p,h,d,m,b=f(n=e[1]).call(n),_=b.length>1,E={type:"list",raw:"",ordered:_,start:_?+o(b).call(b,0,-1):"",loose:!1,items:[]};b=_?"\\d{1,9}\\"+o(b).call(b,-1):"\\"+b,this.options.pedantic&&(b=_?b:"[*+-]");for(var x=new RegExp("^( {0,3}"+b+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");t&&!this.rules.block.hr.test(t)&&(e=x.exec(t));){var w,D;d=e[2].split("\n"),this.options.pedantic?(u=2,m=v(w=d[0]).call(w)):(u=e[2].search(/[^ ]/),u=e[1].length+(u>4?1:u),m=o(D=d[0]).call(D,u-e[1].length)),l=!1,i=e[0],!d[0]&&/^ *$/.test(d[1])&&(i=e[1]+o(d).call(d,0,2).join("\n")+"\n",E.loose=!0,d=[]);var T=new RegExp("^ {0,"+Math.min(3,u-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(c=1;c<d.length;c++){if(h=d[c],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),T.test(h)){i=e[1]+o(d).call(d,0,c).join("\n")+"\n";break}if(l){if(!(h.search(/[^ ]/)>=u)&&f(h).call(h)){i=e[1]+o(d).call(d,0,c).join("\n")+"\n";break}m+="\n"+o(h).call(h,u)}else f(h).call(h)||(l=!0),h.search(/[^ ]/)>=u?m+="\n"+o(h).call(h,u):m+="\n"+h}E.loose||(p?E.loose=!0:/\n *\n *$/.test(i)&&(p=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(m))&&(s="[ ] "!==a[0],m=m.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:i,task:!!a,checked:s,loose:!1,text:m}),E.raw+=i,t=o(t).call(t,i.length)}E.items[E.items.length-1].raw=y(i).call(i),E.items[E.items.length-1].text=y(m).call(m),E.raw=y(r=E.raw).call(r);var A=E.items.length;for(c=0;c<A;c++){var C;this.lexer.state.top=!1,E.items[c].tokens=this.lexer.blockTokens(E.items[c].text,[]),g(C=E.items[c].tokens).call(C,(function(t){return"space"===t.type}))&&(E.loose=!0,E.items[c].loose=!0)}return E}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ot(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n,r={type:"table",header:d(n=rt(e[1])).call(n,(function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];var o,i,a,s,u=r.align.length;for(o=0;o<u;o++)/^ *-+: *$/.test(r.align[o])?r.align[o]="right":/^ *:-+: *$/.test(r.align[o])?r.align[o]="center":/^ *:-+ *$/.test(r.align[o])?r.align[o]="left":r.align[o]=null;for(u=r.rows.length,o=0;o<u;o++){var c;r.rows[o]=d(c=rt(r.rows[o],r.header.length)).call(c,(function(t){return{text:t}}))}for(u=r.header.length,i=0;i<u;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(u=r.rows.length,i=0;i<u;i++)for(s=r.rows[i],a=0;a<s.length;a++)s[a].tokens=[],this.lexer.inlineTokens(s[a].text,s[a].tokens);return r}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e){var n={type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n,r={type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?o(n=e[1]).call(n,0,-1):e[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},e.text=function(t){var e=this.rules.block.text.exec(t);if(e){var n={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:ot(e[1])}},e.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ot(e[0]):e[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n,r=f(n=e[2]).call(n);if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var i=nt(o(r).call(r,0,-1),"\\");if((r.length-i.length)%2==0)return}else{var a=it(e[2],"()");if(a>-1){var s,u,c=(0===p(s=e[0]).call(s,"!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=f(u=e[0].substring(0,c)).call(u),e[3]=""}}var l=e[2],h="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);d&&(l=d[1],h=d[3])}else{var v;h=e[3]?o(v=e[3]).call(v,1,-1):""}return l=f(l).call(l),/^</.test(l)&&(l=this.options.pedantic&&!/>$/.test(r)?o(l).call(l,1):o(l).call(l,1,-1)),at(e,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:h?h.replace(this.rules.inline._escapes,"$1"):h},e[0],this.lexer)}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return at(n,r,n[0],this.lexer)}},e.emStrong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(t);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var a,s,u=r[0].length-1,c=u,l=0,p="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,e=o(e).call(e,-1*t.length+u);null!=(r=p.exec(e));)if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(s=a.length,r[3]||r[4])c+=s;else if(!((r[5]||r[6])&&u%3)||(u+s)%3){if(!((c-=s)>0)){if(s=Math.min(s,s+c+l),Math.min(u,s)%2){var f=o(t).call(t,1,u+r.index+s);return{type:"em",raw:o(t).call(t,0,u+r.index+s+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var h=o(t).call(t,2,u+r.index+s-1);return{type:"strong",raw:o(t).call(t,0,u+r.index+s+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}else l+=s}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=ot(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}},e.autolink=function(t,e){var n,r,o=this.rules.inline.autolink.exec(t);if(o)return r="@"===o[2]?"mailto:"+(n=ot(this.options.mangle?e(o[1]):o[1])):n=ot(o[1]),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,o;if("@"===n[2])o="mailto:"+(r=ot(this.options.mangle?e(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=ot(n[0]),o="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e){var n,r=this.rules.inline.text.exec(t);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ot(r[0]):r[0]:ot(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:n}},t}(),ut=Y,ct=W,lt=K,pt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:ut,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};pt.def=ct(pt.def).replace("label",pt._label).replace("title",pt._title).getRegex(),pt.bullet=/(?:[*+-]|\d{1,9}[.)])/,pt.listItemStart=ct(/^( *)(bull) */).replace("bull",pt.bullet).getRegex(),pt.list=ct(pt.list).replace(/bull/g,pt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pt.def.source+")").getRegex(),pt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,pt.html=ct(pt.html,"i").replace("comment",pt._comment).replace("tag",pt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pt.paragraph=ct(pt._paragraph).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pt._tag).getRegex(),pt.blockquote=ct(pt.blockquote).replace("paragraph",pt.paragraph).getRegex(),pt.normal=lt({},pt),pt.gfm=lt({},pt.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),pt.gfm.table=ct(pt.gfm.table).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pt._tag).getRegex(),pt.pedantic=lt({},pt.normal,{html:ct("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",pt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ut,paragraph:ct(pt.normal._paragraph).replace("hr",pt.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",pt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ft={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ut,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};ft.punctuation=ct(ft.punctuation).replace(/punctuation/g,ft._punctuation).getRegex(),ft.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ft.escapedEmSt=/\\\*|\\_/g,ft._comment=ct(pt._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ft.emStrong.lDelim=ct(ft.emStrong.lDelim).replace(/punct/g,ft._punctuation).getRegex(),ft.emStrong.rDelimAst=ct(ft.emStrong.rDelimAst,"g").replace(/punct/g,ft._punctuation).getRegex(),ft.emStrong.rDelimUnd=ct(ft.emStrong.rDelimUnd,"g").replace(/punct/g,ft._punctuation).getRegex(),ft._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ft._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ft._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ft.autolink=ct(ft.autolink).replace("scheme",ft._scheme).replace("email",ft._email).getRegex(),ft._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ft.tag=ct(ft.tag).replace("comment",ft._comment).replace("attribute",ft._attribute).getRegex(),ft._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ft._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ft._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ft.link=ct(ft.link).replace("label",ft._label).replace("href",ft._href).replace("title",ft._title).getRegex(),ft.reflink=ct(ft.reflink).replace("label",ft._label).getRegex(),ft.reflinkSearch=ct(ft.reflinkSearch,"g").replace("reflink",ft.reflink).replace("nolink",ft.nolink).getRegex(),ft.normal=lt({},ft),ft.pedantic=lt({},ft.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ct(/^!?\[(label)\]\((.*?)\)/).replace("label",ft._label).getRegex(),reflink:ct(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ft._label).getRegex()}),ft.gfm=lt({},ft.normal,{escape:ct(ft.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ft.gfm.url=ct(ft.gfm.url,"i").replace("email",ft.gfm._extended_email).getRegex(),ft.breaks=lt({},ft.gfm,{br:ct(ft.br).replace("{2,}","*").getRegex(),text:ct(ft.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ht={block:pt,inline:ft},dt=st,vt=T.exports.defaults,yt=ht.block,gt=ht.inline,mt=tt;function bt(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function _t(t){var e,n,r="",o=t.length;for(e=0;e<o;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Et=function(){function e(t){this.tokens=[],this.tokens.links=m(null),this.options=t||vt,this.options.tokenizer=this.options.tokenizer||new dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var e={block:yt.normal,inline:gt.normal};this.options.pedantic?(e.block=yt.pedantic,e.inline=gt.pedantic):this.options.gfm&&(e.block=yt.gfm,this.options.breaks?e.inline=gt.breaks:e.inline=gt.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n,r,i,a=e.prototype;return a.lex=function(t){var e;for(t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens},a.blockTokens=function(t,e){var n,r,i,a,s=this;for(void 0===e&&(e=[]),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;){var u;if(!(this.options.extensions&&this.options.extensions.block&&g(u=this.options.extensions.block).call(u,(function(r){return!!(n=r.call({lexer:s},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),!(r=e[e.length-1])||"paragraph"!==r.type&&"text"!==r.type?e.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),!(r=e[e.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(i=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e,n=1/0,r=o(t).call(t,1),a=void 0;b(e=s.options.extensions.startBlock).call(e,(function(t){"number"==typeof(a=t.call({lexer:this},r))&&a>=0&&(n=Math.min(n,a))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}(),this.state.top&&(n=this.tokenizer.paragraph(i)))r=e[e.length-1],a&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n),a=i.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n);else if(t){var c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return this.state.top=!0,e},a.inline=function(t,e){this.inlineQueue.push({src:t,tokens:e})},a.inlineTokens=function(t,e){var n,r,i,a=this;void 0===e&&(e=[]);var s,u,c,l=t;if(this.tokens.links){var p=_(this.tokens.links);if(p.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));){var f,h;E(p).call(p,o(f=s[0]).call(f,x(h=s[0]).call(h,"[")+1,-1))&&(l=o(l).call(l,0,s.index)+"["+mt("a",s[0].length-2)+"]"+o(l).call(l,this.tokenizer.rules.inline.reflinkSearch.lastIndex))}}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=o(l).call(l,0,s.index)+"["+mt("a",s[0].length-2)+"]"+o(l).call(l,this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=o(l).call(l,0,s.index)+"++"+o(l).call(l,this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;){var d,v,y;if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&g(d=this.options.extensions.inline).call(d,(function(r){return!!(n=r.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,c))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,_t))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,_t))){if(i=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e,n=1/0,r=o(t).call(t,1),s=void 0;b(e=a.options.extensions.startInline).call(e,(function(t){"number"==typeof(s=t.call({lexer:this},r))&&s>=0&&(n=Math.min(n,s))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}(),n=this.tokenizer.inlineText(i,bt))t=t.substring(n.raw.length),"_"!==o(v=n.raw).call(v,-1)&&(c=o(y=n.raw).call(y,-1)),u=!0,(r=e[e.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(t){var m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}throw new Error(m)}}else t=t.substring(n.raw.length),e.push(n)}return e},n=e,i=[{key:"rules",get:function(){return{block:yt,inline:gt}}}],(r=null)&&t(n.prototype,r),i&&t(n,i),e}(),xt=T.exports.defaults,wt=G,Dt=q,Tt=function(){function t(t){this.options=t||xt}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,r);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Dt(r,!0)+'">'+(n?t:Dt(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:Dt(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=wt(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+Dt(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=wt(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),At=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),Ct=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){var e;return f(e=t.toLowerCase()).call(e).replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{n=t+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),St=Tt,kt=At,Ot=Ct,It=T.exports.defaults,Ft=V,Nt=Et,Rt=function(){function t(t){this.options=t||It,this.options.renderer=this.options.renderer||new St,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kt,this.slugger=new Ot}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,o,i,a,s,u,c,l,p,f,h,d,v,y,g,m,b,_,x="",w=t.length;for(n=0;n<w;n++){var D;if(p=t[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(_=this.options.extensions.renderers[p.type].call({parser:this},p))&&E(D=["space","hr","heading","code","table","blockquote","list","html","paragraph","text"]).call(D,p.type))switch(p.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Ft(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",u="",i=p.header.length,r=0;r<i;r++)u+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(u),l="",i=p.rows.length,r=0;r<i;r++){for(u="",a=(s=p.rows[r]).length,o=0;o<a;o++)u+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});l+=this.renderer.tablerow(u)}x+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(p.tokens),x+=this.renderer.blockquote(l);continue;case"list":for(f=p.ordered,h=p.start,d=p.loose,i=p.items.length,l="",r=0;r<i;r++)g=(y=p.items[r]).checked,m=y.task,v="",y.task&&(b=this.renderer.checkbox(g),d?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(y.tokens,d),l+=this.renderer.listitem(v,m,g);x+=this.renderer.list(l,f,h);continue;case"html":x+=this.renderer.html(p.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(l=p.tokens?this.parseInline(p.tokens):p.text;n+1<w&&"text"===t[n+1].type;)l+="\n"+((p=t[++n]).tokens?this.parseInline(p.tokens):p.text);x+=e?this.renderer.paragraph(l):l;continue;default:var T='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(T);throw new Error(T)}else x+=_||""}return x},e.parseInline=function(t,e){e=e||this.renderer;var n,r,o,i="",a=t.length;for(n=0;n<a;n++){var s;if(r=t[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(o=this.options.extensions.renderers[r.type].call({parser:this},r))&&E(s=["escape","html","link","image","strong","em","codespan","br","del","text"]).call(s,r.type))switch(r.type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var u='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(u);throw new Error(u)}else i+=o||""}return i},t}(),jt=st,Pt=Tt,Lt=At,Bt=Ct,Ut=K,Mt=X,zt=q,$t=T.exports.getDefaults,Ht=T.exports.changeDefaults,qt=T.exports.defaults;function Vt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=Ut({},Vt.defaults,e||{}),Mt(e),n){var r,o=e.highlight;try{r=Nt.lex(t,e)}catch(t){return n(t)}var i=function(t){var i;if(!t)try{e.walkTokens&&Vt.walkTokens(r,e.walkTokens),i=Rt.parse(r,e)}catch(e){t=e}return e.highlight=o,t?n(t):n(null,i)};if(!o||o.length<3)return i();if(delete e.highlight,!r.length)return i();var a=0;return Vt.walkTokens(r,(function(t){"code"===t.type&&(a++,w((function(){o(t.text,t.lang,(function(e,n){if(e)return i(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--a&&i()}))}),0))})),void(0===a&&i())}try{var s=Nt.lex(t,e);return e.walkTokens&&Vt.walkTokens(s,e.walkTokens),Rt.parse(s,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+zt(t.message+"",!0)+"</pre>";throw t}}return Vt.options=Vt.setOptions=function(t){return Ut(Vt.defaults,t),Ht(Vt.defaults),Vt},Vt.getDefaults=$t,Vt.defaults=qt,Vt.use=function(){for(var t,e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i,a=Ut.apply(void 0,D(t=[{}]).call(t,r)),s=Vt.defaults.extensions||{renderers:{},childTokens:{}};b(r).call(r,(function(t){var n;if(t.extensions&&(i=!0,b(n=t.extensions).call(n,(function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var e=s.renderers?s.renderers[t.name]:null;s.renderers[t.name]=e?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=t.renderer.apply(this,r);return!1===i&&(i=e.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");s[t.level]?s[t.level].unshift(t.tokenizer):s[t.level]=[t.tokenizer],t.start&&("block"===t.level?s.startBlock?s.startBlock.push(t.start):s.startBlock=[t.start]:"inline"===t.level&&(s.startInline?s.startInline.push(t.start):s.startInline=[t.start]))}t.childTokens&&(s.childTokens[t.name]=t.childTokens)}))),t.renderer&&function(){var e=Vt.defaults.renderer||new Pt,n=function(n){var r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=t.renderer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}};for(var r in t.renderer)n(r);a.renderer=e}(),t.tokenizer&&function(){var e=Vt.defaults.tokenizer||new jt,n=function(n){var r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=t.tokenizer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}};for(var r in t.tokenizer)n(r);a.tokenizer=e}(),t.walkTokens){var r=Vt.defaults.walkTokens;a.walkTokens=function(n){t.walkTokens.call(e,n),r&&r(n)}}i&&(a.extensions=s),Vt.setOptions(a)}))},Vt.walkTokens=function(t,e){for(var r,o=function(){var t=r.value;switch(e(t),t.type){case"table":for(var o,i=n(t.header);!(o=i()).done;){var a=o.value;Vt.walkTokens(a.tokens,e)}for(var s,u=n(t.rows);!(s=u()).done;)for(var c,l=n(s.value);!(c=l()).done;){var p=c.value;Vt.walkTokens(p.tokens,e)}break;case"list":Vt.walkTokens(t.items,e);break;default:var f;Vt.defaults.extensions&&Vt.defaults.extensions.childTokens&&Vt.defaults.extensions.childTokens[t.type]?b(f=Vt.defaults.extensions.childTokens[t.type]).call(f,(function(n){Vt.walkTokens(t[n],e)})):t.tokens&&Vt.walkTokens(t.tokens,e)}},i=n(t);!(r=i()).done;)o()},Vt.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=Ut({},Vt.defaults,e||{}),Mt(e);try{var n=Nt.lexInline(t,e);return e.walkTokens&&Vt.walkTokens(n,e.walkTokens),Rt.parseInline(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+zt(t.message+"",!0)+"</pre>";throw t}},Vt.Parser=Rt,Vt.parser=Rt.parse,Vt.Renderer=Pt,Vt.TextRenderer=Lt,Vt.Lexer=Nt,Vt.lexer=Nt.lex,Vt.Tokenizer=jt,Vt.Slugger=Bt,Vt.parse=Vt,Vt}()},2574:function(t,e,n){"use strict";var r,o=n(3649),i=n(6419),a=n(5420),s=n(8317),u=n(1511),c=n(8914);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(){this._defaults=[]}c(r=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"]).call(r,(function(t){p.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}})),p.prototype._setDefaults=function(t){var e;c(e=this._defaults).call(e,(function(e){var n;t[e.fn].apply(t,function(t){if(u(t))return l(t)}(n=e.args)||function(t){if(void 0!==a&&s(Object(t)))return i(t)}(n)||function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=o(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?i(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},t.exports=p},8158:function(t,e,n){"use strict";var r,o,i=n(5420),a=n(8341),s=n(5843),u=n(1511),c=n(8914),l=n(7766),p=n(1643),f=n(3649),h=n(3032),d=n(4103);function v(t){return(v="function"==typeof i&&"symbol"==typeof a?function(t){return typeof t}:function(t){return t&&"function"==typeof i&&t.constructor===i&&t!==i.prototype?"symbol":typeof t})(t)}"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var y=n(8767),g=n(4445),m=n(129),b=n(8842),_=n(3508),E=n(1253),x=n(2574);function w(){}t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var D=e=t.exports;e.Request=I,D.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var T=s("")?function(t){return s(t).call(t)}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function A(t){if(!_(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&C(e,n,t[n]);return e.join("&")}function C(t,e,n){if(void 0!==n)if(null!==n)if(u(n))c(n).call(n,(function(n){C(t,e,n)}));else if(_(n))for(var r in n){var o;Object.prototype.hasOwnProperty.call(n,r)&&C(t,l(o="".concat(e,"[")).call(o,r,"]"),n[r])}else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function S(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)e=o[i],-1===(n=p(e).call(e,"="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(f(e).call(e,0,n))]=decodeURIComponent(f(e).call(e,n+1));return r}function k(t){return/[/+]json($|[^-\w])/i.test(t)}function O(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)n=i[s],-1!==(e=p(n).call(n,":"))&&(r=f(n).call(n,0,e).toLowerCase(),o=T(f(n).call(n,e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function I(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new O(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function F(t,e,n){var r=D("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}D.serializeObject=A,D.parseString=S,D.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},D.serialize={"application/x-www-form-urlencoded":m.stringify,"application/json":g},D.parse={"application/x-www-form-urlencoded":S,"application/json":JSON.parse},E(O.prototype),O.prototype._parseBody=function(t){var e=D.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&k(this.type)&&(e=D.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},O.prototype.toError=function(){var t,e,n=this.req,r=n.method,o=n.url,i=l(t=l(e="cannot ".concat(r," ")).call(e,o," (")).call(t,this.status,")"),a=new Error(i);return a.status=this.status,a.method=r,a.url=o,a},D.Response=O,y(I.prototype),b(I.prototype),I.prototype.type=function(t){return this.set("Content-Type",D.types[t]||t),this},I.prototype.accept=function(t){return this.set("Accept",D.types[t]||t),this},I.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===v(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},I.prototype.query=function(t){return"string"!=typeof t&&(t=A(t)),t&&this._query.push(t),this},I.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},I.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},I.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},I.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},I.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},I.prototype.ca=I.prototype.agent,I.prototype.buffer=I.prototype.ca,I.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},I.prototype.pipe=I.prototype.write,I.prototype._isHost=function(t){return t&&"object"===v(t)&&!u(t)&&"[object Object]"!==Object.prototype.toString.call(t)},I.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||w,this._finalizeQueryString(),this._end()},I.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=h((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},I.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=D.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",d(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",d(r).call(r,null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||D.serialize[o?o.split(";")[0]:""];!i&&k(o)&&(i=D.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},D.agent=function(){return new x},c(r=["GET","POST","OPTIONS","PATCH","PUT","DELETE"]).call(r,(function(t){x.prototype[t.toLowerCase()]=function(e,n){var r=new D.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),x.prototype.del=x.prototype.delete,D.get=function(t,e,n){var r=D("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},D.head=function(t,e,n){var r=D("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},D.options=function(t,e,n){var r=D("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.del=F,D.delete=F,D.patch=function(t,e,n){var r=D("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.post=function(t,e,n){var r=D("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.put=function(t,e,n){var r=D("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},3508:function(t,e,n){"use strict";var r=n(5420),o=n(8341);function i(t){return(i="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===i(t)}},8842:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(6384),a=n(3476),s=n(1511),u=n(7766),c=n(5843),l=n(8580),p=n(1643),f=n(3649),h=n(7302),d=n(3032);function v(t){return(v="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t})(t)}var y=n(3508);function g(t){if(t)return function(t){for(var e in g.prototype)Object.prototype.hasOwnProperty.call(g.prototype,e)&&(t[e]=g.prototype[e]);return t}(t)}t.exports=g,g.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},g.prototype.parse=function(t){return this._parser=t,this},g.prototype.responseType=function(t){return this._responseType=t,this},g.prototype.serialize=function(t){return this._serializer=t,this},g.prototype.timeout=function(t){if(!t||"object"!==v(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},g.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var m=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),b=new i([408,413,429,500,502,503,504,521,522,524]);g.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&b.has(e.status))return!0;if(t){if(t.code&&m.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},g.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},g.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new a((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},g.prototype.catch=function(t){return this.then(void 0,t)},g.prototype.use=function(t){return t(this),this},g.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},g.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},g.prototype.get=function(t){return this._header[t.toLowerCase()]},g.prototype.getHeader=g.prototype.get,g.prototype.set=function(t,e){if(y(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},g.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},g.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(y(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(n,t[n]);return this}if(s(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},g.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},g.prototype._auth=function(t,e,n,r){var o;switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r(u(o="".concat(t,":")).call(o,e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},g.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},g.prototype.redirects=function(t){return this._maxRedirects=t,this},g.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},g.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},g.prototype.send=function(t){var e=y(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)s(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&y(this._data))for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._data[r]=t[r]);else if("string"==typeof t){var o,i;n||this.type("form"),(n=this._header["content-type"])&&(n=c(o=n.toLowerCase()).call(o)),this._data="application/x-www-form-urlencoded"===n?this._data?u(i="".concat(this._data,"&")).call(i,t):t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},g.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},g.prototype._finalizeQueryString=function(){var t,e=this._query.join("&");if(e&&(this.url+=(l(t=this.url).call(t,"?")?"&":"?")+e),this._query.length=0,this._sort){var n,r=p(n=this.url).call(n,"?");if(r>=0){var o,i,a=f(o=this.url).call(o,r+1).split("&");"function"==typeof this._sort?h(a).call(a,this._sort):h(a).call(a),this.url=f(i=this.url).call(i,0,r)+"?"+a.join("&")}}},g.prototype._appendQueryString=function(){console.warn("Unsupported")},g.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},g.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=d((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=d((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(6244);function o(t){if(t)return function(t){for(var e in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,e)&&(t[e]=o.prototype[e]);return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(t){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},6244:function(t,e,n){"use strict";var r=n(5420),o=n(9996),i=n(1511),a=n(6976),s=n(3649),u=n(6419);function c(t,e){var n;if(void 0===r||null==o(t)){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?u(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var c=0,p=function(){};return{s:p,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(t){throw t},f:p}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,h=!0,d=!1;return{s:function(){n=a(t)},n:function(){var t=n.next();return h=t.done,t},e:function(t){d=!0,f=t},f:function(){try{h||null==n.return||n.return()}finally{if(d)throw f}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,n={},r=c(t.split(/ *; */));try{for(r.s();!(e=r.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),a=o.shift();i&&a&&(n[i]=a)}}catch(t){r.e(t)}finally{r.f()}return n},e.parseLinks=function(t){var e,n={},r=c(t.split(/ *, */));try{for(r.s();!(e=r.n()).done;){var o,i,a=e.value.split(/ *; */),u=s(o=a[0]).call(o,1,-1);n[s(i=a[1].split(/ *= */)[1]).call(i,1,-1)]=u}}catch(t){r.e(t)}finally{r.f()}return n},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},1905:function(t){t.exports=()=>()=>null},2698:function(t){t.exports=null},1924:function(t,e,n){"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},5559:function(t,e,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var p=function(){return s(r,i,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p},8767:function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},4493:function(t,e,n){n(7971),n(3242);var r=n(4058);t.exports=r.Array.from},4034:function(t,e,n){n(2737);var r=n(4058);t.exports=r.Array.isArray},5367:function(t,e,n){n(5906);var r=n(5703);t.exports=r("Array").concat},1459:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},6172:function(t,e,n){n(290);var r=n(5703);t.exports=r("Array").fill},2383:function(t,e,n){n(1501);var r=n(5703);t.exports=r("Array").filter},9:function(t,e,n){n(4929);var r=n(5703);t.exports=r("Array").findIndex},7671:function(t,e,n){n(833);var r=n(5703);t.exports=r("Array").find},4373:function(t,e,n){n(4944),n(1107);var r=n(5703);t.exports=r("Array").flat},9324:function(t,e,n){n(2437);var r=n(5703);t.exports=r("Array").forEach},991:function(t,e,n){n(7690);var r=n(5703);t.exports=r("Array").includes},8700:function(t,e,n){n(9076);var r=n(5703);t.exports=r("Array").indexOf},6442:function(t,e,n){n(8071);var r=n(5703);t.exports=r("Array").lastIndexOf},3866:function(t,e,n){n(8787);var r=n(5703);t.exports=r("Array").map},2999:function(t,e,n){n(1876);var r=n(5703);t.exports=r("Array").reduce},5573:function(t,e,n){n(1490);var r=n(5703);t.exports=r("Array").reverse},4900:function(t,e,n){n(186);var r=n(5703);t.exports=r("Array").slice},3824:function(t,e,n){n(6026);var r=n(5703);t.exports=r("Array").some},2948:function(t,e,n){n(4115);var r=n(5703);t.exports=r("Array").sort},8209:function(t,e,n){n(8611);var r=n(5703);t.exports=r("Array").splice},1103:function(t,e,n){n(5160);var r=n(4058);t.exports=r.Date.now},7700:function(t,e,n){n(3381);var r=n(5703);t.exports=r("Function").bind},6246:function(t,e,n){var r=n(7700),o=Function.prototype;t.exports=function(t){var e=t.bind;return t===o||t instanceof Function&&e===o.bind?r:e}},6043:function(t,e,n){var r=n(5367),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||t instanceof Array&&e===o.concat?r:e}},3160:function(t,e,n){var r=n(1459),o=Array.prototype;t.exports=function(t){var e=t.every;return t===o||t instanceof Array&&e===o.every?r:e}},446:function(t,e,n){var r=n(6172),o=Array.prototype;t.exports=function(t){var e=t.fill;return t===o||t instanceof Array&&e===o.fill?r:e}},2480:function(t,e,n){var r=n(2383),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||t instanceof Array&&e===o.filter?r:e}},7147:function(t,e,n){var r=n(9),o=Array.prototype;t.exports=function(t){var e=t.findIndex;return t===o||t instanceof Array&&e===o.findIndex?r:e}},2236:function(t,e,n){var r=n(7671),o=Array.prototype;t.exports=function(t){var e=t.find;return t===o||t instanceof Array&&e===o.find?r:e}},8098:function(t,e,n){var r=n(4373),o=Array.prototype;t.exports=function(t){var e=t.flat;return t===o||t instanceof Array&&e===o.flat?r:e}},8557:function(t,e,n){var r=n(991),o=n(1631),i=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===i||t instanceof Array&&e===i.includes?r:"string"==typeof t||t===a||t instanceof String&&e===a.includes?o:e}},4570:function(t,e,n){var r=n(8700),o=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===o||t instanceof Array&&e===o.indexOf?r:e}},7564:function(t,e,n){var r=n(6442),o=Array.prototype;t.exports=function(t){var e=t.lastIndexOf;return t===o||t instanceof Array&&e===o.lastIndexOf?r:e}},8287:function(t,e,n){var r=n(3866),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||t instanceof Array&&e===o.map?r:e}},8025:function(t,e,n){var r=n(2999),o=Array.prototype;t.exports=function(t){var e=t.reduce;return t===o||t instanceof Array&&e===o.reduce?r:e}},1060:function(t,e,n){var r=n(5573),o=Array.prototype;t.exports=function(t){var e=t.reverse;return t===o||t instanceof Array&&e===o.reverse?r:e}},9601:function(t,e,n){var r=n(4900),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?r:e}},8299:function(t,e,n){var r=n(3824),o=Array.prototype;t.exports=function(t){var e=t.some;return t===o||t instanceof Array&&e===o.some?r:e}},9355:function(t,e,n){var r=n(2948),o=Array.prototype;t.exports=function(t){var e=t.sort;return t===o||t instanceof Array&&e===o.sort?r:e}},8339:function(t,e,n){var r=n(8209),o=Array.prototype;t.exports=function(t){var e=t.splice;return t===o||t instanceof Array&&e===o.splice?r:e}},1495:function(t,e,n){var r=n(2629),o=String.prototype;t.exports=function(t){var e=t.trimLeft;return"string"==typeof t||t===o||t instanceof String&&e===o.trimLeft?r:e}},5371:function(t,e,n){var r=n(8274),o=String.prototype;t.exports=function(t){var e=t.trimRight;return"string"==typeof t||t===o||t instanceof String&&e===o.trimRight?r:e}},2774:function(t,e,n){var r=n(3348),o=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===o||t instanceof String&&e===o.trim?r:e}},4426:function(t,e,n){n(2619);var r=n(4058);r.JSON||(r.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return r.JSON.stringify.apply(null,arguments)}},5999:function(t,e,n){n(9221);var r=n(4058);t.exports=r.Object.assign},5254:function(t,e,n){n(3882);var r=n(4058).Object;t.exports=function(t,e){return r.create(t,e)}},7702:function(t,e,n){n(4979);var r=n(4058).Object,o=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(o.sham=!0)},8171:function(t,e,n){n(6450);var r=n(4058).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},3081:function(t,e,n){n(1078);var r=n(4058);t.exports=r.Object.entries},286:function(t,e,n){n(6924);var r=n(4058).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},2766:function(t,e,n){n(8482);var r=n(4058);t.exports=r.Object.getOwnPropertyDescriptors},3288:function(t,e,n){n(9816);var r=n(4058).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},498:function(t,e,n){n(5824);var r=n(4058);t.exports=r.Object.getOwnPropertySymbols},8494:function(t,e,n){n(1724);var r=n(4058);t.exports=r.Object.keys},8430:function(t,e,n){n(6614);var r=n(4058);t.exports=r.Object.values},7579:function(t,e,n){n(9718);var r=n(4058);t.exports=r.parseFloat},8524:function(t,e,n){n(4038);var r=n(4058);t.exports=r.parseInt},2956:function(t,e,n){n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},6998:function(t,e,n){n(6274),n(5967),n(9008),n(7971);var r=n(4058);t.exports=r.Set},1631:function(t,e,n){n(1035);var r=n(5703);t.exports=r("String").includes},2629:function(t,e,n){n(350);var r=n(5703);t.exports=r("String").trimLeft},8274:function(t,e,n){n(2651);var r=n(5703);t.exports=r("String").trimRight},3348:function(t,e,n){n(7398);var r=n(5703);t.exports=r("String").trim},7473:function(t,e,n){n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1766),n(9791),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:function(t,e,n){n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2209:function(t,e,n){n(6274),n(7971),n(7634);var r=n(2902);t.exports=r},1258:function(t,e,n){n(6274),n(7971),n(7634);var r=n(429);t.exports=r},9447:function(t,e,n){var r=n(4570);t.exports=r},4408:function(t,e,n){n(6274),n(7971),n(7634);var r=n(663);t.exports=r},269:function(t,e,n){var r=n(5999);t.exports=r},3685:function(t,e,n){var r=n(8171);t.exports=r},4710:function(t,e,n){var r=n(498);t.exports=r},3799:function(t,e,n){var r=n(8494);t.exports=r},3916:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},1851:function(t,e,n){var r=n(941);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},8479:function(t){t.exports=function(){}},5743:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},6059:function(t,e,n){var r=n(941);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},1860:function(t,e,n){"use strict";var r=n(9678),o=n(9413),i=n(3057);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},6837:function(t,e,n){"use strict";var r=n(3610).forEach,o=n(4194)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1354:function(t,e,n){"use strict";var r=n(6843),o=n(9678),i=n(5196),a=n(6782),s=n(3057),u=n(5449),c=n(2902);t.exports=function(t){var e,n,l,p,f,h,d=o(t),v="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=c(d),_=0;if(m&&(g=r(g,y>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)h=m?g(d[_],_):d[_],u(n,_,h);else for(f=(p=b.call(d)).next,n=new v;!(l=f.call(p)).done;_++)h=m?i(p,g,[l.value,_],!0):l.value,u(n,_,h);return n.length=_,n}},1692:function(t,e,n){var r=n(4529),o=n(3057),i=n(9413),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,n){var r=n(6843),o=n(7026),i=n(9678),a=n(3057),s=n(4692),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,p=6==t,f=7==t,h=5==t||p;return function(d,v,y,g){for(var m,b,_=i(d),E=o(_),x=r(v,y,3),w=a(E.length),D=0,T=g||s,A=e?T(d,w):n||f?T(d,0):void 0;w>D;D++)if((h||D in E)&&(b=x(m=E[D],D,_),t))if(e)A[D]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return D;case 2:u.call(A,m)}else switch(t){case 4:return!1;case 7:u.call(A,m)}return p?-1:c||l?l:A}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},7145:function(t,e,n){"use strict";var r=n(4529),o=n(8459),i=n(3057),a=n(4194),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c||!l;t.exports=p?function(t){if(c)return u.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:u},568:function(t,e,n){var r=n(5981),o=n(9813),i=n(3385),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:function(t,e,n){"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},6499:function(t,e,n){var r=n(3916),o=n(9678),i=n(7026),a=n(3057),s=function(t){return function(e,n,s,u){r(n);var c=o(e),l=i(c),p=a(c.length),f=t?p-1:0,h=t?-1:1;if(s<2)for(;;){if(f in l){u=l[f],f+=h;break}if(f+=h,t?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:p>f;f+=h)f in l&&(u=n(u,l[f],f,c));return u}};t.exports={left:s(!1),right:s(!0)}},1388:function(t){var e=Math.floor,n=function(t,i){var a=t.length,s=e(a/2);return a<8?r(t,i):o(n(t.slice(0,s),i),n(t.slice(s),i),i)},r=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},o=function(t,e,n){for(var r=t.length,o=e.length,i=0,a=0,s=[];i<r||a<o;)i<r&&a<o?s.push(n(t[i],e[a])<=0?t[i++]:e[a++]):s.push(i<r?t[i++]:e[a++]);return s};t.exports=n},5693:function(t,e,n){var r=n(941),o=n(1052),i=n(9813)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},4692:function(t,e,n){var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},5196:function(t,e,n){var r=n(6059),o=n(7609);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){throw o(t),e}}},1385:function(t,e,n){var r=n(9813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},2532:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9697:function(t,e,n){var r=n(2885),o=n(2532),i=n(9813)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},5616:function(t,e,n){"use strict";var r=n(5988).f,o=n(9290),i=n(7524),a=n(6843),s=n(5743),u=n(3091),c=n(7771),l=n(4431),p=n(5746),f=n(1647).fastKey,h=n(5402),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),h=v(e),y=function(t,e,n){var r,o,i=h(t),a=g(t,e);return a?a.value=n:(i.last=a={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var n,r=h(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=this,n=h(e),r=g(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(l.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),p&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);c(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},4683:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(1647),a=n(5981),s=n(2029),u=n(3091),c=n(5743),l=n(941),p=n(904),f=n(5988).f,h=n(3610).forEach,d=n(5746),v=n(5402),y=v.set,g=v.getterFor;t.exports=function(t,e,n){var v,m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=m?"set":"add",E=o[t],x=E&&E.prototype,w={};if(d&&"function"==typeof E&&(b||x.forEach&&!a((function(){(new E).entries().next()})))){v=e((function(e,n){y(c(e,v,t),{type:t,collection:new E}),null!=n&&u(n,e[_],{that:e,AS_ENTRIES:m})}));var D=g(t);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in x)||b&&"clear"==t||s(v.prototype,t,(function(n,r){var o=D(this).collection;if(!e&&b&&!l(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),b||f(v.prototype,"size",{configurable:!0,get:function(){return D(this).collection.size}})}else v=n.getConstructor(e,t,m,_),i.enable();return p(v,t,!1,!0),w[t]=v,r({global:!0,forced:!0},w),b||n.setStrong(v,t,m),v}},7772:function(t,e,n){var r=n(9813)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},4160:function(t,e,n){var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1046:function(t,e,n){"use strict";var r=n(5143).IteratorPrototype,o=n(9290),i=n(1887),a=n(904),s=n(2077),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,c,!1,!0),s[c]=u,t}},2029:function(t,e,n){var r=n(5746),o=n(5988),i=n(1887);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:function(t,e,n){"use strict";var r=n(3894),o=n(5988),i=n(1887);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},7771:function(t,e,n){"use strict";var r=n(6887),o=n(1046),i=n(249),a=n(8929),s=n(904),u=n(2029),c=n(9754),l=n(9813),p=n(2529),f=n(2077),h=n(5143),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g="keys",m="values",b="entries",_=function(){return this};t.exports=function(t,e,n,l,h,E,x){o(n,e,l);var w,D,T,A=function(t){if(t===h&&I)return I;if(!v&&t in k)return k[t];switch(t){case g:case m:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",S=!1,k=t.prototype,O=k[y]||k["@@iterator"]||h&&k[h],I=!v&&O||A(h),F="Array"==e&&k.entries||O;if(F&&(w=i(F.call(new t)),d!==Object.prototype&&w.next&&(p||i(w)===d||(a?a(w,d):"function"!=typeof w[y]&&u(w,y,_)),s(w,C,!0,!0),p&&(f[C]=_))),h==m&&O&&O.name!==m&&(S=!0,I=function(){return O.call(this)}),p&&!x||k[y]===I||u(k,y,I),f[e]=I,h)if(D={values:A(m),keys:E?I:A(g),entries:A(b)},x)for(T in D)(v||S||!(T in k))&&c(k,T,D[T]);else r({target:e,proto:!0,forced:v||S},D);return D}},6349:function(t,e,n){var r=n(4058),o=n(7457),i=n(1477),a=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},5746:function(t,e,n){var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1333:function(t,e,n){var r=n(1899),o=n(941),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},3281:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4342:function(t,e,n){var r=n(2861).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},3321:function(t){t.exports="object"==typeof window},7797:function(t,e,n){var r=n(2861);t.exports=/MSIE|Trident/.test(r)},2749:function(t,e,n){var r=n(2861);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},6049:function(t,e,n){var r=n(2532),o=n(1899);t.exports="process"==r(o.process)},8045:function(t,e,n){var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},3385:function(t,e,n){var r,o,i=n(1899),a=n(2861),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l?o=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},8938:function(t,e,n){var r=n(2861).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5703:function(t,e,n){var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6887:function(t,e,n){"use strict";var r=n(1899),o=n(9677).f,i=n(7252),a=n(4058),s=n(6843),u=n(2029),c=n(7457),l=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,p,f,h,d,v,y,g,m=t.target,b=t.global,_=t.stat,E=t.proto,x=b?r:_?r[m]:(r[m]||{}).prototype,w=b?a:a[m]||(a[m]={}),D=w.prototype;for(f in e)n=!i(b?f:m+(_?".":"#")+f,t.forced)&&x&&c(x,f),d=w[f],n&&(v=t.noTargetGet?(g=o(x,f))&&g.value:x[f]),h=n&&v?v:e[f],n&&typeof d==typeof h||(y=t.bind&&n?s(h,r):t.wrap&&n?l(h):E&&"function"==typeof h?s(Function.call,h):h,(t.sham||h&&h.sham||d&&d.sham)&&u(y,"sham",!0),w[f]=y,E&&(c(a,p=m+"Prototype")||u(a,p,{}),a[p][f]=h,t.real&&D&&!D[f]&&u(D,f,h)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3092:function(t,e,n){"use strict";var r=n(1052),o=n(3057),i=n(6843),a=function(t,e,n,s,u,c,l,p){for(var f,h=u,d=0,v=!!l&&i(l,p,3);d<s;){if(d in n){if(f=v?v(n[d],d,e):n[d],c>0&&r(f))h=a(t,e,f,o(f.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=f}h++}d++}return h};t.exports=a},5602:function(t,e,n){var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6843:function(t,e,n){var r=n(3916);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},8308:function(t,e,n){"use strict";var r=n(3916),o=n(941),i=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(a.prototype=e.prototype),a}},626:function(t,e,n){var r=n(4058),o=n(1899),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},2902:function(t,e,n){var r=n(9697),o=n(2077),i=n(9813)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},429:function(t,e,n){var r=n(6059),o=n(2902);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7457:function(t,e,n){var r=n(9678),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},7748:function(t){t.exports={}},4845:function(t,e,n){var r=n(1899);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},5463:function(t,e,n){var r=n(626);t.exports=r("document","documentElement")},2840:function(t,e,n){var r=n(5746),o=n(5981),i=n(1333);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,e,n){var r=n(5981),o=n(2532),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},1302:function(t,e,n){var r=n(3030),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},1647:function(t,e,n){var r=n(6887),o=n(7748),i=n(941),a=n(7457),s=n(5988).f,u=n(946),c=n(684),l=n(9418),p=n(5602),f=!1,h=l("meta"),d=0,v=Object.isExtensible||function(){return!0},y=function(t){s(t,h,{value:{objectID:"O"+d++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},f=!0;var t=u.f,e=[].splice,n={};n[h]=1,t(n).length&&(u.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===h){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,h)){if(!v(t))return"F";if(!e)return"E";y(t)}return t[h].objectID},getWeakData:function(t,e){if(!a(t,h)){if(!v(t))return!0;if(!e)return!1;y(t)}return t[h].weakData},onFreeze:function(t){return p&&f&&v(t)&&!a(t,h)&&y(t),t}};o[h]=!0},5402:function(t,e,n){var r,o,i,a=n(8019),s=n(1899),u=n(941),c=n(2029),l=n(7457),p=n(3030),f=n(4262),h=n(7748),d="Object already initialized",v=s.WeakMap;if(a||p.state){var y=p.state||(p.state=new v),g=y.get,m=y.has,b=y.set;r=function(t,e){if(m.call(y,t))throw new TypeError(d);return e.facade=t,b.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var _=f("state");h[_]=!0,r=function(t,e){if(l(t,_))throw new TypeError(d);return e.facade=t,c(t,_,e),e},o=function(t){return l(t,_)?t[_]:{}},i=function(t){return l(t,_)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},6782:function(t,e,n){var r=n(9813),o=n(2077),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1052:function(t,e,n){var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7252:function(t,e,n){var r=n(5981),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},663:function(t,e,n){var r=n(9697),o=n(9813),i=n(2077),a=o("iterator");t.exports=function(t){var e=Object(t);return void 0!==e[a]||"@@iterator"in e||i.hasOwnProperty(r(e))}},941:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},2529:function(t){t.exports=!0},685:function(t,e,n){var r=n(941),o=n(2532),i=n(9813)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},6664:function(t,e,n){var r=n(626),o=n(2302);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},3091:function(t,e,n){var r=n(6059),o=n(6782),i=n(3057),a=n(6843),s=n(2902),u=n(7609),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,f,h,d,v,y,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),E=a(e,g,1+m+_),x=function(t){return l&&u(l),new c(!0,t)},w=function(t){return m?(r(t),_?E(t[0],t[1],x):E(t[0],t[1])):_?E(t,x):E(t)};if(b)l=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(o(p)){for(f=0,h=i(t.length);h>f;f++)if((d=w(t[f]))&&d instanceof c)return d;return new c(!1)}l=p.call(t)}for(v=l.next;!(y=v.call(l)).done;){try{d=w(y.value)}catch(t){throw u(l),t}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},7609:function(t,e,n){var r=n(6059);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(249),u=n(2029),c=n(7457),l=n(9813),p=n(2529),f=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):h=!0);var d=null==r||a((function(){var t={};return r[f].call(t)!==t}));d&&(r={}),p&&!d||c(r,f)||u(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2077:function(t){t.exports={}},6132:function(t,e,n){var r,o,i,a,s,u,c,l,p=n(1899),f=n(9677).f,h=n(2941).set,d=n(2749),v=n(8045),y=n(6049),g=p.MutationObserver||p.WebKitMutationObserver,m=p.document,b=p.process,_=p.Promise,E=f(p,"queueMicrotask"),x=E&&E.value;x||(r=function(){var t,e;for(y&&(t=b.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},d||y||v||!g||!m?_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=c.then,a=function(){l.call(c,r)}):a=y?function(){b.nextTick(r)}:function(){h.call(p,r)}:(s=!0,u=m.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},9297:function(t,e,n){var r=n(1899);t.exports=r.Promise},2497:function(t,e,n){var r=n(3385),o=n(5981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8019:function(t,e,n){var r=n(1899),o=n(1302),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},9520:function(t,e,n){"use strict";var r=n(3916),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},344:function(t,e,n){var r=n(685);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},1942:function(t,e,n){var r=n(1899),o=n(5803),i=n(4853).trim,a=n(3483),s=r.parseFloat,u=1/s(a+"-0")!=-1/0;t.exports=u?function(t){var e=i(o(t)),n=s(e);return 0===n&&"-"==e.charAt(0)?-0:n}:s},9806:function(t,e,n){var r=n(1899),o=n(5803),i=n(4853).trim,a=n(3483),s=r.parseInt,u=/^[+-]?0[Xx]/,c=8!==s(a+"08")||22!==s(a+"0x16");t.exports=c?function(t,e){var n=i(o(t));return s(n,e>>>0||(u.test(n)?16:10))}:s},4420:function(t,e,n){"use strict";var r=n(5746),o=n(5981),i=n(4771),a=n(7857),s=n(6760),u=n(9678),c=n(7026),l=Object.assign,p=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||i(l({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,l=1,p=a.f,f=s.f;o>l;)for(var h,d=c(arguments[l++]),v=p?i(d).concat(p(d)):i(d),y=v.length,g=0;y>g;)h=v[g++],r&&!f.call(d,h)||(n[h]=d[h]);return n}:l},9290:function(t,e,n){var r,o=n(6059),i=n(9938),a=n(6759),s=n(7748),u=n(5463),c=n(1333),l=n(4262)("IE_PROTO"),p=function(){},f=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}d=document.domain&&r?h(r):function(){var t,e=c("iframe");if(e.style)return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F}()||h(r);for(var t=a.length;t--;)delete d.prototype[a[t]];return d()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=d(),void 0===e?n:i(n,e)}},9938:function(t,e,n){var r=n(5746),o=n(5988),i=n(6059),a=n(4771);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,u=0;s>u;)o.f(t,n=r[u++],e[n]);return t}},5988:function(t,e,n){var r=n(5746),o=n(2840),i=n(6059),a=n(3894),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(i(t),e=a(e),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:function(t,e,n){var r=n(5746),o=n(6760),i=n(1887),a=n(4529),s=n(3894),u=n(7457),c=n(2840),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e),c)try{return l(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},684:function(t,e,n){var r=n(4529),o=n(946).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},946:function(t,e,n){var r=n(5629),o=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7857:function(t,e){e.f=Object.getOwnPropertySymbols},249:function(t,e,n){var r=n(7457),o=n(9678),i=n(4262),a=n(4160),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},5629:function(t,e,n){var r=n(7457),o=n(4529),i=n(1692).indexOf,a=n(7748);t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},4771:function(t,e,n){var r=n(5629),o=n(6759);t.exports=Object.keys||function(t){return r(t,o)}},6760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:function(t,e,n){var r=n(6059),o=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},8810:function(t,e,n){var r=n(5746),o=n(4771),i=n(4529),a=n(6760).f,s=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,p=[];c>l;)n=u[l++],r&&!a.call(s,n)||p.push(t?[n,s[n]]:s[n]);return p}};t.exports={entries:s(!0),values:s(!1)}},5623:function(t,e,n){"use strict";var r=n(2885),o=n(9697);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},9811:function(t,e,n){var r=n(941);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},1136:function(t,e,n){var r=n(626),o=n(946),i=n(7857),a=n(6059);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},4058:function(t){t.exports={}},2:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},6584:function(t,e,n){var r=n(6059),o=n(941),i=n(9520);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},7524:function(t,e,n){var r=n(9754);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},9754:function(t,e,n){var r=n(2029);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},8219:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},4911:function(t,e,n){var r=n(1899);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},4431:function(t,e,n){"use strict";var r=n(626),o=n(5988),i=n(9813),a=n(5746),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},904:function(t,e,n){var r=n(2885),o=n(5988).f,i=n(2029),a=n(7457),s=n(5623),u=n(9813)("toStringTag");t.exports=function(t,e,n,c){if(t){var l=n?t:t.prototype;a(l,u)||o(l,u,{configurable:!0,value:e}),c&&!r&&i(l,"toString",s)}}},4262:function(t,e,n){var r=n(8726),o=n(9418),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3030:function(t,e,n){var r=n(1899),o=n(4911),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},8726:function(t,e,n){var r=n(2529),o=n(3030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},487:function(t,e,n){var r=n(6059),o=n(3916),i=n(9813)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},4620:function(t,e,n){var r=n(8459),o=n(5803),i=n(8219),a=function(t){return function(e,n){var a,s,u=o(i(e)),c=r(n),l=u.length;return c<0||c>=l?t?"":void 0:(a=u.charCodeAt(c))<55296||a>56319||c+1===l||(s=u.charCodeAt(c+1))<56320||s>57343?t?u.charAt(c):a:t?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3093:function(t,e,n){var r=n(5981),o=n(3483);t.exports=function(t){return r((function(){return!!o[t]()||"​…᠎"!="​…᠎"[t]()||o[t].name!==t}))}},4853:function(t,e,n){var r=n(8219),o=n(5803),i="["+n(3483)+"]",a=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),u=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},2941:function(t,e,n){var r,o,i,a,s=n(1899),u=n(5981),c=n(6843),l=n(5463),p=n(1333),f=n(2749),h=n(6049),d=s.setImmediate,v=s.clearImmediate,y=s.process,g=s.MessageChannel,m=s.Dispatch,b=0,_={};try{r=s.location}catch(t){}var E=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},x=function(t){return function(){E(t)}},w=function(t){E(t.data)},D=function(t){s.postMessage(String(t),r.protocol+"//"+r.host)};d&&v||(d=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(b),b},v=function(t){delete _[t]},h?o=function(t){y.nextTick(x(t))}:m&&m.now?o=function(t){m.now(x(t))}:g&&!f?(a=(i=new g).port2,i.port1.onmessage=w,o=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(D)?(o=D,s.addEventListener("message",w,!1)):o="onreadystatechange"in p("script")?function(t){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(x(t),0)}),t.exports={set:d,clear:v}},9413:function(t,e,n){var r=n(8459),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},4529:function(t,e,n){var r=n(7026),o=n(8219);t.exports=function(t){return r(o(t))}},8459:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},3057:function(t,e,n){var r=n(8459),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},9678:function(t,e,n){var r=n(8219);t.exports=function(t){return Object(r(t))}},6935:function(t,e,n){var r=n(941),o=n(6664),i=n(9811),a=n(9813)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,s=t[a];if(void 0!==s){if(void 0===e&&(e="default"),n=s.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},3894:function(t,e,n){var r=n(6935),o=n(6664);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},2885:function(t,e,n){var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:function(t,e,n){var r=n(6664);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},9418:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},2302:function(t,e,n){var r=n(2497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1477:function(t,e,n){var r=n(9813);e.f=r},9813:function(t,e,n){var r=n(1899),o=n(8726),i=n(7457),a=n(9418),s=n(2497),u=n(2302),c=o("wks"),l=r.Symbol,p=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(c,t)&&(s||"string"==typeof c[t])||(s&&i(l,t)?c[t]=l[t]:c[t]=p("Symbol."+t)),c[t]}},3483:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},7627:function(t,e,n){"use strict";var r=n(6887),o=n(249),i=n(8929),a=n(9290),s=n(2029),u=n(1887),c=n(3091),l=n(5803),p=function(t,e){var n=this;if(!(n instanceof p))return new p(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&s(n,"message",l(e));var r=[];return c(t,r.push,{that:r}),s(n,"errors",r),n};p.prototype=a(Error.prototype,{constructor:u(5,p),message:u(5,""),name:u(5,"AggregateError")}),r({global:!0},{AggregateError:p})},5906:function(t,e,n){"use strict";var r=n(6887),o=n(5981),i=n(1052),a=n(941),s=n(9678),u=n(3057),c=n(5449),l=n(4692),p=n(568),f=n(9813),h=n(3385),d=f("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",g=h>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=p("concat"),b=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,o,i,a=s(this),p=l(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(b(i=-1===e?a:arguments[e])){if(f+(o=u(i.length))>v)throw TypeError(y);for(n=0;n<o;n++,f++)n in i&&c(p,f,i[n])}else{if(f>=v)throw TypeError(y);c(p,f++,i)}return p.length=f,p}})},8851:function(t,e,n){"use strict";var r=n(6887),o=n(3610).every;r({target:"Array",proto:!0,forced:!n(4194)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},290:function(t,e,n){var r=n(6887),o=n(1860),i=n(8479);r({target:"Array",proto:!0},{fill:o}),i("fill")},1501:function(t,e,n){"use strict";var r=n(6887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(568)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4929:function(t,e,n){"use strict";var r=n(6887),o=n(3610).findIndex,i=n(8479),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},833:function(t,e,n){"use strict";var r=n(6887),o=n(3610).find,i=n(8479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},4944:function(t,e,n){"use strict";var r=n(6887),o=n(3092),i=n(9678),a=n(3057),s=n(8459),u=n(4692);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e.length),r=u(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},2437:function(t,e,n){"use strict";var r=n(6887),o=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},3242:function(t,e,n){var r=n(6887),o=n(1354);r({target:"Array",stat:!0,forced:!n(1385)((function(t){Array.from(t)}))},{from:o})},7690:function(t,e,n){"use strict";var r=n(6887),o=n(1692).includes,i=n(8479);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},9076:function(t,e,n){"use strict";var r=n(6887),o=n(1692).indexOf,i=n(4194),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=i("indexOf");r({target:"Array",proto:!0,forced:s||!u},{indexOf:function(t){return s?a.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},2737:function(t,e,n){n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:function(t,e,n){"use strict";var r=n(4529),o=n(8479),i=n(2077),a=n(5402),s=n(7771),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},8071:function(t,e,n){var r=n(6887),o=n(7145);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},8787:function(t,e,n){"use strict";var r=n(6887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:function(t,e,n){"use strict";var r=n(6887),o=n(6499).left,i=n(4194),a=n(3385),s=n(6049);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1490:function(t,e,n){"use strict";var r=n(6887),o=n(1052),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},186:function(t,e,n){"use strict";var r=n(6887),o=n(941),i=n(1052),a=n(9413),s=n(3057),u=n(4529),c=n(5449),l=n(9813),p=n(568)("slice"),f=l("species"),h=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,l,p=u(this),v=s(p.length),y=a(t,v),g=a(void 0===e?v:e,v);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(p,y,g);for(r=new(void 0===n?Array:n)(d(g-y,0)),l=0;y<g;y++,l++)y in p&&c(r,l,p[y]);return r.length=l,r}})},6026:function(t,e,n){"use strict";var r=n(6887),o=n(3610).some;r({target:"Array",proto:!0,forced:!n(4194)("some")},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4115:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(9678),a=n(3057),s=n(5803),u=n(5981),c=n(1388),l=n(4194),p=n(4342),f=n(7797),h=n(3385),d=n(8938),v=[],y=v.sort,g=u((function(){v.sort(void 0)})),m=u((function(){v.sort(null)})),b=l("sort"),_=!u((function(){if(h)return h<70;if(!(p&&p>3)){if(f)return!0;if(d)return d<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:g||!m||!b||!_},{sort:function(t){void 0!==t&&o(t);var e=i(this);if(_)return void 0===t?y.call(e):y.call(e,t);var n,r,u=[],l=a(e.length);for(r=0;r<l;r++)r in e&&u.push(e[r]);for(n=(u=c(u,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:s(e)>s(n)?1:-1}}(t))).length,r=0;r<n;)e[r]=u[r++];for(;r<l;)delete e[r++];return e}})},8611:function(t,e,n){"use strict";var r=n(6887),o=n(9413),i=n(8459),a=n(3057),s=n(9678),u=n(4692),c=n(5449),l=n(568)("splice"),p=Math.max,f=Math.min,h=9007199254740991,d="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,l,v,y,g,m=s(this),b=a(m.length),_=o(t,b),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=b-_):(n=E-2,r=f(p(i(e),0),b-_)),b+n-r>h)throw TypeError(d);for(l=u(m,r),v=0;v<r;v++)(y=_+v)in m&&c(l,v,m[y]);if(l.length=r,n<r){for(v=_;v<b-r;v++)g=v+n,(y=v+r)in m?m[g]=m[y]:delete m[g];for(v=b;v>b-r+n;v--)delete m[v-1]}else if(n>r)for(v=b-r;v>_;v--)g=v+n-1,(y=v+r-1)in m?m[g]=m[y]:delete m[g];for(v=0;v<n;v++)m[v+_]=arguments[v+2];return m.length=b-r+n,l}})},1107:function(t,e,n){n(8479)("flat")},5160:function(t,e,n){n(6887)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},3381:function(t,e,n){n(6887)({target:"Function",proto:!0},{bind:n(8308)})},2619:function(t,e,n){var r=n(6887),o=n(626),i=n(5981),a=o("JSON","stringify"),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,l=function(t,e,n){var r=n.charAt(e-1),o=n.charAt(e+1);return u.test(t)&&!c.test(o)||c.test(t)&&!u.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},p=i((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:p},{stringify:function(t,e,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,l):r}})},9120:function(t,e,n){var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:function(){},9221:function(t,e,n){var r=n(6887),o=n(4420);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},3882:function(t,e,n){n(6887)({target:"Object",stat:!0,sham:!n(5746)},{create:n(9290)})},4979:function(t,e,n){var r=n(6887),o=n(5746);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(9938)})},6450:function(t,e,n){var r=n(6887),o=n(5746);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(5988).f})},1078:function(t,e,n){var r=n(6887),o=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},6924:function(t,e,n){var r=n(6887),o=n(5981),i=n(4529),a=n(9677).f,s=n(5746),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},8482:function(t,e,n){var r=n(6887),o=n(5746),i=n(1136),a=n(4529),s=n(9677),u=n(5449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,c=i(r),l={},p=0;c.length>p;)void 0!==(n=o(r,e=c[p++]))&&u(l,e,n);return l}})},9816:function(t,e,n){var r=n(6887),o=n(5981),i=n(684).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},1724:function(t,e,n){var r=n(6887),o=n(9678),i=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5967:function(){},6614:function(t,e,n){var r=n(6887),o=n(8810).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},9718:function(t,e,n){var r=n(6887),o=n(1942);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},4038:function(t,e,n){var r=n(6887),o=n(9806);r({global:!0,forced:parseInt!=o},{parseInt:o})},4560:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(9520),a=n(2),s=n(3091);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,u=n.reject,c=a((function(){var n=o(e.resolve),i=[],a=0,u=1;s(t,(function(t){var o=a++,s=!1;i.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--u||r(i))}),(function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--u||r(i))}))})),--u||r(i)}));return c.error&&u(c.value),n.promise}})},7206:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(626),a=n(9520),s=n(2),u=n(3091),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,p=s((function(){var n=o(e.resolve),a=[],s=0,p=1,f=!1;u(t,(function(t){var o=s++,u=!1;a.push(void 0),p++,n.call(e,t).then((function(t){u||f||(f=!0,r(t))}),(function(t){u||f||(u=!0,a[o]=t,--p||l(new(i("AggregateError"))(a,c)))}))})),--p||l(new(i("AggregateError"))(a,c))}));return p.error&&l(p.value),n.promise}})},4349:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(9297),a=n(5981),s=n(626),u=n(487),c=n(6584),l=n(9754);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),!o&&"function"==typeof i){var p=s("Promise").prototype.finally;i.prototype.finally!==p&&l(i.prototype,"finally",p,{unsafe:!0})}},8881:function(t,e,n){"use strict";var r,o,i,a,s=n(6887),u=n(2529),c=n(1899),l=n(626),p=n(9297),f=n(9754),h=n(7524),d=n(8929),v=n(904),y=n(4431),g=n(941),m=n(3916),b=n(5743),_=n(1302),E=n(3091),x=n(1385),w=n(487),D=n(2941).set,T=n(6132),A=n(6584),C=n(4845),S=n(9520),k=n(2),O=n(5402),I=n(7252),F=n(9813),N=n(3321),R=n(6049),j=n(3385),P=F("species"),L="Promise",B=O.get,U=O.set,M=O.getterFor(L),z=p&&p.prototype,$=p,H=z,q=c.TypeError,V=c.document,W=c.process,G=S.f,Y=G,K=!!(V&&V.createEvent&&c.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",Z=!1,X=I(L,(function(){var t=_($),e=t!==String($);if(!e&&66===j)return!0;if(u&&!H.finally)return!0;if(j>=51&&/native code/.test(t))return!1;var n=new $((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[P]=r,!(Z=n.then((function(){}))instanceof r)||!e&&N&&!J})),tt=X||!x((function(t){$.all(t).catch((function(){}))})),et=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},nt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;T((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,s,u,c=n[i++],l=o?c.ok:c.fail,p=c.resolve,f=c.reject,h=c.domain;try{l?(o||(2===t.rejection&&at(t),t.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),u=!0)),a===c.promise?f(q("Promise-chain cycle")):(s=et(a))?s.call(a,p,f):p(a)):f(r)}catch(t){h&&!u&&h.exit(),f(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},rt=function(t,e,n){var r,o;K?((r=V.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=c["on"+t])?o(r):t===Q&&C("Unhandled promise rejection",n)},ot=function(t){D.call(c,(function(){var e,n=t.facade,r=t.value;if(it(t)&&(e=k((function(){R?W.emit("unhandledRejection",r,n):rt(Q,n,r)})),t.rejection=R||it(t)?2:1,e.error))throw e.value}))},it=function(t){return 1!==t.rejection&&!t.parent},at=function(t){D.call(c,(function(){var e=t.facade;R?W.emit("rejectionHandled",e):rt("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,nt(t,!0))},ct=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw q("Promise can't be resolved itself");var r=et(e);r?T((function(){var n={done:!1};try{r.call(e,st(ct,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,nt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(X&&(H=($=function(t){b(this,$,L),m(t),r.call(this);var e=B(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H,{then:function(t,e){var n=M(this),r=G(w(this,$));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&nt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=B(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},S.f=G=function(t){return t===$||t===i?new o(t):Y(t)},!u&&"function"==typeof p&&z!==Object.prototype)){a=z.then,Z||(f(z,"then",(function(t,e){var n=this;return new $((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),f(z,"catch",H.catch,{unsafe:!0}));try{delete z.constructor}catch(t){}d&&d(z,H)}s({global:!0,wrap:!0,forced:X},{Promise:$}),v($,L,!1,!0),y(L),i=l(L),s({target:L,stat:!0,forced:X},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),s({target:L,stat:!0,forced:u||X},{resolve:function(t){return A(u&&this===i?$:this,t)}}),s({target:L,stat:!0,forced:tt},{all:function(t){var e=this,n=G(e),r=n.resolve,o=n.reject,i=k((function(){var n=m(e.resolve),i=[],a=0,s=1;E(t,(function(t){var u=a++,c=!1;i.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,i[u]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=G(e),r=n.reject,o=k((function(){var o=m(e.resolve);E(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},1502:function(){},9008:function(t,e,n){"use strict";var r=n(4683),o=n(5616);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},1035:function(t,e,n){"use strict";var r=n(6887),o=n(344),i=n(8219),a=n(5803);r({target:"String",proto:!0,forced:!n(7772)("includes")},{includes:function(t){return!!~a(i(this)).indexOf(a(o(t)),arguments.length>1?arguments[1]:void 0)}})},7971:function(t,e,n){"use strict";var r=n(4620).charAt,o=n(5803),i=n(5402),a=n(7771),s="String Iterator",u=i.set,c=i.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:o(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},2651:function(t,e,n){"use strict";var r=n(6887),o=n(4853).end,i=n(3093)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},350:function(t,e,n){"use strict";var r=n(6887),o=n(4853).start,i=n(3093)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},7398:function(t,e,n){"use strict";var r=n(6887),o=n(4853).trim;r({target:"String",proto:!0,forced:n(3093)("trim")},{trim:function(){return o(this)}})},8555:function(t,e,n){n(6349)("asyncIterator")},2615:function(){},1732:function(t,e,n){n(6349)("hasInstance")},5903:function(t,e,n){n(6349)("isConcatSpreadable")},1825:function(t,e,n){n(6349)("iterator")},5824:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(626),a=n(2529),s=n(5746),u=n(2497),c=n(5981),l=n(7457),p=n(1052),f=n(941),h=n(6664),d=n(6059),v=n(9678),y=n(4529),g=n(3894),m=n(5803),b=n(1887),_=n(9290),E=n(4771),x=n(946),w=n(684),D=n(7857),T=n(9677),A=n(5988),C=n(6760),S=n(2029),k=n(9754),O=n(8726),I=n(4262),F=n(7748),N=n(9418),R=n(9813),j=n(1477),P=n(6349),L=n(904),B=n(5402),U=n(3610).forEach,M=I("hidden"),z="Symbol",$=R("toPrimitive"),H=B.set,q=B.getterFor(z),V=Object.prototype,W=o.Symbol,G=i("JSON","stringify"),Y=T.f,K=A.f,J=w.f,Q=C.f,Z=O("symbols"),X=O("op-symbols"),tt=O("string-to-symbol-registry"),et=O("symbol-to-string-registry"),nt=O("wks"),rt=o.QObject,ot=!rt||!rt.prototype||!rt.prototype.findChild,it=s&&c((function(){return 7!=_(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(V,e);r&&delete V[e],K(t,e,n),r&&t!==V&&K(V,e,r)}:K,at=function(t,e){var n=Z[t]=_(W.prototype);return H(n,{type:z,tag:t,description:e}),s||(n.description=e),n},st=function(t,e,n){t===V&&st(X,e,n),d(t);var r=g(e);return d(n),l(Z,r)?(n.enumerable?(l(t,M)&&t[M][r]&&(t[M][r]=!1),n=_(n,{enumerable:b(0,!1)})):(l(t,M)||K(t,M,b(1,{})),t[M][r]=!0),it(t,r,n)):K(t,r,n)},ut=function(t,e){d(t);var n=y(e),r=E(n).concat(ft(n));return U(r,(function(e){s&&!ct.call(n,e)||st(t,e,n[e])})),t},ct=function(t){var e=g(t),n=Q.call(this,e);return!(this===V&&l(Z,e)&&!l(X,e))&&(!(n||!l(this,e)||!l(Z,e)||l(this,M)&&this[M][e])||n)},lt=function(t,e){var n=y(t),r=g(e);if(n!==V||!l(Z,r)||l(X,r)){var o=Y(n,r);return!o||!l(Z,r)||l(n,M)&&n[M][r]||(o.enumerable=!0),o}},pt=function(t){var e=J(y(t)),n=[];return U(e,(function(t){l(Z,t)||l(F,t)||n.push(t)})),n},ft=function(t){var e=t===V,n=J(e?X:y(t)),r=[];return U(n,(function(t){!l(Z,t)||e&&!l(V,t)||r.push(Z[t])})),r};u||(k((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=N(t),n=function(t){this===V&&n.call(X,t),l(this,M)&&l(this[M],e)&&(this[M][e]=!1),it(this,e,b(1,t))};return s&&ot&&it(V,e,{configurable:!0,set:n}),at(e,t)}).prototype,"toString",(function(){return q(this).tag})),k(W,"withoutSetter",(function(t){return at(N(t),t)})),C.f=ct,A.f=st,T.f=lt,x.f=w.f=pt,D.f=ft,j.f=function(t){return at(R(t),t)},s&&(K(W.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||k(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(nt),(function(t){P(t)})),r({target:z,stat:!0,forced:!u},{for:function(t){var e=m(t);if(l(tt,e))return tt[e];var n=W(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!h(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?_(t):ut(_(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:ft}),r({target:"Object",stat:!0,forced:c((function(){D.f(1)}))},{getOwnPropertySymbols:function(t){return D.f(v(t))}}),G&&r({target:"JSON",stat:!0,forced:!u||c((function(){var t=W();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(f(e)||void 0!==t)&&!h(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!h(e))return e}),o[1]=e,G.apply(null,o)}}),W.prototype[$]||S(W.prototype,$,W.prototype.valueOf),L(W,z),F[M]=!0},5915:function(t,e,n){n(6349)("matchAll")},8394:function(t,e,n){n(6349)("match")},1766:function(t,e,n){n(6349)("replace")},9791:function(t,e,n){n(6349)("search")},9911:function(t,e,n){n(6349)("species")},4315:function(t,e,n){n(6349)("split")},3131:function(t,e,n){n(6349)("toPrimitive")},4714:function(t,e,n){n(6349)("toStringTag")},659:function(t,e,n){n(6349)("unscopables")},7634:function(t,e,n){n(6274);var r=n(3281),o=n(1899),i=n(9697),a=n(2029),s=n(2077),u=n(9813)("toStringTag");for(var c in r){var l=o[c],p=l&&l.prototype;p&&i(p)!==u&&a(p,u,c),s[c]=s.Array}},1249:function(t,e,n){var r=n(6887),o=n(1899),i=n(2861),a=[].slice,s=function(t){return function(e,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},7698:function(t,e,n){var r=n(4493);t.exports=r},3363:function(t,e,n){var r=n(4034);t.exports=r},9216:function(t,e,n){var r=n(9324);t.exports=r},7784:function(t,e,n){var r=n(1103);t.exports=r},8196:function(t,e,n){var r=n(6246);t.exports=r},8065:function(t,e,n){var r=n(6043);t.exports=r},9455:function(t,e,n){var r=n(3160);t.exports=r},9743:function(t,e,n){var r=n(446);t.exports=r},1955:function(t,e,n){var r=n(2480);t.exports=r},6064:function(t,e,n){var r=n(7147);t.exports=r},1577:function(t,e,n){var r=n(2236);t.exports=r},4913:function(t,e,n){var r=n(8098);t.exports=r},6279:function(t,e,n){n(7634);var r=n(9216),o=n(9697),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||a.hasOwnProperty(o(t))?r:e}},3778:function(t,e,n){var r=n(8557);t.exports=r},9373:function(t,e,n){var r=n(4570);t.exports=r},1022:function(t,e,n){var r=n(7564);t.exports=r},1798:function(t,e,n){var r=n(8287);t.exports=r},2527:function(t,e,n){var r=n(8025);t.exports=r},8427:function(t,e,n){var r=n(1060);t.exports=r},2073:function(t,e,n){var r=n(9601);t.exports=r},5286:function(t,e,n){var r=n(8299);t.exports=r},2856:function(t,e,n){var r=n(9355);t.exports=r},2348:function(t,e,n){var r=n(8339);t.exports=r},5799:function(t,e,n){var r=n(1495);t.exports=r},353:function(t,e,n){var r=n(5371);t.exports=r},6361:function(t,e,n){var r=n(2774);t.exports=r},8933:function(t,e,n){var r=n(4426);t.exports=r},3383:function(t,e,n){var r=n(5999);t.exports=r},4471:function(t,e,n){var r=n(5254);t.exports=r},7396:function(t,e,n){var r=n(7702);t.exports=r},1910:function(t,e,n){var r=n(8171);t.exports=r},6209:function(t,e,n){var r=n(3081);t.exports=r},9427:function(t,e,n){var r=n(286);t.exports=r},2857:function(t,e,n){var r=n(2766);t.exports=r},4477:function(t,e,n){var r=n(3288);t.exports=r},9534:function(t,e,n){var r=n(498);t.exports=r},3059:function(t,e,n){var r=n(8494);t.exports=r},7795:function(t,e,n){var r=n(8430);t.exports=r},6877:function(t,e,n){var r=n(7579);t.exports=r},4888:function(t,e,n){var r=n(8524);t.exports=r},7460:function(t,e,n){var r=n(2956);n(7634),t.exports=r},3474:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setInterval},7989:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setTimeout},5519:function(t,e,n){var r=n(6998);n(7634),t.exports=r},2547:function(t,e,n){var r=n(7473);n(7634),t.exports=r},6509:function(t,e,n){var r=n(4227);n(7634),t.exports=r},4289:function(t,e,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,n,r){var o;(!(e in t)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},i=r(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)c(t,i[s],e[i[s]],n[i[s]])};l.supportsDescriptors=!!u,t.exports=l},4445:function(t){t.exports=r,r.default=r,r.stable=a,r.stableStringify=a;var e=[],n=[];function r(t,r,i){var a;for(o(t,"",[],void 0),a=0===n.length?JSON.stringify(t,r,i):JSON.stringify(t,u(r),i);0!==e.length;){var s=e.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}return a}function o(t,r,i,a){var s;if("object"==typeof t&&null!==t){for(s=0;s<i.length;s++)if(i[s]===t){var u=Object.getOwnPropertyDescriptor(a,r);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,r,{value:"[Circular]"}),e.push([a,r,t,u])):n.push([t,r]):(a[r]="[Circular]",e.push([a,r,t])))}if(i.push(t),Array.isArray(t))for(s=0;s<t.length;s++)o(t[s],s,i,t);else{var c=Object.keys(t);for(s=0;s<c.length;s++){var l=c[s];o(t[l],l,i,t)}}i.pop()}}function i(t,e){return t<e?-1:t>e?1:0}function a(t,r,o){var i,a=s(t,"",[],void 0)||t;for(i=0===n.length?JSON.stringify(a,r,o):JSON.stringify(a,u(r),o);0!==e.length;){var c=e.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return i}function s(t,r,o,a){var u;if("object"==typeof t&&null!==t){for(u=0;u<o.length;u++)if(o[u]===t){var c=Object.getOwnPropertyDescriptor(a,r);return void(void 0!==c.get?c.configurable?(Object.defineProperty(a,r,{value:"[Circular]"}),e.push([a,r,t,c])):n.push([t,r]):(a[r]="[Circular]",e.push([a,r,t])))}if("function"==typeof t.toJSON)return;if(o.push(t),Array.isArray(t))for(u=0;u<t.length;u++)s(t[u],u,o,t);else{var l={},p=Object.keys(t).sort(i);for(u=0;u<p.length;u++){var f=p[u];s(t[f],f,o,t),l[f]=t[f]}if(void 0===a)return l;e.push([a,r,t]),a[r]=l}o.pop()}}function u(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r="[Circular]",n.splice(o,1);break}}return t.call(this,e,r)}}},7648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var a,s=n.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(n.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],p=0;p<c;p++)l.push("$"+p);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},8612:function(t,e,n){"use strict";var r=n(7648);t.exports=Function.prototype.bind||r},210:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,p=n(1405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:f(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return v[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(8612),b=n(7642),_=m.call(Function.call,Array.prototype.concat),E=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),w=m.call(Function.call,String.prototype.slice),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,A=function(t){var e=w(t,0,1),n=w(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return x(t,D,(function(t,e,n,o){r[r.length]=n?x(o,T,"$1"):e||t})),r},C=function(t,e){var n,r=t;if(b(g,r)&&(r="%"+(n=g[r])[0]+"%"),b(v,r)){var i=v[r];if(i===h&&(i=y(r)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var n=A(t),r=n.length>0?n[0]:"",i=C("%"+r+"%",e),s=i.name,c=i.value,l=!1,p=i.alias;p&&(r=p[0],E(n,_([0,1],p)));for(var f=1,h=!0;f<n.length;f+=1){var d=n[f],y=w(d,0,1),g=w(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(l=!0),b(v,s="%"+(r+="."+d)+"%"))c=v[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=n.length){var m=u(c,d);c=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[d]}else h=b(c,d),c=c[d];h&&!l&&(v[s]=c)}}return c}},1221:function(t){"use strict";"undefined"!=typeof self?t.exports=self:"undefined"!=typeof window?t.exports=window:t.exports=Function("return this")()},2503:function(t,e,n){"use strict";var r=n(4289),o=n(1221),i=n(2168),a=n(9471),s=i(),u=function(){return s};r(u,{getPolyfill:i,implementation:o,shim:a}),t.exports=u},2168:function(t,e,n){"use strict";var r=n(1221);t.exports=function(){return"object"==typeof n.g&&n.g&&n.g.Math===Math&&n.g.Array===Array?n.g:r}},9471:function(t,e,n){"use strict";var r=n(4289),o=n(2168);t.exports=function(){var t=o();if(r.supportsDescriptors){var e=Object.getOwnPropertyDescriptor(t,"globalThis");(!e||e.configurable&&(e.enumerable||e.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!1})}else"object"==typeof globalThis&&globalThis===t||(t.globalThis=t);return t}},1405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:function(t,e,n){"use strict";var r=n(8612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},679:function(t){t.exports=function(t){var e={},n=[];(t=t||this).on=function(n,r,o){return(e[n]=e[n]||[]).push([r,o]),t},t.off=function(r,o){r||(e={});for(var i=e[r]||n,a=i.length=o?i.length:0;a--;)o==i[a][0]&&i.splice(a,1);return t},t.emit=function(r){for(var o,i=e[r]||n,a=i.length>0?i.slice(0,i.length):i,s=0;o=a[s++];)o[0].apply(o[1],n.slice.call(arguments,1));return t}}},631:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x=Object.prototype.propertyIsEnumerable,w=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),D=n(4654).custom,T=D&&O(D)?D:null,A="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function S(t){return String(t).replace(/"/g,"&quot;")}function k(t){return!("[object Array]"!==N(t)||A&&"object"==typeof t&&A in t)}function O(t){if(E)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return j(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var v=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=v&&v>0&&"object"==typeof e)return k(e)?"[Array]":"[Object]";var b,x=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(s,r);if(void 0===o)o=[];else if(R(o,e)>=0)return"[Circular]";function D(e,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e){var I=function(t){if(t.name)return t.name;var e=g.call(y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),P=z(e,D);return"[Function"+(I?": "+I:" (anonymous)")+"]"+(P.length>0?" { "+P.join(", ")+" }":"")}if(O(e)){var $=E?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(e);return"object"!=typeof e||E?$:L($)}if((b=e)&&"object"==typeof b&&("undefined"!=typeof HTMLElement&&b instanceof HTMLElement||"string"==typeof b.nodeName&&"function"==typeof b.getAttribute)){for(var H="<"+String(e.nodeName).toLowerCase(),q=e.attributes||[],V=0;V<q.length;V++)H+=" "+q[V].name+"="+C(S(q[V].value),"double",s);return H+=">",e.childNodes&&e.childNodes.length&&(H+="..."),H+"</"+String(e.nodeName).toLowerCase()+">"}if(k(e)){if(0===e.length)return"[]";var W=z(e,D);return x&&!function(t){for(var e=0;e<t.length;e++)if(R(t[e],"\n")>=0)return!1;return!0}(W)?"["+M(W,x)+"]":"[ "+W.join(", ")+" ]"}if(function(t){return!("[object Error]"!==N(t)||A&&"object"==typeof t&&A in t)}(e)){var G=z(e,D);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(T&&"function"==typeof e[T])return e[T]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var Y=[];return a.call(e,(function(t,n){Y.push(D(n,e,!0)+" => "+D(t,e))})),U("Map",i.call(e),Y,x)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var K=[];return l.call(e,(function(t){K.push(D(t,e))})),U("Set",c.call(e),K,x)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return B("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return B("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return B("WeakRef");if(function(t){return!("[object Number]"!==N(t)||A&&"object"==typeof t&&A in t)}(e))return L(D(Number(e)));if(function(t){if(!t||"object"!=typeof t||!m)return!1;try{return m.call(t),!0}catch(t){}return!1}(e))return L(D(m.call(e)));if(function(t){return!("[object Boolean]"!==N(t)||A&&"object"==typeof t&&A in t)}(e))return L(d.call(e));if(function(t){return!("[object String]"!==N(t)||A&&"object"==typeof t&&A in t)}(e))return L(D(String(e)));if(!function(t){return!("[object Date]"!==N(t)||A&&"object"==typeof t&&A in t)}(e)&&!function(t){return!("[object RegExp]"!==N(t)||A&&"object"==typeof t&&A in t)}(e)){var J=z(e,D),Q=w?w(e)===Object.prototype:e instanceof Object||e.constructor===Object,Z=e instanceof Object?"":"null prototype",X=!Q&&A&&Object(e)===e&&A in e?N(e).slice(8,-1):Z?"Object":"",tt=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||Z?"["+[].concat(X||[],Z||[]).join(": ")+"] ":"");return 0===J.length?tt+"{}":x?tt+"{"+M(J,x)+"}":tt+"{ "+J.join(", ")+" }"}return String(e)};var I=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return I.call(t,e)}function N(t){return v.call(t)}function R(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function j(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return j(t.slice(0,e.maxStringLength),e)+r}return C(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,P),"single",e)}function P(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function L(t){return"Object("+t+")"}function B(t){return t+" { ? }"}function U(t,e,n,r){return t+" ("+e+") {"+(r?M(n,r):n.join(", "))+"}"}function M(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function z(t,e){var n=k(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=F(t,o)?e(t[o],t):""}var i,a="function"==typeof b?b(t):[];if(E){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)F(t,u)&&(n&&String(Number(u))===u&&u<t.length||E&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?r.push(e(u,t)+": "+e(t[u],t)):r.push(u+": "+e(t[u],t))));if("function"==typeof b)for(var c=0;c<a.length;c++)x.call(t,a[c])&&r.push("["+e(a[c])+"]: "+e(t[a[c]],t));return r}},8987:function(t,e,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),r=a(t),s=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&t.length>0&&!o.call(t,0))for(var v=0;v<t.length;++v)f.push(String(v));if(r&&t.length>0)for(var y=0;y<t.length;++y)f.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||f.push(String(g));if(u)for(var m=function(t){if("undefined"==typeof window||!h)return p(t);try{return p(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)m&&"constructor"===l[b]||!o.call(t,l[b])||f.push(l[b]);return f}}t.exports=r},2215:function(t,e,n){"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(t){return i(t)}:n(8987),s=Object.keys;a.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return o(t)?s(r.call(t)):s(t)}):Object.keys=a,Object.keys||a},t.exports=a},1414:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},5798:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},129:function(t,e,n){"use strict";var r=n(8261),o=n(5235),i=n(5798);t.exports={formats:i,parse:o,stringify:r}},5235:function(t,e,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:u(e,n),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?d="utf-8":"utf8=%26%2310003%3B"===f[n]&&(d="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var v,y,g=f[n],m=g.indexOf("]="),b=-1===m?g.indexOf("="):m+1;-1===b?(v=e.decoder(g,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(g.slice(0,b),a.decoder,d,"key"),y=r.maybeMap(u(g.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,v)?c[v]=r.combine(c[v],y):c[v]=y}return c}(t,n):t,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),h=0;h<f.length;++h){var d=f[h],v=c(d,l[d],n,"string"==typeof t);p=r.merge(p,v,n)}return!0===n.allowSparse?p:r.compact(p)}},8261:function(t,e,n){"use strict";var r=n(7478),o=n(2769),i=n(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,a,s,c,p,f,d,v,y,g,m,b,_){var E,x=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof p?x=p(n,x):x instanceof Date?x=v(x):"comma"===i&&u(x)&&(x=o.maybeMap(x,(function(t){return t instanceof Date?v(t):t}))),null===x){if(a)return c&&!m?c(n,h.encoder,b,"key",y):n;x=""}if("string"==typeof(E=x)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(x))return c?[g(m?n:c(n,h.encoder,b,"key",y))+"="+g(c(x,h.encoder,b,"value",y))]:[g(n)+"="+g(String(x))];var w,D=[];if(void 0===x)return D;if("comma"===i&&u(x))w=[{value:x.length>0?x.join(",")||null:void 0}];else if(u(p))w=p;else{var T=Object.keys(x);w=f?T.sort(f):T}for(var A=0;A<w.length;++A){var C=w[A],S="object"==typeof C&&void 0!==C.value?C.value:x[C];if(!s||null!==S){var k=u(x)?"function"==typeof i?i(n,C):n:n+(d?"."+C:"["+C+"]");_.set(e,!0);var O=r();l(D,t(S,k,i,a,s,c,p,f,d,v,y,g,m,b,O))}}return D};t.exports=function(t,e){var n,o=t,c=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(n=c.filter);var p,f=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var v=s[p];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var y=r(),g=0;g<n.length;++g){var m=n[g];c.skipNulls&&null===o[m]||l(f,d(o[m],m,v,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var b=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2769:function(t,e,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=s(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return o.call(e,i)?e[i]=t(e[i],a,r):e[i]=a,e}),a)}}},7478:function(t,e,n){"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(u){if(e)return f(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),l(t,r,o)):u?(e||(e=new u),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},1839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.Symbol;if("function"==typeof n)if(n.observable)e=n.observable;else{e=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch(t){}}else e="@@observable";return e}},868:function(t,e,n){t.exports=n(1839)},3813:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NO_IL=e.NO=e.MemoryStream=e.Stream=void 0;var i=n(868),a=n(2503),s=i.default(a.getPolyfill()),u={};function c(){}function l(t){for(var e=t.length,n=Array(e),r=0;r<e;++r)n[r]=t[r];return n}function p(t,e,n){try{return t.f(e)}catch(t){return n._e(t),u}}e.NO=u;var f={_n:c,_e:c,_c:c};function h(t){t._start=function(t){t.next=t._n,t.error=t._e,t.complete=t._c,this.start(t)},t._stop=t.stop}e.NO_IL=f;var d=function(){function t(t,e){this._stream=t,this._listener=e}return t.prototype.unsubscribe=function(){this._stream._remove(this._listener)},t}(),v=function(){function t(t){this._listener=t}return t.prototype.next=function(t){this._listener._n(t)},t.prototype.error=function(t){this._listener._e(t)},t.prototype.complete=function(){this._listener._c()},t}(),y=function(){function t(t){this.type="fromObservable",this.ins=t,this.active=!1}return t.prototype._start=function(t){this.out=t,this.active=!0,this._sub=this.ins.subscribe(new v(t)),this.active||this._sub.unsubscribe()},t.prototype._stop=function(){this._sub&&this._sub.unsubscribe(),this.active=!1},t}(),g=function(){function t(t){this.type="merge",this.insArr=t,this.out=u,this.ac=0}return t.prototype._start=function(t){this.out=t;var e=this.insArr,n=e.length;this.ac=n;for(var r=0;r<n;r++)e[r]._add(this)},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=0;n<e;n++)t[n]._remove(this);this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){if(--this.ac<=0){var t=this.out;if(t===u)return;t._c()}},t}(),m=function(){function t(t,e,n){this.i=t,this.out=e,this.p=n,n.ils.push(this)}return t.prototype._n=function(t){var e=this.p,n=this.out;if(n!==u&&e.up(t,this.i)){var r=l(e.vals);n._n(r)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.p;t.out!==u&&0==--t.Nc&&t.out._c()},t}(),b=function(){function t(t){this.type="combine",this.insArr=t,this.out=u,this.ils=[],this.Nc=this.Nn=0,this.vals=[]}return t.prototype.up=function(t,e){var n=this.vals[e],r=this.Nn?n===u?--this.Nn:this.Nn:0;return this.vals[e]=t,0===r},t.prototype._start=function(t){this.out=t;var e=this.insArr,n=this.Nc=this.Nn=e.length,r=this.vals=new Array(n);if(0===n)t._n([]),t._c();else for(var o=0;o<n;o++)r[o]=u,e[o]._add(new m(o,t,this))},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=this.ils,r=0;r<e;r++)t[r]._remove(n[r]);this.out=u,this.ils=[],this.vals=[]},t}(),_=function(){function t(t){this.type="fromArray",this.a=t}return t.prototype._start=function(t){for(var e=this.a,n=0,r=e.length;n<r;n++)t._n(e[n]);t._c()},t.prototype._stop=function(){},t}(),E=function(){function t(t){this.type="fromPromise",this.on=!1,this.p=t}return t.prototype._start=function(t){var e=this;this.on=!0,this.p.then((function(n){e.on&&(t._n(n),t._c())}),(function(e){t._e(e)})).then(c,(function(t){setTimeout((function(){throw t}))}))},t.prototype._stop=function(){this.on=!1},t}(),x=function(){function t(t){this.type="periodic",this.period=t,this.intervalID=-1,this.i=0}return t.prototype._start=function(t){var e=this;this.intervalID=setInterval((function(){t._n(e.i++)}),this.period)},t.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID),this.intervalID=-1,this.i=0},t}(),w=function(){function t(t,e){this.type="debug",this.ins=t,this.out=u,this.s=c,this.l="","string"==typeof e?this.l=e:"function"==typeof e&&(this.s=e)}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=this.s,r=this.l;if(n!==c)try{n(t)}catch(t){e._e(t)}else r?console.log(r+":",t):console.log(t);e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),D=function(){function t(t,e){this.type="drop",this.ins=e,this.out=u,this.max=t,this.dropped=0}return t.prototype._start=function(t){this.out=t,this.dropped=0,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&this.dropped++>=this.max&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),T=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(){this.op.end()},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.end()},t}(),A=function(){function t(t,e){this.type="endWhen",this.ins=e,this.out=u,this.o=t,this.oil=f}return t.prototype._start=function(t){this.out=t,this.o._add(this.oil=new T(t,this)),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=u,this.oil=f},t.prototype.end=function(){var t=this.out;t!==u&&t._c()},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){this.end()},t}(),C=function(){function t(t,e){this.type="filter",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&n&&e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),S=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(t){this.out._n(t)},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.inner=u,this.op.less()},t}(),k=function(){function t(t){this.type="flatten",this.ins=t,this.out=u,this.open=!0,this.inner=u,this.il=f}return t.prototype._start=function(t){this.out=t,this.open=!0,this.inner=u,this.il=f,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.inner!==u&&this.inner._remove(this.il),this.out=u,this.open=!0,this.inner=u,this.il=f},t.prototype.less=function(){var t=this.out;t!==u&&(this.open||this.inner!==u||t._c())},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=this.inner,r=this.il;n!==u&&r!==f&&n._remove(r),(this.inner=t)._add(this.il=new S(e,this))}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){this.open=!1,this.less()},t}(),O=function(){function t(t,e,n){var r=this;this.type="fold",this.ins=n,this.out=u,this.f=function(e){return t(r.acc,e)},this.acc=this.seed=e}return t.prototype._start=function(t){this.out=t,this.acc=this.seed,t._n(this.acc),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u,this.acc=this.seed},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&e._n(this.acc=n)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),I=function(){function t(t){this.type="last",this.ins=t,this.out=u,this.has=!1,this.val=u}return t.prototype._start=function(t){this.out=t,this.has=!1,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u,this.val=u},t.prototype._n=function(t){this.has=!0,this.val=t},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&(this.has?(t._n(this.val),t._c()):t._e(new Error("last() failed because input stream completed")))},t}(),F=function(){function t(t,e){this.type="map",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&e._n(n)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),N=function(){function t(t){this.type="remember",this.ins=t,this.out=u}return t.prototype._start=function(t){this.out=t,this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=u},t}(),R=function(){function t(t,e){this.type="replaceError",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;if(e!==u)try{this.ins._remove(this),(this.ins=this.f(t))._add(this)}catch(t){e._e(t)}},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),j=function(){function t(t,e){this.type="startWith",this.ins=t,this.out=u,this.val=e}return t.prototype._start=function(t){this.out=t,this.out._n(this.val),this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=u},t}(),P=function(){function t(t,e){this.type="take",this.ins=e,this.out=u,this.max=t,this.taken=0}return t.prototype._start=function(t){this.out=t,this.taken=0,this.max<=0?t._c():this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=++this.taken;n<this.max?e._n(t):n===this.max&&(e._n(t),e._c())}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),L=function(){function t(t){this._prod=t||u,this._ils=[],this._stopID=u,this._dl=u,this._d=!1,this._target=null,this._err=u}return t.prototype._n=function(t){var e=this._ils,n=e.length;if(this._d&&this._dl._n(t),1==n)e[0]._n(t);else{if(0==n)return;for(var r=l(e),o=0;o<n;o++)r[o]._n(t)}},t.prototype._e=function(t){if(this._err===u){this._err=t;var e=this._ils,n=e.length;if(this._x(),this._d&&this._dl._e(t),1==n)e[0]._e(t);else{if(0==n)return;for(var r=l(e),o=0;o<n;o++)r[o]._e(t)}if(!this._d&&0==n)throw this._err}},t.prototype._c=function(){var t=this._ils,e=t.length;if(this._x(),this._d&&this._dl._c(),1==e)t[0]._c();else{if(0==e)return;for(var n=l(t),r=0;r<e;r++)n[r]._c()}},t.prototype._x=function(){0!==this._ils.length&&(this._prod!==u&&this._prod._stop(),this._err=u,this._ils=[])},t.prototype._stopNow=function(){this._prod._stop(),this._err=u,this._stopID=u},t.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),!(n.length>1))if(this._stopID!==u)clearTimeout(this._stopID),this._stopID=u;else{var r=this._prod;r!==u&&r._start(this)}},t.prototype._remove=function(t){var e=this,n=this._target;if(n)return n._remove(t);var r=this._ils,o=r.indexOf(t);o>-1&&(r.splice(o,1),this._prod!==u&&r.length<=0?(this._err=u,this._stopID=setTimeout((function(){return e._stopNow()}))):1===r.length&&this._pruneCycles())},t.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},t.prototype._hasNoSinks=function(t,e){if(-1!==e.indexOf(t))return!0;if(t.out===this)return!0;if(t.out&&t.out!==u)return this._hasNoSinks(t.out,e.concat(t));if(t._ils){for(var n=0,r=t._ils.length;n<r;n++)if(!this._hasNoSinks(t._ils[n],e.concat(t)))return!1;return!0}return!1},t.prototype.ctor=function(){return this instanceof B?B:t},t.prototype.addListener=function(t){t._n=t.next||c,t._e=t.error||c,t._c=t.complete||c,this._add(t)},t.prototype.removeListener=function(t){this._remove(t)},t.prototype.subscribe=function(t){return this.addListener(t),new d(this,t)},t.prototype[s]=function(){return this},t.create=function(e){if(e){if("function"!=typeof e.start||"function"!=typeof e.stop)throw new Error("producer requires both start and stop functions");h(e)}return new t(e)},t.createWithMemory=function(t){return t&&h(t),new B(t)},t.never=function(){return new t({_start:c,_stop:c})},t.empty=function(){return new t({_start:function(t){t._c()},_stop:c})},t.throw=function(e){return new t({_start:function(t){t._e(e)},_stop:c})},t.from=function(e){if("function"==typeof e[s])return t.fromObservable(e);if("function"==typeof e.then)return t.fromPromise(e);if(Array.isArray(e))return t.fromArray(e);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable")},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.fromArray(e)},t.fromArray=function(e){return new t(new _(e))},t.fromPromise=function(e){return new t(new E(e))},t.fromObservable=function(e){if(void 0!==e.endWhen)return e;var n="function"==typeof e[s]?e[s]():e;return new t(new y(n))},t.periodic=function(e){return new t(new x(e))},t.prototype._map=function(t){return new(this.ctor())(new F(t,this))},t.prototype.map=function(t){return this._map(t)},t.prototype.mapTo=function(t){var e=this.map((function(){return t}));return e._prod.type="mapTo",e},t.prototype.filter=function(e){var n,r,o=this._prod;return new t(o instanceof C?new C((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new C(e,this))},t.prototype.take=function(t){return new(this.ctor())(new P(t,this))},t.prototype.drop=function(e){return new t(new D(e,this))},t.prototype.last=function(){return new t(new I(this))},t.prototype.startWith=function(t){return new B(new j(this,t))},t.prototype.endWhen=function(t){return new(this.ctor())(new A(t,this))},t.prototype.fold=function(t,e){return new B(new O(t,e,this))},t.prototype.replaceError=function(t){return new(this.ctor())(new R(t,this))},t.prototype.flatten=function(){return new t(new k(this))},t.prototype.compose=function(t){return t(this)},t.prototype.remember=function(){return new B(new N(this))},t.prototype.debug=function(t){return new(this.ctor())(new w(this,t))},t.prototype.imitate=function(t){if(t instanceof B)throw new Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=t;for(var e=this._ils,n=e.length,r=0;r<n;r++)t._add(e[r]);this._ils=[]},t.prototype.shamefullySendNext=function(t){this._n(t)},t.prototype.shamefullySendError=function(t){this._e(t)},t.prototype.shamefullySendComplete=function(){this._c()},t.prototype.setDebugListener=function(t){t?(this._d=!0,t._n=t.next||c,t._e=t.error||c,t._c=t.complete||c,this._dl=t):(this._d=!1,this._dl=u)},t.merge=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new g(e))},t.combine=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new b(e))},t}();e.Stream=L;var B=function(t){function e(e){var n=t.call(this,e)||this;return n._has=!1,n}return o(e,t),e.prototype._n=function(e){this._v=e,this._has=!0,t.prototype._n.call(this,e)},e.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),n.length>1)this._has&&t._n(this._v);else if(this._stopID!==u)this._has&&t._n(this._v),clearTimeout(this._stopID),this._stopID=u;else if(this._has)t._n(this._v);else{var r=this._prod;r!==u&&r._start(this)}},e.prototype._stopNow=function(){this._has=!1,t.prototype._stopNow.call(this)},e.prototype._x=function(){this._has=!1,t.prototype._x.call(this)},e.prototype.map=function(t){return this._map(t)},e.prototype.mapTo=function(e){return t.prototype.mapTo.call(this,e)},e.prototype.take=function(e){return t.prototype.take.call(this,e)},e.prototype.endWhen=function(e){return t.prototype.endWhen.call(this,e)},e.prototype.replaceError=function(e){return t.prototype.replaceError.call(this,e)},e.prototype.remember=function(){return this},e.prototype.debug=function(e){return t.prototype.debug.call(this,e)},e}(L);e.MemoryStream=B;var U=L;e.default=U},4654:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{AgentInfo:function(){return iu},AppFrame:function(){return Us},ChatFrame:function(){return ru},Conversation:function(){return Hc},Engine:function(){return qp},EntryContainer:function(){return sl},EventParticipant:function(){return vu},ExternalApi:function(){return Kp},Header:function(){return au},Icon:function(){return ha},Interrupt:function(){return ul},MessageContainer:function(){return _u},SeamlyApiContext:function(){return de},SeamlyEventBusContext:function(){return ve},SeamlyLiveRegionContext:function(){return Ci},StoreProvider:function(){return Lp},Text:function(){return Zu},ToggleButton:function(){return ou},View:function(){return cl},calculateVisibility:function(){return io},className:function(){return na},createReduxStore:function(){return je},default:function(){return Jp},eventTypes:function(){return $n},getSeamlyConfig:function(){return oo},getUrlParams:function(){return nn},getUrlSearchString:function(){return rn},randomId:function(){return li},seamlyActions:function(){return ir},useChoicePrompt:function(){return Du},useDispatch:function(){return Tn},useEvents:function(){return mn},useGeneratedId:function(){return pi},useI18n:function(){return Fo},useSeamlyChat:function(){return Hi},useSeamlyCommands:function(){return Ai},useSeamlyConfig:function(){return yn},useSeamlyEventStream:function(){return Xi},useSeamlyIdleDetachCountdown:function(){return Ji},useSeamlyMessageContainerClassNames:function(){return ho},useSeamlyOptions:function(){return Uo},useSeamlyVisibility:function(){return zi},useTranslatedEventData:function(){return Sa},useTranslations:function(){return Ca},useTranslationsContainer:function(){return ka},visibilityStates:function(){return Wn}}),n(2698);var t=n(1511),e=n.n(t),o=n(4103),i=n.n(o),a=n(6902),s=n.n(a),u=n(4310),c=n.n(u),l=n(4074),p=n.n(l),f=n(9649),h=n.n(f),d=n(368),v=n.n(d),y=n(3978),g=n.n(y),m=n(4341);function b(t,e,n){return e in t?m(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=n(2991),E=n.n(_),x=n(116),w=n.n(x),D=n(8914),T=n.n(D),A=n(455),C=n.n(A),S=n(7149),k=n.n(S),O=n(3263),I=n(5683),F=n(9356);function N(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=F(t);for(r=0;r<i.length;r++)n=i[r],I(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if(O){var i=O(t);for(r=0;r<i.length;r++)n=i[r],I(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var R,j,P,L,B,U,M,z=n(6295),$=n.n(z),H={},q=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function W(t,e){for(var n in e)t[n]=e[n];return t}function G(t){var e=t.parentNode;e&&e.removeChild(t)}function Y(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++P:o};return null!=j.vnode&&j.vnode(i),i}function K(t){return t.children}function J(t,e){this.props=t,this.context=e}function Q(t,e){if(null==e)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Q(t):null}function Z(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Z(t)}}function X(t){(!t.__d&&(t.__d=!0)&&L.push(t)&&!tt.__r++||U!==j.debounceRendering)&&((U=j.debounceRendering)||B)(tt)}function tt(){for(var t;tt.__r=L.length;)t=L.sort((function(t,e){return t.__v.__b-e.__v.__b})),L=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=W({},o)).__v=o.__v+1,ct(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Q(o):i,o.__h),lt(n,o),o.__e!=i&&Z(o)))}))}function et(t,e,n,r,o,i,a,s,u,c){var l,p,f,h,d,v,y,g=r&&r.__k||q,m=g.length;for(n.__k=[],l=0;l<e.length;l++)if(null!=(h=n.__k[l]=null==(h=e[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Y(null,h,null,null,h):Array.isArray(h)?Y(K,{children:h},null,null,null):h.__b>0?Y(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=g[l])||f&&h.key==f.key&&h.type===f.type)g[l]=void 0;else for(p=0;p<m;p++){if((f=g[p])&&h.key==f.key&&h.type===f.type){g[p]=void 0;break}f=null}ct(t,h,f=f||H,o,i,a,s,u,c),d=h.__e,(p=h.ref)&&f.ref!=p&&(y||(y=[]),f.ref&&y.push(f.ref,null,h),y.push(p,h.__c||d,h)),null!=d?(null==v&&(v=d),"function"==typeof h.type&&null!=h.__k&&h.__k===f.__k?h.__d=u=nt(h,u,t):u=ot(t,h,f,g,d,u),c||"option"!==n.type?"function"==typeof n.type&&(n.__d=u):t.value=""):u&&f.__e==u&&u.parentNode!=t&&(u=Q(f))}for(n.__e=v,l=m;l--;)null!=g[l]&&("function"==typeof n.type&&null!=g[l].__e&&g[l].__e==n.__d&&(n.__d=Q(r,l+1)),ht(g[l],g[l]));if(y)for(l=0;l<y.length;l++)ft(y[l],y[++l],y[++l])}function nt(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?nt(o,e,n):ot(n,o,o,t.__k,o.__e,e));return e}function rt(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){rt(t,e)})):e.push(t)),e}function ot(t,e,n,r,o,i){var a,s,u;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function it(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||V.test(e)?n:n+"px"}function at(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||it(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||it(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?ut:st,i):t.removeEventListener(e,i?ut:st,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function st(t){this.l[t.type+!1](j.event?j.event(t):t)}function ut(t){this.l[t.type+!0](j.event?j.event(t):t)}function ct(t,e,n,r,o,i,a,s,u){var c,l,p,f,h,d,v,y,g,m,b,_=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(u=n.__h,s=e.__e=n.__e,e.__h=null,i=[s]),(c=j.__b)&&c(e);try{t:if("function"==typeof _){if(y=e.props,g=(c=_.contextType)&&r[c.__c],m=c?g?g.props.value:c.__:r,n.__c?v=(l=e.__c=n.__c).__=l.__E:("prototype"in _&&_.prototype.render?e.__c=l=new _(y,m):(e.__c=l=new J(y,m),l.constructor=_,l.render=dt),g&&g.sub(l),l.props=y,l.state||(l.state={}),l.context=m,l.__n=r,p=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=_.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=W({},l.__s)),W(l.__s,_.getDerivedStateFromProps(y,l.__s))),f=l.props,h=l.state,p)null==_.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==_.getDerivedStateFromProps&&y!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(y,m),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(y,l.__s,m)||e.__v===n.__v){l.props=y,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),l.__h.length&&a.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(y,l.__s,m),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,h,d)}))}l.context=m,l.props=y,l.state=l.__s,(c=j.__r)&&c(e),l.__d=!1,l.__v=e,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=W(W({},r),l.getChildContext())),p||null==l.getSnapshotBeforeUpdate||(d=l.getSnapshotBeforeUpdate(f,h)),b=null!=c&&c.type===K&&null==c.key?c.props.children:c,et(t,Array.isArray(b)?b:[b],e,n,r,o,i,a,s,u),l.base=e.__e,e.__h=null,l.__h.length&&a.push(l),v&&(l.__E=l.__=null),l.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=pt(n.__e,e,n,r,o,i,a,u);(c=j.diffed)&&c(e)}catch(t){e.__v=null,(u||null!=i)&&(e.__e=s,e.__h=!!u,i[i.indexOf(s)]=null),j.__e(t,e,n)}}function lt(t,e){j.__c&&j.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){j.__e(t,e.__v)}}))}function pt(t,e,n,r,o,i,a,s){var u,c,l,p=n.props,f=e.props,h=e.type,d=0;if("svg"===h&&(o=!0),null!=i)for(;d<i.length;d++)if((u=i[d])&&(u===t||(h?u.localName==h:3==u.nodeType))){t=u,i[d]=null;break}if(null==t){if(null===h)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),i=null,s=!1}if(null===h)p===f||s&&t.data===f||(t.data=f);else{if(i=i&&R.call(t.childNodes),c=(p=n.props||H).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!s){if(null!=i)for(p={},d=0;d<t.attributes.length;d++)p[t.attributes[d].name]=t.attributes[d].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||at(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||at(t,i,e[i],n[i],r)}(t,f,p,o,s),l)e.__k=[];else if(d=e.props.children,et(t,Array.isArray(d)?d:[d],e,n,r,o&&"foreignObject"!==h,i,a,i?i[0]:n.__k&&Q(n,0),s),null!=i)for(d=i.length;d--;)null!=i[d]&&G(i[d]);s||("value"in f&&void 0!==(d=f.value)&&(d!==t.value||"progress"===h&&!d)&&at(t,"value",d,p.value,!1),"checked"in f&&void 0!==(d=f.checked)&&d!==t.checked&&at(t,"checked",d,p.checked,!1))}return t}function ft(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){j.__e(t,n)}}function ht(t,e,n){var r,o;if(j.unmount&&j.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ft(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){j.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&ht(r[o],e,"function"!=typeof t.type);n||null==t.__e||G(t.__e),t.__e=t.__d=void 0}function dt(t,e,n){return this.constructor(t,n)}function vt(t,e,n){var r,o,i;j.__&&j.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],ct(e,t=(!r&&n||e).__k=function(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?R.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return Y(t,a,r,o,null)}(K,null,[t]),o||H,H,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?R.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),lt(i,t)}function yt(t,e){var n={__c:e="__cC"+M++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(X)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}R=q.slice,j={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},P=0,J.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof t&&(t=t(W({},n),this.props)),t&&W(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),X(this))},J.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),X(this))},J.prototype.render=K,L=[],B="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0,M=0;var gt,mt,bt,_t=n(679),Et=n.n(_t),xt=0,wt=[],Dt=j.__b,Tt=j.__r,At=j.diffed,Ct=j.__c,St=j.unmount;function kt(t,e){j.__h&&j.__h(mt,t,xt||e),xt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ot(t){return xt=1,It(Ht,t)}function It(t,e,n){var r=kt(gt++,2);return r.t=t,r.__c||(r.__=[n?n(e):Ht(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=mt),r.__}function Ft(t,e){var n=kt(gt++,3);!j.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,mt.__H.__h.push(n))}function Nt(t,e){var n=kt(gt++,4);!j.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,mt.__h.push(n))}function Rt(t){return xt=5,jt((function(){return{current:t}}),[])}function jt(t,e){var n=kt(gt++,7);return $t(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Pt(t,e){return xt=8,jt((function(){return t}),e)}function Lt(t){var e=mt.context[t.__c],n=kt(gt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(mt)),e.props.value):t.__}function Bt(){wt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Mt),t.__H.__h.forEach(zt),t.__H.__h=[]}catch(e){t.__H.__h=[],j.__e(e,t.__v)}})),wt=[]}j.__b=function(t){mt=null,Dt&&Dt(t)},j.__r=function(t){Tt&&Tt(t),gt=0;var e=(mt=t.__c).__H;e&&(e.__h.forEach(Mt),e.__h.forEach(zt),e.__h=[])},j.diffed=function(t){At&&At(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==wt.push(e)&&bt===j.requestAnimationFrame||((bt=j.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),Ut&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ut&&(e=requestAnimationFrame(n))})(Bt)),mt=void 0},j.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Mt),t.__h=t.__h.filter((function(t){return!t.__||zt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],j.__e(n,t.__v)}})),Ct&&Ct(t,e)},j.unmount=function(t){St&&St(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(Mt)}catch(t){j.__e(t,e.__v)}};var Ut="function"==typeof requestAnimationFrame;function Mt(t){var e=mt;"function"==typeof t.__c&&t.__c(),mt=e}function zt(t){var e=mt;t.__c=t.__(),mt=e}function $t(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ht(t,e){return"function"==typeof e?e(t):e}var qt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Vt=qt.join(","),Wt="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gt=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e},Yt=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Kt=function(t){return"INPUT"===t.tagName},Jt=function(t,e){return!(e.disabled||function(t){return Kt(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var n=Wt.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Wt.call(n,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var r=t.getBoundingClientRect(),o=r.width,i=r.height;return 0===o&&0===i}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(Kt(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},Qt=function(t,e){return!(!Jt(t,e)||function(t){return function(t){return Kt(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||t.ownerDocument,r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)}(e)||Gt(e)<0)},Zt=qt.concat("iframe").join(","),Xt=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Wt.call(t,Zt)&&Jt(e,t)};function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ne,re=(ne=[],{activateTrap:function(t){if(ne.length>0){var e=ne[ne.length-1];e!==t&&e.pause()}var n=ne.indexOf(t);-1===n||ne.splice(n,1),ne.push(t)},deactivateTrap:function(t){var e=ne.indexOf(t);-1!==e&&ne.splice(e,1),ne.length>0&&ne[ne.length-1].unpause()}}),oe=function(t){return setTimeout(t,0)},ie=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},ae=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},se=function(t,e){var n,r=document,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),i={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(t,e,n){return t&&void 0!==t[e]?t[e]:o[n||e]},s=function(t){return i.containers.some((function(e){return e.contains(t)}))},u=function(t){var e=o[t];if(!e)return null;var n=e;if("string"==typeof e&&!(n=r.querySelector(e)))throw new Error("`".concat(t,"` refers to no known node"));if("function"==typeof e&&!(n=e()))throw new Error("`".concat(t,"` did not return a node"));return n},c=function(){var t;if(!1===a({},"initialFocus"))return!1;if(null!==u("initialFocus"))t=u("initialFocus");else if(s(r.activeElement))t=r.activeElement;else{var e=i.tabbableGroups[0];t=e&&e.firstTabbableNode||u("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},l=function(){if(i.tabbableGroups=i.containers.map((function(t){var e=function(t,e){var n=[],r=[];return function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(Vt));return e&&Wt.call(t,Vt)&&r.unshift(t),r.filter(n)}(t,(e=e||{}).includeContainer,Qt.bind(null,e)).forEach((function(t,e){var o=Gt(t);0===o?n.push(t):r.push({documentOrder:e,tabIndex:o,node:t})})),r.sort(Yt).map((function(t){return t.node})).concat(n)}(t);if(e.length>0)return{container:t,firstTabbableNode:e[0],lastTabbableNode:e[e.length-1]}})).filter((function(t){return!!t})),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(c()))},f=function(t){return u("setReturnFocus")||t},h=function(t){s(t.target)||(ae(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Xt(t.target)}):ae(o.allowOutsideClick,t)||t.preventDefault())},d=function(t){var e=s(t.target);e||t.target instanceof Document?e&&(i.mostRecentlyFocusedNode=t.target):(t.stopImmediatePropagation(),p(i.mostRecentlyFocusedNode||c()))},v=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==ae(o.escapeDeactivates))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){l();var e=null;if(i.tabbableGroups.length>0){var n=ie(i.tabbableGroups,(function(e){return e.container.contains(t.target)}));if(n<0)e=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var r=ie(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t.target===n}));if(r<0&&i.tabbableGroups[n].container===t.target&&(r=n),r>=0){var o=0===r?i.tabbableGroups.length-1:r-1;e=i.tabbableGroups[o].lastTabbableNode}}else{var a=ie(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t.target===n}));if(a<0&&i.tabbableGroups[n].container===t.target&&(a=n),a>=0){var s=a===i.tabbableGroups.length-1?0:a+1;e=i.tabbableGroups[s].firstTabbableNode}}}else e=u("fallbackFocus");e&&(t.preventDefault(),p(e))}(t)},y=function(t){ae(o.clickOutsideDeactivates,t)||s(t.target)||ae(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},g=function(){if(i.active)return re.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?oe((function(){p(c())})):p(c()),r.addEventListener("focusin",d,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),n},m=function(){if(i.active)return r.removeEventListener("focusin",d,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",v,!0),n};return(n={activate:function(t){if(i.active)return this;var e=a(t,"onActivate"),n=a(t,"onPostActivate"),o=a(t,"checkCanFocusTrap");o||l(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var s=function(){o&&l(),g(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(t){if(!i.active)return this;clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,re.deactivateTrap(n);var e=a(t,"onDeactivate"),r=a(t,"onPostDeactivate"),o=a(t,"checkCanReturnFocus");e&&e();var s=a(t,"returnFocus","returnFocusOnDeactivate"),u=function(){oe((function(){s&&p(f(i.nodeFocusedBeforeActivation)),r&&r()}))};return s&&o?(o(f(i.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,m()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,l(),g(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&l(),this}}).updateContainerElements(t),n},ue=n(4198),ce=n.n(ue),le=n(3032),pe=n.n(le),fe=n(8580),he=n.n(fe);const de=yt(null),ve=yt(""),ye=()=>Lt(de),ge=()=>ye().store||{},me=()=>{const{get:t}=ge();return t?t("conversationUrl"):null},be=()=>!!me(),_e=()=>{const{get:t}=ge();return!!t&&!!t("userResponded")};function Ee(t,e){return t===e}function xe(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}function we(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return typeof t})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return e}var De=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=0,a=r.pop(),s=we(r),u=t.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),c=t((function(){for(var t=[],e=s.length,n=0;n<e;n++)t.push(s[n].apply(null,arguments));return u.apply(null,t)}));return c.resultFunc=a,c.dependencies=s,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ee,n=null,r=null;return function(){return xe(e,n,arguments)||(r=t.apply(null,arguments)),n=arguments,r}}));const Te=yt(void 0);var Ae=Te;const{Provider:Ce,Consumer:Se}=Te;function ke(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Oe="function"==typeof Symbol&&Symbol.observable||"@@observable",Ie=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fe={INIT:"@@redux/INIT"+Ie(),REPLACE:"@@redux/REPLACE"+Ie(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ie()}};function Ne(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Re(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ke(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ke(1));return n(Re)(t,e)}if("function"!=typeof t)throw new Error(ke(2));var o=t,i=e,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error(ke(3));return i}function p(t){if("function"!=typeof t)throw new Error(ke(4));if(u)throw new Error(ke(5));var e=!0;return c(),s.push(t),function(){if(e){if(u)throw new Error(ke(6));e=!1,c();var n=s.indexOf(t);s.splice(n,1),a=null}}}function f(t){if(!Ne(t))throw new Error(ke(7));if(void 0===t.type)throw new Error(ke(8));if(u)throw new Error(ke(9));try{u=!0,i=o(i,t)}finally{u=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}function h(t){if("function"!=typeof t)throw new Error(ke(10));o=t,f({type:Fe.REPLACE})}function d(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ke(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Oe]=function(){return this},t}return f({type:Fe.INIT}),(r={dispatch:f,subscribe:p,getState:l,replaceReducer:h})[Oe]=d,r}function je(t={},e={}){return Re(function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o])}var i,a=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Fe.INIT}))throw new Error(ke(12));if(void 0===n(void 0,{type:Fe.PROBE_UNKNOWN_ACTION()}))throw new Error(ke(13))}))}(n)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],l=t[u],p=c(l,e);if(void 0===p)throw e&&e.type,new Error(ke(14));o[u]=p,r=r||p!==l}return(r=r||a.length!==Object.keys(t).length)?o:t}}(t),e,void 0)}function Pe(){return Lt(Ae)}function Le(){return Pe().dispatch}function Be(t,e=[]){const n=Pe(),[,r]=It((t=>t+1),0),o=Rt(),i=Pt(t,e),a=Rt(),s=Rt(),u=n.getState();return a.current===i&&s.current===u||(s.current=u,o.current=i(s.current),a.current=i),Nt((()=>n.subscribe((()=>{var t;if(n.getState()===s.current)return;const e=null===(t=a.current)||void 0===t?void 0:t.call(a,n.getState());e!==o.current&&(o.current=e,r())}))),[n]),o.current}const Ue=function(t,e,n=[]){return Be(Pt((n=>t(n,e)),n),n)};var Me=n(1238),ze=n.n(Me),$e=n(3649),He=n.n($e),qe=n(1643),Ve=n.n(qe),We=n(2366),Ge=n.n(We),Ye=n(1864),Ke=n.n(Ye);function Je(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Je(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Je(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Ze=(t,e)=>{let n;return function(...r){const o=this;let i=!1;return clearTimeout(n),n=pe()((()=>{n=null,i||t.apply(o,r),i=!1}),e),e=>{i=!0,e&&t.apply(o,r)}}},Xe=()=>{var t;const e=[],n=[];return T()(t=document.querySelectorAll('body > *:not([role="dialog"])')).call(t,(t=>{const r=t.getAttribute("aria-hidden");null!==r&&"false"!==r||(e.push(r),n.push(t),t.setAttribute("aria-hidden","true"))})),()=>{T()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}},tn=t=>Math.ceil(t/1e3),en=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},nn=()=>{const{search:t}=window.location;if(!t)return{};const e=He()(t).call(t,Ve()(t).call(t,"?")+1).split("&");return Ge()(e).call(e,((t,e)=>{const[n,r]=e.split("=");return Qe(Qe({},t),{},{[n]:decodeURIComponent(r)})}),{})},rn=t=>{var e;return Ge()(e=s()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},on={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},an={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},sn=t=>t.code?an[t.code]:on[t.keyCode],un=t=>{t&&t.focus()},cn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()},ln=(t,e="")=>{var n;return Ge()(n=s()(t)).call(n,((n,r)=>{const o=e.length?`${e}.`:"";return"object"==typeof t[r]&&null!==t[r]&&s()(t[r]).length>0?Ke()(n,ln(t[r],o+r)):n[o+r]=t[r],n}),{})};function pn(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=pn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=pn(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const hn=t=>t.state,dn=()=>Be(hn),vn=De(hn,(({config:t})=>t||{})),yn=()=>Be(vn),gn=De(hn,vn,(({events:t},e)=>{var n;const{enabled:r,threshold:o}=(null==e||null===(n=e.messages)||void 0===n?void 0:n.timeIndicator)??{};if(!r)return t;const i=[];let a=null;return T()(t).call(t,((t,e)=>{if(0===e)i.push(fn(fn({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&tn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(fn(fn({},t),{},{timeIndicator:e}))}a=t})),i})),mn=()=>Be(gn,[]),bn=()=>dn().headerTitles,_n=()=>dn().unreadEvents,En=()=>dn().skiplinkTargetId,xn=De(gn,(t=>{var e;const n=w()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),wn=()=>{const{participants:t,currentAgent:e}=dn().participantInfo;return e?t[e]:null},Dn=()=>{const{layoutMode:t}=yn();return{isInline:"inline"===t,isModal:"modal"===t,isWindow:"window"===t,isResolving:!t}};var Tn=Le,An=n(7302),Cn=n.n(An),Sn=n(7093),kn=n.n(Sn),On=n(4473),In=n.n(On);const Fn="cvco",Nn="2",Rn=t=>[`app--layout-${t.layoutMode}`,`namespace--${t.namespace}`],jn={timeout:2e3},Pn="seamly-client-participant",Ln={messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}}},Bn=["messages","typing"],Un=["messages"];function Mn(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function zn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Mn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Mn(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const $n={info:"info",message:"message",participant:"participant",system:"system"},Hn="text",qn="text",Vn="upload",Wn={hidden:"hidden",minimized:"minimized",open:"open",initialize:null},Gn="received",Yn="read",Kn="typing",Jn="read",Qn="detach_service",Zn="set_translation",Xn="click_cta",tr="assertive",er="polite",nr={new_topic:"newTopic",new_translation:"newTranslation"},rr="cobrowsing",or="uploads",ir={ADD_EVENT:"ADD_EVENT",CLEAR_EVENTS:"CLEAR_EVENTS",SET_HISTORY:"SET_HISTORY",SET_EVENTS_READ:"SET_EVENTS_READ",ACK_EVENT:"ACK_EVENT",SET_IS_LOADING:"SET_IS_LOADING",CLEAR_PARTICIPANTS:"CLEAR_PARTICIPANTS",SET_PARTICIPANT:"SET_PARTICIPANT",SET_HEADER_TITLE:"SET_HEADER_TITLE",SET_HEADER_SUB_TITLE:"SET_HEADER_SUB_TITLE",SET_INTERRUPT:" SET_INTERRUPT",CLEAR_INTERRUPT:"CLEAR_INTERRUPT",SET_VISIBILITY:"SET_VISIBILITY",RESET_HISTORY_LOADED_FLAG:"RESET_HISTORY_LOADED_FLAG",SET_ACTIVE_SERVICE:"SET_ACTIVE_SERVICE",SET_SHOW_DISCLAIMER:"SET_SHOW_DISCLAIMER",INIT_IDLE_DETACH_COUNTDOWN:"INIT_IDLE_DETACH_COUNTDOWN",DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:"DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER",STOP_IDLE_DETACH_COUNTDOWN_COUNTER:"STOP_IDLE_DETACH_COUNTDOWN_COUNTER",CLEAR_IDLE_DETACH_COUNTDOWN:"CLEAR_IDLE_DETACH_COUNTDOWN",INIT_RESUME_CONVERSATION_PROMPT:"INIT_RESUME_CONVERSATION_PROMPT",CLEAR_RESUME_CONVERSATION_PROMPT:"CLEAR_RESUME_CONVERSATION_PROMPT",SET_SERVICE_DATA_ITEM:"SET_SERVICE_DATA_ITEM",UPDATE_CONFIG:"UPDATE_CONFIG",SET_FEATURES:"SET_FEATURES",SET_FEATURE_ENABLED_STATE:"SET_FEATURE_ENABLED_STATE",CLEAR_FEATURES:"CLEAR_FEATURES",SET_INITIAL_STATE:"SET_INITIAL_STATE",SET_USER_SELECTED_OPTIONS:"SET_USER_SELECTED_OPTIONS",SET_USER_SELECTED_OPTION:"SET_USER_SELECTED_OPTION",SHOW_OPTION:"SHOW_OPTION",HIDE_OPTION:"HIDE_OPTION",SET_SERVICE_ENTRY_METADATA:"SET_SERVICE_ENTRY_METADATA",SET_BLOCK_AUTO_ENTRY_SWITCH:"SET_BLOCK_AUTO_ENTRY_SWITCH",SET_ACTIVE_ENTRY_TYPE:"SET_ACTIVE_ENTRY_TYPE",SET_USER_ENTRY_TYPE:"SET_USER_ENTRY_TYPE",REGISTER_UPLOAD:"REGISTER_UPLOAD",SET_UPLOAD_PROGRESS:"SET_UPLOAD_PROGRESS",SET_UPLOAD_COMPLETE:"SET_UPLOAD_COMPLETE",SET_UPLOAD_ERROR:"SET_UPLOAD_ERROR",CLEAR_UPLOAD:"CLEAR_UPLOAD",CLEAR_ALL_UPLOADS:"CLEAR_ALL_UPLOADS",RESET_UPLOAD_STATE:"RESET_UPLOAD_STATE",RESET_ENTRY_STATE:"RESET_ENTRY_STATE",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},ar="navigate",{ADD_EVENT:sr,CLEAR_EVENTS:ur,SET_HISTORY:cr,SET_EVENTS_READ:lr,ACK_EVENT:pr,SET_IS_LOADING:fr,CLEAR_PARTICIPANTS:hr,SET_PARTICIPANT:dr,SET_HEADER_TITLE:vr,SET_HEADER_SUB_TITLE:yr,SET_INTERRUPT:gr,CLEAR_INTERRUPT:mr,SET_VISIBILITY:br,RESET_HISTORY_LOADED_FLAG:_r,SET_ACTIVE_SERVICE:Er,SET_SHOW_DISCLAIMER:xr,INIT_IDLE_DETACH_COUNTDOWN:wr,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:Dr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:Tr,CLEAR_IDLE_DETACH_COUNTDOWN:Ar,INIT_RESUME_CONVERSATION_PROMPT:Cr,CLEAR_RESUME_CONVERSATION_PROMPT:Sr,SET_SERVICE_DATA_ITEM:kr,UPDATE_CONFIG:Or,SET_FEATURES:Ir,SET_FEATURE_ENABLED_STATE:Fr,CLEAR_FEATURES:Nr,SET_INITIAL_STATE:Rr,SET_USER_SELECTED_OPTION:jr,SET_USER_SELECTED_OPTIONS:Pr,SHOW_OPTION:Lr,HIDE_OPTION:Br,SET_BLOCK_AUTO_ENTRY_SWITCH:Ur,SET_USER_ENTRY_TYPE:Mr,SET_ACTIVE_ENTRY_TYPE:zr,SET_SERVICE_ENTRY_METADATA:$r,REGISTER_UPLOAD:Hr,SET_UPLOAD_PROGRESS:qr,SET_UPLOAD_COMPLETE:Vr,SET_UPLOAD_ERROR:Wr,CLEAR_UPLOAD:Gr,CLEAR_ALL_UPLOADS:Yr,RESET_UPLOAD_STATE:Kr,RESET_ENTRY_STATE:Jr,SET_SEAMLY_CONTAINER_ELEMENT:Qr}=ir,Zr=({type:t,payload:e})=>t===$n.message&&!e.fromClient||t===$n.info&&e.type===Hn,Xr=t=>Cn()(t).call(t,(({payload:{occurredAt:t}},{payload:{occurredAt:e}})=>t-e)),to=(t,e)=>{switch(e.type){case hr:return{participants:{},currentAgent:""};case dr:const{participants:n}=t,{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],u=zn(zn({},n),{},{[r]:s?zn(zn(zn(zn({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return zn(zn({},t),{},{participants:u,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},eo=(t,e)=>{switch(e.type){case vr:return zn(zn({},t),{},{title:e.title});case yr:return zn(zn({},t),{},{subTitle:e.title});default:return t}},no=(t,e)=>{switch(e.type){case gr:return zn(zn({},t),{},{hasInterrupt:!0,meta:zn({},e.interrupt)});case mr:return zn(zn({},t),{},{hasInterrupt:!1,meta:{}});default:return t}},ro=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return zn(zn({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),zn(zn({},t),{},{active:a,optionsOverride:zn(zn({},t.optionsOverride),{},{[o]:i||{}})})},oo=t=>{const{messages:e,typing:n}=t,r=N(t,Bn),{messages:o}=Ln;return zn(zn({},N(Ln,Un)),{},{namespace:"default",visible:t.layoutMode&&"inline"===t.layoutMode?Wn.open:Wn.minimized,layoutMode:"window",appContainerClassNames:Rn,messages:zn(zn({},o),e),typing:zn(zn({},jn),n)},r)},io=({hasResponded:t,previousVisibility:e,requestedVisibility:n,config:r})=>{const{defaults:o,layoutMode:i,hideOnNoUserResponse:a}=r,{visible:s}=o||{};if("window"===i&&a&&n!==Wn.open)return t?n||e||Wn.open:Wn.hidden;const u="inline"===i?Wn.open:Wn.minimized;return n||e||s||u},{SET_SEAMLY_CONTAINER_ELEMENT:ao}=ir,so=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;un(e)}))}))},uo=()=>{const{seamlyContainerElement:t}=dn(),e=Tn();return[t,Pt((t=>{e({type:ao,element:t})}),[e])]},co=t=>Pt((()=>{so(t)}),[t]),lo=()=>{const t=En();return co(t)},po=()=>{const t=Rt(null),[e]=uo();return t.current=e,Pt((e=>{cn(t.current,(()=>{so(e)}))}),[])},fo=()=>{const t=yn(),{appContainerClassNames:e}=t;if(!e)return[];switch(typeof t.appContainerClassNames){case"function":return t.appContainerClassNames(t);default:return t.appContainerClassNames}},ho=t=>{const{fromClient:e}=t.payload,n=["message"];return"info"===t.type?n.push("message--source-info"):e?n.push("message--source-user"):n.push("message--source-agent"),n},vo=()=>{const{cobrowsingContainerId:t}=dn();return{id:t,focusContainer:co(t)}};function yo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function go(t,e,n="/"){return(r,...o)=>e(t+n+r,...o)}function mo(t,e=(t=>({payload:t}))){const n=(...n)=>function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=yo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=yo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({type:t},e(...n));return n.toString=()=>t.toString(),n}function bo(t,...e){const n=[];T()(e).call(e,(t=>{var e;const r=typeof t;if("string"===r)return n.push([t]);"object"!==r||t instanceof Array||T()(e=s()(t)).call(e,(e=>n.push([e,t[e]])))}));const r=go(t,mo,"/");return E()(n).call(n,(t=>r(...t)))}function _o(t){return{createAction:go(t,mo,"//"),createActions:go(t,bo,"//")}}function Eo(t,e={},n){const r=(t,r)=>{void 0===t&&(t=n);const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}function xo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function wo(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=xo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=xo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{createAction:Do}=_o("i18n"),To=Do("init",(t=>({overrides:t}))),Ao={translations:ln({"carousel.controls.next":"Next","carousel.controls.previous":"Previous","carousel.slide.label":({index:t,total:e})=>`${t} of ${e}`,"dateTime.srText":({date:t,time:e})=>`Messages starting ${t} at ${e}:`,"dateTime.today":"Today","dateTime.yesterday":"Yesterday","disclaimer.content":"This chat session will be saved to help us improve our service delivery.","disclaimer.title":"Privacy disclaimer","dividerKeys.newTopic":"New topic started.","errors.configError.message":"We are sorry this happened, please retry at a later time.","errors.configError.srText":"A chat configuration error occurred. Our apologies, please retry at a later time.","errors.configError.title":"Chat configuration error.","errors.general.buttonText":"Restart chat","errors.general.message":"Do you want to start a new chat session?","errors.general.srText":"Something went wrong with the chat session. You can restart the chat.","errors.general.title":"Something went wrong","errors.seamlyOffline.message":"There might be a problem with your or our network connection. The chat session should resume as soon the connection is available again.","errors.seamlyOffline.srText":"The chat has connection issues. There might be a problem with your or our network connection. The chat session should resume as soon as the connection is available again.","errors.seamlyOffline.title":"Connection issues","faq.headingText":"Suggested topics","faq.srAvailableText":"Suggested topics are available in the chat.","faq.srUnavailableText":"Suggested topics are no longer available in the chat.","faq.srUpdatedText":"There are new suggested topics in the chat.","fileUpload.cancelButtonText":"Cancel upload","fileUpload.contentHint":t=>`Select a file of maximum ${t}`,"fileUpload.errors.general":"Something went wrong with the upload. Please cancel the upload and try again.","fileUpload.errors.noFile":"Please select a file to upload","fileUpload.errors.tooLarge":"The selected file is too large, please upload a smaller file","fileUpload.errors.unavailable":"Uploading files is no longer possible. Please cancel the upload and try again later.","fileUpload.errors.virusFound":"The selected file is unsafe, please upload a different file.","fileUpload.errors.wrongType":"The selected file type is not supported. Please cancel the upload and upload a different file.","fileUpload.fileUnavailableText":"This download link has expired","fileUpload.labelText":"Select file","fileUpload.selectedText":t=>t||"No file selected","fileUpload.srAvailableText":"File uploads are now available in the chat.","fileUpload.srCompleteText":"Upload complete.","fileUpload.srFileDownloadText":t=>`Download file ${t}.`,"fileUpload.srFileUnavailableText":t=>`Download for ${t} has expired.`,"fileUpload.srFileUploadedText":t=>`Uploaded file ${t}.`,"fileUpload.srProgressLabel":t=>`${t} upload progress status`,"fileUpload.srStartedText":"Upload started.","fileUpload.srUnavailableText":"File uploads in the chat are no longer available.","fileUpload.toggleButtonText":"Upload files","fileUpload.uploadButtonText":"Upload file","header.collapseApp":"collapse chat","header.title":"You're talking to","idleDetachWarning.continueButton":"Continue conversation","idleDetachWarning.countdownText":"Your conversation will automatically end in:","idleDetachWarning.countdownTimer":({minutes:t,seconds:e})=>{switch(t){case 1:switch(e){case 1:return"1 minute, 1 second";case 0:return"1 minute";default:return`1 minute, ${e} seconds`}case 0:switch(e){case 1:return"1 second";case 0:default:return`${e} seconds`}default:switch(e){case 1:return`${t} minutes, 1 second`;case 0:return`${t} minutes`;default:return`${t} minutes, ${e} seconds`}}},"idleDetachWarning.countdownTitle":"Are you still there?","idleDetachWarning.detachButton":"End conversation","idleDetachWarning.notifyTransferText":"Your conversation is being ended.","idleDetachWarning.srCountDownStoppedText":"Automatic conversation ending prevented. Welcome back.","info.cobrowsing.cobrowsingEnded":"Screen sharing has ended","info.cobrowsing.cobrowsingStarted":"Screen sharing is now enabled. The agent can see the page you're currently on","info.sendTranscript.accepted":({emailAddress:t})=>`A transcript will be sent to ${t}`,"input.inputLabel":t=>t?`Your message (max. ${t} characters)`:"Your message","input.inputPlaceholder":t=>t?`Your message (max. ${t} characters)`:"Your message","input.sendMessage":"Send","input.srCharacterLimitText":t=>{switch(t){case 1:return"1 character remaining.";case 0:default:return`${t} characters remaining.`}},"lightbox.closeLabel":"Close","lightbox.heading":"Enlarged chat image","message.choicePrompts.cancelChooseAgain":"Cancel choice change","message.choicePrompts.chooseAgain":"Change your choice","message.image.srTextEnlargeButtonLabel":({description:t})=>`Enlarge ${t}`,"message.srNewEventCount":({newCount:t})=>{switch(t){case 1:return"There is 1 new chat message.";case 0:default:return`There are ${t} new chat messages.`}},"message.srTextUnreadCount":({unreadCount:t})=>{switch(t){case 1:return"There is 1 new unread chat message.";case 0:default:return`There are ${t} new unread chat messages.`}},"options.cancelButtonText":"Cancel","options.cobrowsing.cobrowsingActiveText":"Sharing screen","options.cobrowsing.cobrowsingUnavailable":"Screen sharing is currently unavailable.","options.cobrowsing.description":"This allows the agent to see the page you're currently on. Nothing else is shared.","options.cobrowsing.labelTurnOff":"Turn screen sharing off","options.cobrowsing.labelTurnOn":"Turn screen sharing on","options.cobrowsing.menuTitle":"Screen sharing","options.cobrowsing.srCobrowsingAvailable":"Screen sharing is now available.","options.cobrowsing.srStartedCobrowsingText":"Screen sharing has been started.","options.cobrowsing.srStopCobrowsingText":"Stop screen sharing","options.cobrowsing.srStoppedCobrowsingText":"Screen sharing has been stopped.","options.cobrowsing.stopCobrowsingText":"Stop","options.cobrowsing.title":"Share my screen","options.openButtonText":"Options","options.saveButtonText":"Save","options.sendTranscript.description":"Enter the email address you would like to send the chat transcript to.","options.sendTranscript.invalidEmailText":"Please enter a valid email address","options.sendTranscript.label":"Email address","options.sendTranscript.menuTitle":"Send transcript","options.sendTranscript.noEmailText":"Please enter an email address","options.sendTranscript.sendButtonText":"Send","options.sendTranscript.title":"Send chat transcript","options.unavailableText":"unavailable","resumeConversationPrompt.continueButton":"Resume conversation","resumeConversationPrompt.detachButton":"Ask new question","resumeConversationPrompt.title":t=>`Would you like to continue the conversation with ${t}?`,skiplinkText:"Skip to chat input","toggleButton.resumeTitle":"Resume chat with","toggleButton.subtitle":"Start a chat with us","toggleButton.title":"Have a question?","translations.divider.restartButtonText":"Start again","translations.divider.startText":t=>`Translating to ${t}`,"translations.divider.stopText":t=>`Translating to ${t} ended`,"translations.settings.cancelButtonText":"Cancel","translations.settings.currentTranslationLabel":"Currently translating to","translations.settings.defaultOptionLabel":"Choose language","translations.settings.description":"Automatic translations might contain errors.","translations.settings.endButtonText":"Stop translating","translations.settings.inputLabel":"Translate chat to","translations.settings.noLocaleText":"Choose a language to translate to","translations.settings.openButtonText":"Translation","translations.settings.startButtonText":"Start translating","translations.settings.title":"Translation","translations.status.label":t=>`Translating to ${t}`,"translations.status.srStopText":"Stop translating","translations.status.stopText":"Stop","translations.toggle.hideButtonText":"Show original","translations.toggle.showButtonText":"Show translation","window.srModalLayoutLabel":"Chat window","window.srTexts.onClose":"The chat is closed.","window.srTexts.onHistoryLoad":"Chat history has been loaded.","window.srTexts.onLoad":"Chat is available on this page.","window.srTexts.onOpen":"The chat is opened."}),overrides:{}},Co=Eo("i18n",{[To]:(t,{overrides:e})=>wo(wo({},t),{},{overrides:e?ln(e):void 0})},Ao),So=t=>t[String(Co)],ko=De(So,(t=>t.translations)),Oo=De(So,(t=>t.overrides||{})),Io=De(ko,Oo,((t,e)=>{const n=s()(e);if(0===n.length)return t;const r=s()(t);return T()(r).call(r,(t=>{-1===Ve()(n).call(n,t)&&console.error("Seamly: Missing translation key:",t)})),wo(wo({},t),e)}));function Fo(){const t=Be(Io);return{t:Pt(((e,n={})=>{const r=t[e];return"function"==typeof r?r(n):r}),[t])}}function No(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ro(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=No(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=No(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{SET_USER_SELECTED_OPTION:jo,SET_USER_SELECTED_OPTIONS:Po,SHOW_OPTION:Lo,HIDE_OPTION:Bo}=ir,Uo=()=>{var t,e;const{t:n}=Fo(),{options:r}=dn(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:u}=r,{cobrowsing:c,sendTranscript:l}=u,p={cobrowsing:c,sendTranscript:l},f=E()(t=w()(e=s()(p)).call(e,(t=>p[t]))).call(t,(t=>({name:t,title:n(`options.${t}.menuTitle`),available:p[t].enabled}))),h=c||l,d=Tn(),{get:v,set:y}=ge();return{allowOptionSelection:h,userSelectedOptions:a,features:u,menuOptions:f,initUserSelectedOptions:Pt((()=>{const t=v("options")||{};d({type:Po,options:t})}),[v,d]),setUserSelectedOptions:Pt((t=>{d({type:Po,options:t}),y("options",t)}),[y,d]),setUserSelectedOption:Pt(((t,e)=>{const n=v("options")||{};y("options",Ro(Ro({},n),{},{[t]:e})),d({type:jo,option:t,value:e})}),[d,v,y]),showOption:t=>{d({type:Lo,optionName:t})},hideOption:()=>{d({type:Bo})},panelActive:o,optionActive:i}},Mo=()=>{const{optionsButtonId:t}=dn();return{id:t,focusButton:co(t)}};class zo extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,zo),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class $o extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,$o),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class Ho extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Ho),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class qo extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,qo),this.name="SeamlySessionExpiredError",this.action="reset"}}class Vo extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Vo),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}function Wo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Go(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Wo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Wo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{SET_INTERRUPT:Yo}=ir;var Ko=()=>{const{t:t}=Fo(),{hasInterrupt:e,meta:n}=dn().interrupt,r=Tn(),{setUserSelectedOption:o}=Uo();return{hasInterrupt:e,meta:n,setInterrupt:Pt((e=>{if(e instanceof zo||o(rr,!1),!(e instanceof $o||e instanceof Ho||e instanceof qo||e instanceof zo||e instanceof Vo))throw e;{const{langKey:n,action:o}=e,i=t(`${n}.title`),a=t(`${n}.message`),s=t(`${n}.srText`),u=t(`${n}.buttonText`);r({type:Yo,interrupt:Go(Go(Go(Go({},n?{title:i,message:a,srText:s}:{}),o?{action:o}:{}),o&&n?{buttonText:u}:{}),{},{originalError:e})})}}),[r,t,o])}},Jo=n(62),Qo=n.n(Jo),Zo=yt({});function Xo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ti(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Xo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Xo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{CLEAR_ALL_UPLOADS:ei}=ir,ni=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=dn(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:u,maxSize:c}=ti(ti(ti({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:u,maxSize:c}},ri=()=>{const{currentUploads:t}=dn(),e=Tn(),n=Lt(Zo);return{uploadFile:Pt((t=>{n(t)}),[n]),clearUploads:Pt((()=>{e({type:ei})}),[e]),currentUploads:t,isUploading:k()(t).call(t,(t=>t.uploading)),isComplete:Qo()(t).call(t,(t=>t.complete))}};var oi=n(1128),ii=n.n(oi),ai=n(5843),si=n.n(ai),ui=n(3476),ci=n.n(ui);function li(){var t;return"_"+(Number(He()(t=String(Math.random())).call(t,2))+ii()()+Math.round(performance.now())).toString(36)}const pi=()=>{const[t]=Ot((()=>li()));return t},fi=t=>{const e=Rt();e.current=t;const n="function"==typeof t;return jt((()=>n?(...t)=>e.current(...t):void 0),[n])};function hi(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function di(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=hi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=hi(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{ADD_EVENT:vi,CLEAR_EVENTS:yi,CLEAR_INTERRUPT:gi,SET_IS_LOADING:mi,CLEAR_PARTICIPANTS:bi,SET_HEADER_SUB_TITLE:_i,SET_INITIAL_STATE:Ei,CLEAR_FEATURES:xi,SET_FEATURES:wi,RESET_UPLOAD_STATE:Di,RESET_ENTRY_STATE:Ti}=ir;var Ai=()=>{const t=ye(),e=dn(),n=Tn(),r=Lt(ve),{setInterrupt:o}=Ko(),i=_e(),a=be(),{visible:s}=dn(),u=_n(),{config:c}=e,l=Pt(((...t)=>{r.emit(...t)}),[r]),p=fi((()=>{t.sendContext(c.context||{}),l("ui.beforeStart",{visibility:s,hasConversation:a,hasResponded:i,unreadMessageCount:u}),t.send("start"),l("ui.start",{visibility:s,hasConversation:a,hasResponded:i,unreadMessageCount:u})})),f=Pt((async()=>{n({type:yi}),n({type:gi}),n({type:mi,isLoading:!0}),n({type:bi}),n({type:Di}),n({type:Ti}),n({type:xi});const{agentName:e}=c.defaults||{};n({type:_i,title:e||""});try{const{accountConfig:e={},initialState:r={}}=await t.reset(),{features:o}=e||{};n({type:wi,features:o}),n({type:Ei,initialState:r})}catch(t){o(t)}}),[t,n,c,o]),h=Pt((t=>{const{events:n}=e;return{type:t,id:li(),transactionId:li(),participant:Pn,fromClient:!0,occurredAt:n.length>0?n[n.length-1].payload.occurredAt+1:ii()(),meta:{}}}),[e]),d=Pt((t=>di(di({},h("text")),{},{body:{text:t}})),[h]),v=Pt((({body:e,config:r={}})=>{if(""===si()(e).call(e))return;const o=di(di({},d(e)),r),i=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;"),a=di(di({},o),{},{body:{text:i}});t.send("message",o),l("message",o),n({type:vi,event:{type:"message",payload:a}})}),[t,n,l,d]),y=Pt((t=>{n({type:vi,event:{type:"message",payload:d(t)}})}),[n,d]),g=Pt(((t,e,r,o,i,a,s,u)=>{n({type:vi,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:Pn,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,deleteAt:i,filename:a,filesize:s,url:u}}}})}),[n]),m=Pt((t=>{const e={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:li(),transactionId:li(),type:"divider"};n({type:vi,event:{type:"info",payload:e}})}),[n]),b=Pt((({type:e,subtype:n})=>{const r={type:e,subtype:n,id:li(),transactionId:li(),participant:Pn,fromClient:!0};t.send("info",r)}),[t]),_=Pt((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==Kn&&n!==Jn&&l(`action.${n}`,e)}),[t,l]),E=Pt((e=>{t.sendContext(e)}),[t]);return{connect:Pt((()=>t.connected?ci().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&n({type:Ei,initialState:t})})).catch((t=>{o(t)}))),[t,n,o]),start:p,sendMessage:v,sendInfo:b,sendAction:_,sendContext:E,reset:f,emitEvent:l,addMessageBubble:y,addUploadBubble:g,addDivider:m,apiConfigReady:t.configReady}};const Ci=yt(null),Si=()=>{const t=Lt(Ci);return{sendPolite:Pt((e=>{t({ariaLive:er,messageText:e})}),[t]),sendAssertive:Pt((e=>{t({ariaLive:tr,messageText:e})}),[t])}};var ki=yt(null),Oi=()=>Lt(ki),Ii=n(1581),Fi=n.n(Ii);function Ni(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}const{SET_BLOCK_AUTO_ENTRY_SWITCH:Ri,SET_ACTIVE_ENTRY_TYPE:ji,SET_USER_ENTRY_TYPE:Pi}=ir,Li=()=>{const{default:t,active:e,userSelected:n,options:r}=dn().entryMeta,o=Tn(),i=n||e||t,a=r[i]||{},s=Pt((t=>{o({type:Ri,value:t})}),[o]),u=Pt((t=>{o({type:ji,entryType:t})}),[o]),c=Pt((t=>{o({type:Pi,entryType:t})}),[o]),l=Pt((()=>{n?c(null):u(t)}),[n,t,c,u]);return{activeEntry:i,activeEntryOptions:a,setActiveEntryType:u,setUserEntryType:c,cancelEntrySelection:l,setBlockAutoEntrySwitch:s}};function Bi(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ui(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Bi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Bi(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{SET_VISIBILITY:Mi}=ir;var zi=()=>{const t=yn(),{layoutMode:e,visibilityCallback:n}=t,{visible:r}=dn(),{emitEvent:o}=Ai(),i=Tn(),[a,s]=(()=>{const{layoutMode:t}=yn(),e="visibility",{get:n,set:r}=ge();let o={};const i=n?n(e):{};i&&(o=i);const a=Pt((o=>{const i=n?n(e):{};r(e,Ui(Ui({},i),{},{[t]:o}))}),[r,n,t]);return[t?o[t]:null,r&&t?a:null]})(),u=_e(),c=be(),l=_n(),p=!!r&&r!==Wn.hidden,f=!(!r||!e)&&(r===Wn.open||"inline"===e&&r!==Wn.hidden),h=Pt((e=>{var p;const f=(n||io)({hasConversation:c,hasResponded:u,previousVisibility:a||null,requestedVisibility:e,config:t});he()(p=[Wn.open,Wn.minimized,Wn.hidden]).call(p,f)?f!==r&&(s&&s(f),e&&o("ui.visible",f,{visibility:f,hasConversation:c,hasResponded:u,unreadMessageCount:l}),i({type:Mi,visible:f})):console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')}),[r,o,i,c,u,a,n,t,s,l]);return{isVisible:p,isOpen:f,visible:r,setVisibility:h}};const{SET_IS_LOADING:$i}=ir;var Hi=()=>{const{t:t}=Fo(),{isOpen:e,isVisible:n,visible:r,setVisibility:o}=zi(),i=Tn(),a=mn(),s=Rt(null),{start:u,connect:c,apiConfigReady:l}=Ai(),p=be(),f=Rt(null),h=Rt(null),{sendAssertive:d}=Si(),v=Rt(!1),y=a.length>0;return Ft((()=>{n&&pe()((()=>{d(t("window.srTexts.onLoad"))}),500)}),[n,d,t]),Ft((()=>{if(n!==h.current)return f.current=e,void(h.current=n);null!==f.current&&d(t(e?"window.srTexts.onOpen":"window.srTexts.onClose")),f.current=e,h.current=n}),[e,n,d,t]),Ft((()=>{}),[r,d]),Ft((()=>{s.current=pe()((()=>{i({type:$i,isLoading:!0})}),500)}),[i]),Ft((()=>{y&&(clearTimeout(s.current),i({type:$i,isLoading:!1}))}),[y,i]),Ft((()=>{p&&l||(v.current=!1)}),[p,l]),Ft((()=>{(e||p)&&!v.current&&l&&(p&&(clearTimeout(s.current),i({type:$i,isLoading:!1})),c().then((()=>{u()})),v.current=!0)}),[e,p,l,u,c,i]),{openChat:()=>{o(Wn.open)},closeChat:()=>{o(Wn.minimized)}}};function qi(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=qi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=qi(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:Wi,INIT_IDLE_DETACH_COUNTDOWN:Gi,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:Yi,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:Ki}=ir;var Ji=()=>{const t=Tn(),{idleDetachCountdown:e}=dn(),{isOpen:n}=zi(),r=Rt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=Ai(),{t:a}=Fo(),{sendAssertive:s,sendPolite:u}=Si(),c=Pt((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),l=Pt((t=>{const{isOpen:e}=r.current;e&&u(t)}),[u]),p=Pt((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=en(n);t({type:Gi,delaySeconds:n,delayTime:r}),o("idleTimer.start"),c(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,c,a]),f=Pt(((e,n)=>{const{hasCountdown:s,wasStopped:u}=r.current;s&&(e||(n||i({type:Qn}),c(a("idleDetachWarning.notifyTransferText"))),u||o("idleTimer.stop"),t({type:Wi}))}),[t,i,o,c,a]),h=Pt((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&c(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",en(n))}`),t({type:Yi})}),[t,c,a]),d=Pt((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:Ki}),n&&(o("idleTimer.stop"),l(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,l,a]);return Vi(Vi({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:h,stopCountdown:d})};const{CLEAR_RESUME_CONVERSATION_PROMPT:Qi}=ir;var Zi=()=>{const t=Tn(),e=dn().resumeConversationPrompt,{sendAction:n}=Ai(),{t:r}=Fo(),{sendAssertive:o}=Si();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:Qi})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:Qn}),t({type:Qi})}}};const Xi=(t,e)=>{const n=ye();Ft((()=>{var r;n.stream&&(e?w()(r=n.stream()).call(r,e).subscribe({next:t}):n.stream().subscribe({next:t}))}),[n,t,e])};var ta=n(6423),ea=n.n(ta);const na=(...t)=>{var e,n,r,o,i,a;return E()(e=w()(n=ea()(r=E()(o=w()(i=E()(a=ea()(t).call(t)).call(a,(t=>{var e;return"object"==typeof t?E()(e=$()(t)).call(e,(([t,e])=>e?t:"")).join(" "):t}))).call(i,(t=>"string"==typeof t))).call(o,(t=>t.split(" ")))).call(r)).call(n,(t=>t.length))).call(e,(t=>[Fn,t].join("-"))).join(" ")},ra={visible:na("transition--visible"),in:na("transition--in"),visuallyHidden:na("visually-hidden")},oa=C()(ra),ia="notRendered",aa="rendered",sa="visuallyHidden";var ua=({children:t,isActive:e,timeout:n,transitionStartState:r="notRendered",onInTransitionComplete:o,onOutTransitionComplete:i})=>{var a;const s=Rt(!1),u=n?ce()(n,10):300,c=fi(o),l=fi(i),p=r===sa,[f,h]=Ot((()=>p?[ra.visuallyHidden]:[])),d="notRendered"!==r||f.length>0;return Ft((()=>{let t=null,n=null;return s.current&&!e&&(h([ra.visible]),t=pe()((()=>{h([...p?[ra.visuallyHidden]:[]]),l&&(n=requestAnimationFrame((()=>{l()})))}),u)),!s.current&&e&&(h([ra.visible]),n=requestAnimationFrame((()=>{n=requestAnimationFrame((()=>{h([ra.visible,ra.in]),c&&(t=pe()((()=>{c()}),u))}))}))),s.current=e,()=>{clearTimeout(t),cancelAnimationFrame(n)}}),[e,p,u,c,l]),d&&E()(a=rt(t)).call(a,(t=>{var e;const{className:n=""}=t.props;return function(t,e,n){var r,o,i,a=W({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?R.call(arguments,2):n),Y(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...w()(e=n.split(" ")).call(e,(t=>!he()(oa).call(oa,t))),...f].join(" ")})}))},ca=0;function la(t,e,n,r,o){var i,a,s={};for(a in e)"ref"==a?i=e[a]:s[a]=e[a];var u={type:t,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ca,__source:r,__self:o};if("function"==typeof t&&(i=t.defaultProps))for(a in i)void 0===s[a]&&(s[a]=i[a]);return j.vnode&&j.vnode(u),u}var pa=({children:t})=>{const{t:e}=Fo(),{isModal:n}=Dn(),{isOpen:r,setVisibility:o}=zi(),i=Rt(null),a=Rt(null);return Ft((()=>{if(!n)return null;let t;return r&&(t=Xe(),i.current.parentElement.removeAttribute("aria-hidden")),()=>{t&&(t(),t=null)}}),[r,n]),n?la(ua,{isActive:r,transitionStartState:aa,onInTransitionComplete:()=>{a.current=se(i.current),a.current.activate()},onOutTransitionComplete:()=>{a.current&&(a.current.deactivate(),a.current=null)},children:la("div",{className:na("modal-overlay"),role:"dialog","aria-modal":"true","aria-label":e("window.srModalLayoutLabel"),onClick:()=>{o(Wn.minimized)},ref:i,children:t})}):t};const fa={send32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z"/></svg>',balloon32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,10.824v10.375c0,1.104-0.896,2-2,2h-4.694l-4.931,3.625v-3.625H10c-1.104,0-2-0.896-2-2V10.824\tc0-1.104,0.896-2,2-2h12C23.104,8.824,24,9.719,24,10.824z"/></svg>',newTopic32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,8.593l2.407,4.573l5.093,0.876l-3.604,3.702l0.74,5.115L16,20.574l-4.634,2.285l0.739-5.115L8.5,14.042\tl5.094-0.876L16,8.593z"/></svg>',newTranslation16:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16"><path fill="#4A48C1" d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M14.1,7.1h-1.4c-0.1-1.5-0.4-2.9-1-4\tC13,4,13.9,5.4,14.1,7.1z M7.1,2.1v5H5C5.2,4.7,6.1,2.9,7.1,2.1z M7.1,8.9v5c-1-0.7-1.9-2.5-2.1-5H7.1z M8.9,13.9v-5H11\tC10.8,11.3,9.9,13.2,8.9,13.9z M8.9,7.1v-5c1,0.7,1.9,2.5,2.1,5H8.9z M4.2,3.1c-0.5,1.1-0.9,2.5-1,4H1.9C2.1,5.4,3,4,4.2,3.1z M1.9,8.9h1.4c0.1,1.5,0.4,2.9,1,4C3,12,2.1,10.5,1.9,8.9z M11.8,12.9c0.5-1.1,0.9-2.5,1-4h1.4C13.9,10.5,13,12,11.8,12.9z"/></svg>',newTranslation32:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,7c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4.1,9-9S20.9,7,16,7z M22.9,15h-1.6c-0.1-1.7-0.5-3.3-1.1-4.5\tC21.6,11.5,22.6,13.1,22.9,15z M15,9.4V15h-2.3C12.9,12.3,13.9,10.2,15,9.4z M15,17v5.6c-1.1-0.8-2.1-2.9-2.3-5.6H15z M17,22.6V17\th2.3C19.1,19.8,18.1,21.8,17,22.6z M17,15V9.4c1.1,0.8,2.1,2.9,2.3,5.6H17z M11.8,10.4c-0.6,1.3-1,2.8-1.1,4.5H9.1\tC9.4,13.1,10.4,11.5,11.8,10.4z M9.1,17h1.6c0.1,1.7,0.5,3.3,1.1,4.5C10.4,20.5,9.4,18.9,9.1,17z M20.2,21.5c0.6-1.3,1-2.8,1.1-4.5\th1.6C22.6,18.8,21.6,20.5,20.2,21.5z"/></svg>',avatar32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#003A5D" d="M0,4.717C0,2.112,2.112,0,4.717,0h22.566C29.888,0,32,2.112,32,4.717v22.566C32,29.887,29.888,32,27.283,32 H4.717C2.113,32,0,29.887,0,27.283V4.717z"/><path fill="#FFF" d="M10.103,14.901c-1.107,0-2.004-0.897-2.004-2.004s0.897-2.005,2.004-2.005c1.107,0,2.005,0.897,2.005,2.005 C12.108,14.004,11.211,14.901,10.103,14.901z M16,14.901c1.107,0,2.005-0.897,2.005-2.004S17.108,10.892,16,10.892 c-1.108,0-2.005,0.897-2.005,2.005C13.995,14.004,14.892,14.901,16,14.901z M21.896,10.892c-1.106,0-2.004,0.897-2.004,2.005 c0,1.107,0.896,2.004,2.004,2.004c1.109,0,2.005-0.897,2.005-2.004C23.901,11.789,23.005,10.892,21.896,10.892z M21.408,18.207 H10.783C11.83,23.973,20.361,23.973,21.408,18.207z"/></svg>',chevronDown8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M-0.001,2.876c0-0.247,0.091-0.494,0.273-0.688c0.38-0.401,1.013-0.418,1.414-0.039l1.938,1.834\tc0.199,0.188,0.547,0.188,0.746,0L6.31,2.15c0.401-0.379,1.034-0.362,1.414,0.04c0.379,0.401,0.361,1.034-0.04,1.414L5.745,5.437\tC4.782,6.35,3.213,6.35,2.249,5.436L0.311,3.603C0.103,3.406-0.001,3.142-0.001,2.876z"/></svg>',chevronDown32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M16,20.425c-0.782,0-1.563-0.291-2.159-0.874l-6.541-6.408c-0.395-0.387-0.401-1.02-0.015-1.414\tc0.387-0.394,1.021-0.4,1.414-0.015l6.541,6.408c0.42,0.409,1.102,0.409,1.52-0.001l6.541-6.407c0.396-0.386,1.028-0.38,1.414,0.015\tc0.387,0.395,0.381,1.027-0.014,1.414l-6.541,6.407C17.563,20.133,16.782,20.425,16,20.425z"/></svg>',chevronRight8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M2.875,7.998c-0.247,0-0.494-0.091-0.688-0.273c-0.401-0.38-0.418-1.013-0.039-1.414l1.834-1.938\tc0.188-0.199,0.188-0.547,0-0.746l-1.835-1.94c-0.379-0.401-0.362-1.034,0.04-1.414s1.034-0.361,1.414,0.04l1.834,1.939\tc0.913,0.963,0.913,2.532-0.001,3.496L3.601,7.686C3.405,7.894,3.14,7.998,2.875,7.998z"/></svg>',chevronRight16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M6.5,13c-0.247,0-0.494-0.091-0.687-0.273c-0.401-0.38-0.419-1.013-0.04-1.414L8.22,8.727\tc0.373-0.394,0.373-1.06,0-1.454L5.773,4.687c-0.379-0.401-0.362-1.034,0.04-1.414c0.4-0.378,1.034-0.362,1.414,0.04l2.446,2.586\tc1.096,1.159,1.096,3.043,0,4.203l-2.446,2.586C7.03,12.896,6.765,13,6.5,13z"/></svg>',close8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M7.705,7.729C7.511,7.923,7.255,8.02,7,8.02c-0.257,0-0.514-0.099-0.709-0.295L4,5.423L1.709,7.725\tC1.513,7.921,1.257,8.02,1,8.02c-0.255,0-0.51-0.097-0.706-0.291c-0.391-0.39-0.393-1.022-0.003-1.414l2.298-2.309l-2.27-2.28\tC-0.07,1.334-0.068,0.701,0.323,0.311c0.392-0.389,1.024-0.387,1.415,0.003L4,2.587l2.263-2.274C6.653-0.077,7.287-0.079,7.677,0.31\tC8.068,0.7,8.07,1.333,7.681,1.725l-2.27,2.281l2.298,2.309C8.099,6.705,8.097,7.339,7.705,7.729z"/></svg>',close16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M12.709,11.295L9.411,7.982l3.262-3.276c0.39-0.392,0.388-1.024-0.004-1.414\tc-0.39-0.39-1.023-0.388-1.414,0.003L8,6.564L4.746,3.295C4.357,2.904,3.724,2.903,3.332,3.292C2.94,3.682,2.939,4.315,3.329,4.707\tl3.261,3.275l-3.298,3.313c-0.39,0.391-0.388,1.024,0.003,1.414C3.49,12.903,3.745,13,4,13c0.257,0,0.513-0.099,0.708-0.295L8,9.399\tl3.291,3.306C11.486,12.901,11.743,13,12,13c0.255,0,0.511-0.097,0.705-0.291C13.097,12.319,13.099,11.686,12.709,11.295z"/></svg>',enlarge32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,9v6.5c0,0.552-0.447,1-1,1s-1-0.448-1-1v-4.086L11.414,22H15.5c0.552,0,1,0.447,1,1s-0.448,1-1,1H9\tc-0.13,0-0.26-0.026-0.382-0.077c-0.245-0.102-0.439-0.296-0.541-0.541C8.026,23.26,8,23.13,8,23v-6.5c0-0.552,0.448-1,1-1\ts1,0.448,1,1v4.085L20.586,10H16.5c-0.552,0-1-0.448-1-1s0.448-1,1-1H23c0.13,0,0.26,0.026,0.382,0.077\tc0.245,0.102,0.439,0.296,0.541,0.541C23.974,8.74,24,8.87,24,9z"/></svg>',options32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M26.1,21.383c0.334-0.625,0.602-1.279,0.812-1.949L32,18.609V13.51l-5.058-0.846\tc-0.208-0.67-0.468-1.325-0.795-1.956l3.009-4.145l-3.604-3.634L21.38,5.903c-0.626-0.333-1.276-0.602-1.948-0.81L18.609,0\tl-5.098,0.001l-0.847,5.061c-0.669,0.203-1.326,0.465-1.957,0.794L6.562,2.847L2.929,6.449l2.973,4.171\tC5.569,11.247,5.3,11.9,5.091,12.569L0,13.373v5.099l5.06,0.866c0.204,0.669,0.467,1.324,0.796,1.955l-3.009,4.146l3.601,3.635\tl4.171-2.975c0.627,0.335,1.282,0.603,1.951,0.811L13.372,32h5.118l0.849-5.057c0.668-0.207,1.323-0.469,1.953-0.795l4.144,3.01\tl3.639-3.604L26.1,21.383z M19.01,19.035c-1.675,1.663-4.381,1.652-6.041-0.025c-1.662-1.675-1.649-4.381,0.024-6.042\tc1.676-1.661,4.382-1.648,6.043,0.025C20.699,14.67,20.686,17.377,19.01,19.035z"/></svg>',file32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="none" stroke="#4A48C1" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M18.132,11.784v10.039c0,1.15-0.915,2.079-2.048,2.079l0,0c-1.133,0-2.048-0.929-2.048-2.079V8.3c0-2.099,1.675-3.8,3.743-3.8l0,0\tc2.066,0,3.741,1.701,3.741,3.8v13.596c0,3.093-2.475,5.604-5.52,5.604l0,0c-3.048,0-5.519-2.511-5.519-5.604V9.604"/></svg>',upload32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z"/></svg>',download16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#FFF" d="M3.175,7.726c-0.413-0.367-0.45-0.999-0.083-1.412c0.367-0.413,0.999-0.45,1.412-0.083L7,8.45V1.5\tc0-0.552,0.448-1,1-1c0.553,0,1,0.448,1,1v6.95l2.496-2.219c0.412-0.367,1.044-0.331,1.411,0.083\tc0.367,0.413,0.33,1.045-0.083,1.412l-4.16,3.698c-0.047,0.041-0.103,0.062-0.154,0.094c-0.047,0.028-0.089,0.064-0.141,0.085\tC8.25,11.649,8.125,11.677,8,11.677c-0.126,0-0.25-0.027-0.369-0.074c-0.05-0.021-0.09-0.055-0.136-0.083\tc-0.053-0.031-0.111-0.053-0.159-0.096L3.175,7.726z M12.018,13.5H3.983c-0.552,0-1,0.447-1,1s0.448,1,1,1h8.035\tc0.553,0,1-0.447,1-1S12.57,13.5,12.018,13.5z"/></svg>',error16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#ad001f" d="M15.744,13.104L9.097,1.47c-0.604-1.055-1.59-1.055-2.193,0L0.256,13.104\tc-0.604,1.056-0.102,1.919,1.113,1.919H14.63C15.847,15.022,16.348,14.159,15.744,13.104z M7,5.045c0-0.552,0.448-1,1-1s1,0.448,1,1\tv3.656c0,0.552-0.448,1-1,1s-1-0.448-1-1V5.045z M8,13.212c-0.748,0-1.354-0.607-1.354-1.354c0-0.748,0.606-1.354,1.354-1.354\ts1.354,0.606,1.354,1.354C9.354,12.604,8.748,13.212,8,13.212z"/></svg>',arrowLeft16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M13.6,8c0,0.6-0.4,1-1,1h-7l2.2,2.5c0.4,0.4,0.3,1-0.1,1.4c-0.2,0.2-0.4,0.2-0.7,0.2c-0.3,0-0.6-0.1-0.8-0.3\n\tL2.6,8.6c0,0-0.1-0.1-0.1-0.2c0,0-0.1-0.1-0.1-0.1c0-0.1-0.1-0.2-0.1-0.3c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.3,0.1-0.4\n\tc0,0,0.1-0.1,0.1-0.1c0-0.1,0.1-0.1,0.1-0.2l3.7-4.1c0.4-0.4,1-0.4,1.4-0.1c0.4,0.4,0.4,1,0.1,1.4L5.6,7h7C13.2,7,13.6,7.4,13.6,8z"\n\t/>\n</svg>\n',arrowRight16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M2.4,8.1c0-0.6,0.4-1,1-1h7L8.1,4.5c-0.4-0.4-0.3-1,0.1-1.4c0.2-0.2,0.4-0.2,0.7-0.2c0.3,0,0.6,0.1,0.8,0.3\n\tl3.7,4.2c0,0,0.1,0.1,0.1,0.2c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.2,0.1,0.3c0,0,0,0,0,0c0,0,0,0,0,0c0,0.1,0,0.3-0.1,0.4\n\tc0,0-0.1,0.1-0.1,0.1c0,0.1-0.1,0.1-0.1,0.2l-3.7,4.1c-0.4,0.4-1,0.4-1.4,0.1c-0.4-0.4-0.4-1-0.1-1.4l2.2-2.4h-7\n\tC2.8,9.1,2.4,8.6,2.4,8.1z"/>\n</svg>\n'};var ha=({name:t,size:e="32",className:n,alt:r})=>{const o=`${t}${e}`;return la(K,{children:[la("div",{"aria-hidden":"true",className:n||na("icon"),dangerouslySetInnerHTML:{__html:fa[o]}}),r&&la("span",{className:na("visually-hidden"),children:r})]})};const{createActions:da}=_o("translations"),[va,ya]=da("translate",{enable:t=>({locale:t}),disable:()=>({})}),[ga,ma]=da("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),ba=(t,e)=>(n,r)=>r[t]||e;function _a(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ea(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=_a(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=_a(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const xa={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:li()};var wa=Eo("translations",{[ir.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?Ea(Ea({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[ir.SET_HISTORY]:(t,{history:e})=>{var n,r;return Ea(Ea({},t),{},{isActive:null==e||null===(n=e.translation)||void 0===n?void 0:n.enabled,currentLocale:null==e||null===(r=e.translation)||void 0===r?void 0:r.locale})},[ir.CLEAR_FEATURES]:()=>xa,[va]:(t,{locale:e})=>Ea(Ea({},t),{},{isActive:!0,currentLocale:e}),[ya]:t=>Ea(Ea({},t),{},{isActive:!1,currentLocale:void 0}),[ga]:(t,{payloadId:e})=>{var n,r;return he()(n=t.originalPayloadIds).call(n,e)?Ea(Ea({},t),{},{originalPayloadIds:w()(r=t.originalPayloadIds).call(r,(t=>t!==e))}):t},[ma]:(t,{payloadId:e})=>{var n;return he()(n=t.originalPayloadIds).call(n,e)?t:Ea(Ea({},t),{},{originalPayloadIds:[...t.originalPayloadIds,e]})}},xa);const Da=t=>t[String(wa)],Ta=De(Da,(t=>t.originalPayloadIds)),Aa=De(Ta,ba("payloadId"),((t,e)=>!he()(t).call(t,e)));function Ca(){const{sendAction:t}=Ai(),e=Le(),n=fi((n=>{t({type:Zn,body:{enabled:!0,locale:n}}),e(va(n))})),r=fi((()=>{t({type:Zn,body:{enabled:!1}}),e(ya())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=Be(Da,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Sa({payload:t}={}){var e,n,r;const o=null==t?void 0:t.id;let i,a;switch(null==t?void 0:t.type){case"participant":i=t.participant.introduction,a=t.participant.translatedIntroduction;break;default:i=null==t?void 0:t.body,a=null==t?void 0:t.translatedBody}const s=!!a,u=Ue(Aa,{payloadId:o},[o]),c=Le(),l=fi((()=>{c(u?ma(o):ga(o))}));return[s&&u?null===(e=a)||void 0===e?void 0:e.data:i,{hasTranslation:s,isTranslated:u&&s,toggleTranslation:l,translatedBy:null===(n=a)||void 0===n?void 0:n.translatedBy,locale:null===(r=a)||void 0===r?void 0:r.locale}]}function ka(){const t=Be(Da,[]).containerId;return{id:t,focusContainer:co(t)}}var Oa=({children:t,onCancel:e,headingText:n,cancelButtonText:r,disableButtonFocusing:o,cancelButtonRef:i,position:a="right"})=>{const s=Rt(null),u=pi(),{hideOption:c}=Uo(),{focusButton:l}=Mo();return Ft((()=>{un(s.current)}),[]),la("section",{className:na("options",{"options--right":"left"!==a,"options--left":"left"===a}),"aria-labelledby":u,tabIndex:"-1",ref:s,children:la("div",{className:na("options__body"),children:[la("h2",{id:u,className:na("options__title"),children:n}),la("button",{type:"button",onClick:()=>{e&&e(),c(),o||l()},"aria-describedby":u,className:na("button","options__close"),ref:t=>{i&&(i.current=t)},children:[la(ha,{name:"close",size:"16"}),la("span",{children:r})]}),la("div",{className:na("options__wrapper"),children:t})]})})};const{createActions:Ia}=_o("forms"),[Fa,Na]=Ia("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[Ra,ja,Pa,La]=Ia("control",{register:(t,e)=>({formId:t,name:e}),deregister:(t,e)=>({formId:t,name:e}),updateValue:(t,e,n)=>({formId:t,name:e,value:n}),updateTouched:(t,e,n)=>({formId:t,name:e,touched:n})});function Ba(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ua(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Ba(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Ba(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Ma={controls:{}},za={value:"",touched:!1};function $a(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||za;return Ua(Ua({},t),{},{[e]:Ua(Ua({},t[e]),{},{controls:Ua(Ua({},t[e].controls),{},{[n]:Ua(Ua({},i),r)})})})}var Ha=Eo("form",{[Fa]:(t,{formId:e,persistData:n})=>{const r=n?t[e]??Ua(Ua({},Ma),{},{persistData:n}):Ua(Ua({},Ma),{},{persistData:n});return Ua(Ua({},t),{},{[e]:r})},[Na]:(t,{formId:e})=>{var n;const r=Ua({},t);return null!==(n=r[e])&&void 0!==n&&n.persistData||delete r[e],r},[Ra]:(t,{name:e,formId:n})=>$a(t,n,e),[ja]:(t,{formId:e,name:n})=>{const r=t[e];if(!r)return t;if(r.persistData)return t;const o=Ua({},r.controls);return delete o[n],Ua(Ua({},t),{},{[e]:Ua(Ua({},r),{},{controls:o})})},[Pa]:(t,{formId:e,name:n,value:r})=>$a(t,e,n,{value:r}),[La]:(t,{formId:e,name:n,touched:r})=>$a(t,e,n,{touched:r})},{});const qa=De((t=>t[String(Ha)]),ba("formId"),((t,e)=>t[e])),Va=De(qa,(t=>(null==t?void 0:t.controls)||{})),Wa=De(Va,(t=>{var e;const n={};return T()(e=$()(t)).call(e,(([t,{value:e}])=>{n[t]=e})),n})),Ga=De(Va,ba("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),Ya=De(Va,ba("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),Ka=yt({});var Ja=Ka;const{Provider:Qa,Consumer:Za}=Ka;function Xa(){return Lt(Ja)}function ts(t){const e=Le(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=Xa(),a=!!Ue(qa,{formId:n},[n]),s=Rt();s.current=a;const u=Ue(Ga,{formId:n,name:t},[n,t]),c=Ue(Ya,{formId:n,name:t},[n,t]),l=null==i?void 0:i[t],p=!l;Ft((()=>{s.current&&e(Ra(n,t))}),[a,n,t,e]),Nt((()=>()=>{e(ja(n,t))}),[a,n,t,e]);const f=Pt((e=>r(t,e.target.value)),[t,r]),h=Pt((()=>{o(t,!0)}),[o,t]);return[jt((()=>({name:t,onInput:f,onBlur:h,value:u})),[t,f,h,u]),jt((()=>({isValid:p,error:l,touched:c})),[p,l,c])]}const es=["children","formId","persistData","onSubmit","validationSchema"];function ns(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function rs(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=ns(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=ns(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function os(t){let{children:n,formId:r,persistData:o,onSubmit:i,validationSchema:a}=t,u=N(t,es);const c=Le(),l=Ue(Wa,{formId:r},[r]),[p,f]=Ot(!1),[h,d]=Ot({}),{isValid:v,errors:y}=function(t,n){const r=jt((()=>function(t,n={}){var r;return Ge()(r=$()(n)).call(r,((n,[r,o])=>{o&&!e()(o)&&(o=[o]);for(let e=0;e<(null===(i=o)||void 0===i?void 0:i.length);e++){var i;if(!o[e].fn(t[r],o[e].compareValue)){n[r]=o[e].errorText;break}}return n}),{})}(t,n)),[t,n]);return{isValid:0===s()(r).length,errors:r}}(l,a),g=jt((()=>rs(rs({},y),h)),[y,h]);Nt((()=>{c(Fa(r,o))}),[r,o,c]),Ft((()=>()=>{c(Na(r))}),[r,o,c]);const m=Pt(((t,e)=>{c(Pa(r,t,e))}),[r,c]),b=Pt(((t,e)=>{c(La(r,t,e))}),[c,r]),_=Pt(((t,e)=>{d((n=>rs(rs({},n),{},{[t]:e})))}),[d]),E=Pt((t=>{t.preventDefault(),f(!0),v&&i(l,{updateControlValue:m,setError:_})}),[v,i,l,m,_]),x=jt((()=>({formId:r,values:l,errors:g,isValid:0===s()(g).length,isSubmitted:p,handleSubmit:E,validationSchema:a,updateControlValue:m,updateControlTouched:b})),[r,l,g,p,E,a,m,b]);return r?i?la(Qa,rs(rs({},u),{},{value:x,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}var is=n(2088);function as(){return(as=is||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ss(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}var us=function(t){let e=as({},t);const{handleSubmit:n}=function(){const{handleSubmit:t}=Xa();return{handleSubmit:t}}();return la("form",function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=ss(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=ss(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({onSubmit:n},e))},cs=({contentHint:t,id:e,labelText:n,labelClass:r=na("label"),validity:o,errorText:i,children:a})=>la(K,{children:[la("label",{htmlFor:e,className:r,children:n}),t&&la("span",{id:`${e}-content-hint`,className:na("input__content-hint"),children:t}),la("div",{"aria-live":"assertive","aria-atomic":"true",children:!o&&la("span",{id:`${e}-error`,className:na("error"),children:[la(ha,{name:"error",size:"16"}),i]})}),a]});const ls=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function ps(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fs(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=ps(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=ps(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var hs=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,u=N(t,ls);const{isSubmitted:c}=Xa(),[l,{error:p}]=ts(n),f=c&&p,h=[];return a&&h.push(a),i&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),la(cs,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:la("select",fs(fs(fs({id:e,name:n,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u),{},{children:E()(s).call(s,(t=>la("option",{value:t.value,children:t.label},t.value)))}))})},ds=function({controlName:t,descriptionId:e}){const{t:n}=Fo(),{isActive:r,languages:o,currentLocale:i}=Ca(),a=jt((()=>{var t;return null==o||null===(t=In()(o).call(o,(t=>t.locale===i)))||void 0===t?void 0:t.nativeName}),[o,i]),s=jt((()=>[{value:"",label:n("translations.settings.defaultOptionLabel")},...E()(o).call(o,(t=>({value:t.locale,label:t.nativeName})))]),[n,o]);return la(us,{noValidate:"true",children:[la("p",{className:na("options__description"),id:e,children:n("translations.settings.description")}),r?la(K,{children:[la("h3",{children:n("translations.settings.currentTranslationLabel")}),la("p",{className:na("options__active-language"),children:a})]}):la(hs,{name:t,type:"text",className:na("input__select"),"aria-describedby":e,labelClass:na("label"),labelText:n("translations.settings.inputLabel"),options:s,defaultValue:i||""}),la("div",{className:na("options__actions"),children:la("button",{type:"submit",className:na("button","button--primary","options__submit"),children:n(r?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const{REGISTER_FORM:vs,DE_REGISTER_FORM:ys,REGISTER:gs,DE_REGISTER:ms,SET_VALUE:bs,SET_VALIDITY:_s,SET_STATE:Es,SET_SUBMITTED:xs,SET_PERSIST_FORM_DATA:ws}={REGISTER_FORM:"REGISTER_FORM",DE_REGISTER_FORM:"DE_REGISTER_FORM",REGISTER:"REGISTER",DE_REGISTER:"DEREGISTER",SET_VALUE:"SET_VALUE",SET_VALIDITY:"SET_VALIDITY",SET_STATE:"SET_STATE",SET_SUBMITTED:"SET_SUBMITTED",SET_PERSIST_FORM_DATA:"SET_PERSIST_FORM_DATA"},Ds=(t,e,n=null)=>({fn:t,errorText:e,compareValue:n}),Ts=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},As=t=>!(null==t||!t.length)>0,Cs=t=>!(!t||!t.match(/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i)),Ss=t=>!!t,ks="translation-settings",Os="locale";var Is=function({onClose:t}){const{t:e}=Fo(),{isActive:n,enableTranslations:r,disableTranslations:o}=Ca(),i=pi(),{focusContainer:a}=ka(),s=Rt(0),u=jt((()=>(s.current+=1,n?{}:{[Os]:Ds(Ss,e("translations.settings.noLocaleText"))})),[n,e]);return la(Oa,{onCancel:t,formName:ks,headingText:e("translations.settings.title"),cancelButtonText:e("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:la(os,{onSubmit:({locale:e})=>{n?o():(r(e),t(),a())},formId:ks,validationSchema:u,children:la(ds,{controlName:Os,descriptionId:i})},s.current)})};function Fs(){const{t:t}=Fo(),[e,n]=Ot(!1),r=Rt(null),o=pi();return la("div",{className:na("translations__container"),onKeyDown:t=>{e&&sn(t)===an.Escape&&(n(!1),un(r.current))},children:[la(ua,{transitionStartState:ia,isActive:e,children:la("div",{className:na("options__dialog"),role:"dialog",children:la(Is,{onClose:()=>{n(!1)}})})}),la("button",{type:"button",className:na(["button","button--secondary","app__options__button"]),id:o,onClick:()=>{n((t=>!t))},onKeyDown:t=>{sn(t)===an.ArrowDown&&(n(!0),t.preventDefault())},ref:r,"aria-haspopup":"dialog","aria-expanded":e.toString(),children:[la(ha,{name:"newTranslation",size:"16"}),la("span",{className:na("button__text"),children:t("translations.settings.openButtonText")})]})]})}function Ns({id:t,label:e,onButtonClick:n,buttonText:r,srButtonText:o,type:i}){const a=pi();return la("section",{className:na("chat-status",i&&`chat-status--${i}`),id:t,tabIndex:"-1","aria-labelledby":a,children:[la("h2",{className:na("chat-status__title"),id:a,children:e}),la("button",{type:"button",className:na("button","button--tertiary"),onClick:n,children:[la("span",{"aria-hidden":o?"true":void 0,children:r}),o&&la("span",{className:na("visually-hidden"),children:o})]})]})}function Rs(){const{t:t}=Fo(),{id:e}=ka(),{hasInterrupt:n}=Ko(),{isActive:r,disableTranslations:o,languages:i,currentLocale:a}=Ca(),s=lo(),u=jt((()=>{var t;return null==i||null===(t=In()(i).call(i,(t=>t.locale===a)))||void 0===t?void 0:t.nativeName}),[i,a]),c=Pt((()=>{o(),s()}),[o,s]);return!r||n?null:la(Ns,{type:"translations",id:e,label:t("translations.status.label",u),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const js=["categories"];function Ps(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ls(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Ps(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Ps(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Bs=()=>{const{t:t}=Fo(),{sendAction:e,addMessageBubble:n}=Ai(),r=pi(),o=lo(),{sendPolite:i}=Si(),{hasInterrupt:a}=Ko(),{hasCountdown:s,endCountdown:u}=Ji(),{hasPrompt:c,continueChat:l}=Zi(),p=("suggestion",dn().serviceData.suggestion);const[f]=Sa({payload:p}),h=jt((()=>{const t=p&&!a?f:[];return E()(t).call(t,(t=>{let{categories:e=[]}=t;return Ls(Ls({},N(t,js)),{},{categories:e,classNames:["faqs__item",...E()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[p,a,f]),d=Rt(null),v=Rt(!1),{isInline:y}=Dn(),g=_e(),m=!y&&g,b=Rt(m),_=!!h.length,x=_&&!m,w=Rt([]),D=_?h:w.current;w.current=D;const T=Rt(null);Ft((()=>{if(d.current!==h&&!m){if(_){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");pe()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));d.current=h}!b.current&&m?(cn(T.current,o),i(t("faq.srUnavailableText"))):!_&&v.current&&cn(T.current,o),v.current=_,b.current=m}),[_,h,m,o,i,t]);const A=t("faq.headingText");return la(ua,{isActive:x,transitionStartState:ia,children:la(A?"section":"div",{className:na("faqs"),"aria-labelledby":A?r:null,ref:T,children:[A&&la("h2",{id:r,className:na("faqs__heading"),children:A}),!!D.length&&la("ul",{className:na("faqs__list"),children:E()(D).call(D,(t=>la("li",{className:na(t.classNames),children:la("button",{type:"button",onClick:()=>{(({id:t,question:r})=>{s&&u(!0),c&&l(),e({type:"custom",originMessage:p.id,body:{type:"faqclick",body:{faqId:t,faqQuestion:r}}}),n(r),o()})(t)},className:na("button","button--secondary"),children:[la(ha,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},Us=({children:t})=>{const[,e]=uo(),{isOpen:n,isVisible:r,setVisibility:o}=zi(),{context:i,zIndex:a,showFaq:s}=yn(),{isModal:u,isInline:c}=Dn(),l=fo(),p=_e(),[f,h]=Ot(void 0),{locale:d}=i||{},v=Pt((t=>{e(t)}),[e]);Ft((()=>{if(d){const t=document.querySelector("html").getAttribute("lang");t&&t===d||h(d)}}),[d]);const y=["app",...l];return n||y.push("app--collapsed"),p&&y.push("app--user-responded"),r&&la("section",{className:na(y),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!c&&n&&o(Wn.minimized)},onClick:t=>{u&&t.stopPropagation()},lang:f,tabIndex:"-1",ref:v,style:{zIndex:a},"data-nosnippet":!0,children:[la("div",{className:na("app-wrapper"),children:t}),s&&la(Bs,{})]})},Ms=()=>{const{t:t}=Fo(),{setUserSelectedOption:e}=Uo(),n=lo(),{id:r}=vo();return la(Ns,{type:"cobrowsing",id:r,label:t("options.cobrowsing.cobrowsingActiveText"),onButtonClick:()=>{e(rr,!1),n()},buttonText:t("options.cobrowsing.stopCobrowsingText"),srButtonText:t("options.cobrowsing.srStopCobrowsingText")})},zs=()=>{const{t:t}=Fo(),{userSelectedOptions:e}=Uo(),{hasInterrupt:n}=Ko(),{cobrowsing:r}=e,o=Rt(r),{sendPolite:i}=Si();return Ft((()=>{!r&&o.current&&pe()((()=>{i(t("options.cobrowsing.srStoppedCobrowsingText"))}),300),o.current=r}),[r,t,i]),r&&!n&&la(Ms,{})},$s=n(6419),Hs=n.n($s),qs=n(2462),Vs=n.n(qs);const Ws=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function Gs(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ys(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Gs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Gs(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Ks=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,u=N(t,Ws);const{isSubmitted:c}=Xa(),[l,{error:p}]=ts(n),f=c&&p,h=[];return s&&h.push(s),a&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),la(cs,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:la("input",Ys(Ys({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u))})};function Js({controlName:t,describedById:e}){const{t:n}=Fo();return la(us,{noValidate:"true",children:[la(Ks,{name:t,type:"text",className:na("transcript__input"),"aria-describedby":e,labelClass:na("label"),labelText:n("options.sendTranscript.label")}),la("div",{className:na("options__actions"),children:la("button",{type:"submit",className:na("button","button--primary","options__submit"),children:n("options.sendTranscript.sendButtonText")})})]})}const Qs="email",Zs={cobrowsing:()=>{const{t:t}=Fo(),e=pi(),{userSelectedOptions:n,features:r,setUserSelectedOption:o,hideOption:i}=Uo(),{enabled:a}=r.cobrowsing||{},s=Rt(null),[u,c]=Ot(a),{focusButton:l}=Mo(),{focusContainer:p}=vo(),{sendAssertive:f}=Si(),h=Rt(null),d=Rt(null);Ft((()=>{a||!0!==s.current||(f(t("options.cobrowsing.cobrowsingUnavailable")),o(rr,!1),cn(d.current,(()=>{un(h.current)}))),a&&!1===s.current&&f(t("options.cobrowsing.srCobrowsingAvailable")),c(a),s.current=a}),[a,o,f,t]);const v=t=>{t||n.cobrowsing?l():p()};return la(Oa,{headingText:t("options.cobrowsing.title"),cancelButtonText:t("options.cancelButtonText"),onCancel:()=>{v(!0)},disableButtonFocusing:!0,cancelButtonRef:h,children:[la("p",{className:na("options__description"),id:e,children:t("options.cobrowsing.description")}),!u&&la("p",{className:na("notification"),children:t("options.cobrowsing.cobrowsingUnavailable")}),u&&la("button",{type:"button",className:na(["button","button--primary"]),onClick:()=>{i(),v(),o(rr,!n.cobrowsing),f(t("options.cobrowsing.srStartedCobrowsingText"))},"aria-describedby":e,ref:d,children:n.cobrowsing?t("options.cobrowsing.labelTurnOff"):t("options.cobrowsing.labelTurnOn")})]})},sendTranscript:()=>{const{hideOption:t}=Uo(),{focusButton:e}=Mo(),{t:n}=Fo(),r=pi(),{sendAction:o}=Ai(),i=jt((()=>({[Qs]:[Ds(Ss,n("options.sendTranscript.noEmailText")),Ds(Cs,n("options.sendTranscript.invalidEmailText"))]})),[n]),a=Pt((n=>{const r=n.email;o({type:"send_transcript",body:{emailAddress:r}}),t(),e()}),[o,t,e]);return la(Oa,{headingText:n("options.sendTranscript.title"),cancelButtonText:n("options.cancelButtonText"),children:[la("p",{className:na("options__description"),id:r,children:n("options.sendTranscript.description")}),la(os,{formId:"sendTranscript",onSubmit:a,validationSchema:i,children:la(Js,{controlName:Qs,describedById:r})})]})}};var Xs=()=>{const{optionActive:t}=Uo(),e=Rt(null),n=Zs[t||e.current];return t&&(e.current=t),la(n,{})},tu=()=>{const{t:t}=Fo(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=Uo(),{id:i}=Mo(),a=Rt(null),[s,u]=Ot(!1),c=Rt(null),l=e.length,p=Rt(Hs()({length:l},(()=>({current:null})))),f=Rt(!1),h=l>1,d=e[0],v=jt((()=>{var t;return null==d||null===(t=d.name)||void 0===t?void 0:si()(t).call(t).replace(/\s+/g,"")}),[d]);return Ft((()=>()=>{clearTimeout(a.current)}),[]),Ft((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=Vs()(e).call(e,(t=>t.available)),n=-1===t?0:t;un(p.current[n])}))})),f.current=s}),[s,e]),l?la("div",{className:na("options__container"),onKeyDown:t=>{s&&(sn(t)===an.Escape&&(u(!1),un(c.current)),sn(t)===an.Home&&(un(p.current[0]),t.preventDefault()),sn(t)===an.End&&(un(p.current[l-1]),t.preventDefault()))},onfocusout:()=>{h&&(a.current=pe()((()=>{u(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[la(ua,{transitionStartState:ia,isActive:r,children:la("div",{className:na("options__dialog"),children:la(Xs,{})})}),h&&la(ua,{isActive:s,transitionStartState:ia,children:la("ul",{className:na(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:E()(e).call(e,(({name:r,title:o,available:i},a)=>la("li",{className:na("options__menu__item"),role:"menuitem","data-testid":r,children:la("button",{type:"button",ref:t=>{p.current[a]=t},className:na(["button","button--secondary",...i?[]:["button--disabled"]]),onKeyDown:t=>((t,e)=>{if(sn(t)===an.ArrowDown){const n=Math.min(l-1,e+1);un(p.current[e===n?0:n]),t.preventDefault()}if(sn(t)===an.ArrowUp){const n=Math.max(0,e-1);un(p.current[e===n?l-1:n]),t.preventDefault()}})(t,a),onKeyPress:t=>((t,n)=>{const r=String.fromCharCode(t.charCode);if(1!==r.length||!r.match(/\S/))return;let o=-1;T()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&un(p.current[o])})(t,a),onClick:()=>((t,e)=>{e&&(u(!1),n(t))})(r,i),"aria-disabled":i?null:"true",children:[la("span",{className:na("button__text"),children:[o,!i&&" "]}),!i&&la("span",{className:na("button__state"),children:t("options.unavailableText")})]})},r)))})}),la("button",{type:"button",className:na(["button","button--secondary","app__options__button",...!h&&v?[`app__options__button--${v}`]:[],...h||d.available?[]:["button--disabled"]]),id:i,onClick:()=>{r&&o(),h?u((t=>!t)):d.available&&n(d.name)},onKeyDown:h?t=>{sn(t)===an.ArrowDown&&(u(!0),t.preventDefault())}:null,ref:c,"aria-haspopup":h?"menu":null,"aria-expanded":h?s.toString():null,"aria-disabled":h||d.available?null:"true",children:[h&&la(ha,{name:"options",size:"32"}),la("span",{className:na("button__text"),children:h?t("options.openButtonText"):`${d.title}${d.available?"":" "}`}),!h&&!d.available&&la("span",{className:na("button__state"),children:t("options.unavailableText")})]})]}):null};function eu(){const{menuOptions:t,allowOptionSelection:e}=Uo(),{isAvailable:n}=Ca();return n||e&&t.length?la("div",{className:na("app__options"),children:[n&&la("div",{className:na("app__options-item","app__options-item--left"),children:la(Fs,{})}),e&&la("div",{className:na("app__options-item","app__options-item--right"),children:la(tu,{})})]}):null}function nu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}var ru=function({children:t,interruptComponent:e}){const{hasInterrupt:n,meta:r}=Ko(),{isOpen:o}=zi();return la(K,{children:[la(zs,{}),la(Rs,{}),la("div",{className:na("app__container"),children:n?o?la(e,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=nu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=nu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({},r)):null:t}),la(eu,{})]})},ou=({onOpenChat:t})=>{const{t:e}=Fo(),n=pi(),{isOpen:r}=zi(),o=Rt(null),i=Rt(null),a=lo(),s=po(),u=wn(),c=bn().subTitle,{hasInterrupt:l}=Ko(),p=u&&!l;return Nt((()=>{!1===r&&!0===o.current&&s(i.current),o.current=r}),[r,s]),la("div",{className:na("toggle-button"),children:[la("div",{id:n,children:[la("p",{className:na("toggle-button__title"),children:e(p?"toggleButton.resumeTitle":"toggleButton.title")}),la("p",{className:na("toggle-button__subtitle"),children:p?c:e("toggleButton.subtitle")})]}),la("button",{type:"button","aria-labelledby":n,className:na("toggle-button__button"),onClick:t,ref:i,onMouseUp:()=>{a()}})]})},iu=()=>{const{t:t}=Fo(),{title:e,subTitle:n}=bn(),r=_n(),{isOpen:o}=zi(),i=wn(),{hasInterrupt:a}=Ko(),{defaults:s}=yn(),{startChatIcon:u}=s||{},c=i&&!a?i.avatar:null,l=a?"":n,p=["message-count"];return o&&p.push("message-count__hide"),0===r&&p.push("message-count__empty"),(c||l||!o)&&la("div",{className:na("agent-info"),children:[la("div",{className:na("agent-info__graphic"),children:[c||u?la("img",{className:na(c?"avatar":"icon"),src:c||u,alt:""}):la(ha,{name:"avatar",size:"32"}),la("span",{className:na(p),"aria-hidden":"true",children:r})]}),la("div",{className:na("agent-info__body"),children:[la("p",{className:na("agent-info__heading"),children:e??t("header.title")}),la("p",{className:na("agent-info__text"),children:l})]})]})},au=({children:t,onCloseChat:e})=>{const{isOpen:n}=zi(),r=Rt(null),o=Rt(null),i=po();Nt((()=>{n&&!1===r.current&&i(o.current),r.current=n}),[n,i]);const{t:a}=Fo();return la("header",{className:na("app__header"),children:[t,la("div",{className:na("header-controls"),children:la("button",{type:"button",className:na("button","header-controls__collapse"),onClick:e,ref:o,children:la(ha,{name:"chevronDown",size:"32",alt:a("header.collapseApp")})})})]})},su=yt({});function uu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function cu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=uu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=uu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function lu({children:t,childrenHTML:e,className:n,graphicSrc:r,graphicType:o="icon",iconName:i,iconSize:a,iconClassName:s,dividerType:u}){const c=Boolean(i||r),l=e?{dangerouslySetInnerHTML:{__html:e}}:{children:t};return la("div",{className:na("divider",u&&`divider--type-${u}`,n),children:[c&&la("span",{className:na("divider__graphic"),children:i?la(ha,{name:i,size:a,className:s}):la("img",{src:r,className:na({icon:"icon"===o,avatar:"avatar"===o},s)})}),la("div",cu({className:na("divider__body")},l))]})}const pu={month:"long",day:"numeric",year:"numeric"},fu={hour:"numeric",minute:"numeric"};var hu=({event:t})=>{const e=(()=>{const[t,e]=It((t=>t+1),0);return Pt((()=>{pe()((()=>{e()}))}),[])})(),{date:n,time:r,timeUntilMidnight:o,srText:i}=(t=>{var e;const{t:n}=Fo(),r=yn(),o=(null==r||null===(e=r.context)||void 0===e?void 0:e.locale)??[],i=new Date(t),a=new Date,s=new Date(a);s.setHours(24,0,0,0);const u=s-a,c=i.toString(),l=new Intl.DateTimeFormat(o,fu).format(i);let p=((t,e)=>{const n=new Date(e).setHours(0,0,0,0),r=t.getTime(),o=864e5;return r>=n+o?t:r>n?"today":r>n-o?"yesterday":t})(i,a);switch(p){case"today":p=n("dateTime.today");break;case"yesterday":p=n("dateTime.yesterday");break;default:p=new Intl.DateTimeFormat(o,pu).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:l}),time:l,fullDateTime:c,timeUntilMidnight:u}})(tn(t.timeIndicator));return Ft((()=>{const t=pe()((()=>{e()}),o);return()=>{clearTimeout(t)}}),[e,o]),la(lu,{dividerType:"time-indicator",children:[la("p",{className:na("divider__time"),"aria-hidden":"true",children:[la("span",{children:n}),la("span",{children:r})]}),la("p",{className:na("visually-hidden"),children:i})]})},du=({event:t,newParticipant:e})=>{const[n,r]=(t=>{const e=Lt(su);let n=null;"choice_prompt"===t.payload.type&&(n=e[t.type][t.payload.body.prompt.type]);const r=e[t.type][t.payload.type]||e.fallback;return[r&&"function"!=typeof r?r[t.payload.body.type]||e.fallback:r,n]})(t);if(!n)return null;const o=["conversation__item"];return"info"===t.type?o.push("conversation__item--source-info"):t.payload.fromClient?o.push("conversation__item--source-user"):o.push("conversation__item--source-agent"),e&&o.push("conversation__item--new-participant"),la("li",{className:na(o),children:[t.timeIndicator&&la(hu,{event:t}),la(n,{event:t,children:la(r,{event:t})})]})},vu=({eventPayload:t})=>{const{fromClient:e,participant:n}=t,r=(t=>dn().participantInfo.participants[t])(n)||{},{messages:o,defaults:i}=yn(),a=r&&r.name,{showAvatar:s,showName:u}=o[e?"user":"agent"]||{},{userName:c}=i||{};if(!s&&!u)return null;const l=[];s&&a&&r.avatar&&l.push(la("span",{className:na("message__avatar"),children:la("img",{src:r.avatar,className:na("avatar"),alt:""})}));const p=e&&c||a;return u&&p&&l.push(la("span",{className:na("message__author-name"),children:p})),l.length>0&&la("div",{className:na("message__author"),children:l})},yu=()=>{const{id:t}=wn()||{};return la("li",{className:na("conversation__item","conversation__item--source-agent"),children:la("div",{className:na("message","message--source-agent","message--type-loading"),children:[la(vu,{eventPayload:{fromClient:!1,participant:t}}),la("div",{className:na("message__body"),children:la("span",{className:na("loader"),children:[la("span",{className:na("loader__part","one")}),la("span",{className:na("loader__part","two")}),la("span",{className:na("loader__part","three")}),la("span",{className:na("loader__part","four")})]})})]})})};const gu=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function mu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=mu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=mu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var _u=function(t){let{showParticipant:e=!0,showTranslationToggle:n=!0,event:r,type:o,modifiers:i,children:a,bodyProps:s={},info:u}=t,c=N(t,gu);const l=ho(r),{t:p}=Fo(),[,{hasTranslation:f,isTranslated:h,toggleTranslation:d,locale:v}]=Sa(r);var y;(o&&l.push("message--type-"+o),i)&&("string"==typeof i&&(i=w()(y=i.split(" ")).call(y,(t=>t.length))),T()(i).call(i,(t=>{l.push("message--"+t)})));return h&&l.push("message--is-translated"),f&&l.push("message--has-translation"),h&&(s=bu(bu({},s),{},{lang:v})),la(K,{children:la("div",bu(bu({className:na(l)},c),{},{children:[e&&la(vu,{eventPayload:r.payload}),la("div",bu(bu({className:na("message__body")},s),{},{children:a})),u&&la("div",{"aria-hidden":"true",className:na("message__info"),children:u}),n&&f&&la("div",{className:na("message__translation-info"),children:la("button",{className:na("message__translation-toggle","button","button--secondary"),onClick:d,children:p(h?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const Eu=["event","children"];function xu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function wu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=xu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=xu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Du=t=>{const{payload:e}=t,[n,r]=Ot(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=Ai(),{activeServiceSessionId:s}=dn().serviceInfo,u=Be(xn),[c]=Sa(t),{service:l}=e,p=jt((()=>{var e;return wu(wu({},t),{},{payload:wu(wu({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&wu(wu({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})}),[t]),f=c.chooseAgain&&s===l.serviceSessionId&&e.id!==u;return Ft((()=>{r(e.id===u)}),[e,u]),{body:c,subEvent:p,showOptions:n,chooseAgain:f,onChoiceClickHandler:t=>{f&&a("new_topic"),i(t.text),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:f}}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};var Tu=n(9853),Au=n.n(Tu),Cu=t=>{try{return Au()(t)}catch(e){return console.log("Could not parse message",t,e),""}},Su=t=>{const{sendAction:e}=Ai();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}},ku=Object.prototype.toString,Ou=Array.isArray||function(t){return"[object Array]"===ku.call(t)};function Iu(t){return"function"==typeof t}function Fu(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Nu(t,e){return null!=t&&"object"==typeof t&&e in t}var Ru=RegExp.prototype.test,ju=/\S/;var Pu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},Lu=/\s*/,Bu=/\s+/,Uu=/\s*=/,Mu=/\s*\}/,zu=/#|\^|\/|>|\{|&|=|!/;function $u(t){this.string=t,this.tail=t,this.pos=0}function Hu(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function qu(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}$u.prototype.eos=function(){return""===this.tail},$u.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},$u.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},Hu.prototype.push=function(t){return new Hu(t,this)},Hu.prototype.lookup=function(t){var e,n,r,o=this.cache;if(o.hasOwnProperty(t))e=o[t];else{for(var i,a,s,u=this,c=!1;u;){if(t.indexOf(".")>0)for(i=u.view,a=t.split("."),s=0;null!=i&&s<a.length;)s===a.length-1&&(c=Nu(i,a[s])||(n=i,r=a[s],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(r))),i=i[a[s++]];else i=u.view[t],c=Nu(u.view,t);if(c){e=i;break}u=u.parent}o[t]=e}return Iu(e)&&(e=e.call(this.view)),e},qu.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},qu.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||Vu.tags).join(":"),o=void 0!==n,i=o?n.get(r):void 0;return null==i&&(i=function(t,e){if(!t)return[];var n,r,o,i,a=!1,s=[],u=[],c=[],l=!1,p=!1,f="",h=0;function d(){if(l&&!p)for(;c.length;)delete u[c.pop()];else c=[];l=!1,p=!1}function v(t){if("string"==typeof t&&(t=t.split(Bu,2)),!Ou(t)||2!==t.length)throw new Error("Invalid tags: "+t);n=new RegExp(Fu(t[0])+"\\s*"),r=new RegExp("\\s*"+Fu(t[1])),o=new RegExp("\\s*"+Fu("}"+t[1]))}v(e||Vu.tags);for(var y,g,m,b,_,E,x=new $u(t);!x.eos();){if(y=x.pos,m=x.scanUntil(n))for(var w=0,D=m.length;w<D;++w)i=b=m.charAt(w),function(t,e){return Ru.call(t,e)}(ju,i)?(p=!0,a=!0,f+=" "):(c.push(u.length),f+=b),u.push(["text",b,y,y+1]),y+=1,"\n"===b&&(d(),f="",h=0,a=!1);if(!x.scan(n))break;if(l=!0,g=x.scan(zu)||"name",x.scan(Lu),"="===g?(m=x.scanUntil(Uu),x.scan(Uu),x.scanUntil(r)):"{"===g?(m=x.scanUntil(o),x.scan(Mu),x.scanUntil(r),g="&"):m=x.scanUntil(r),!x.scan(r))throw new Error("Unclosed tag at "+x.pos);if(_=">"==g?[g,m,y,x.pos,f,h,a]:[g,m,y,x.pos],h++,u.push(_),"#"===g||"^"===g)s.push(_);else if("/"===g){if(!(E=s.pop()))throw new Error('Unopened section "'+m+'" at '+y);if(E[1]!==m)throw new Error('Unclosed section "'+E[1]+'" at '+y)}else"name"===g||"{"===g||"&"===g?p=!0:"="===g&&v(m)}if(d(),E=s.pop())throw new Error('Unclosed section "'+E[1]+'" at '+x.pos);return function(t){for(var e,n=[],r=n,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":r.push(e),o.push(e),r=e[4]=[];break;case"/":o.pop()[5]=e[2],r=o.length>0?o[o.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(r.push(e),n=e));return r}(u))}(t,e),o&&n.set(r,i)),i},qu.prototype.render=function(t,e,n,r){var o=this.getConfigTags(r),i=this.parse(t,o),a=e instanceof Hu?e:new Hu(e,void 0);return this.renderTokens(i,a,n,t,r)},qu.prototype.renderTokens=function(t,e,n,r,o){for(var i,a,s,u="",c=0,l=t.length;c<l;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,n,r,o):"^"===a?s=this.renderInverted(i,e,n,r,o):">"===a?s=this.renderPartial(i,e,n,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e,o):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},qu.prototype.renderSection=function(t,e,n,r,o){var i=this,a="",s=e.lookup(t[1]);if(s){if(Ou(s))for(var u=0,c=s.length;u<c;++u)a+=this.renderTokens(t[4],e.push(s[u]),n,r,o);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)a+=this.renderTokens(t[4],e.push(s),n,r,o);else if(Iu(s)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(e.view,r.slice(t[3],t[5]),(function(t){return i.render(t,e,n,o)})))&&(a+=s)}else a+=this.renderTokens(t[4],e,n,r,o);return a}},qu.prototype.renderInverted=function(t,e,n,r,o){var i=e.lookup(t[1]);if(!i||Ou(i)&&0===i.length)return this.renderTokens(t[4],e,n,r,o)},qu.prototype.indentPartial=function(t,e,n){for(var r=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!n)&&(o[i]=r+o[i]);return o.join("\n")},qu.prototype.renderPartial=function(t,e,n,r){if(n){var o=this.getConfigTags(r),i=Iu(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;0==s&&u&&(c=this.indentPartial(i,u,a));var l=this.parse(c,o);return this.renderTokens(l,e,n,c,r)}}},qu.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},qu.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||Vu.escape,o=e.lookup(t[1]);if(null!=o)return"number"==typeof o&&r===Vu.escape?String(o):r(o)},qu.prototype.rawValue=function(t){return t[1]},qu.prototype.getConfigTags=function(t){return Ou(t)?t:t&&"object"==typeof t?t.tags:void 0},qu.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!Ou(t)?t.escape:void 0};var Vu={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){Wu.templateCache=t},get templateCache(){return Wu.templateCache}},Wu=new qu;Vu.clearCache=function(){return Wu.clearCache()},Vu.parse=function(t,e){return Wu.parse(t,e)},Vu.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(Ou(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return Wu.render(t,e,n,r)},Vu.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return Pu[t]}))},Vu.Scanner=$u,Vu.Context=Hu,Vu.Writer=qu;var Gu=Vu;Gu.escape=function(t){return t};var Yu=({text:t,variables:e={}})=>jt((()=>function(t,e={}){var n;const r={};T()(n=$()(e)).call(n,(([t,e])=>{switch(e.type){case"link":r[t]=(t=>`<a href='${t.url}' data-link-id='${t.id}' ${t.newTab?'target="_blank"':""}>${t.name}</a>`)(e);break;case"text":r[t]=e.value}}),{});const o=Gu.escape;Gu.escape=function(t){return t};const i=Gu.render(t,r);return Gu.escape=o,i}(t,e)),[t,e]);const Ku=["event"];function Ju(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Ju(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Ju(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Zu=t=>{let{event:e}=t,n=N(t,Ku);const{payload:r}=e,[o]=Sa(e),i=Su(r.id),a=Yu({text:Cu(o.text),variables:o.variables});return la(_u,Qu(Qu({type:"text",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:a}}}))};function Xu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function tc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Xu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Xu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var ec=({children:t,onClose:e,"aria-label":n,"aria-labelledby":r,fallBackFocusRef:o})=>{var i;const a=pi(),s=Rt(null),u=Rt(null),[c,l]=Ot(!1);return Ft((()=>(c&&(u.current=se(s.current,{initialFocus:o&&o.current?o.current:null}),u.current.activate()),()=>{u.current&&u.current.deactivate()})),[c,o]),Ft((()=>{const t=Xe();return()=>{t()}}),[c]),Ft((()=>{c&&s.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&e()}))}),[c,e]),Nt((()=>{const t=document.getElementsByTagName("body")[0],e=document.createElement("div");return e.setAttribute("id",a),e.setAttribute("role","dialog"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-modal","true"),n&&e.setAttribute("aria-label",n),r&&e.setAttribute("aria-labelledby",r),t.appendChild(e),s.current=e,l(!0),()=>{s.current&&(t.removeChild(s.current),s.current=null)}}),[n,r,a]),"function"==typeof t?t({onClose:e,modalRenderFn:t=>s.current&&vt(t,s.current)}):s.current&&vt(E()(i=rt(t)).call(i,(t=>(t.props=tc(tc({},t.props),{},{onClose:e}),t))),s.current)},nc=({url:t,description:e,onClose:n})=>{const{zIndex:r}=yn(),o=Oi(),i=fo(),a=Rt(null),{t:s}=Fo(),u=["modal",...i],c=t=>{t.stopPropagation()},l=()=>{n()},p=r?{zIndex:r+1}:void 0;return la(ec,{onClose:n,"aria-label":s("lightbox.heading"),fallBackFocusRef:a,children:({onClose:n,modalRenderFn:r})=>r((n=>la("div",{className:na(u),onClick:l,style:p,children:la("div",{className:na("modal__float"),tabIndex:"-1",onMouseDown:o,onKeyDown:o,onTouchStart:o,onMouseMove:o,onWheel:o,onPointerDown:o,onPointerMove:o,ref:a,children:[la("div",{className:na("modal__inner"),onClick:c,children:la("img",{className:na("modal__image"),src:t,alt:e})}),la("button",{type:"button",className:na("modal__close"),onClick:n,children:[la(ha,{name:"close",size:"16"}),s("lightbox.closeLabel")]})]})}))(n))})},rc=({description:t,url:e})=>{const{t:n}=Fo(),[r,o]=Ot(!1);return la(K,{children:[la("button",{type:"button",className:na("modal__enlarge"),onClick:()=>{o(!0)},children:[n("message.image.srTextEnlargeButtonLabel",{description:t}),la(ha,{name:"enlarge",size:"32"})]}),r&&la(nc,{url:e,description:t,onClose:()=>{o(!1)}})]})};const oc=["event","descriptorId"];function ic(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ac(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=ic(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=ic(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const sc=["event","descriptorId"];function uc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function cc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=uc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=uc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const lc={[nr.new_topic]:"newtopic"},pc=["event"];function fc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}const hc={default:({event:t})=>{const{t:e}=Fo(),{subtype:n}=t.payload.body;return la(lu,{dividerType:lc[nr[n]],iconName:nr[n],children:la("p",{children:e(`dividerKeys.${nr[n]}`)})})},[nr.new_translation]:({event:t})=>{const{t:e}=Fo(),{translationEnabled:n,translationLocale:r,text:o}=t.payload.body,{enableTranslations:i,languages:a}=Ca(),s=jt((()=>{var t;return null==a||null===(t=In()(a).call(a,(t=>t.locale===r)))||void 0===t?void 0:t.nativeName}),[a,r]);return la(lu,{iconName:"newTranslation",dividerType:"newtranslation",children:[la("p",{className:na("divider__title"),children:e(n?"translations.divider.startText":"translations.divider.stopText",s)}),n?la("p",{children:o}):la("button",{className:na("button","button--secondary"),onClick:()=>{i(r)},children:e("translations.divider.restartButtonText")})]})}};const dc=["event"];function vc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=vc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=vc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const gc=["event"];function mc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function bc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=mc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=mc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const _c=({children:t,url:e,target:n})=>e?la("a",{href:e,download:!0,target:n||void 0,children:t}):la("span",{children:t});var Ec=n(4494),xc=n.n(Ec);function wc({items:t,currentIndex:e,onChange:n,getItemKey:r,getItemLabel:o}){const i=t.length,a=Pt((t=>{const r=Number(t.target.dataset.item||"0"),o=Math.min(i-1,Math.max(0,r));o!==e&&n(o)}),[i,e,n]);return la("div",{className:na("carousel-pagination__wrapper"),role:"group",children:la("ul",{className:na("carousel-pagination"),children:E()(t).call(t,((t,n)=>{const i=e===n;return la("li",{className:na("carousel-pagination__item",i?"is-active":void 0),children:la("button",{className:na("carousel-pagination__button"),type:"button",onClick:a,"data-item":n,"aria-disabled":i?"true":void 0,"aria-label":o(t,n)})},r(t,n))}))})})}function Dc({items:t,currentIndex:e,onChange:n,children:r}){const{t:o}=Fo(),i=t.length;return la("div",{className:na("carousel-controls"),children:[la("button",{className:na("button","button--previous"),"aria-label":o("carousel.controls.previous"),onClick:()=>{n((e-1+i)%i)},children:la(ha,{name:"arrowLeft",size:"16"})}),r,la("button",{className:na("button","button--next"),"aria-label":o("carousel.controls.next"),onClick:()=>{n((e+1)%i)},children:la(ha,{name:"arrowRight",size:"16"})})]})}function Tc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ac(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Tc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Tc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Cc=({id:t,action:e,buttonText:n,description:r,image:o,title:i})=>{const{sendMessage:a,sendAction:s,emitEvent:u}=Ai(),c=pi(),l=e.type===ar?"a":"button",p=Pt((()=>u("action.click_card",{type:Xn,originMessage:t,action:e})),[u,t,e]),f=Pt((()=>{if(p(),"ask"===e.type)a({body:e.ask});else if("topic"===e.type){const{topic:t,fallbackMessage:n}=e;s({type:"set_topic",body:{name:t,fallbackMessage:n}})}}),[a,e,s,p]),h=jt((()=>e.type===ar?{href:e.link,rel:"noopener noreferrer",target:e.newTab?"_blank":"_self",onClick:p}:{onClick:f}),[e,f,p]);return la("div",{className:na("card__wrapper"),id:t,children:[la("img",{className:na("card__image"),src:o,alt:r}),la("div",{className:na("card__content"),id:t,children:[i&&la("h2",{className:na("card__title"),children:i}),r&&la("p",{className:na("card__description"),children:r}),la(l,Ac(Ac({className:na("button","button--primary"),"aria-describedby":c},h),{},{children:n}))]})]})};function Sc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function kc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Sc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Sc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Oc({item:t,items:e,currentIndex:n}){const{t:r}=Fo();return la("div",{className:na("carousel-item",`carousel-item--${t.type}`),role:"group","aria-roledescription":"slide","aria-label":r("carousel.slide.label",{index:n+1,total:e.length}),children:la(Cc,kc({},t))})}const Ic=(t,e)=>e,Fc=t=>t.label;function Nc({currentIndex:t,onChange:e,getItemKey:n=Ic,getItemLabel:r=Fc,items:o}){const i=pi(),a=o.length,[s,u]=Ot(Number(t||"0"));Ft((()=>{u(Number(t||"0"))}),[u,t]);const c=Rt([]);c.current=jt((()=>{var t,e;return E()(t=xc()(e=Array(a)).call(e,1)).call(t,(()=>({current:null})))}),[a]);const l=Rt(!0),p=Rt();return p.current=e,Ft((()=>{l.current?l.current=!1:p.current&&p.current(s)}),[s]),la("div",{className:na("carousel"),role:"group","aria-roledescription":"carousel",children:[la("div",{className:na("carousel__slides-wrapper"),children:la("div",{id:i,className:na("carousel__slides"),style:{width:100*a+"%",left:-100*s+"%"},"aria-live":"polite","aria-atomic":"false",children:E()(o).call(o,((t,e)=>{const n=s===e;return la("div",{ref:c.current[e],className:na("carousel__slide",n?"is-active":void 0),"aria-hidden":n?void 0:"true",children:la(Oc,{item:t,items:o,currentIndex:s})},e)}))})}),la("div",{className:na("carousel__controls"),children:la(Dc,{currentIndex:s,items:o,onChange:u,controlId:i,children:la("div",{className:na("carousel__pagination"),children:la(wc,{currentIndex:s,items:o,onChange:u,getItemKey:n,getItemLabel:r})})})})]})}const Rc=t=>t.title,jc=t=>t.title;function Pc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Pc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Pc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Bc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Bc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Bc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Mc={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=N(t,Eu);const{t:a}=Fo(),s=pi(),{body:u,subEvent:c,showOptions:l,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:h}=Du(r);return la(K,{children:[E()(e=rt(o)).call(e,(t=>(t.props=wu(wu({},t.props),{},{event:c,descriptorId:s,showTranslationToggle:!1}),t))),p&&la("button",{type:"button",className:na("button","button--secondary","button--choose-again"),"aria-expanded":l?"true":"false",onClick:h,"aria-describedby":s,children:[a(l?"message.choicePrompts.cancelChooseAgain":"message.choicePrompts.chooseAgain"),la(ha,{name:"chevronDown",size:"8"})]}),l&&la(_u,wu(wu({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:la("ul",{className:na("choice-prompt","choice-prompt--many"),children:E()(n=u.choices).call(n,(t=>la("li",{className:na("choice-prompt__item"),children:la("button",{type:"button",className:na("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:Zu,image:t=>{let{event:e,descriptorId:n}=t,r=N(t,oc);const[o]=Sa(e),{description:i,url:a,isZoomable:s}=o,[u,c]=Ot(!1);return la(_u,ac(ac({event:e,type:"image"},r),{},{children:[la("img",{src:a,id:n,alt:i,onLoad:()=>{c(!0)}}),s&&u&&la(rc,{description:i,url:a})]}))},video:t=>{let{event:e,descriptorId:n}=t,r=N(t,sc);const[o]=Sa(e),{description:i,url:a}=o;return ho(e).push("message--type-video"),la(_u,cc(cc({event:e,type:"video"},r),{},{children:[la("div",{id:n,className:na("visually-hidden"),children:i}),la("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=N(t,gc);const{t:r}=Fo(),[o]=Sa(e),{fromClient:i}=e.payload,{deleteAt:a,filename:s,url:u}=o,c=u&&!!a&&tn(a)<ii()();return la(_u,bc(bc({event:e,type:"upload",modifiers:c&&"deleted",info:c?r("fileUpload.fileUnavailableText"):void 0},n),{},{children:la("div",{className:na("download"),children:[la(ha,{name:"download",size:"16"}),la(_c,{url:!c&&u,target:i?void 0:"_blank",children:[la("span",{"aria-hidden":"true",className:na("file-download"),children:s}),la("span",{className:na("visually-hidden"),children:r(u?c?"fileUpload.srFileUnavailableText":"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",s)})]})]})}))},cta:({event:t})=>{const[e]=Sa(t),n=Su(t.payload.id),{emitEvent:r}=Ai(),o=pi(),i=Yu({text:Cu(e.description),variables:e.variables}),a=Pt((()=>r("action.click_cta",{type:Xn,originMessage:t.payload.id,link:{url:e.buttonLink}})),[r,e,t]);return la(_u,{type:"cta",event:t,children:[la("div",{className:na("cta__content"),id:o,dangerouslySetInnerHTML:{__html:i},onClick:n}),la("a",{className:na("button","button--primary"),"aria-describedby":o,href:e.buttonLink,rel:"noreferrer",target:e.buttonNewTab?"_blank":"_self",onClick:a,children:e.buttonText})]})},carousel:({event:t})=>{const e=t.payload.body.cards;return la(_u,{event:t,modifiers:"type-carousel",children:la(Nc,{items:e,ItemComponent:Oc,getItemKey:Rc,getItemLabel:jc})})},card:({event:t})=>{const[e]=Sa(t),n=pi();return la(_u,{type:"card",event:t,children:la(Cc,Lc({id:n},e))})}},info:{text:Zu,divider:t=>{let{event:e}=t,n=N(t,pc);return la(hc[nr[e.payload.body.subtype]]||hc.default,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=fc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=fc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=N(t,dc);const{t:r}=Fo(),[o]=Sa(e);return la(_u,yc(yc({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:hu},participant:{participant:({event:t})=>{const{agentIcon:e}=yn().defaults||{},{participant:n}=t.payload,[r]=Sa(t),o=jt((()=>r?Gu.render(Cu(r),n):void 0),[r,n]);if(!o)return null;const i=n.avatar||e;return la(lu,{graphicSrc:i,graphicType:n.avatar?"avatar":void 0,iconName:i?void 0:"balloon",childrenHTML:o,dividerType:"participant"})}}};var zc=({children:t})=>{const{customComponents:e}=yn(),n=jt((()=>{var t;return Ge()(t=s()(Mc)).call(t,((t,n)=>Uc(Uc({},t),{},{[n]:Uc(Uc({},Mc[n]),e?e[n]:{})})),{fallback:Zu})}),[e]);return la(su.Provider,{value:n,children:t})},$c=()=>{const{t:t}=Fo();return dn().showDisclaimer&&la("div",{className:na("disclaimer"),tabIndex:"0",children:[la("h2",{className:na("disclaimer__title"),children:t("disclaimer.title")}),la("div",{className:na("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},Hc=()=>{const{t:t}=Fo(),e=Rt(null),n=mn(),r=dn().isLoading,{isOpen:o}=zi(),i=En(),a=lo();return Ft((()=>{window.requestAnimationFrame((()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)}))}),[n,r,o]),la(K,{children:[o&&la("a",{className:na("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),la("div",{className:na("app__body"),ref:e,children:la("div",{className:na("conversation__container"),children:[la($c,{}),la("ol",{className:na("conversation"),children:[la(zc,{children:(()=>{let t=null;return E()(n).call(n,(e=>{const{type:n,payload:r}=e,{participant:o,fromClient:i}=r;let a=!1;if("participant"!==n){const n=i?"seamly-client-participant":o;"info"!==e.type&&t!==n&&(a=!0),t=n}return la(du,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&la(yu,{})]})]})})]})},qc=({baseClassName:t,children:e,title:n})=>{const r=En(),o=pi();return la("section",{id:r,className:na(t),"aria-describedby":o,tabIndex:"-1",children:[la("h2",{className:na(`${t}__title`),id:o,children:n}),e]})},Vc=()=>{const{t:t}=Fo(),e=lo(),n=Oi(),{emitEvent:r}=Ai(),{isActive:o,remaining:i,timer:a,endCountdown:s}=Ji(),u=i>0,c=t(u?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return la(qc,{baseClassName:"idle",title:c,children:u&&la(K,{children:[la("div",{className:na("idle__count-container"),children:o&&la(K,{children:[la("span",{className:na("idle__count-text"),children:t("idleDetachWarning.countdownText")}),la("span",{className:na("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),la("div",{className:na("idle__options"),children:[la("button",{type:"button",className:na("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),la("button",{type:"button",className:na("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},Wc=()=>{const{t:t}=Fo(),e=Oi(),{name:n}=wn()||{},{continueChat:r,restartChat:o}=Zi();return la(qc,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",n),children:la("div",{className:na("prompt__options"),children:[la("button",{type:"button",className:na("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),la("button",{type:"button",className:na("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function Gc({controlName:t,skipLinkId:e}){const{t:n}=Fo(),{sendAssertive:r}=Si(),{emitEvent:o}=Ai(),i=(()=>{const{sendAction:t}=Ai(),{typing:e}=yn(),{features:n}=Uo(),{typingPeekahead:r}=n||{},o=Rt(null),i=Rt(null),a=Rt(!1),s=Rt(null);Ft((()=>()=>{clearInterval(s.current),clearTimeout(o.current),clearTimeout(i.current)}),[]);const u=(e,n)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Ni(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Ni(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({type:Kn,state:e},r&&r.enabled?{body:{currentMessage:n}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||e&&(a.current=!0,s.current||(u(!0,t.target.value),s.current=Fi()((()=>{a.current?r&&r.enabled&&u(!0,t.target.value):(clearInterval(s.current),s.current=null)}),e.timeout)),clearTimeout(o.current),clearTimeout(i.current),o.current=pe()((()=>{a.current=!1}),300),i.current=pe()((()=>{u(!1,t.target.value)}),e.timeout))}})(),{setBlockAutoEntrySwitch:a}=Li(),{hasCharacterLimit:s,characterLimit:u,reachedCharacterWarning:c,reachedCharacterLimit:l,remainingChars:f}=function(t){const{t:e}=Fo(),{sendAssertive:n}=Si(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t}}}=dn(),{limit:e}=t||{};return{hasLimit:null!=e,limit:null!=e?e:null}})(),i=Pt(Ze(n,300),[n]),a=jt((()=>Ze(((t,n)=>{t&&i(e("input.srCharacterLimitText",n))}),300)),[i,e]),[{value:s}]=ts(t),u=r&&s?o-s.length:o,c=!!r&&u<=50,l=!!r&&u<0;return Ft((()=>{a(c,u)}),[c,u,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:c,reachedCharacterLimit:l,remainingChars:u}}(t),[{value:d}]=ts(t),y=!!d,m=Pt((()=>{c&&r(n("input.srCharacterLimitText",f)),o("ui.inputFocus")}),[n,r,c,f,o]),_=jt((()=>n("input.inputPlaceholder",s?u:null)),[n,s,u]),E=jt((()=>n("input.inputLabel",s?u:null)),[n,s,u]);return Nt((()=>(a(y),()=>{a(!1)})),[a,y]),la(us,{className:na("input","input--text"),noValidate:"true",children:[la("div",{className:na(["input--text__container",...c&&!l?["character-warning"]:[],...l?["character-exceeded"]:[]]),children:[la(Ks,{id:e,type:"text",name:t,className:na("input__text"),autocomplete:"off",placeholder:_,labelText:E,labelClass:na("visually-hidden"),"aria-invalid":s?l:null,onKeyUp:i,onFocus:m}),la("div",{className:na("character-count"),children:c&&la("span",{children:f})})]}),la("button",{className:na("button","input__submit"),type:"submit",disabled:!y||l,children:la(ha,{name:"send",size:"32",alt:n("input.sendMessage")})})]})}function Yc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Yc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Yc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Jc="userText";function Qc(t){let e=as({},t);const n=En(),r=lo(),{sendMessage:o}=Ai(),i=Pt(((t,{updateControlValue:e})=>{o({body:t.userText}),e(Jc,""),r()}),[o,r]);return la(os,Kc(Kc({},e),{},{formId:"textEntry",persistData:!0,onSubmit:i,children:la(Gc,{controlName:Jc,skipLinkId:n})}))}var Zc=()=>{const{t:t}=Fo(),{showFileUpload:e,serviceAllowsUploads:n}=ni(),[r,o]=Ot(n),i=lo(),a=Rt(null),{setUserEntryType:s,activeEntry:u}=Li(),c=Rt(null),{sendPolite:l}=Si(),p=!!wn();return Ft((()=>{cn(c.current,(()=>{n||i()})),o(n)}),[n,i]),Ft((()=>{a.current&&!n&&l(t("fileUpload.srUnavailableText")),!1===a.current&&n&&l(t("fileUpload.srAvailableText")),p&&(a.current=n)}),[n,p,l,t]),!e&&u!==Vn&&la(ua,{isActive:r,transitionStartState:aa,children:la("div",{className:na("upload-toggle-wrapper"),children:la(ua,{isActive:r,transitionStartState:sa,children:la("button",{className:na(["button","button--secondary","upload-toggle"]),ref:c,disabled:r?null:"true",type:"button",onClick:()=>{s(Vn),i()},children:la(ha,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},Xc=()=>{const{t:t}=Fo(),{currentUploads:e}=ri();return la("div",{className:na("progress"),children:E()(e).call(e,(({id:e,name:n,progress:r,uploading:o,error:i})=>la("div",{className:na("progress_container"),children:[la("div",{className:na("progress__text"),children:[la("span",{className:na("progress__text--file-name"),children:n}),la("span",{className:na("progress__text--percentage"),children:`${r}%`})]}),la("div",{className:na("error"),"aria-live":"assertive","aria-atomic":"true",children:i&&la("span",{children:[la(ha,{name:"error",size:"16"}),i]})}),la("progress",{className:na("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",n),max:"100","aria-valuenow":r,value:r,"aria-busy":o,children:`${r}%`})]},e)))})};function tl({id:t,name:e,labelText:n,contentHint:r,outputText:o,accept:i}){const{isSubmitted:a}=Xa(),[s,u]=Ot(!1),[{onInput:c,onBlur:l},{error:p}]=ts(e),f=pi(),h=pi(),d=pi(),v=a&&p,y=[d];r&&y.push(h),v&&y.push(f);const g=Pt((()=>{u(!0)}),[u]),m=Pt((()=>{u(!1),l()}),[u,l]),b=Pt((t=>{const e={target:{value:t.target.files}};c(e)}),[c]);return la("div",{className:na("upload__container"),children:[r&&la("span",{className:na("upload__content-hint"),id:h,children:r}),la("div",{"aria-live":"assertive","aria-atomic":"true",children:v&&la("span",{id:f,className:na("error"),children:[la(ha,{name:"error",size:"16"}),p]})}),la("div",{className:na(["file-upload",...s?["focus-within"]:[]]),children:la("label",{htmlFor:t,className:na("upload__label"),children:[la(ha,{name:"upload",size:"32"}),la("div",{children:[la("span",{className:na(["upload__label--text"]),children:n}),la("input",{id:t,className:na("upload__input"),type:"file",name:e,onChange:b,"aria-invalid":v?"true":"false","aria-describedby":y.join(" "),accept:i||null,onFocus:g,onBlur:m}),la("span",{className:na("upload__output"),"aria-hidden":"true",id:d,children:o})]})]})})]})}function el({skiplinkId:t,controlName:e,accept:n,contentHint:r,isUploading:o,isComplete:i,onClickCancel:a}){const{t:s}=Fo(),[{value:u}]=ts(e),c=u&&u.length>0?u[0].name:"";return la(us,{className:na("input","input--file"),children:[la(tl,{name:e,id:t,accept:n,labelText:s("fileUpload.labelText"),outputText:s("fileUpload.selectedText",c),contentHint:r}),la("div",{className:na("upload__button-container"),children:[la("button",{id:o||!i?t:void 0,type:"button",onClick:a,className:na("button","button--secondary","upload__cancel"),children:s("fileUpload.cancelButtonText")}),la("button",{className:na("button","button--primary"),type:"submit",children:s("fileUpload.uploadButtonText")})]})]})}const nl="fileListForm",rl="fileList";var ol=()=>{const{t:t}=Fo(),{sendPolite:e,sendAssertive:n}=Si(),r=En(),o=lo(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ni(),u=Rt(null),c=Rt(i),{cancelEntrySelection:l}=Li(),{uploadFile:p,clearUploads:f,isUploading:h,isComplete:d}=ri(),{selectedFileName:v,uploadHandle:y,hasServerError:g,progress:m}=((t,e)=>{const n=Ue(Ga,{formId:t,name:e},[t,e]),{currentUploads:r}=ri();let o=null,i=!1,a=0;if(r&&r.length>0){const t=r[0];o=t.uploadHandle,i=!!t.error,a=t.progress}return{selectedFileName:n&&n.length>0?n[0].name:"",uploadHandle:o,hasServerError:i,progress:a}})(nl,rl),b=pi(),_=Rt(!0),E=t("fileUpload.contentHint",((t,e=2)=>{if(0===t)return"0 Bytes";const n=e<0?0:e,r=Math.floor(Math.log(t)/Math.log(1024));return ze()((t/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]})(s)),x=Rt(""),w=Rt(null);Ft((()=>{x.current&&w.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(E),x.current=E}),[E,n]),Ft((()=>{if(m>0)switch(m){case 1:e(t("fileUpload.srStartedText"));break;default:e(`${m}%`)}}),[m,e,t]),Ft((()=>{_.current||h||!d||(f(),l(),o(),pe()((()=>{e(t("fileUpload.srCompleteText"))}),300)),_.current=d}),[h,d,f,l,o,e,t]);const D=Pt((({fileList:t})=>{p(t[0]),o()}),[p,!1,o]),T=Pt((()=>{y&&y.abort(),f(),l(),o()}),[y,f,l,o]),A=jt((()=>({[rl]:[Ds((()=>i),t("fileUpload.errors.unavailable")),Ds(As,t("fileUpload.errors.noFile")),Ds(Ts,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return la("div",{className:na(["upload",...g?["upload--error"]:[]]),ref:w,children:la(os,{formId:nl,persistData:!0,onSubmit:D,validationSchema:A,children:[(h||!d)&&la(K,{children:[la(Xc,{}),la("div",{className:na("upload__button-container"),children:la("button",{id:h||!d?r:void 0,type:"button",onClick:T,ref:u,className:na("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!h&&d&&la(el,{controlName:rl,skiplinkId:r,accept:a.join(", "),contentHint:E,isComplete:d,isUploading:h,outputText:t("fileUpload.selectedText",v),onClickCancel:T}),!c.current&&la(K,{children:[la("span",{className:na("notification"),id:b,children:t("fileUpload.unavailableText")}),la("div",{className:na("upload__button-container"),children:la("button",{id:h||!d?r:void 0,type:"button",onClick:T,className:na("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};function il(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function al(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=il(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=il(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var sl=()=>{const t=Rt(null),{hasCountdown:e}=Ji(),[n,r]=Ot(e),{hasPrompt:o}=Zi(),[i,a]=Ot(o),s=lo(),u=Rt(!1),{activeEntry:c}=Li(),[l,p]=Ot({text:Qc,upload:ol}),[f,h]=Ot((()=>c)),d=yn(),{accountAllowsUploads:v}=ni(),y=Pt((()=>{cn(t.current,(()=>{s()}))}),[s]);Ft((()=>{const{customComponents:t}=d,{entry:e}=t||{};e&&p((t=>al(al({},t),e)))}),[d]),Ft((()=>{y(),r(e),a(o)}),[e,o,y]),Ft((()=>{h(c),y()}),[c,y,t]),u.current=!(!t.current||!t.current.contains(document.activeElement));const g=l[f];return la("div",{className:na("app__entry"),ref:t,children:[n&&la(Vc,{}),i&&la(Wc,{}),la("div",{className:na(["entry__body",...e||o?["entry__body--hidden"]:[]]),children:[f!==Vn&&v&&la(Zc,{}),la(g,{})]})]})},ul=({originalError:t,title:e,message:n,buttonText:r,action:o,srText:i})=>{const a=Ai(),s=pi(),{sendPolite:u}=Si(),c=lo(),l=t instanceof qo;return Ft((()=>{l?a[o]():i&&pe()((()=>{u(i)}),200)}),[u,a,i,l,o]),!l&&la("section",{className:na("interrupt"),"aria-labelledby":s,children:la("div",{className:na("interrupt__body"),children:[la("h2",{id:s,className:na("interrupt__title"),children:e}),la("p",{className:na("interrupt__message"),children:n}),r&&o&&la("div",{className:na("interrupt__actions"),children:la("button",{type:"button",className:na("button","button--primary"),onClick:()=>{a[o](),c()},children:r})})]})})},cl=()=>{const{isVisible:t}=zi(),{openChat:e,closeChat:n}=Hi(),{isModal:r}=Dn();return t&&la(pa,{children:la(Us,{children:[!r&&la(ou,{onOpenChat:e}),la(au,{onCloseChat:n,children:la(iu,{})}),la(ru,{interruptComponent:ul,children:[la(Hc,{}),la(sl,{})]})]})})},ll=n(3813),pl=n.n(ll),fl=n(8158),hl=n.n(fl),dl=n(9340),vl=n.n(dl);n(8604);const yl="undefined"!=typeof self?self:null,gl="undefined"!=typeof window?window:null,ml=yl||gl||void 0,bl="closed",_l="errored",El="joined",xl="joining",wl="leaving",Dl="phx_close",Tl="phx_error",Al="phx_join",Cl="phx_reply",Sl="phx_leave",kl=[Dl,Tl,Al,Cl,Sl];let Ol=t=>"function"==typeof t?t:function(){return t};class Il{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:t,response:e,ref:n}){var r,o;T()(r=w()(o=this.recHooks).call(o,(e=>e.status===t))).call(r,(t=>t.callback(e)))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)})),this.timeoutTimer=pe()((()=>{this.trigger("timeout",{})}),this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}}class Fl{constructor(t,e,n){this.state=bl,this.topic=t,this.params=Ol(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Il(this,Al,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ll((()=>{this.socket.isConnected()&&this.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((()=>this.rejoinTimer.reset()))),this.stateChangeRefs.push(this.socket.onOpen((()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()}))),this.joinPush.receive("ok",(()=>{var t;this.state=El,this.rejoinTimer.reset(),T()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=_l,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=bl,this.socket.remove(this)})),this.onError((t=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,t),this.isJoining()&&this.joinPush.reset(),this.state=_l,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Il(this,Sl,Ol({}),this.timeout).send(),this.state=_l,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Cl,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(Dl,t)}onError(t){return this.on(Tl,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){var n;this.bindings=w()(n=this.bindings).call(n,(n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Il(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=wl;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Dl,"leave")},n=new Il(this,Sl,Ol({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isLifecycleEvent(t){return Ve()(kl).call(kl,t)>=0}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&this.isLifecycleEvent(e)&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),1))}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=xl,this.joinPush.resend(t))}trigger(t,e,n,r){var o;let i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=w()(o=this.bindings).call(o,(e=>e.event===t));for(let t=0;t<a.length;t++)a[t].callback(i,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===bl}isErrored(){return this.state===_l}isJoined(){return this.state===El}isJoining(){return this.state===xl}isLeaving(){return this.state===wl}}let Nl={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(vl()(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,o,i,a]=JSON.parse(t);return e({join_ref:n,ref:r,topic:o,event:i,payload:a})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:o,payload:i}=t,a=this.META_LENGTH+e.length+n.length+o.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),u=new DataView(s),c=0;u.setUint8(c++,this.KINDS.push),u.setUint8(c++,e.length),u.setUint8(c++,n.length),u.setUint8(c++,o.length),u.setUint8(c++,r.length),Hs()(e,(t=>u.setUint8(c++,t.charCodeAt(0)))),Hs()(n,(t=>u.setUint8(c++,t.charCodeAt(0)))),Hs()(o,(t=>u.setUint8(c++,t.charCodeAt(0)))),Hs()(r,(t=>u.setUint8(c++,t.charCodeAt(0))));var l=new Uint8Array(s.byteLength+i.byteLength);return l.set(new Uint8Array(s),0),l.set(new Uint8Array(i),s.byteLength),l.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(He()(t).call(t,a,a+r));a+=r;let u=n.decode(He()(t).call(t,a,a+o));a+=o;let c=n.decode(He()(t).call(t,a,a+i));return a+=i,{join_ref:s,ref:null,topic:u,event:c,payload:He()(t).call(t,a,t.byteLength)}},decodeReply(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=e.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,u=n.decode(He()(t).call(t,s,s+r));s+=r;let c=n.decode(He()(t).call(t,s,s+o));s+=o;let l=n.decode(He()(t).call(t,s,s+i));s+=i;let p=n.decode(He()(t).call(t,s,s+a));s+=a;let f=He()(t).call(t,s,t.byteLength);return{join_ref:u,ref:c,topic:l,event:Cl,payload:{status:p,response:f}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(He()(t).call(t,i,i+r));i+=r;let s=n.decode(He()(t).call(t,i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:He()(t).call(t,i,t.byteLength)}}};class Rl{constructor(t,e={}){var n,r;this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||1e4,this.transport=e.transport||ml.WebSocket||jl,this.defaultEncoder=i()(n=Nl.encode).call(n,Nl),this.defaultDecoder=i()(r=Nl.decode).call(r,Nl),this.closeWasClean=!1,this.unloaded=!1,this.binaryType=e.binaryType||"arraybuffer",this.transport!==jl?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder),gl&&gl.addEventListener&&gl.addEventListener("beforeunload",(t=>{this.conn&&(this.unloaded=!0,this.abnormalClose("unloaded"))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>this.unloaded?100:e.reconnectAfterMs?e.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Ol(e.params||{}),this.endPoint=`${t}/websocket`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ll((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Pl.appendParams(Pl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ol(t)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t))}log(t,e,n){this.logger(t,e,n)}hasLogger(){return null!==this.logger}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onConnOpen(){var t;this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.unloaded=!1,this.closeWasClean=!1,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),T()(t=this.stateChangeCallbacks.open).call(t,(([,t])=>t()))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.abnormalClose("heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearTimeout(this.heartbeatTimer),pe()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();this.waitForBufferDone((()=>{this.conn&&(e?this.conn.close(e,n||""):this.conn.close()),this.waitForSocketClosed((()=>{this.conn&&(this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t,e=1){5!==e&&this.conn&&this.conn.bufferedAmount?pe()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?pe()((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){var e;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearTimeout(this.heartbeatTimer),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),T()(e=this.stateChangeCallbacks.close).call(e,(([,e])=>e(t)))}onConnError(t){var e;this.hasLogger()&&this.log("transport",t),this.triggerChanError(),T()(e=this.stateChangeCallbacks.error).call(e,(([,e])=>e(t)))}triggerChanError(){var t;T()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Tl)}))}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(t){var e;this.off(t.stateChangeRefs),this.channels=w()(e=this.channels).call(e,(e=>e.joinRef()!==t.joinRef()))}off(t){for(let n in this.stateChangeCallbacks){var e;this.stateChangeCallbacks[n]=w()(e=this.stateChangeCallbacks[n]).call(e,(([e])=>-1===Ve()(t).call(t,e)))}}channel(t,e={}){let n=new Fl(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${o})`,r)}this.isConnected()?this.encode(t,(t=>this.conn.send(t))):this.sendBuffer.push((()=>this.encode(t,(t=>this.conn.send(t)))))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimer=pe()((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}abnormalClose(t){this.closeWasClean=!1,this.isConnected()&&this.conn.close(1e3,t)}flushSendBuffer(){var t;this.isConnected()&&this.sendBuffer.length>0&&(T()(t=this.sendBuffer).call(t,(t=>t())),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,(t=>{let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(clearTimeout(this.heartbeatTimer),this.pendingHeartbeatRef=null,pe()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${e} ${n} ${o&&"("+o+")"||""}`,r);for(let t=0;t<this.channels.length;t++){const a=this.channels[t];a.isMember(e,n,r,i)&&a.trigger(n,r,o,i)}for(let e=0;e<this.stateChangeCallbacks.message.length;e++){let[,n]=this.stateChangeCallbacks.message[e];n(t)}}))}leaveOpenTopic(t){var e;let n=In()(e=this.channels).call(e,(e=>e.topic===t&&(e.isJoined()||e.isJoining())));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}}class jl{constructor(t){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=0,this.poll()}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/websocket"),"$1/longpoll")}endpointURL(){return Pl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(){this.close(),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry()}poll(){var t;1!==this.readyState&&0!==this.readyState||Pl.request("GET",this.endpointURL(),"application/json",null,this.timeout,i()(t=this.ontimeout).call(t,this),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else var e=0;switch(e){case 200:T()(r).call(r,(t=>{pe()((()=>{this.onmessage({data:t})}),0)})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen(),this.poll();break;case 403:this.onerror(),this.close();break;case 0:case 500:this.onerror(),this.closeAndRetry();break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){var e;Pl.request("POST",this.endpointURL(),"application/json",t,this.timeout,i()(e=this.onerror).call(e,this,"timeout"),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry())}))}close(t,e){this.readyState=3,this.onclose()}}class Pl{static request(t,e,n,r,o,i,a){if(ml.XDomainRequest){let n=new XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new ml.XMLHttpRequest;this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){t.timeout=o,t.open(e,n),t.onload=()=>{let e=this.parseJSON(t.responseText);a&&a(e)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r)}static xhrRequest(t,e,n,r,o,i,a,s){t.open(e,n,!0),t.timeout=i,t.setRequestHeader("Content-Type",r),t.onerror=()=>{s&&s(null)},t.onreadystatechange=()=>{if(t.readyState===this.states.complete&&s){let e=this.parseJSON(t.responseText);s(e)}},a&&(t.ontimeout=a),t.send(o)}static parseJSON(t){if(!t||""===t)return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!t.hasOwnProperty(r))continue;let o=e?`${e}[${r}]`:r,i=t[r];"object"==typeof i?n.push(this.serialize(i,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(0===s()(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}}Pl.states={complete:4};class Ll{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=pe()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}}function Bl(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ul(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Bl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Bl(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Ml=n(1905),zl=n.n(Ml);function $l(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=$l(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=$l(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const ql=zl()("seamly");class Vl{constructor(t,e,n){this.url=t,this.accessToken=n,this.channelName=e,this.connect(),this.socket.onError((t=>{ql("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline"}})})),this.socket.onOpen((()=>{ql("[SOCKET]OPEN"),this.emit({type:"socket_opened"})})),this.channel.on("system",(t=>{switch(t.type){case"join_conversation_succeeded":this.emit({type:"connection",connected:!0,ready:!0})}})),this.socket.onClose((t=>{ql("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((t=>{ql("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{ql("[CHANNEL][ERROR]",t),this.emit({type:"connection",connected:!1,ready:!1})})),this.listenTo("ack"),this.listenTo("ui"),this.listenTo("error"),this.listenTo("participant",((t,e)=>Hl(Hl({},e),{},{type:t}))),this.listenTo("message"),this.listenTo("service_data"),this.listenTo("system"),this.listenTo("info"),this.listenTo("sync")}start(t){this.listener=t,this.channel.join().receive("ok",(()=>{ql("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{ql("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred"}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{ql("[CHANEL][JOIN] Networking issue. Still waiting...")}))}stop(){this.listener=null}connect(){const{url:t,params:e}=(t=>{var e;const n=Ve()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:He()(t).call(t,0,n),params:Ge()(e=He()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return Ul(Ul({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new Rl(t,{params:Hl(Hl({},e),{},{v:Nn})}),this.socket.connect(),this.channel=this.socket.channel(this.channelName,{authorization:`Bearer ${this.accessToken}`})}disconnect(){return new(ci())((t=>{this.socket.disconnect(t)}))}listenTo(t,e=null){this.channel.on(t,(n=>{ql("[RECEIVE]",t,n),this.emit({type:t,payload:e?e(t,n):n})}))}emit(t){this.listener&&this.listener.next(t)}push(t,e,n){this.channel.push(t,e,n)}}function Wl(t){const e="cvco."+t;return{get:()=>JSON.parse(sessionStorage.getItem(e)),set(t){t&&sessionStorage.setItem(e,vl()(t))}}}class Gl{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function Yl(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Yl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Yl(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Jl=zl()("seamly");function Ql(){if(!Intl||"undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;const t=Intl.DateTimeFormat();if(void 0===t||void 0===t.resolvedOptions)return null;const e=t.resolvedOptions().timeZone;return e&&(Ve()(e).call(e,"/")>-1||"UTC"===e)?e:null}class Zl{constructor({namespace:t,config:e={}}){var n;this.store=function(t,e){const n=e(t),r=n.get()||{};return{get:t=>void 0===t?r:r[t],set:(t,e)=>(r[t]=e,n.set(r),e),delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${t}.connection`,e.storageProvider||Wl),this.connectionInfo={apiKey:e.key,domain:e.domain||"api.seamly-app.com",secure:!1!==e.secure&&(e.secure||!0)},this.sendEnvironment=void 0===e.sendEnvironment||e.sendEnvironment,this.connected=!1,this.configReady=!1,this.externalId=e.externalId,this.internalProducer=new Gl("API"),this.internal$=pl().create(this.internalProducer).flatten(),this.connection$=w()(n=this.internal$).call(n,(t=>"connection"===t.type)),this.connection$.subscribe({next:({connected:t,ready:e})=>{this.connected=t,this.ready=e}}),this.URLS={}}getAccessToken(){return this.store.get("accessToken")}setAccessToken(t){this.store.set("accessToken",t)}getConversationUrl(){return this.store.get("conversationUrl")}setConversationUrl(t){this.store.set("conversationUrl",t)}hasConversation(){return!!this.getConversationUrl()}getChannelName(){return this.store.get("channelName")}setChannelName(t){this.store.set("channelName",t)}setUserResponded(t){this.store.set("userResponded",t)}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName")}getUrlPrefix(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`}updateUrls({_links:t}){var e,n;this.URLS=Ge()(e=w()(n=$()(t)).call(n,(([t])=>"self"!==t))).call(e,((t,[e,{href:n}])=>Kl(Kl({},t),{},{[e]:n})),this.URLS)}async reset(){return await this.disconnect(),this.clearStore(),this.getConfig()}async disconnect(){this.conversationProducer&&await this.conversationProducer.disconnect(),this.connected=!1,this.configReady=!1}async createConversation(){try{const t=hl().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:Nn}).withCredentials().send({authorizationRequired:!0,externalId:this.externalId||void 0}),{body:e}=await t,{conversation:n}=e,r=Kl({},n);return delete r.accessToken,delete r.channelName,this.setAccessToken(n.accessToken),this.setChannelName(n.channelName),this.updateUrls(e),this.setConversationUrl(this.URLS.conversation),r}catch(t){if(t.status>=500)throw new $o;throw t}}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await hl().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Nn});this.updateUrls(t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:E()(e).call(e,(([t,e])=>({type:t,payload:Kl(Kl({},e),{},{type:"participant"===t?t:e.type})}))),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translation:s}}catch(t){if(401===t.status)throw new Vo;if(404===t.status)throw new qo;if(t.status>=500)throw new $o;throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new Vl(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.getChannelName(),this.getAccessToken()),this.internalProducer.emit(pl().create(this.conversationProducer)),this.sendEnvironment&&this.send("context",{environment:!0===this.sendEnvironment?{screenResolution:`${window.screen.width}x${window.screen.height}`,userAgent:navigator.userAgent,currentUrl:window.location.toString(),timezone:Ql()}:this.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=hl().post(`${this.getUrlPrefix("http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${this.getAccessToken()}`).send(o);return i.on("progress",(function(t){const{direction:n,percent:r}=t;"upload"===n&&"function"==typeof e&&e(r)})),i.then((t=>{n&&n(t)})).catch((t=>{if(!r)throw t;r(t.response)})),i}getAccountConfig(){return hl().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:Nn}).then((({body:t})=>(this.updateUrls(t),{accountConfig:t.config}))).catch((t=>{if(404===t.status)throw new Ho;if(t.status>=500)throw new $o;throw t}))}getConversationIntitialState(){return hl().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Nn}).then((({body:t})=>{this.updateUrls(t);const e=Kl({},t.conversation);return delete e.accessToken,delete e.channelName,{initialState:e}})).catch((t=>{if(401===t.status)throw new Vo;if(404===t.status)throw new qo;if(t.status>=500)throw new $o;throw t}))}getConfig(){const t=[this.getAccountConfig()];return this.hasConversation()&&t.push(this.getConversationIntitialState()),ci().all(t).then((t=>{const e=Ge()(t).call(t,((t,e)=>Kl(Kl({},t),e)),{});return this.configReady=!0,e}))}send(t,e,n=!0){var r;!this.connected||n&&!this.ready?w()(r=this.connection$).call(r,(t=>n?t.connected&&t.ready:t.connected)).take(1).subscribe({next:()=>this.send(t,e,n)}):(Jl("[SEND]",t,e),this.conversationProducer.push(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=li()),{type:n,body:r,transactionId:o}}(t,e),1e4),("message"===t||"action"===t&&e&&"pick_choice"===e.type||"action"===t&&e&&"custom"===e.type&&e.body&&"faqclick"==e.body.type)&&this.setUserResponded(!0))}sendContext(t={}){const{locale:e,variables:n}=t,r={};if(e){if("string"!=typeof e)throw new Error("Locale must be a string");r.locale=e}if(n){if("object"!=typeof n)throw new Error("Variables must be an object");r.variables=n}0===s()(r).length&&r.constructor===Object||this.send("context",r,!1)}stream(){var t;return w()(t=this.internal$).call(t,(t=>"connection"!==t.type))}}var Xl=({children:t})=>{const{t:e}=Fo(),[n,r]=Ot({}),{namespace:o,api:i}=yn();return Ft((()=>{o&&i.key&&(async()=>{const t=new Zl({namespace:o,config:i});r(t)})()}),[Tn(),i,o,e]),Ft((()=>()=>{n.disconnect&&n.disconnect()}),[n]),la(de.Provider,{value:n,children:t})};function tp(t,e,n=[]){const r=Lt(ve),o=Rt();o.current=e,Ft((()=>{if(!Qo()(n).call(n,Boolean))return;const e=(...t)=>{var e;return null===(e=o.current)||void 0===e?void 0:e.call(o,...t)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var ep=()=>{const t=yn(),{sendMessage:e,sendContext:n,sendAction:r}=Ai(),{setVisibility:o,visible:i}=zi(),a=Rt(i),s=Lt(ve),u=ye(),c=_n(),l=Rt(null),p=Rt(null),{isInline:f,isResolving:h}=Dn(),{hasInterrupt:d}=Ko(),v=me(),y=Rt(null),g=Oi(),{enableTranslations:m,disableTranslations:b}=Ca();return Ft((()=>{a.current=i}),[i]),tp("askText",(t=>{e({body:t})}),[null==u?void 0:u.send]),tp("setLocale",(t=>{n({locale:t})}),[null==u?void 0:u.send]),tp("setVariables",(t=>{n({variables:t})}),[null==u?void 0:u.send]),tp("getVisibility",(t=>{t?t(a.current):console.warn("A callback function is required for the getVisibility action.")})),tp("setVisibility",(e=>{var n;he()(n=C()(Wn)).call(n,e)?(g(),"inline"===t.layoutMode&&e===Wn.minimized?console.warn("Inline chat windows cannot be minimized."):o(e)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[null==u?void 0:u.send]),tp("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[u.send]),tp("setTopic",(({name:t,fallbackMessage:e})=>{t&&e?r({type:"set_topic",body:{name:t,fallbackMessage:e}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[u.send]),tp("setTranslation",(({enabled:t,locale:e})=>{t?m(e):b()}),[u.send]),Ft((()=>{h||d||(y.current&&y.current!==v&&s.emit("unreadMessageCount",c),i===Wn.open&&i!==p.current&&0!==l.current&&s.emit("unreadMessageCount",0),i!==Wn.open&&c!==l.current&&s.emit("unreadMessageCount",c),p.current=i,l.current=c,y.current=v)}),[c,i,s,f,h,d,v]),null};const{SET_EVENTS_READ:np}=ir;var rp=()=>{const{t:t}=Fo(),e=mn(),n=Tn(),{isOpen:r,isVisible:o}=zi(),{sendAction:i}=Ai(),a=_n(),{sendPolite:s}=Si(),u=Pt(Ze(s,2e3),[s]),c=Rt(null),l=Rt(null);return Ft((()=>{var t;if(!r)return;const o=E()(t=w()(e).call(e,(t=>Zr(t)&&t.payload.messageStatus===Gn))).call(t,(t=>t.payload.id));o.length>0&&(n({type:np,ids:o}),i({type:Jn,events:o}))}),[e,n,r,i]),Ft((()=>{c.current!==o&&!o&&l.current&&l.current(),0!==a&&!r&&o&&(l.current=u(t("message.srTextUnreadCount",{unreadCount:a}))),c.current=o}),[a,r,o,u,t]),null},op=()=>{const{t:t}=Fo(),e=mn(),n=Rt(0),r=Rt(0),o=dn().historyLoaded,{sendPolite:i}=Si(),{isOpen:a}=zi(),s=Rt(null),u=Rt(null),c=Pt(Ze((e=>{const n=w()(e).call(e,(({payload:t})=>!t.fromClient&&!t.fromHistory)).length;n>r.current&&(i(t("message.srNewEventCount",{newCount:n-r.current})),r.current=n)}),1e3),[i]);return Ft((()=>{e.length>n.current&&(a&&(u.current=c(e)),n.current=e.length)}),[e,c,a]),Ft((()=>{s.current&&!a&&u.current&&(u.current(!0),u.current=null)}),[a]),Ft((()=>{o&&pe()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},ip=({children:t})=>{const e=Lt(ve),[n,r]=Ot({}),o=Rt(!0),i=Pt((t=>{o.current&&(r(t),e.emit("aria-live",t))}),[r,e]);Ft((()=>{let t=null;return n&&n.messageText&&(t=pe()((()=>{i({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[n,i]),Ft((()=>()=>{o.current=!1}),[]);const{ariaLive:a,messageText:s}=n;return la(Ci.Provider,{value:i,children:[t,la("div",{className:na("app__live-container"),children:[la("div",{"aria-live":"assertive","aria-atomic":"true",className:na("visually-hidden"),children:a===tr?s:null}),la("div",{"aria-live":"polite","aria-atomic":"true",className:na("visually-hidden"),children:a===er?s:null})]})]})},ap=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=Ji();return((t,e)=>{const n=Rt(t);Ft((()=>{n.current=t}),[t]),Ft((()=>{if(null!==e){const t=Fi()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},sp=({children:t})=>{const e=Rt(0),{sendAction:n}=Ai(),{hasCountdown:r,isActive:o,stopCountdown:i}=Ji(),a=Pt((()=>{const t=(new Date).getTime(),a=()=>{n({type:"interactivity_update"}),e.current=t};r&&o&&(a(),i()),t-e.current>15e3&&a()}),[n,r,o,i]);return la("div",{tabIndex:"-1",onMouseDown:a,onKeyUp:a,onTouchStart:a,onMouseMove:a,onWheel:a,onPointerDown:a,onPointerMove:a,children:la(ki.Provider,{value:a,children:t})})};const{UPDATE_CONFIG:up,SET_INITIAL_STATE:cp,SET_SHOW_DISCLAIMER:lp,SET_HEADER_SUB_TITLE:pp,SET_FEATURES:fp}=ir;var hp=({config:t})=>{const{t:e}=Fo(),n=Tn(),r=ye(),{initUserSelectedOptions:o}=Uo(),{setInterrupt:i}=Ko(),a=Rt(!1),{setVisibility:s}=zi();return Ft((()=>{const e=oo(t),{showDisclaimer:r}=t,{agentName:o}=t.defaults||{};n({type:up,config:e}),n({type:lp,showDisclaimer:r}),o&&n({type:pp,title:o})}),[n,t]),Ft((()=>{r.connectionInfo&&!a.current&&(async()=>{a.current=!0,o(),s(Wn.initialize);try{const{accountConfig:t={},initialState:e={}}=await r.getConfig(),{features:o}=t||{};n({type:fp,features:o}),n({type:cp,initialState:e})}catch(t){i(t)}})()}),[r,n,e,i,o,s]),null};const dp=["serviceSettings"],{ADD_EVENT:vp,ACK_EVENT:yp,SET_IS_LOADING:gp,SET_PARTICIPANT:mp,SET_HEADER_SUB_TITLE:bp,CLEAR_INTERRUPT:_p,SET_ACTIVE_SERVICE:Ep,INIT_RESUME_CONVERSATION_PROMPT:xp,CLEAR_EVENTS:wp,SET_SERVICE_DATA_ITEM:Dp,SET_FEATURE_ENABLED_STATE:Tp,SET_SERVICE_ENTRY_METADATA:Ap,SET_HISTORY:Cp}=ir,Sp=["text","choice_prompt","image","video"];var kp=({eventBus:t})=>{const{t:e}=Fo(),n=ye(),r=Tn(),o=mn(),i=Rt(null),{setInterrupt:a}=Ko(),{setUserSelectedOption:s}=Uo(),{initCountdown:u,endCountdown:c}=Ji(),{emitEvent:l}=Ai();return Ft((()=>{if(n.connectionInfo){var e;const o=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:o}=e;!n&&o.name&&r({type:bp,title:o.name}),r({type:mp,participant:o,fromClient:n}),o.introduction&&r({type:vp,event:t})};n.stream().subscribe({next:e=>{const{type:n,payload:i}=e;switch(n){case"ui":switch(i.state&&i.state.hasOwnProperty("loading")&&r({type:gp,isLoading:i.state.loading}),i.type){case"idle_detach_countdown":u(i.body.duration);break;case"idle_detach_countdown_elapsed":c(void 0,!0);break;case"resume_conversation_prompt":r({type:xp});break;case"user_first_response":t.emit("system.userFirstResponse",i.body)}break;case"message":switch(o(i),i.type){case"text":case"choice_prompt":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":i.service&&i.service.serviceSessionId&&r({type:Ep,activeServiceSessionId:i.service.serviceSessionId}),r({type:vp,event:e})}break;case"participant":o(e);break;case"service_data":i.persist&&r({type:Dp,payload:i});break;case"ack":r({type:yp,event:e});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=N(i,dp),{cobrowsing:n,uploads:o,entry:a}=t;r({type:Tp,key:rr,enabled:!(!n||!n.enabled)}),r({type:Tp,key:or,enabled:!(!o||!o.enabled)}),s(rr,!1),r({type:Ap,entryMeta:a}),r({type:Ep,activeServiceSessionId:i.serviceSessionId}),l("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||r({type:vp,event:e});break;case"error":switch(i.type){case"find_conversation_erred":a(new qo);break;case"seamly_offline":a(new zo),r({type:wp});break;default:a(new $o)}break;case"socket_opened":r({type:_p})}}}),w()(e=n.stream()).call(e,(t=>"message"===t.type&&he()(Sp).call(Sp,t.payload.type))).subscribe({next:({payload:e})=>{e.id!==i.current&&t.emit("message",e),i.current=e.id}})}}),[r,n,t,e,a,s,u,c,l]),Ft((()=>{if(n.stream){const e=w()(t=n.stream()).call(t,(t=>"sync"===t.type)).subscribe({next:t=>{const{payload:e}=t,i=o[o.length-1],{id:s}=e.lastEvent;i&&s===i.payload.id||n.getConversation().then((t=>{t&&r({type:Cp,history:t})})).catch((t=>{a(t)}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[n,o,r,a]),null};const{REGISTER_UPLOAD:Op,SET_UPLOAD_PROGRESS:Ip,SET_UPLOAD_ERROR:Fp,SET_UPLOAD_COMPLETE:Np}=ir;var Rp=({children:t})=>{const{t:e}=Fo(),n=Tn(),r=ye(),{addUploadBubble:o}=Ai();return la(Zo.Provider,{value:t=>{const i=li(),a=r.uploadFile(t,(t=>{n({type:Ip,fileId:i,progress:Math.ceil(t)})}),(t=>{const{id:e,transactionId:r,occurredAt:a,body:{contentType:s,deleteAt:u,filename:c,filesize:l,url:p}}=t.body;n({type:Np,fileId:i}),o(e,r,a,s,u,c,l,p)}),(t=>{let r;switch(t&&t.body?t.body.error:""){case"file_uploads_are_disabled":r=e("fileUpload.errors.unavailable");break;case"request_entity_too_large":r=e("fileUpload.errors.tooLarge");break;case"file_has_invalid_mime_type":r=e("fileUpload.errors.wrongType");break;case"virus_found":r=e("fileUpload.errors.virusFound");break;default:r=e("fileUpload.errors.general")}n({type:Fp,fileId:i,errorText:r})}));n({type:Op,fileId:i,fileName:t.name,uploadHandle:a})},children:t})};const jp={events:[],config:{hideOnNoUserResponse:!1},initialState:{},unreadEvents:0,isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,visible:Wn.hidden,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},interrupt:{hasInterrupt:!1,meta:{}},historyLoaded:!1,skiplinkTargetId:li(),optionsButtonId:li(),cobrowsingContainerId:li(),showDisclaimer:!1,serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:qn,active:qn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function Pp(t=jp,e){return((t,e)=>{var n,r,o,i,a,s,u,c,l,p;switch(e.type){case sr:const{type:f,payload:h}=e.event,d=t.options.features.hasOwnProperty(or),v=ro(t.entryMeta,h);let y=zn({},t.options);if(d&&(f===$n.message||f===$n.participant)&&!h.fromClient){const{type:t}=h.entry||{};y=zn(zn({},y),{},{features:zn(zn({},y.features),{},{uploads:zn(zn({},y.features.uploads),{},{enabledFromEntry:t===Vn})})})}const g=Zr(e.event);return In()(n=t.events).call(n,(t=>t.payload.id===h.id))?t:zn(zn({},t),{},{entryMeta:d||v.active!==Vn?v:zn({},t.entryMeta),options:y,unreadEvents:g?t.unreadEvents+1:t.unreadEvents,events:[...t.events,zn(zn({},e.event),{},{payload:zn(zn({},g&&{messageStatus:h.fromClient?Yn:Gn}),h)})]});case pr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const m=In()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:b,occurredAt:_}=e.event.payload;return m?zn(zn({},t),{},{events:Xr(E()(o=t.events).call(o,(t=>t.payload.id===m.payload.id?zn(zn({},t),{},{payload:zn(zn({},t.payload),{},{id:b,occurredAt:_})}):t)))}):t;case ur:return zn(zn({},t),{},{unreadEvents:0,events:[]});case lr:return zn(zn({},t),{},{unreadEvents:0,events:E()(i=t.events).call(i,(t=>{var n;return-1!==Ve()(n=e.ids).call(n,t.payload.id)?zn(zn({},t),{},{payload:zn(zn({},t.payload),t.payload.messageStatus===Gn&&{messageStatus:Yn})}):t}))});case cr:const{events:x,participants:D,activeServiceSessionId:T,activeServiceSettings:A={},serviceData:C,resumeConversationPrompt:S}=e.history,k=((t,e)=>{var n;const r=kn()(n=w()(e).call(e,(e=>!(In()(t).call(t,(t=>t.payload.id===e.payload.id))||"participant"===e.type&&!e.payload.participant.introduction)))).call(n);return Xr([...r,...t])})(t.events,x),O=zn(zn({},t.participantInfo.participants),D),I=In()(a=kn()(s=He()(k).call(k)).call(s)).call(a,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let F=null;I&&("message"===I.type&&(F=I.payload.participant),"participant"===I.type&&(F=I.payload.participant.id));const{cobrowsing:N,entry:R,uploads:j}=A,P=ro(zn(zn(zn({},t.entryMeta),R),{},{active:R.default||Hn,options:zn({},R&&R.options?R.options:{})}),k[k.length-1].payload);let L=zn({},t.options.features);L.hasOwnProperty(rr)&&(L=zn(zn({},L),{},{cobrowsing:{enabled:!(!N||!N.enabled)}}));const B=L.hasOwnProperty(or);if(B){const{payload:t}=I,{type:e}=t.entry||{};L=zn(zn({},L),{},{uploads:{enabled:!(!j||!j.enabled),enabledFromEntry:e===Vn}})}const U=zn(zn({},t),{},{unreadEvents:w()(k).call(k,(t=>"message"===t.type&&t.payload.messageStatus===Gn)).length,events:w()(k).call(k,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:zn(zn(zn({},t.participantInfo),F?to(t.participantInfo,{type:dr,participant:O[F]}):{}),{},{participants:O}),historyLoaded:!0,serviceInfo:zn(zn({},t.serviceInfo),{},{activeServiceSessionId:T}),serviceData:C||{},options:zn(zn({},t.options),{},{features:L}),entryMeta:B||P.active!==Vn?P:zn({},t.entryMeta),resumeConversationPrompt:S||!1});return F&&(U.headerTitles=eo(t.headerTitles,{type:yr,title:O[F].name})),U;case _r:return zn(zn({},t),{},{historyLoaded:!1});case fr:return zn(zn({},t),{},{isLoading:e.isLoading});case wr:const{delaySeconds:M,delayTime:z}=e;return zn(zn({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:M,remaining:M,timer:z}});case Dr:const{idleDetachCountdown:$}=t,{remaining:H}=$,q=H-1;return zn(zn({},t),{},{idleDetachCountdown:zn(zn({},t.idleDetachCountdown),{},{remaining:q,timer:en(q)})});case Tr:return zn(zn({},t),{},{idleDetachCountdown:zn(zn({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case Ar:return zn(zn({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case Cr:return zn(zn({},t),{},{resumeConversationPrompt:!0});case Sr:return zn(zn({},t),{},{resumeConversationPrompt:!1});case br:return zn(zn({},t),{},{visible:e.visible});case dr:case hr:return zn(zn({},t),{},{participantInfo:to(t.participantInfo,e)});case Er:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?zn(zn({},t),{},{serviceInfo:zn(zn({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case vr:case yr:return zn(zn({},t),{},{headerTitles:eo(t.headerTitles,e)});case gr:case mr:return zn(zn({},t),{},{interrupt:no(t.interrupt,e)});case xr:return zn(zn({},t),{},{showDisclaimer:e.showDisclaimer});case Or:return zn(zn({},t),{},{config:zn(zn({},t.config),e.config)});case Rr:return zn(zn({},t),{},{initialState:e.initialState});case kr:return zn(zn({},t),{},{serviceData:zn(zn({},t.serviceData),{},{[e.payload.type]:e.payload})});case Ir:return zn(zn({},t),{},{options:zn(zn({},t.options),{},{features:e.features})});case Fr:return t.options.features.hasOwnProperty(e.key)?zn(zn({},t),{},{options:zn(zn({},t.options),{},{features:zn(zn({},t.options.features),{},{[e.key]:zn(zn({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case Nr:return zn(zn({},t),{},{options:zn(zn({},t.options),{},{features:{}})});case Lr:return zn(zn({},t),{},{options:zn(zn({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case Br:return zn(zn({},t),{},{options:zn(zn({},t.options),{},{panelActive:!1,optionActive:""})});case Pr:return zn(zn({},t),{},{options:zn(zn({},t.options),{},{userSelectedOptions:e.options})});case jr:const{option:V,value:W}=e;return zn(zn({},t),{},{options:zn(zn({},t.options),{},{userSelectedOptions:zn(zn({},t.options.userSelectedOptions),{},{[V]:W})})});case Ur:const{value:G}=e;return zn(zn({},t),{},{entryMeta:zn(zn({},t.entryMeta),{},{blockAutoEntrySwitch:G})});case $r:const{entryMeta:Y}=e;return zn(zn({},t),{},{entryMeta:zn(zn(zn({},t.entryMeta),Y),{},{active:Y.default,options:zn({},Y.options||{}),overrideOptions:{}})});case zr:const{entryType:K}=e;return zn(zn({},t),{},{entryMeta:zn(zn({},t.entryMeta),{},{active:K})});case Mr:const{entryType:J}=e;return zn(zn({},t),{},{entryMeta:zn(zn({},t.entryMeta),{},{userSelected:J})});case Hr:return zn(zn({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case qr:return zn(zn({},t),{},{currentUploads:E()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?zn(zn({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Wr:return zn(zn({},t),{},{currentUploads:E()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?zn(zn({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case Vr:return zn(zn({},t),{},{currentUploads:E()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?zn(zn({},t),{},{complete:!0}):t))});case Gr:return zn(zn({},t),{},{currentUploads:w()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Yr:return zn(zn({},t),{},{currentUploads:[]});case Kr:return zn(zn({},t),{},{showFileUpload:!1,currentUploads:[]});case Jr:return zn(zn({},t),{},{entryMeta:{default:Hn,active:Hn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}}});case Qr:return zn(zn({},t),{},{seamlyContainerElement:e.element});default:return t}})(t,e)}function Lp({store:t,children:e,translations:n}){const r=jt((()=>{if(t)return t;const e=je({state:Pp,[String(Ha)]:Ha,[String(wa)]:wa,[String(Co)]:Co});return e.dispatch(To(n)),e}),[t]);return la(Ce,{value:r,children:e})}var Bp=({children:t,config:e,eventBus:n})=>la(Lp,{translations:e.translations,children:la(ve.Provider,{value:n,children:la(Xl,{children:la(ip,{children:[la(hp,{config:e}),la(kp,{eventBus:n}),la(rp,{}),la(op,{}),la(ap,{}),la(sp,{children:[la(ep,{}),la(Rp,{children:t})]})]})})})}),Up=({config:t,eventBus:e})=>la(Bp,{config:t,eventBus:e,children:la(cl,{})});const Mp=["customComponents","parentElement","showFaq"],zp=["view"];function $p(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=$p(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=$p(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}class qp{constructor(t,e){const{customComponents:n,parentElement:r,showFaq:o}=t,i=N(t,Mp);this.config=Hp(Hp({},i),{},{showFaq:!1!==o}),this.namespace=t.namespace||"",this.parentElement=r,this.customComponents=n,this.externalApi=e,this.eventBus=new(Et()),this.functions={},this.registerFunctions({on:this.eventBus.on,off:this.eventBus.off}),this.eventBus.on("function.register",((t,e)=>this.registerFunction(t,e))),this.eventBus.on("function.unregister",((t,e)=>this.unregisterFunction(t,e)))}render(){const t=this.customComponents||{},{view:e}=t,n=N(t,zp),r=Hp(Hp({},this.config),{},{customComponents:s()(n).length?n:void 0});vt(e?la(Bp,{config:r,eventBus:this.eventBus,children:la(e,{})}):la(Up,{config:r,eventBus:this.eventBus}),this.parentElement)}destroy(){vt(null,this.parentElement),this.eventBus.off(),delete this.functions}registerFunctions(t){var e;T()(e=$()(t)).call(e,(([t,e])=>{this.registerFunction(t,e)}))}registerFunction(t,e){this.functions[t]=this.functions[t]||[],this.functions[t].push(e),this.externalApi.handleActions()}unregisterFunction(t,e){const n=this.functions[t];n&&n.length&&(this.functions[t]=w()(n).call(n,(t=>t!==e)))}execFunction(t,...e){const n=this.functions[t];return!(!n||!n.length||(T()(n).call(n,(n=>{try{n(...e)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function Vp(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)T()(n=Vp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;T()(o=Vp(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Gp=t=>"object"==typeof t&&"action"in t,Yp=t=>Wp(Wp({},t),{},{args:e()(t.args)?t.args:[t.args]});var Kp=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t}push(...t){var e;(t=E()(e=w()(t).call(t,Gp)).call(e,Yp)).length&&(this._waitingActions.push(...t),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],T()(t).call(t,(t=>{switch(t.action){case"init":this.handleInit(t);break;case"destroy":this.handleDestroy(t);break;default:this.handleAction(t)||this._waitingActions.push(t)}}))}handleInit(t){var e;const n=this.getUserConfig(...t.args),r=this.getCombinedConfig(n);if(!r)return void this.destroy(n.namespace);const{parentElement:o,namespace:i}=r;T()(e=C()(this._instances)).call(e,(t=>{t.parentElement!==o&&t.namespace!==i||this.destroy(t)}));const a=this.createInstance(r);this._instances[r.namespace]=a,a.render()}handleDestroy(t){var e;void 0!==t.instance?this.destroy(t.instance):T()(e=C()(this._instances)).call(e,(t=>{this.destroy(t)}))}handleAction(t){const{action:e,instance:n,args:r}=t,o=C()(this._instances);!n&&o.length>1&&console.warn(`Multiple instances detected. Due to potential race conditions, it is recommended to target a specific instance with the action: ${e}`);const i=E()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return k()(i).call(i,Boolean)}createInstance(t){return new qp(t,this)}destroy(t){"string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])}getUserConfig(t={}){return t}getCombinedConfig(t){return"function"==typeof this.appConfig?this.appConfig(t):Wp(Wp(Wp({},this.appConfig),t),{},{api:Wp(Wp({},this.appConfig.api),t.api)})}},Jp=function(t){var n;if(window.seamly&&!e()(window.seamly))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const r=e()(window.seamly)?window.seamly:[],o=new Kp(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));
2
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={6419:function(t,e,n){t.exports=n(7698)},1511:function(t,e,n){t.exports=n(3363)},1128:function(t,e,n){t.exports=n(7784)},4103:function(t,e,n){t.exports=n(8196)},7766:function(t,e,n){t.exports=n(8065)},62:function(t,e,n){t.exports=n(9455)},4494:function(t,e,n){t.exports=n(9743)},116:function(t,e,n){t.exports=n(1955)},2462:function(t,e,n){t.exports=n(6064)},4473:function(t,e,n){t.exports=n(1577)},6423:function(t,e,n){t.exports=n(4913)},8914:function(t,e,n){t.exports=n(6279)},8580:function(t,e,n){t.exports=n(3778)},1643:function(t,e,n){t.exports=n(9373)},3054:function(t,e,n){t.exports=n(1022)},2991:function(t,e,n){t.exports=n(1798)},2366:function(t,e,n){t.exports=n(2527)},7093:function(t,e,n){t.exports=n(8427)},3649:function(t,e,n){t.exports=n(2073)},7149:function(t,e,n){t.exports=n(5286)},7302:function(t,e,n){t.exports=n(2856)},2762:function(t,e,n){t.exports=n(2348)},771:function(t,e,n){t.exports=n(5799)},225:function(t,e,n){t.exports=n(353)},5843:function(t,e,n){t.exports=n(6361)},9340:function(t,e,n){t.exports=n(8933)},1864:function(t,e,n){t.exports=n(3383)},4943:function(t,e,n){t.exports=n(4471)},368:function(t,e,n){t.exports=n(7396)},3978:function(t,e,n){t.exports=n(1910)},6295:function(t,e,n){t.exports=n(6209)},4074:function(t,e,n){t.exports=n(9427)},9649:function(t,e,n){t.exports=n(2857)},8604:function(t,e,n){n(4477)},4310:function(t,e,n){t.exports=n(9534)},6902:function(t,e,n){t.exports=n(3059)},455:function(t,e,n){t.exports=n(7795)},1238:function(t,e,n){t.exports=n(6877)},4198:function(t,e,n){t.exports=n(4888)},3476:function(t,e,n){t.exports=n(7460)},1581:function(t,e,n){t.exports=n(3474)},3032:function(t,e,n){t.exports=n(7989)},6384:function(t,e,n){t.exports=n(5519)},5420:function(t,e,n){t.exports=n(2547)},8341:function(t,e,n){t.exports=n(6509)},9996:function(t,e,n){t.exports=n(2209)},6976:function(t,e,n){t.exports=n(1258)},5683:function(t,e,n){t.exports=n(9447)},8317:function(t,e,n){t.exports=n(4408)},2088:function(t,e,n){t.exports=n(269)},4341:function(t,e,n){t.exports=n(3685)},3263:function(t,e,n){t.exports=n(4710)},9356:function(t,e,n){t.exports=n(3799)},9853:function(t,e,n){var r=n(3978),o=n(3649),i=n(6419),a=n(5420),s=n(9996),u=n(4103),c=n(1511),l=n(4198),p=n(1643),f=n(5843),h=n(2762),d=n(2991),v=n(771),y=n(225),g=n(7149),m=n(4943),b=n(8914),_=n(6902),E=n(8580),x=n(3054),w=n(3032),D=n(7766);t.exports=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(t,o.key,o)}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){var r,l=void 0!==a&&s(t)||t["@@iterator"];if(l)return u(r=(l=l.call(t)).next).call(r,l);if(c(t)||(l=function(t,n){var r;if(t){if("string"==typeof t)return e(t,n);var a=o(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?i(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){l&&(t=l);var p=0;return function(){return p>=t.length?{done:!0}:{done:!1,value:t[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A={exports:{}};function T(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}A.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:T,changeDefaults:function(t){A.exports.defaults=t}};var C=/[&<>"']/,S=/[&<>"']/g,k=/[<>"']|&(?!#?\w+;)/,O=/[<>"']|&(?!#?\w+;)/g,I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},F=function(t){return I[t]};var N=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function j(t){return t.replace(N,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(l(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var R=/(^|[^\[])\^/g;var P=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var B={},U=/^[^:]+:\/*[^/]*$/,M=/^([^:]+:)[\s\S]*$/,$=/^([^:]+:\/*[^/]*)[\s\S]*$/;function z(t,e){B[" "+t]||(U.test(t)?B[" "+t]=t+"/":B[" "+t]=H(t,"/",!0)),t=B[" "+t];var n=-1===p(t).call(t,":");return"//"===e.substring(0,2)?n?e:t.replace(M,"$1")+e:"/"===e.charAt(0)?n?e:t.replace($,"$1")+e:t+e}function H(t,e,n){var r=t.length;if(0===r)return"";for(var o=0;o<r;){var i=t.charAt(r-o-1);if(i!==e||n){if(i===e||!n)break;o++}else o++}return t.substr(0,r-o)}var q=function(t,e){if(e){if(C.test(t))return t.replace(S,F)}else if(k.test(t))return t.replace(O,F);return t},V=j,W=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(R,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},G=function(t,e,n){if(t){var r;try{r=decodeURIComponent(j(n)).replace(P,"").toLowerCase()}catch(t){return null}if(0===p(r).call(r,"javascript:")||0===p(r).call(r,"vbscript:")||0===p(r).call(r,"data:"))return null}e&&!L.test(n)&&(n=z(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},Y={exec:function(){}},K=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},J=function(t,e){var n,r,o=t.replace(/\|/g,(function(t,e,n){for(var r=!1,o=e;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),i=0;if(f(n=o[0]).call(n)||o.shift(),f(r=o[o.length-1]).call(r)||o.pop(),o.length>e)h(o).call(o,e);else for(;o.length<e;)o.push("");for(;i<o.length;i++){var a;o[i]=f(a=o[i]).call(a).replace(/\\\|/g,"|")}return o},Q=H,Z=function(t,e){if(-1===p(t).call(t,e[1]))return-1;for(var n=t.length,r=0,o=0;o<n;o++)if("\\"===t[o])o++;else if(t[o]===e[0])r++;else if(t[o]===e[1]&&--r<0)return o;return-1},X=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},tt=function(t,e){if(e<1)return"";for(var n="";e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t},et=A.exports.defaults,nt=Q,rt=J,ot=q,it=Z;function at(t,e,n,r){var o=e.href,i=e.title?ot(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;var s={type:"link",raw:n,href:o,title:i,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,s}return{type:"image",raw:n,href:o,title:i,text:ot(a)}}var st=function(){function t(t){this.options=t||et}var e=t.prototype;return e.space=function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:nt(n,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n,r=e[0],i=function(t,e){var n,r=t.match(/^(\s+)(?:```)/);if(null===r)return e;var i=r[1];return d(n=e.split("\n")).call(n,(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=i.length?o(t).call(t,i.length):t})).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?f(n=e[2]).call(n):e[2],text:i}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n,r=f(n=e[2]).call(n);if(/#$/.test(r)){var o=nt(r,"#");this.options.pedantic?r=f(o).call(o):o&&!/ $/.test(o)||(r=f(o).call(o))}var i={type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},e.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},e.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,r,i,a,s,u,c,l,p,h,d,m,b=f(n=e[1]).call(n),_=b.length>1,E={type:"list",raw:"",ordered:_,start:_?+o(b).call(b,0,-1):"",loose:!1,items:[]};b=_?"\\d{1,9}\\"+o(b).call(b,-1):"\\"+b,this.options.pedantic&&(b=_?b:"[*+-]");for(var x=new RegExp("^( {0,3}"+b+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");t&&!this.rules.block.hr.test(t)&&(e=x.exec(t));){var w,D;d=e[2].split("\n"),this.options.pedantic?(u=2,m=v(w=d[0]).call(w)):(u=e[2].search(/[^ ]/),u=e[1].length+(u>4?1:u),m=o(D=d[0]).call(D,u-e[1].length)),l=!1,i=e[0],!d[0]&&/^ *$/.test(d[1])&&(i=e[1]+o(d).call(d,0,2).join("\n")+"\n",E.loose=!0,d=[]);var A=new RegExp("^ {0,"+Math.min(3,u-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(c=1;c<d.length;c++){if(h=d[c],this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),A.test(h)){i=e[1]+o(d).call(d,0,c).join("\n")+"\n";break}if(l){if(!(h.search(/[^ ]/)>=u)&&f(h).call(h)){i=e[1]+o(d).call(d,0,c).join("\n")+"\n";break}m+="\n"+o(h).call(h,u)}else f(h).call(h)||(l=!0),h.search(/[^ ]/)>=u?m+="\n"+o(h).call(h,u):m+="\n"+h}E.loose||(p?E.loose=!0:/\n *\n *$/.test(i)&&(p=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(m))&&(s="[ ] "!==a[0],m=m.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:i,task:!!a,checked:s,loose:!1,text:m}),E.raw+=i,t=o(t).call(t,i.length)}E.items[E.items.length-1].raw=y(i).call(i),E.items[E.items.length-1].text=y(m).call(m),E.raw=y(r=E.raw).call(r);var T=E.items.length;for(c=0;c<T;c++){var C;this.lexer.state.top=!1,E.items[c].tokens=this.lexer.blockTokens(E.items[c].text,[]),g(C=E.items[c].tokens).call(C,(function(t){return"space"===t.type}))&&(E.loose=!0,E.items[c].loose=!0)}return E}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ot(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n,r={type:"table",header:d(n=rt(e[1])).call(n,(function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];var o,i,a,s,u=r.align.length;for(o=0;o<u;o++)/^ *-+: *$/.test(r.align[o])?r.align[o]="right":/^ *:-+: *$/.test(r.align[o])?r.align[o]="center":/^ *:-+ *$/.test(r.align[o])?r.align[o]="left":r.align[o]=null;for(u=r.rows.length,o=0;o<u;o++){var c;r.rows[o]=d(c=rt(r.rows[o],r.header.length)).call(c,(function(t){return{text:t}}))}for(u=r.header.length,i=0;i<u;i++)r.header[i].tokens=[],this.lexer.inlineTokens(r.header[i].text,r.header[i].tokens);for(u=r.rows.length,i=0;i<u;i++)for(s=r.rows[i],a=0;a<s.length;a++)s[a].tokens=[],this.lexer.inlineTokens(s[a].text,s[a].tokens);return r}}},e.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e){var n={type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},e.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n,r={type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?o(n=e[1]).call(n,0,-1):e[1],tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},e.text=function(t){var e=this.rules.block.text.exec(t);if(e){var n={type:"text",raw:e[0],text:e[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},e.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:ot(e[1])}},e.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ot(e[0]):e[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n,r=f(n=e[2]).call(n);if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;var i=nt(o(r).call(r,0,-1),"\\");if((r.length-i.length)%2==0)return}else{var a=it(e[2],"()");if(a>-1){var s,u,c=(0===p(s=e[0]).call(s,"!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=f(u=e[0].substring(0,c)).call(u),e[3]=""}}var l=e[2],h="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);d&&(l=d[1],h=d[3])}else{var v;h=e[3]?o(v=e[3]).call(v,1,-1):""}return l=f(l).call(l),/^</.test(l)&&(l=this.options.pedantic&&!/>$/.test(r)?o(l).call(l,1):o(l).call(l,1,-1)),at(e,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:h?h.replace(this.rules.inline._escapes,"$1"):h},e[0],this.lexer)}},e.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return at(n,r,n[0],this.lexer)}},e.emStrong=function(t,e,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(t);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var a,s,u=r[0].length-1,c=u,l=0,p="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,e=o(e).call(e,-1*t.length+u);null!=(r=p.exec(e));)if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(s=a.length,r[3]||r[4])c+=s;else if(!((r[5]||r[6])&&u%3)||(u+s)%3){if(!((c-=s)>0)){if(s=Math.min(s,s+c+l),Math.min(u,s)%2){var f=o(t).call(t,1,u+r.index+s);return{type:"em",raw:o(t).call(t,0,u+r.index+s+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var h=o(t).call(t,2,u+r.index+s-1);return{type:"strong",raw:o(t).call(t,0,u+r.index+s+1),text:h,tokens:this.lexer.inlineTokens(h,[])}}}else l+=s}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=ot(n,!0),{type:"codespan",raw:e[0],text:n}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}},e.autolink=function(t,e){var n,r,o=this.rules.inline.autolink.exec(t);if(o)return r="@"===o[2]?"mailto:"+(n=ot(this.options.mangle?e(o[1]):o[1])):n=ot(o[1]),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},e.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,o;if("@"===n[2])o="mailto:"+(r=ot(this.options.mangle?e(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=ot(n[0]),o="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}},e.inlineText=function(t,e){var n,r=this.rules.inline.text.exec(t);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ot(r[0]):r[0]:ot(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:n}},t}(),ut=Y,ct=W,lt=K,pt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:ut,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};pt.def=ct(pt.def).replace("label",pt._label).replace("title",pt._title).getRegex(),pt.bullet=/(?:[*+-]|\d{1,9}[.)])/,pt.listItemStart=ct(/^( *)(bull) */).replace("bull",pt.bullet).getRegex(),pt.list=ct(pt.list).replace(/bull/g,pt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+pt.def.source+")").getRegex(),pt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,pt.html=ct(pt.html,"i").replace("comment",pt._comment).replace("tag",pt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),pt.paragraph=ct(pt._paragraph).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pt._tag).getRegex(),pt.blockquote=ct(pt.blockquote).replace("paragraph",pt.paragraph).getRegex(),pt.normal=lt({},pt),pt.gfm=lt({},pt.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),pt.gfm.table=ct(pt.gfm.table).replace("hr",pt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pt._tag).getRegex(),pt.pedantic=lt({},pt.normal,{html:ct("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",pt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ut,paragraph:ct(pt.normal._paragraph).replace("hr",pt.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",pt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ft={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ut,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};ft.punctuation=ct(ft.punctuation).replace(/punctuation/g,ft._punctuation).getRegex(),ft.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ft.escapedEmSt=/\\\*|\\_/g,ft._comment=ct(pt._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ft.emStrong.lDelim=ct(ft.emStrong.lDelim).replace(/punct/g,ft._punctuation).getRegex(),ft.emStrong.rDelimAst=ct(ft.emStrong.rDelimAst,"g").replace(/punct/g,ft._punctuation).getRegex(),ft.emStrong.rDelimUnd=ct(ft.emStrong.rDelimUnd,"g").replace(/punct/g,ft._punctuation).getRegex(),ft._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ft._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ft._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ft.autolink=ct(ft.autolink).replace("scheme",ft._scheme).replace("email",ft._email).getRegex(),ft._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ft.tag=ct(ft.tag).replace("comment",ft._comment).replace("attribute",ft._attribute).getRegex(),ft._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ft._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ft._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ft.link=ct(ft.link).replace("label",ft._label).replace("href",ft._href).replace("title",ft._title).getRegex(),ft.reflink=ct(ft.reflink).replace("label",ft._label).getRegex(),ft.reflinkSearch=ct(ft.reflinkSearch,"g").replace("reflink",ft.reflink).replace("nolink",ft.nolink).getRegex(),ft.normal=lt({},ft),ft.pedantic=lt({},ft.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ct(/^!?\[(label)\]\((.*?)\)/).replace("label",ft._label).getRegex(),reflink:ct(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ft._label).getRegex()}),ft.gfm=lt({},ft.normal,{escape:ct(ft.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ft.gfm.url=ct(ft.gfm.url,"i").replace("email",ft.gfm._extended_email).getRegex(),ft.breaks=lt({},ft.gfm,{br:ct(ft.br).replace("{2,}","*").getRegex(),text:ct(ft.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ht={block:pt,inline:ft},dt=st,vt=A.exports.defaults,yt=ht.block,gt=ht.inline,mt=tt;function bt(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function _t(t){var e,n,r="",o=t.length;for(e=0;e<o;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Et=function(){function e(t){this.tokens=[],this.tokens.links=m(null),this.options=t||vt,this.options.tokenizer=this.options.tokenizer||new dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var e={block:yt.normal,inline:gt.normal};this.options.pedantic?(e.block=yt.pedantic,e.inline=gt.pedantic):this.options.gfm&&(e.block=yt.gfm,this.options.breaks?e.inline=gt.breaks:e.inline=gt.gfm),this.tokenizer.rules=e}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n,r,i,a=e.prototype;return a.lex=function(t){var e;for(t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens);e=this.inlineQueue.shift();)this.inlineTokens(e.src,e.tokens);return this.tokens},a.blockTokens=function(t,e){var n,r,i,a,s=this;for(void 0===e&&(e=[]),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;){var u;if(!(this.options.extensions&&this.options.extensions.block&&g(u=this.options.extensions.block).call(u,(function(r){return!!(n=r.call({lexer:s},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),!(r=e[e.length-1])||"paragraph"!==r.type&&"text"!==r.type?e.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),!(r=e[e.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(i=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e,n=1/0,r=o(t).call(t,1),a=void 0;b(e=s.options.extensions.startBlock).call(e,(function(t){"number"==typeof(a=t.call({lexer:this},r))&&a>=0&&(n=Math.min(n,a))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}(),this.state.top&&(n=this.tokenizer.paragraph(i)))r=e[e.length-1],a&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n),a=i.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):e.push(n);else if(t){var c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return this.state.top=!0,e},a.inline=function(t,e){this.inlineQueue.push({src:t,tokens:e})},a.inlineTokens=function(t,e){var n,r,i,a=this;void 0===e&&(e=[]);var s,u,c,l=t;if(this.tokens.links){var p=_(this.tokens.links);if(p.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));){var f,h;E(p).call(p,o(f=s[0]).call(f,x(h=s[0]).call(h,"[")+1,-1))&&(l=o(l).call(l,0,s.index)+"["+mt("a",s[0].length-2)+"]"+o(l).call(l,this.tokenizer.rules.inline.reflinkSearch.lastIndex))}}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=o(l).call(l,0,s.index)+"["+mt("a",s[0].length-2)+"]"+o(l).call(l,this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=o(l).call(l,0,s.index)+"++"+o(l).call(l,this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;){var d,v,y;if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&g(d=this.options.extensions.inline).call(d,(function(r){return!!(n=r.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),(r=e[e.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,c))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,_t))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,_t))){if(i=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e,n=1/0,r=o(t).call(t,1),s=void 0;b(e=a.options.extensions.startInline).call(e,(function(t){"number"==typeof(s=t.call({lexer:this},r))&&s>=0&&(n=Math.min(n,s))})),n<1/0&&n>=0&&(i=t.substring(0,n+1))}(),n=this.tokenizer.inlineText(i,bt))t=t.substring(n.raw.length),"_"!==o(v=n.raw).call(v,-1)&&(c=o(y=n.raw).call(y,-1)),u=!0,(r=e[e.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);else if(t){var m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}throw new Error(m)}}else t=t.substring(n.raw.length),e.push(n)}return e},n=e,i=[{key:"rules",get:function(){return{block:yt,inline:gt}}}],(r=null)&&t(n.prototype,r),i&&t(n,i),e}(),xt=A.exports.defaults,wt=G,Dt=q,At=function(){function t(t){this.options=t||xt}var e=t.prototype;return e.code=function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,r);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Dt(r,!0)+'">'+(n?t:Dt(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:Dt(t,!0))+"</code></pre>\n"},e.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},e.html=function(t){return t},e.heading=function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"},e.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},e.list=function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"},e.listitem=function(t){return"<li>"+t+"</li>\n"},e.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},e.paragraph=function(t){return"<p>"+t+"</p>\n"},e.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},e.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},e.tablecell=function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"},e.strong=function(t){return"<strong>"+t+"</strong>"},e.em=function(t){return"<em>"+t+"</em>"},e.codespan=function(t){return"<code>"+t+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(t){return"<del>"+t+"</del>"},e.link=function(t,e,n){if(null===(t=wt(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+Dt(t)+'"';return e&&(r+=' title="'+e+'"'),r+">"+n+"</a>"},e.image=function(t,e,n){if(null===(t=wt(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+(this.options.xhtml?"/>":">")},e.text=function(t){return t},t}(),Tt=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),Ct=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){var e;return f(e=t.toLowerCase()).call(e).replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{n=t+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),St=At,kt=Tt,Ot=Ct,It=A.exports.defaults,Ft=V,Nt=Et,jt=function(){function t(t){this.options=t||It,this.options.renderer=this.options.renderer||new St,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kt,this.slugger=new Ot}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var n,r,o,i,a,s,u,c,l,p,f,h,d,v,y,g,m,b,_,x="",w=t.length;for(n=0;n<w;n++){var D;if(p=t[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(_=this.options.extensions.renderers[p.type].call({parser:this},p))&&E(D=["space","hr","heading","code","table","blockquote","list","html","paragraph","text"]).call(D,p.type))switch(p.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Ft(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",u="",i=p.header.length,r=0;r<i;r++)u+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(u),l="",i=p.rows.length,r=0;r<i;r++){for(u="",a=(s=p.rows[r]).length,o=0;o<a;o++)u+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});l+=this.renderer.tablerow(u)}x+=this.renderer.table(c,l);continue;case"blockquote":l=this.parse(p.tokens),x+=this.renderer.blockquote(l);continue;case"list":for(f=p.ordered,h=p.start,d=p.loose,i=p.items.length,l="",r=0;r<i;r++)g=(y=p.items[r]).checked,m=y.task,v="",y.task&&(b=this.renderer.checkbox(g),d?y.tokens.length>0&&"paragraph"===y.tokens[0].type?(y.tokens[0].text=b+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&"text"===y.tokens[0].tokens[0].type&&(y.tokens[0].tokens[0].text=b+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:b}):v+=b),v+=this.parse(y.tokens,d),l+=this.renderer.listitem(v,m,g);x+=this.renderer.list(l,f,h);continue;case"html":x+=this.renderer.html(p.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(l=p.tokens?this.parseInline(p.tokens):p.text;n+1<w&&"text"===t[n+1].type;)l+="\n"+((p=t[++n]).tokens?this.parseInline(p.tokens):p.text);x+=e?this.renderer.paragraph(l):l;continue;default:var A='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(A);throw new Error(A)}else x+=_||""}return x},e.parseInline=function(t,e){e=e||this.renderer;var n,r,o,i="",a=t.length;for(n=0;n<a;n++){var s;if(r=t[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(o=this.options.extensions.renderers[r.type].call({parser:this},r))&&E(s=["escape","html","link","image","strong","em","codespan","br","del","text"]).call(s,r.type))switch(r.type){case"escape":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;case"text":i+=e.text(r.text);break;default:var u='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(u);throw new Error(u)}else i+=o||""}return i},t}(),Rt=st,Pt=At,Lt=Tt,Bt=Ct,Ut=K,Mt=X,$t=q,zt=A.exports.getDefaults,Ht=A.exports.changeDefaults,qt=A.exports.defaults;function Vt(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=Ut({},Vt.defaults,e||{}),Mt(e),n){var r,o=e.highlight;try{r=Nt.lex(t,e)}catch(t){return n(t)}var i=function(t){var i;if(!t)try{e.walkTokens&&Vt.walkTokens(r,e.walkTokens),i=jt.parse(r,e)}catch(e){t=e}return e.highlight=o,t?n(t):n(null,i)};if(!o||o.length<3)return i();if(delete e.highlight,!r.length)return i();var a=0;return Vt.walkTokens(r,(function(t){"code"===t.type&&(a++,w((function(){o(t.text,t.lang,(function(e,n){if(e)return i(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0==--a&&i()}))}),0))})),void(0===a&&i())}try{var s=Nt.lex(t,e);return e.walkTokens&&Vt.walkTokens(s,e.walkTokens),jt.parse(s,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+$t(t.message+"",!0)+"</pre>";throw t}}return Vt.options=Vt.setOptions=function(t){return Ut(Vt.defaults,t),Ht(Vt.defaults),Vt},Vt.getDefaults=zt,Vt.defaults=qt,Vt.use=function(){for(var t,e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i,a=Ut.apply(void 0,D(t=[{}]).call(t,r)),s=Vt.defaults.extensions||{renderers:{},childTokens:{}};b(r).call(r,(function(t){var n;if(t.extensions&&(i=!0,b(n=t.extensions).call(n,(function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var e=s.renderers?s.renderers[t.name]:null;s.renderers[t.name]=e?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=t.renderer.apply(this,r);return!1===i&&(i=e.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");s[t.level]?s[t.level].unshift(t.tokenizer):s[t.level]=[t.tokenizer],t.start&&("block"===t.level?s.startBlock?s.startBlock.push(t.start):s.startBlock=[t.start]:"inline"===t.level&&(s.startInline?s.startInline.push(t.start):s.startInline=[t.start]))}t.childTokens&&(s.childTokens[t.name]=t.childTokens)}))),t.renderer&&function(){var e=Vt.defaults.renderer||new Pt,n=function(n){var r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=t.renderer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}};for(var r in t.renderer)n(r);a.renderer=e}(),t.tokenizer&&function(){var e=Vt.defaults.tokenizer||new Rt,n=function(n){var r=e[n];e[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=t.tokenizer[n].apply(e,i);return!1===s&&(s=r.apply(e,i)),s}};for(var r in t.tokenizer)n(r);a.tokenizer=e}(),t.walkTokens){var r=Vt.defaults.walkTokens;a.walkTokens=function(n){t.walkTokens.call(e,n),r&&r(n)}}i&&(a.extensions=s),Vt.setOptions(a)}))},Vt.walkTokens=function(t,e){for(var r,o=function(){var t=r.value;switch(e(t),t.type){case"table":for(var o,i=n(t.header);!(o=i()).done;){var a=o.value;Vt.walkTokens(a.tokens,e)}for(var s,u=n(t.rows);!(s=u()).done;)for(var c,l=n(s.value);!(c=l()).done;){var p=c.value;Vt.walkTokens(p.tokens,e)}break;case"list":Vt.walkTokens(t.items,e);break;default:var f;Vt.defaults.extensions&&Vt.defaults.extensions.childTokens&&Vt.defaults.extensions.childTokens[t.type]?b(f=Vt.defaults.extensions.childTokens[t.type]).call(f,(function(n){Vt.walkTokens(t[n],e)})):t.tokens&&Vt.walkTokens(t.tokens,e)}},i=n(t);!(r=i()).done;)o()},Vt.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=Ut({},Vt.defaults,e||{}),Mt(e);try{var n=Nt.lexInline(t,e);return e.walkTokens&&Vt.walkTokens(n,e.walkTokens),jt.parseInline(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+$t(t.message+"",!0)+"</pre>";throw t}},Vt.Parser=jt,Vt.parser=jt.parse,Vt.Renderer=Pt,Vt.TextRenderer=Lt,Vt.Lexer=Nt,Vt.lexer=Nt.lex,Vt.Tokenizer=Rt,Vt.Slugger=Bt,Vt.parse=Vt,Vt}()},2574:function(t,e,n){"use strict";var r,o=n(3649),i=n(6419),a=n(5420),s=n(8317),u=n(1511),c=n(8914);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(){this._defaults=[]}c(r=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"]).call(r,(function(t){p.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}})),p.prototype._setDefaults=function(t){var e;c(e=this._defaults).call(e,(function(e){var n;t[e.fn].apply(t,function(t){if(u(t))return l(t)}(n=e.args)||function(t){if(void 0!==a&&s(Object(t)))return i(t)}(n)||function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=o(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?i(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},t.exports=p},8158:function(t,e,n){"use strict";var r,o,i=n(5420),a=n(8341),s=n(5843),u=n(1511),c=n(8914),l=n(7766),p=n(1643),f=n(3649),h=n(3032),d=n(4103);function v(t){return(v="function"==typeof i&&"symbol"==typeof a?function(t){return typeof t}:function(t){return t&&"function"==typeof i&&t.constructor===i&&t!==i.prototype?"symbol":typeof t})(t)}"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var y=n(8767),g=n(4445),m=n(129),b=n(8842),_=n(3508),E=n(1253),x=n(2574);function w(){}t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var D=e=t.exports;e.Request=I,D.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var A=s("")?function(t){return s(t).call(t)}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function T(t){if(!_(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&C(e,n,t[n]);return e.join("&")}function C(t,e,n){if(void 0!==n)if(null!==n)if(u(n))c(n).call(n,(function(n){C(t,e,n)}));else if(_(n))for(var r in n){var o;Object.prototype.hasOwnProperty.call(n,r)&&C(t,l(o="".concat(e,"[")).call(o,r,"]"),n[r])}else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function S(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)e=o[i],-1===(n=p(e).call(e,"="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(f(e).call(e,0,n))]=decodeURIComponent(f(e).call(e,n+1));return r}function k(t){return/[/+]json($|[^-\w])/i.test(t)}function O(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)n=i[s],-1!==(e=p(n).call(n,":"))&&(r=f(n).call(n,0,e).toLowerCase(),o=A(f(n).call(n,e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function I(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new O(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function F(t,e,n){var r=D("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}D.serializeObject=T,D.parseString=S,D.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},D.serialize={"application/x-www-form-urlencoded":m.stringify,"application/json":g},D.parse={"application/x-www-form-urlencoded":S,"application/json":JSON.parse},E(O.prototype),O.prototype._parseBody=function(t){var e=D.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&k(this.type)&&(e=D.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},O.prototype.toError=function(){var t,e,n=this.req,r=n.method,o=n.url,i=l(t=l(e="cannot ".concat(r," ")).call(e,o," (")).call(t,this.status,")"),a=new Error(i);return a.status=this.status,a.method=r,a.url=o,a},D.Response=O,y(I.prototype),b(I.prototype),I.prototype.type=function(t){return this.set("Content-Type",D.types[t]||t),this},I.prototype.accept=function(t){return this.set("Accept",D.types[t]||t),this},I.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===v(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},I.prototype.query=function(t){return"string"!=typeof t&&(t=T(t)),t&&this._query.push(t),this},I.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},I.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},I.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},I.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},I.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},I.prototype.ca=I.prototype.agent,I.prototype.buffer=I.prototype.ca,I.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},I.prototype.pipe=I.prototype.write,I.prototype._isHost=function(t){return t&&"object"===v(t)&&!u(t)&&"[object Object]"!==Object.prototype.toString.call(t)},I.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||w,this._finalizeQueryString(),this._end()},I.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=h((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},I.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=D.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",d(r).call(r,null,"download")),e.upload&&e.upload.addEventListener("progress",d(r).call(r,null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||D.serialize[o?o.split(";")[0]:""];!i&&k(o)&&(i=D.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},D.agent=function(){return new x},c(r=["GET","POST","OPTIONS","PATCH","PUT","DELETE"]).call(r,(function(t){x.prototype[t.toLowerCase()]=function(e,n){var r=new D.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),x.prototype.del=x.prototype.delete,D.get=function(t,e,n){var r=D("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},D.head=function(t,e,n){var r=D("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},D.options=function(t,e,n){var r=D("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.del=F,D.delete=F,D.patch=function(t,e,n){var r=D("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.post=function(t,e,n){var r=D("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},D.put=function(t,e,n){var r=D("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},3508:function(t,e,n){"use strict";var r=n(5420),o=n(8341);function i(t){return(i="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===i(t)}},8842:function(t,e,n){"use strict";var r=n(5420),o=n(8341),i=n(6384),a=n(3476),s=n(1511),u=n(7766),c=n(5843),l=n(8580),p=n(1643),f=n(3649),h=n(7302),d=n(3032);function v(t){return(v="function"==typeof r&&"symbol"==typeof o?function(t){return typeof t}:function(t){return t&&"function"==typeof r&&t.constructor===r&&t!==r.prototype?"symbol":typeof t})(t)}var y=n(3508);function g(t){if(t)return function(t){for(var e in g.prototype)Object.prototype.hasOwnProperty.call(g.prototype,e)&&(t[e]=g.prototype[e]);return t}(t)}t.exports=g,g.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},g.prototype.parse=function(t){return this._parser=t,this},g.prototype.responseType=function(t){return this._responseType=t,this},g.prototype.serialize=function(t){return this._serializer=t,this},g.prototype.timeout=function(t){if(!t||"object"!==v(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},g.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var m=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),b=new i([408,413,429,500,502,503,504,521,522,524]);g.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&b.has(e.status))return!0;if(t){if(t.code&&m.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},g.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},g.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new a((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},g.prototype.catch=function(t){return this.then(void 0,t)},g.prototype.use=function(t){return t(this),this},g.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},g.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},g.prototype.get=function(t){return this._header[t.toLowerCase()]},g.prototype.getHeader=g.prototype.get,g.prototype.set=function(t,e){if(y(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},g.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},g.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(y(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(n,t[n]);return this}if(s(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},g.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},g.prototype._auth=function(t,e,n,r){var o;switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r(u(o="".concat(t,":")).call(o,e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},g.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},g.prototype.redirects=function(t){return this._maxRedirects=t,this},g.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},g.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},g.prototype.send=function(t){var e=y(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)s(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&y(this._data))for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._data[r]=t[r]);else if("string"==typeof t){var o,i;n||this.type("form"),(n=this._header["content-type"])&&(n=c(o=n.toLowerCase()).call(o)),this._data="application/x-www-form-urlencoded"===n?this._data?u(i="".concat(this._data,"&")).call(i,t):t:(this._data||"")+t}else this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},g.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},g.prototype._finalizeQueryString=function(){var t,e=this._query.join("&");if(e&&(this.url+=(l(t=this.url).call(t,"?")?"&":"?")+e),this._query.length=0,this._sort){var n,r=p(n=this.url).call(n,"?");if(r>=0){var o,i,a=f(o=this.url).call(o,r+1).split("&");"function"==typeof this._sort?h(a).call(a,this._sort):h(a).call(a),this.url=f(i=this.url).call(i,0,r)+"?"+a.join("&")}}},g.prototype._appendQueryString=function(){console.warn("Unsupported")},g.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},g.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=d((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=d((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},1253:function(t,e,n){"use strict";var r=n(6244);function o(t){if(t)return function(t){for(var e in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,e)&&(t[e]=o.prototype[e]);return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(t){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},6244:function(t,e,n){"use strict";var r=n(5420),o=n(9996),i=n(1511),a=n(6976),s=n(3649),u=n(6419);function c(t,e){var n;if(void 0===r||null==o(t)){if(i(t)||(n=function(t,e){var n;if(t){if("string"==typeof t)return l(t,e);var r=s(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?u(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var c=0,p=function(){};return{s:p,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(t){throw t},f:p}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,h=!0,d=!1;return{s:function(){n=a(t)},n:function(){var t=n.next();return h=t.done,t},e:function(t){d=!0,f=t},f:function(){try{h||null==n.return||n.return()}finally{if(d)throw f}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,n={},r=c(t.split(/ *; */));try{for(r.s();!(e=r.n()).done;){var o=e.value.split(/ *= */),i=o.shift(),a=o.shift();i&&a&&(n[i]=a)}}catch(t){r.e(t)}finally{r.f()}return n},e.parseLinks=function(t){var e,n={},r=c(t.split(/ *, */));try{for(r.s();!(e=r.n()).done;){var o,i,a=e.value.split(/ *; */),u=s(o=a[0]).call(o,1,-1);n[s(i=a[1].split(/ *= */)[1]).call(i,1,-1)]=u}}catch(t){r.e(t)}finally{r.f()}return n},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},1905:function(t){t.exports=()=>()=>null},2698:function(t){t.exports=null},1924:function(t,e,n){"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&i(t,".prototype.")>-1?o(n):n}},5559:function(t,e,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var p=function(){return s(r,i,arguments)};c?c(t.exports,"apply",{value:p}):t.exports.apply=p},8767:function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},4493:function(t,e,n){n(7971),n(3242);var r=n(4058);t.exports=r.Array.from},4034:function(t,e,n){n(2737);var r=n(4058);t.exports=r.Array.isArray},5367:function(t,e,n){n(5906);var r=n(5703);t.exports=r("Array").concat},1459:function(t,e,n){n(8851);var r=n(5703);t.exports=r("Array").every},6172:function(t,e,n){n(290);var r=n(5703);t.exports=r("Array").fill},2383:function(t,e,n){n(1501);var r=n(5703);t.exports=r("Array").filter},9:function(t,e,n){n(4929);var r=n(5703);t.exports=r("Array").findIndex},7671:function(t,e,n){n(833);var r=n(5703);t.exports=r("Array").find},4373:function(t,e,n){n(4944),n(1107);var r=n(5703);t.exports=r("Array").flat},9324:function(t,e,n){n(2437);var r=n(5703);t.exports=r("Array").forEach},991:function(t,e,n){n(7690);var r=n(5703);t.exports=r("Array").includes},8700:function(t,e,n){n(9076);var r=n(5703);t.exports=r("Array").indexOf},6442:function(t,e,n){n(8071);var r=n(5703);t.exports=r("Array").lastIndexOf},3866:function(t,e,n){n(8787);var r=n(5703);t.exports=r("Array").map},2999:function(t,e,n){n(1876);var r=n(5703);t.exports=r("Array").reduce},5573:function(t,e,n){n(1490);var r=n(5703);t.exports=r("Array").reverse},4900:function(t,e,n){n(186);var r=n(5703);t.exports=r("Array").slice},3824:function(t,e,n){n(6026);var r=n(5703);t.exports=r("Array").some},2948:function(t,e,n){n(4115);var r=n(5703);t.exports=r("Array").sort},8209:function(t,e,n){n(8611);var r=n(5703);t.exports=r("Array").splice},1103:function(t,e,n){n(5160);var r=n(4058);t.exports=r.Date.now},7700:function(t,e,n){n(3381);var r=n(5703);t.exports=r("Function").bind},6246:function(t,e,n){var r=n(7700),o=Function.prototype;t.exports=function(t){var e=t.bind;return t===o||t instanceof Function&&e===o.bind?r:e}},6043:function(t,e,n){var r=n(5367),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||t instanceof Array&&e===o.concat?r:e}},3160:function(t,e,n){var r=n(1459),o=Array.prototype;t.exports=function(t){var e=t.every;return t===o||t instanceof Array&&e===o.every?r:e}},446:function(t,e,n){var r=n(6172),o=Array.prototype;t.exports=function(t){var e=t.fill;return t===o||t instanceof Array&&e===o.fill?r:e}},2480:function(t,e,n){var r=n(2383),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||t instanceof Array&&e===o.filter?r:e}},7147:function(t,e,n){var r=n(9),o=Array.prototype;t.exports=function(t){var e=t.findIndex;return t===o||t instanceof Array&&e===o.findIndex?r:e}},2236:function(t,e,n){var r=n(7671),o=Array.prototype;t.exports=function(t){var e=t.find;return t===o||t instanceof Array&&e===o.find?r:e}},8098:function(t,e,n){var r=n(4373),o=Array.prototype;t.exports=function(t){var e=t.flat;return t===o||t instanceof Array&&e===o.flat?r:e}},8557:function(t,e,n){var r=n(991),o=n(1631),i=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===i||t instanceof Array&&e===i.includes?r:"string"==typeof t||t===a||t instanceof String&&e===a.includes?o:e}},4570:function(t,e,n){var r=n(8700),o=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===o||t instanceof Array&&e===o.indexOf?r:e}},7564:function(t,e,n){var r=n(6442),o=Array.prototype;t.exports=function(t){var e=t.lastIndexOf;return t===o||t instanceof Array&&e===o.lastIndexOf?r:e}},8287:function(t,e,n){var r=n(3866),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||t instanceof Array&&e===o.map?r:e}},8025:function(t,e,n){var r=n(2999),o=Array.prototype;t.exports=function(t){var e=t.reduce;return t===o||t instanceof Array&&e===o.reduce?r:e}},1060:function(t,e,n){var r=n(5573),o=Array.prototype;t.exports=function(t){var e=t.reverse;return t===o||t instanceof Array&&e===o.reverse?r:e}},9601:function(t,e,n){var r=n(4900),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?r:e}},8299:function(t,e,n){var r=n(3824),o=Array.prototype;t.exports=function(t){var e=t.some;return t===o||t instanceof Array&&e===o.some?r:e}},9355:function(t,e,n){var r=n(2948),o=Array.prototype;t.exports=function(t){var e=t.sort;return t===o||t instanceof Array&&e===o.sort?r:e}},8339:function(t,e,n){var r=n(8209),o=Array.prototype;t.exports=function(t){var e=t.splice;return t===o||t instanceof Array&&e===o.splice?r:e}},1495:function(t,e,n){var r=n(2629),o=String.prototype;t.exports=function(t){var e=t.trimLeft;return"string"==typeof t||t===o||t instanceof String&&e===o.trimLeft?r:e}},5371:function(t,e,n){var r=n(8274),o=String.prototype;t.exports=function(t){var e=t.trimRight;return"string"==typeof t||t===o||t instanceof String&&e===o.trimRight?r:e}},2774:function(t,e,n){var r=n(3348),o=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===o||t instanceof String&&e===o.trim?r:e}},4426:function(t,e,n){n(2619);var r=n(4058);r.JSON||(r.JSON={stringify:JSON.stringify}),t.exports=function(t,e,n){return r.JSON.stringify.apply(null,arguments)}},5999:function(t,e,n){n(9221);var r=n(4058);t.exports=r.Object.assign},5254:function(t,e,n){n(3882);var r=n(4058).Object;t.exports=function(t,e){return r.create(t,e)}},7702:function(t,e,n){n(4979);var r=n(4058).Object,o=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(o.sham=!0)},8171:function(t,e,n){n(6450);var r=n(4058).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},3081:function(t,e,n){n(1078);var r=n(4058);t.exports=r.Object.entries},286:function(t,e,n){n(6924);var r=n(4058).Object,o=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(o.sham=!0)},2766:function(t,e,n){n(8482);var r=n(4058);t.exports=r.Object.getOwnPropertyDescriptors},3288:function(t,e,n){n(9816);var r=n(4058).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},498:function(t,e,n){n(5824);var r=n(4058);t.exports=r.Object.getOwnPropertySymbols},8494:function(t,e,n){n(1724);var r=n(4058);t.exports=r.Object.keys},8430:function(t,e,n){n(6614);var r=n(4058);t.exports=r.Object.values},7579:function(t,e,n){n(9718);var r=n(4058);t.exports=r.parseFloat},8524:function(t,e,n){n(4038);var r=n(4058);t.exports=r.parseInt},2956:function(t,e,n){n(7627),n(6274),n(5967),n(8881),n(4560),n(7206),n(4349),n(7971);var r=n(4058);t.exports=r.Promise},6998:function(t,e,n){n(6274),n(5967),n(9008),n(7971);var r=n(4058);t.exports=r.Set},1631:function(t,e,n){n(1035);var r=n(5703);t.exports=r("String").includes},2629:function(t,e,n){n(350);var r=n(5703);t.exports=r("String").trimLeft},8274:function(t,e,n){n(2651);var r=n(5703);t.exports=r("String").trimRight},3348:function(t,e,n){n(7398);var r=n(5703);t.exports=r("String").trim},7473:function(t,e,n){n(5906),n(5967),n(5824),n(8555),n(2615),n(1732),n(5903),n(1825),n(8394),n(5915),n(1766),n(9791),n(9911),n(4315),n(3131),n(4714),n(659),n(9120),n(5327),n(1502);var r=n(4058);t.exports=r.Symbol},4227:function(t,e,n){n(6274),n(5967),n(7971),n(1825);var r=n(1477);t.exports=r.f("iterator")},2209:function(t,e,n){n(6274),n(7971),n(7634);var r=n(2902);t.exports=r},1258:function(t,e,n){n(6274),n(7971),n(7634);var r=n(429);t.exports=r},9447:function(t,e,n){var r=n(4570);t.exports=r},4408:function(t,e,n){n(6274),n(7971),n(7634);var r=n(663);t.exports=r},269:function(t,e,n){var r=n(5999);t.exports=r},3685:function(t,e,n){var r=n(8171);t.exports=r},4710:function(t,e,n){var r=n(498);t.exports=r},3799:function(t,e,n){var r=n(8494);t.exports=r},3916:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},1851:function(t,e,n){var r=n(941);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},8479:function(t){t.exports=function(){}},5743:function(t){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},6059:function(t,e,n){var r=n(941);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},1860:function(t,e,n){"use strict";var r=n(9678),o=n(9413),i=n(3057);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},6837:function(t,e,n){"use strict";var r=n(3610).forEach,o=n(4194)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1354:function(t,e,n){"use strict";var r=n(6843),o=n(9678),i=n(5196),a=n(6782),s=n(3057),u=n(5449),c=n(2902);t.exports=function(t){var e,n,l,p,f,h,d=o(t),v="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g,b=c(d),_=0;if(m&&(g=r(g,y>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)h=m?g(d[_],_):d[_],u(n,_,h);else for(f=(p=b.call(d)).next,n=new v;!(l=f.call(p)).done;_++)h=m?i(p,g,[l.value,_],!0):l.value,u(n,_,h);return n.length=_,n}},1692:function(t,e,n){var r=n(4529),o=n(3057),i=n(9413),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3610:function(t,e,n){var r=n(6843),o=n(7026),i=n(9678),a=n(3057),s=n(4692),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,p=6==t,f=7==t,h=5==t||p;return function(d,v,y,g){for(var m,b,_=i(d),E=o(_),x=r(v,y,3),w=a(E.length),D=0,A=g||s,T=e?A(d,w):n||f?A(d,0):void 0;w>D;D++)if((h||D in E)&&(b=x(m=E[D],D,_),t))if(e)T[D]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return D;case 2:u.call(T,m)}else switch(t){case 4:return!1;case 7:u.call(T,m)}return p?-1:c||l?l:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},7145:function(t,e,n){"use strict";var r=n(4529),o=n(8459),i=n(3057),a=n(4194),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),p=c||!l;t.exports=p?function(t){if(c)return u.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:u},568:function(t,e,n){var r=n(5981),o=n(9813),i=n(3385),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4194:function(t,e,n){"use strict";var r=n(5981);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},6499:function(t,e,n){var r=n(3916),o=n(9678),i=n(7026),a=n(3057),s=function(t){return function(e,n,s,u){r(n);var c=o(e),l=i(c),p=a(c.length),f=t?p-1:0,h=t?-1:1;if(s<2)for(;;){if(f in l){u=l[f],f+=h;break}if(f+=h,t?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;t?f>=0:p>f;f+=h)f in l&&(u=n(u,l[f],f,c));return u}};t.exports={left:s(!1),right:s(!0)}},1388:function(t){var e=Math.floor,n=function(t,i){var a=t.length,s=e(a/2);return a<8?r(t,i):o(n(t.slice(0,s),i),n(t.slice(s),i),i)},r=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},o=function(t,e,n){for(var r=t.length,o=e.length,i=0,a=0,s=[];i<r||a<o;)i<r&&a<o?s.push(n(t[i],e[a])<=0?t[i++]:e[a++]):s.push(i<r?t[i++]:e[a++]);return s};t.exports=n},5693:function(t,e,n){var r=n(941),o=n(1052),i=n(9813)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},4692:function(t,e,n){var r=n(5693);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},5196:function(t,e,n){var r=n(6059),o=n(7609);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){throw o(t),e}}},1385:function(t,e,n){var r=n(9813)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},2532:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9697:function(t,e,n){var r=n(2885),o=n(2532),i=n(9813)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},5616:function(t,e,n){"use strict";var r=n(5988).f,o=n(9290),i=n(7524),a=n(6843),s=n(5743),u=n(3091),c=n(7771),l=n(4431),p=n(5746),f=n(1647).fastKey,h=n(5402),d=h.set,v=h.getterFor;t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=r&&u(r,t[c],{that:t,AS_ENTRIES:n})})),h=v(e),y=function(t,e,n){var r,o,i=h(t),a=g(t,e);return a?a.value=n:(i.last=a={index:o=f(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var n,r=h(t),o=f(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(l.prototype,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=this,n=h(e),r=g(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=h(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(l.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),p&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);c(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(e)}}},4683:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(1647),a=n(5981),s=n(2029),u=n(3091),c=n(5743),l=n(941),p=n(904),f=n(5988).f,h=n(3610).forEach,d=n(5746),v=n(5402),y=v.set,g=v.getterFor;t.exports=function(t,e,n){var v,m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=m?"set":"add",E=o[t],x=E&&E.prototype,w={};if(d&&"function"==typeof E&&(b||x.forEach&&!a((function(){(new E).entries().next()})))){v=e((function(e,n){y(c(e,v,t),{type:t,collection:new E}),null!=n&&u(n,e[_],{that:e,AS_ENTRIES:m})}));var D=g(t);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in x)||b&&"clear"==t||s(v.prototype,t,(function(n,r){var o=D(this).collection;if(!e&&b&&!l(n))return"get"==t&&void 0;var i=o[t](0===n?0:n,r);return e?this:i}))})),b||f(v.prototype,"size",{configurable:!0,get:function(){return D(this).collection.size}})}else v=n.getConstructor(e,t,m,_),i.enable();return p(v,t,!1,!0),w[t]=v,r({global:!0,forced:!0},w),b||n.setStrong(v,t,m),v}},7772:function(t,e,n){var r=n(9813)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},4160:function(t,e,n){var r=n(5981);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1046:function(t,e,n){"use strict";var r=n(5143).IteratorPrototype,o=n(9290),i=n(1887),a=n(904),s=n(2077),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,c,!1,!0),s[c]=u,t}},2029:function(t,e,n){var r=n(5746),o=n(5988),i=n(1887);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},1887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5449:function(t,e,n){"use strict";var r=n(3894),o=n(5988),i=n(1887);t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},7771:function(t,e,n){"use strict";var r=n(6887),o=n(1046),i=n(249),a=n(8929),s=n(904),u=n(2029),c=n(9754),l=n(9813),p=n(2529),f=n(2077),h=n(5143),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g="keys",m="values",b="entries",_=function(){return this};t.exports=function(t,e,n,l,h,E,x){o(n,e,l);var w,D,A,T=function(t){if(t===h&&I)return I;if(!v&&t in k)return k[t];switch(t){case g:case m:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",S=!1,k=t.prototype,O=k[y]||k["@@iterator"]||h&&k[h],I=!v&&O||T(h),F="Array"==e&&k.entries||O;if(F&&(w=i(F.call(new t)),d!==Object.prototype&&w.next&&(p||i(w)===d||(a?a(w,d):"function"!=typeof w[y]&&u(w,y,_)),s(w,C,!0,!0),p&&(f[C]=_))),h==m&&O&&O.name!==m&&(S=!0,I=function(){return O.call(this)}),p&&!x||k[y]===I||u(k,y,I),f[e]=I,h)if(D={values:T(m),keys:E?I:T(g),entries:T(b)},x)for(A in D)(v||S||!(A in k))&&c(k,A,D[A]);else r({target:e,proto:!0,forced:v||S},D);return D}},6349:function(t,e,n){var r=n(4058),o=n(7457),i=n(1477),a=n(5988).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},5746:function(t,e,n){var r=n(5981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1333:function(t,e,n){var r=n(1899),o=n(941),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},3281:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4342:function(t,e,n){var r=n(2861).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},3321:function(t){t.exports="object"==typeof window},7797:function(t,e,n){var r=n(2861);t.exports=/MSIE|Trident/.test(r)},2749:function(t,e,n){var r=n(2861);t.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},6049:function(t,e,n){var r=n(2532),o=n(1899);t.exports="process"==r(o.process)},8045:function(t,e,n){var r=n(2861);t.exports=/web0s(?!.*chrome)/i.test(r)},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},3385:function(t,e,n){var r,o,i=n(1899),a=n(2861),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l?o=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},8938:function(t,e,n){var r=n(2861).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},5703:function(t,e,n){var r=n(4058);t.exports=function(t){return r[t+"Prototype"]}},6759:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6887:function(t,e,n){"use strict";var r=n(1899),o=n(9677).f,i=n(7252),a=n(4058),s=n(6843),u=n(2029),c=n(7457),l=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,p,f,h,d,v,y,g,m=t.target,b=t.global,_=t.stat,E=t.proto,x=b?r:_?r[m]:(r[m]||{}).prototype,w=b?a:a[m]||(a[m]={}),D=w.prototype;for(f in e)n=!i(b?f:m+(_?".":"#")+f,t.forced)&&x&&c(x,f),d=w[f],n&&(v=t.noTargetGet?(g=o(x,f))&&g.value:x[f]),h=n&&v?v:e[f],n&&typeof d==typeof h||(y=t.bind&&n?s(h,r):t.wrap&&n?l(h):E&&"function"==typeof h?s(Function.call,h):h,(t.sham||h&&h.sham||d&&d.sham)&&u(y,"sham",!0),w[f]=y,E&&(c(a,p=m+"Prototype")||u(a,p,{}),a[p][f]=h,t.real&&D&&!D[f]&&u(D,f,h)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3092:function(t,e,n){"use strict";var r=n(1052),o=n(3057),i=n(6843),a=function(t,e,n,s,u,c,l,p){for(var f,h=u,d=0,v=!!l&&i(l,p,3);d<s;){if(d in n){if(f=v?v(n[d],d,e):n[d],c>0&&r(f))h=a(t,e,f,o(f.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=f}h++}d++}return h};t.exports=a},5602:function(t,e,n){var r=n(5981);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6843:function(t,e,n){var r=n(3916);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},8308:function(t,e,n){"use strict";var r=n(3916),o=n(941),i=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(a.prototype=e.prototype),a}},626:function(t,e,n){var r=n(4058),o=n(1899),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},2902:function(t,e,n){var r=n(9697),o=n(2077),i=n(9813)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},429:function(t,e,n){var r=n(6059),o=n(2902);t.exports=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},1899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},7457:function(t,e,n){var r=n(9678),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},7748:function(t){t.exports={}},4845:function(t,e,n){var r=n(1899);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},5463:function(t,e,n){var r=n(626);t.exports=r("document","documentElement")},2840:function(t,e,n){var r=n(5746),o=n(5981),i=n(1333);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,e,n){var r=n(5981),o=n(2532),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},1302:function(t,e,n){var r=n(3030),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},1647:function(t,e,n){var r=n(6887),o=n(7748),i=n(941),a=n(7457),s=n(5988).f,u=n(946),c=n(684),l=n(9418),p=n(5602),f=!1,h=l("meta"),d=0,v=Object.isExtensible||function(){return!0},y=function(t){s(t,h,{value:{objectID:"O"+d++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},f=!0;var t=u.f,e=[].splice,n={};n[h]=1,t(n).length&&(u.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===h){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,h)){if(!v(t))return"F";if(!e)return"E";y(t)}return t[h].objectID},getWeakData:function(t,e){if(!a(t,h)){if(!v(t))return!0;if(!e)return!1;y(t)}return t[h].weakData},onFreeze:function(t){return p&&f&&v(t)&&!a(t,h)&&y(t),t}};o[h]=!0},5402:function(t,e,n){var r,o,i,a=n(8019),s=n(1899),u=n(941),c=n(2029),l=n(7457),p=n(3030),f=n(4262),h=n(7748),d="Object already initialized",v=s.WeakMap;if(a||p.state){var y=p.state||(p.state=new v),g=y.get,m=y.has,b=y.set;r=function(t,e){if(m.call(y,t))throw new TypeError(d);return e.facade=t,b.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var _=f("state");h[_]=!0,r=function(t,e){if(l(t,_))throw new TypeError(d);return e.facade=t,c(t,_,e),e},o=function(t){return l(t,_)?t[_]:{}},i=function(t){return l(t,_)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},6782:function(t,e,n){var r=n(9813),o=n(2077),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1052:function(t,e,n){var r=n(2532);t.exports=Array.isArray||function(t){return"Array"==r(t)}},7252:function(t,e,n){var r=n(5981),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},663:function(t,e,n){var r=n(9697),o=n(9813),i=n(2077),a=o("iterator");t.exports=function(t){var e=Object(t);return void 0!==e[a]||"@@iterator"in e||i.hasOwnProperty(r(e))}},941:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},2529:function(t){t.exports=!0},685:function(t,e,n){var r=n(941),o=n(2532),i=n(9813)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},6664:function(t,e,n){var r=n(626),o=n(2302);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},3091:function(t,e,n){var r=n(6059),o=n(6782),i=n(3057),a=n(6843),s=n(2902),u=n(7609),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,f,h,d,v,y,g=n&&n.that,m=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),E=a(e,g,1+m+_),x=function(t){return l&&u(l),new c(!0,t)},w=function(t){return m?(r(t),_?E(t[0],t[1],x):E(t[0],t[1])):_?E(t,x):E(t)};if(b)l=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(o(p)){for(f=0,h=i(t.length);h>f;f++)if((d=w(t[f]))&&d instanceof c)return d;return new c(!1)}l=p.call(t)}for(v=l.next;!(y=v.call(l)).done;){try{d=w(y.value)}catch(t){throw u(l),t}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},7609:function(t,e,n){var r=n(6059);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},5143:function(t,e,n){"use strict";var r,o,i,a=n(5981),s=n(249),u=n(2029),c=n(7457),l=n(9813),p=n(2529),f=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):h=!0);var d=null==r||a((function(){var t={};return r[f].call(t)!==t}));d&&(r={}),p&&!d||c(r,f)||u(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},2077:function(t){t.exports={}},6132:function(t,e,n){var r,o,i,a,s,u,c,l,p=n(1899),f=n(9677).f,h=n(2941).set,d=n(2749),v=n(8045),y=n(6049),g=p.MutationObserver||p.WebKitMutationObserver,m=p.document,b=p.process,_=p.Promise,E=f(p,"queueMicrotask"),x=E&&E.value;x||(r=function(){var t,e;for(y&&(t=b.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},d||y||v||!g||!m?_&&_.resolve?((c=_.resolve(void 0)).constructor=_,l=c.then,a=function(){l.call(c,r)}):a=y?function(){b.nextTick(r)}:function(){h.call(p,r)}:(s=!0,u=m.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=x||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},9297:function(t,e,n){var r=n(1899);t.exports=r.Promise},2497:function(t,e,n){var r=n(3385),o=n(5981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8019:function(t,e,n){var r=n(1899),o=n(1302),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},9520:function(t,e,n){"use strict";var r=n(3916),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},344:function(t,e,n){var r=n(685);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},1942:function(t,e,n){var r=n(1899),o=n(5803),i=n(4853).trim,a=n(3483),s=r.parseFloat,u=1/s(a+"-0")!=-1/0;t.exports=u?function(t){var e=i(o(t)),n=s(e);return 0===n&&"-"==e.charAt(0)?-0:n}:s},9806:function(t,e,n){var r=n(1899),o=n(5803),i=n(4853).trim,a=n(3483),s=r.parseInt,u=/^[+-]?0[Xx]/,c=8!==s(a+"08")||22!==s(a+"0x16");t.exports=c?function(t,e){var n=i(o(t));return s(n,e>>>0||(u.test(n)?16:10))}:s},4420:function(t,e,n){"use strict";var r=n(5746),o=n(5981),i=n(4771),a=n(7857),s=n(6760),u=n(9678),c=n(7026),l=Object.assign,p=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||i(l({},e)).join("")!=o}))?function(t,e){for(var n=u(t),o=arguments.length,l=1,p=a.f,f=s.f;o>l;)for(var h,d=c(arguments[l++]),v=p?i(d).concat(p(d)):i(d),y=v.length,g=0;y>g;)h=v[g++],r&&!f.call(d,h)||(n[h]=d[h]);return n}:l},9290:function(t,e,n){var r,o=n(6059),i=n(9938),a=n(6759),s=n(7748),u=n(5463),c=n(1333),l=n(4262)("IE_PROTO"),p=function(){},f=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}d=document.domain&&r?h(r):function(){var t,e=c("iframe");if(e.style)return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F}()||h(r);for(var t=a.length;t--;)delete d.prototype[a[t]];return d()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=d(),void 0===e?n:i(n,e)}},9938:function(t,e,n){var r=n(5746),o=n(5988),i=n(6059),a=n(4771);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,u=0;s>u;)o.f(t,n=r[u++],e[n]);return t}},5988:function(t,e,n){var r=n(5746),o=n(2840),i=n(6059),a=n(3894),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(i(t),e=a(e),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},9677:function(t,e,n){var r=n(5746),o=n(6760),i=n(1887),a=n(4529),s=n(3894),u=n(7457),c=n(2840),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e),c)try{return l(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},684:function(t,e,n){var r=n(4529),o=n(946).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},946:function(t,e,n){var r=n(5629),o=n(6759).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},7857:function(t,e){e.f=Object.getOwnPropertySymbols},249:function(t,e,n){var r=n(7457),o=n(9678),i=n(4262),a=n(4160),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},5629:function(t,e,n){var r=n(7457),o=n(4529),i=n(1692).indexOf,a=n(7748);t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},4771:function(t,e,n){var r=n(5629),o=n(6759);t.exports=Object.keys||function(t){return r(t,o)}},6760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8929:function(t,e,n){var r=n(6059),o=n(1851);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},8810:function(t,e,n){var r=n(5746),o=n(4771),i=n(4529),a=n(6760).f,s=function(t){return function(e){for(var n,s=i(e),u=o(s),c=u.length,l=0,p=[];c>l;)n=u[l++],r&&!a.call(s,n)||p.push(t?[n,s[n]]:s[n]);return p}};t.exports={entries:s(!0),values:s(!1)}},5623:function(t,e,n){"use strict";var r=n(2885),o=n(9697);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},9811:function(t,e,n){var r=n(941);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},1136:function(t,e,n){var r=n(626),o=n(946),i=n(7857),a=n(6059);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},4058:function(t){t.exports={}},2:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},6584:function(t,e,n){var r=n(6059),o=n(941),i=n(9520);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},7524:function(t,e,n){var r=n(9754);t.exports=function(t,e,n){for(var o in e)n&&n.unsafe&&t[o]?t[o]=e[o]:r(t,o,e[o],n);return t}},9754:function(t,e,n){var r=n(2029);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},8219:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},4911:function(t,e,n){var r=n(1899);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},4431:function(t,e,n){"use strict";var r=n(626),o=n(5988),i=n(9813),a=n(5746),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},904:function(t,e,n){var r=n(2885),o=n(5988).f,i=n(2029),a=n(7457),s=n(5623),u=n(9813)("toStringTag");t.exports=function(t,e,n,c){if(t){var l=n?t:t.prototype;a(l,u)||o(l,u,{configurable:!0,value:e}),c&&!r&&i(l,"toString",s)}}},4262:function(t,e,n){var r=n(8726),o=n(9418),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3030:function(t,e,n){var r=n(1899),o=n(4911),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},8726:function(t,e,n){var r=n(2529),o=n(3030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},487:function(t,e,n){var r=n(6059),o=n(3916),i=n(9813)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},4620:function(t,e,n){var r=n(8459),o=n(5803),i=n(8219),a=function(t){return function(e,n){var a,s,u=o(i(e)),c=r(n),l=u.length;return c<0||c>=l?t?"":void 0:(a=u.charCodeAt(c))<55296||a>56319||c+1===l||(s=u.charCodeAt(c+1))<56320||s>57343?t?u.charAt(c):a:t?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3093:function(t,e,n){var r=n(5981),o=n(3483);t.exports=function(t){return r((function(){return!!o[t]()||"​…᠎"!="​…᠎"[t]()||o[t].name!==t}))}},4853:function(t,e,n){var r=n(8219),o=n(5803),i="["+n(3483)+"]",a=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),u=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},2941:function(t,e,n){var r,o,i,a,s=n(1899),u=n(5981),c=n(6843),l=n(5463),p=n(1333),f=n(2749),h=n(6049),d=s.setImmediate,v=s.clearImmediate,y=s.process,g=s.MessageChannel,m=s.Dispatch,b=0,_={};try{r=s.location}catch(t){}var E=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},x=function(t){return function(){E(t)}},w=function(t){E(t.data)},D=function(t){s.postMessage(String(t),r.protocol+"//"+r.host)};d&&v||(d=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(b),b},v=function(t){delete _[t]},h?o=function(t){y.nextTick(x(t))}:m&&m.now?o=function(t){m.now(x(t))}:g&&!f?(a=(i=new g).port2,i.port1.onmessage=w,o=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(D)?(o=D,s.addEventListener("message",w,!1)):o="onreadystatechange"in p("script")?function(t){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),E(t)}}:function(t){setTimeout(x(t),0)}),t.exports={set:d,clear:v}},9413:function(t,e,n){var r=n(8459),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},4529:function(t,e,n){var r=n(7026),o=n(8219);t.exports=function(t){return r(o(t))}},8459:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},3057:function(t,e,n){var r=n(8459),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},9678:function(t,e,n){var r=n(8219);t.exports=function(t){return Object(r(t))}},6935:function(t,e,n){var r=n(941),o=n(6664),i=n(9811),a=n(9813)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,s=t[a];if(void 0!==s){if(void 0===e&&(e="default"),n=s.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},3894:function(t,e,n){var r=n(6935),o=n(6664);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},2885:function(t,e,n){var r={};r[n(9813)("toStringTag")]="z",t.exports="[object z]"===String(r)},5803:function(t,e,n){var r=n(6664);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},9418:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},2302:function(t,e,n){var r=n(2497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1477:function(t,e,n){var r=n(9813);e.f=r},9813:function(t,e,n){var r=n(1899),o=n(8726),i=n(7457),a=n(9418),s=n(2497),u=n(2302),c=o("wks"),l=r.Symbol,p=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(c,t)&&(s||"string"==typeof c[t])||(s&&i(l,t)?c[t]=l[t]:c[t]=p("Symbol."+t)),c[t]}},3483:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},7627:function(t,e,n){"use strict";var r=n(6887),o=n(249),i=n(8929),a=n(9290),s=n(2029),u=n(1887),c=n(3091),l=n(5803),p=function(t,e){var n=this;if(!(n instanceof p))return new p(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&s(n,"message",l(e));var r=[];return c(t,r.push,{that:r}),s(n,"errors",r),n};p.prototype=a(Error.prototype,{constructor:u(5,p),message:u(5,""),name:u(5,"AggregateError")}),r({global:!0},{AggregateError:p})},5906:function(t,e,n){"use strict";var r=n(6887),o=n(5981),i=n(1052),a=n(941),s=n(9678),u=n(3057),c=n(5449),l=n(4692),p=n(568),f=n(9813),h=n(3385),d=f("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",g=h>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=p("concat"),b=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,o,i,a=s(this),p=l(a,0),f=0;for(e=-1,r=arguments.length;e<r;e++)if(b(i=-1===e?a:arguments[e])){if(f+(o=u(i.length))>v)throw TypeError(y);for(n=0;n<o;n++,f++)n in i&&c(p,f,i[n])}else{if(f>=v)throw TypeError(y);c(p,f++,i)}return p.length=f,p}})},8851:function(t,e,n){"use strict";var r=n(6887),o=n(3610).every;r({target:"Array",proto:!0,forced:!n(4194)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},290:function(t,e,n){var r=n(6887),o=n(1860),i=n(8479);r({target:"Array",proto:!0},{fill:o}),i("fill")},1501:function(t,e,n){"use strict";var r=n(6887),o=n(3610).filter;r({target:"Array",proto:!0,forced:!n(568)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4929:function(t,e,n){"use strict";var r=n(6887),o=n(3610).findIndex,i=n(8479),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},833:function(t,e,n){"use strict";var r=n(6887),o=n(3610).find,i=n(8479),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},4944:function(t,e,n){"use strict";var r=n(6887),o=n(3092),i=n(9678),a=n(3057),s=n(8459),u=n(4692);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=i(this),n=a(e.length),r=u(e,0);return r.length=o(r,e,e,n,0,void 0===t?1:s(t)),r}})},2437:function(t,e,n){"use strict";var r=n(6887),o=n(6837);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},3242:function(t,e,n){var r=n(6887),o=n(1354);r({target:"Array",stat:!0,forced:!n(1385)((function(t){Array.from(t)}))},{from:o})},7690:function(t,e,n){"use strict";var r=n(6887),o=n(1692).includes,i=n(8479);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},9076:function(t,e,n){"use strict";var r=n(6887),o=n(1692).indexOf,i=n(4194),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=i("indexOf");r({target:"Array",proto:!0,forced:s||!u},{indexOf:function(t){return s?a.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},2737:function(t,e,n){n(6887)({target:"Array",stat:!0},{isArray:n(1052)})},6274:function(t,e,n){"use strict";var r=n(4529),o=n(8479),i=n(2077),a=n(5402),s=n(7771),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},8071:function(t,e,n){var r=n(6887),o=n(7145);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},8787:function(t,e,n){"use strict";var r=n(6887),o=n(3610).map;r({target:"Array",proto:!0,forced:!n(568)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},1876:function(t,e,n){"use strict";var r=n(6887),o=n(6499).left,i=n(4194),a=n(3385),s=n(6049);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1490:function(t,e,n){"use strict";var r=n(6887),o=n(1052),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},186:function(t,e,n){"use strict";var r=n(6887),o=n(941),i=n(1052),a=n(9413),s=n(3057),u=n(4529),c=n(5449),l=n(9813),p=n(568)("slice"),f=l("species"),h=[].slice,d=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,l,p=u(this),v=s(p.length),y=a(t,v),g=a(void 0===e?v:e,v);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return h.call(p,y,g);for(r=new(void 0===n?Array:n)(d(g-y,0)),l=0;y<g;y++,l++)y in p&&c(r,l,p[y]);return r.length=l,r}})},6026:function(t,e,n){"use strict";var r=n(6887),o=n(3610).some;r({target:"Array",proto:!0,forced:!n(4194)("some")},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},4115:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(9678),a=n(3057),s=n(5803),u=n(5981),c=n(1388),l=n(4194),p=n(4342),f=n(7797),h=n(3385),d=n(8938),v=[],y=v.sort,g=u((function(){v.sort(void 0)})),m=u((function(){v.sort(null)})),b=l("sort"),_=!u((function(){if(h)return h<70;if(!(p&&p>3)){if(f)return!0;if(d)return d<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:g||!m||!b||!_},{sort:function(t){void 0!==t&&o(t);var e=i(this);if(_)return void 0===t?y.call(e):y.call(e,t);var n,r,u=[],l=a(e.length);for(r=0;r<l;r++)r in e&&u.push(e[r]);for(n=(u=c(u,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:s(e)>s(n)?1:-1}}(t))).length,r=0;r<n;)e[r]=u[r++];for(;r<l;)delete e[r++];return e}})},8611:function(t,e,n){"use strict";var r=n(6887),o=n(9413),i=n(8459),a=n(3057),s=n(9678),u=n(4692),c=n(5449),l=n(568)("splice"),p=Math.max,f=Math.min,h=9007199254740991,d="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,l,v,y,g,m=s(this),b=a(m.length),_=o(t,b),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=b-_):(n=E-2,r=f(p(i(e),0),b-_)),b+n-r>h)throw TypeError(d);for(l=u(m,r),v=0;v<r;v++)(y=_+v)in m&&c(l,v,m[y]);if(l.length=r,n<r){for(v=_;v<b-r;v++)g=v+n,(y=v+r)in m?m[g]=m[y]:delete m[g];for(v=b;v>b-r+n;v--)delete m[v-1]}else if(n>r)for(v=b-r;v>_;v--)g=v+n-1,(y=v+r-1)in m?m[g]=m[y]:delete m[g];for(v=0;v<n;v++)m[v+_]=arguments[v+2];return m.length=b-r+n,l}})},1107:function(t,e,n){n(8479)("flat")},5160:function(t,e,n){n(6887)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},3381:function(t,e,n){n(6887)({target:"Function",proto:!0},{bind:n(8308)})},2619:function(t,e,n){var r=n(6887),o=n(626),i=n(5981),a=o("JSON","stringify"),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,l=function(t,e,n){var r=n.charAt(e-1),o=n.charAt(e+1);return u.test(t)&&!c.test(o)||c.test(t)&&!u.test(r)?"\\u"+t.charCodeAt(0).toString(16):t},p=i((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:p},{stringify:function(t,e,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,l):r}})},9120:function(t,e,n){var r=n(1899);n(904)(r.JSON,"JSON",!0)},5327:function(){},9221:function(t,e,n){var r=n(6887),o=n(4420);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},3882:function(t,e,n){n(6887)({target:"Object",stat:!0,sham:!n(5746)},{create:n(9290)})},4979:function(t,e,n){var r=n(6887),o=n(5746);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(9938)})},6450:function(t,e,n){var r=n(6887),o=n(5746);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(5988).f})},1078:function(t,e,n){var r=n(6887),o=n(8810).entries;r({target:"Object",stat:!0},{entries:function(t){return o(t)}})},6924:function(t,e,n){var r=n(6887),o=n(5981),i=n(4529),a=n(9677).f,s=n(5746),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},8482:function(t,e,n){var r=n(6887),o=n(5746),i=n(1136),a=n(4529),s=n(9677),u=n(5449);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,c=i(r),l={},p=0;c.length>p;)void 0!==(n=o(r,e=c[p++]))&&u(l,e,n);return l}})},9816:function(t,e,n){var r=n(6887),o=n(5981),i=n(684).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},1724:function(t,e,n){var r=n(6887),o=n(9678),i=n(4771);r({target:"Object",stat:!0,forced:n(5981)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},5967:function(){},6614:function(t,e,n){var r=n(6887),o=n(8810).values;r({target:"Object",stat:!0},{values:function(t){return o(t)}})},9718:function(t,e,n){var r=n(6887),o=n(1942);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},4038:function(t,e,n){var r=n(6887),o=n(9806);r({global:!0,forced:parseInt!=o},{parseInt:o})},4560:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(9520),a=n(2),s=n(3091);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,u=n.reject,c=a((function(){var n=o(e.resolve),i=[],a=0,u=1;s(t,(function(t){var o=a++,s=!1;i.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--u||r(i))}),(function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--u||r(i))}))})),--u||r(i)}));return c.error&&u(c.value),n.promise}})},7206:function(t,e,n){"use strict";var r=n(6887),o=n(3916),i=n(626),a=n(9520),s=n(2),u=n(3091),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,p=s((function(){var n=o(e.resolve),a=[],s=0,p=1,f=!1;u(t,(function(t){var o=s++,u=!1;a.push(void 0),p++,n.call(e,t).then((function(t){u||f||(f=!0,r(t))}),(function(t){u||f||(u=!0,a[o]=t,--p||l(new(i("AggregateError"))(a,c)))}))})),--p||l(new(i("AggregateError"))(a,c))}));return p.error&&l(p.value),n.promise}})},4349:function(t,e,n){"use strict";var r=n(6887),o=n(2529),i=n(9297),a=n(5981),s=n(626),u=n(487),c=n(6584),l=n(9754);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),!o&&"function"==typeof i){var p=s("Promise").prototype.finally;i.prototype.finally!==p&&l(i.prototype,"finally",p,{unsafe:!0})}},8881:function(t,e,n){"use strict";var r,o,i,a,s=n(6887),u=n(2529),c=n(1899),l=n(626),p=n(9297),f=n(9754),h=n(7524),d=n(8929),v=n(904),y=n(4431),g=n(941),m=n(3916),b=n(5743),_=n(1302),E=n(3091),x=n(1385),w=n(487),D=n(2941).set,A=n(6132),T=n(6584),C=n(4845),S=n(9520),k=n(2),O=n(5402),I=n(7252),F=n(9813),N=n(3321),j=n(6049),R=n(3385),P=F("species"),L="Promise",B=O.get,U=O.set,M=O.getterFor(L),$=p&&p.prototype,z=p,H=$,q=c.TypeError,V=c.document,W=c.process,G=S.f,Y=G,K=!!(V&&V.createEvent&&c.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",Z=!1,X=I(L,(function(){var t=_(z),e=t!==String(z);if(!e&&66===R)return!0;if(u&&!H.finally)return!0;if(R>=51&&/native code/.test(t))return!1;var n=new z((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[P]=r,!(Z=n.then((function(){}))instanceof r)||!e&&N&&!J})),tt=X||!x((function(t){z.all(t).catch((function(){}))})),et=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},nt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,s,u,c=n[i++],l=o?c.ok:c.fail,p=c.resolve,f=c.reject,h=c.domain;try{l?(o||(2===t.rejection&&at(t),t.rejection=1),!0===l?a=r:(h&&h.enter(),a=l(r),h&&(h.exit(),u=!0)),a===c.promise?f(q("Promise-chain cycle")):(s=et(a))?s.call(a,p,f):p(a)):f(r)}catch(t){h&&!u&&h.exit(),f(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},rt=function(t,e,n){var r,o;K?((r=V.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=c["on"+t])?o(r):t===Q&&C("Unhandled promise rejection",n)},ot=function(t){D.call(c,(function(){var e,n=t.facade,r=t.value;if(it(t)&&(e=k((function(){j?W.emit("unhandledRejection",r,n):rt(Q,n,r)})),t.rejection=j||it(t)?2:1,e.error))throw e.value}))},it=function(t){return 1!==t.rejection&&!t.parent},at=function(t){D.call(c,(function(){var e=t.facade;j?W.emit("rejectionHandled",e):rt("rejectionhandled",e,t.value)}))},st=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,nt(t,!0))},ct=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw q("Promise can't be resolved itself");var r=et(e);r?A((function(){var n={done:!1};try{r.call(e,st(ct,n,t),st(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,nt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(X&&(H=(z=function(t){b(this,z,L),m(t),r.call(this);var e=B(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(H,{then:function(t,e){var n=M(this),r=G(w(this,z));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=j?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&nt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=B(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},S.f=G=function(t){return t===z||t===i?new o(t):Y(t)},!u&&"function"==typeof p&&$!==Object.prototype)){a=$.then,Z||(f($,"then",(function(t,e){var n=this;return new z((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),f($,"catch",H.catch,{unsafe:!0}));try{delete $.constructor}catch(t){}d&&d($,H)}s({global:!0,wrap:!0,forced:X},{Promise:z}),v(z,L,!1,!0),y(L),i=l(L),s({target:L,stat:!0,forced:X},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),s({target:L,stat:!0,forced:u||X},{resolve:function(t){return T(u&&this===i?z:this,t)}}),s({target:L,stat:!0,forced:tt},{all:function(t){var e=this,n=G(e),r=n.resolve,o=n.reject,i=k((function(){var n=m(e.resolve),i=[],a=0,s=1;E(t,(function(t){var u=a++,c=!1;i.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,i[u]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=G(e),r=n.reject,o=k((function(){var o=m(e.resolve);E(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},1502:function(){},9008:function(t,e,n){"use strict";var r=n(4683),o=n(5616);t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},1035:function(t,e,n){"use strict";var r=n(6887),o=n(344),i=n(8219),a=n(5803);r({target:"String",proto:!0,forced:!n(7772)("includes")},{includes:function(t){return!!~a(i(this)).indexOf(a(o(t)),arguments.length>1?arguments[1]:void 0)}})},7971:function(t,e,n){"use strict";var r=n(4620).charAt,o=n(5803),i=n(5402),a=n(7771),s="String Iterator",u=i.set,c=i.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:o(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},2651:function(t,e,n){"use strict";var r=n(6887),o=n(4853).end,i=n(3093)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},350:function(t,e,n){"use strict";var r=n(6887),o=n(4853).start,i=n(3093)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},7398:function(t,e,n){"use strict";var r=n(6887),o=n(4853).trim;r({target:"String",proto:!0,forced:n(3093)("trim")},{trim:function(){return o(this)}})},8555:function(t,e,n){n(6349)("asyncIterator")},2615:function(){},1732:function(t,e,n){n(6349)("hasInstance")},5903:function(t,e,n){n(6349)("isConcatSpreadable")},1825:function(t,e,n){n(6349)("iterator")},5824:function(t,e,n){"use strict";var r=n(6887),o=n(1899),i=n(626),a=n(2529),s=n(5746),u=n(2497),c=n(5981),l=n(7457),p=n(1052),f=n(941),h=n(6664),d=n(6059),v=n(9678),y=n(4529),g=n(3894),m=n(5803),b=n(1887),_=n(9290),E=n(4771),x=n(946),w=n(684),D=n(7857),A=n(9677),T=n(5988),C=n(6760),S=n(2029),k=n(9754),O=n(8726),I=n(4262),F=n(7748),N=n(9418),j=n(9813),R=n(1477),P=n(6349),L=n(904),B=n(5402),U=n(3610).forEach,M=I("hidden"),$="Symbol",z=j("toPrimitive"),H=B.set,q=B.getterFor($),V=Object.prototype,W=o.Symbol,G=i("JSON","stringify"),Y=A.f,K=T.f,J=w.f,Q=C.f,Z=O("symbols"),X=O("op-symbols"),tt=O("string-to-symbol-registry"),et=O("symbol-to-string-registry"),nt=O("wks"),rt=o.QObject,ot=!rt||!rt.prototype||!rt.prototype.findChild,it=s&&c((function(){return 7!=_(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(V,e);r&&delete V[e],K(t,e,n),r&&t!==V&&K(V,e,r)}:K,at=function(t,e){var n=Z[t]=_(W.prototype);return H(n,{type:$,tag:t,description:e}),s||(n.description=e),n},st=function(t,e,n){t===V&&st(X,e,n),d(t);var r=g(e);return d(n),l(Z,r)?(n.enumerable?(l(t,M)&&t[M][r]&&(t[M][r]=!1),n=_(n,{enumerable:b(0,!1)})):(l(t,M)||K(t,M,b(1,{})),t[M][r]=!0),it(t,r,n)):K(t,r,n)},ut=function(t,e){d(t);var n=y(e),r=E(n).concat(ft(n));return U(r,(function(e){s&&!ct.call(n,e)||st(t,e,n[e])})),t},ct=function(t){var e=g(t),n=Q.call(this,e);return!(this===V&&l(Z,e)&&!l(X,e))&&(!(n||!l(this,e)||!l(Z,e)||l(this,M)&&this[M][e])||n)},lt=function(t,e){var n=y(t),r=g(e);if(n!==V||!l(Z,r)||l(X,r)){var o=Y(n,r);return!o||!l(Z,r)||l(n,M)&&n[M][r]||(o.enumerable=!0),o}},pt=function(t){var e=J(y(t)),n=[];return U(e,(function(t){l(Z,t)||l(F,t)||n.push(t)})),n},ft=function(t){var e=t===V,n=J(e?X:y(t)),r=[];return U(n,(function(t){!l(Z,t)||e&&!l(V,t)||r.push(Z[t])})),r};u||(k((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=N(t),n=function(t){this===V&&n.call(X,t),l(this,M)&&l(this[M],e)&&(this[M][e]=!1),it(this,e,b(1,t))};return s&&ot&&it(V,e,{configurable:!0,set:n}),at(e,t)}).prototype,"toString",(function(){return q(this).tag})),k(W,"withoutSetter",(function(t){return at(N(t),t)})),C.f=ct,T.f=st,A.f=lt,x.f=w.f=pt,D.f=ft,R.f=function(t){return at(j(t),t)},s&&(K(W.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||k(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),U(E(nt),(function(t){P(t)})),r({target:$,stat:!0,forced:!u},{for:function(t){var e=m(t);if(l(tt,e))return tt[e];var n=W(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!h(t))throw TypeError(t+" is not a symbol");if(l(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?_(t):ut(_(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:ft}),r({target:"Object",stat:!0,forced:c((function(){D.f(1)}))},{getOwnPropertySymbols:function(t){return D.f(v(t))}}),G&&r({target:"JSON",stat:!0,forced:!u||c((function(){var t=W();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(f(e)||void 0!==t)&&!h(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!h(e))return e}),o[1]=e,G.apply(null,o)}}),W.prototype[z]||S(W.prototype,z,W.prototype.valueOf),L(W,$),F[M]=!0},5915:function(t,e,n){n(6349)("matchAll")},8394:function(t,e,n){n(6349)("match")},1766:function(t,e,n){n(6349)("replace")},9791:function(t,e,n){n(6349)("search")},9911:function(t,e,n){n(6349)("species")},4315:function(t,e,n){n(6349)("split")},3131:function(t,e,n){n(6349)("toPrimitive")},4714:function(t,e,n){n(6349)("toStringTag")},659:function(t,e,n){n(6349)("unscopables")},7634:function(t,e,n){n(6274);var r=n(3281),o=n(1899),i=n(9697),a=n(2029),s=n(2077),u=n(9813)("toStringTag");for(var c in r){var l=o[c],p=l&&l.prototype;p&&i(p)!==u&&a(p,u,c),s[c]=s.Array}},1249:function(t,e,n){var r=n(6887),o=n(1899),i=n(2861),a=[].slice,s=function(t){return function(e,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},7698:function(t,e,n){var r=n(4493);t.exports=r},3363:function(t,e,n){var r=n(4034);t.exports=r},9216:function(t,e,n){var r=n(9324);t.exports=r},7784:function(t,e,n){var r=n(1103);t.exports=r},8196:function(t,e,n){var r=n(6246);t.exports=r},8065:function(t,e,n){var r=n(6043);t.exports=r},9455:function(t,e,n){var r=n(3160);t.exports=r},9743:function(t,e,n){var r=n(446);t.exports=r},1955:function(t,e,n){var r=n(2480);t.exports=r},6064:function(t,e,n){var r=n(7147);t.exports=r},1577:function(t,e,n){var r=n(2236);t.exports=r},4913:function(t,e,n){var r=n(8098);t.exports=r},6279:function(t,e,n){n(7634);var r=n(9216),o=n(9697),i=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===i||t instanceof Array&&e===i.forEach||a.hasOwnProperty(o(t))?r:e}},3778:function(t,e,n){var r=n(8557);t.exports=r},9373:function(t,e,n){var r=n(4570);t.exports=r},1022:function(t,e,n){var r=n(7564);t.exports=r},1798:function(t,e,n){var r=n(8287);t.exports=r},2527:function(t,e,n){var r=n(8025);t.exports=r},8427:function(t,e,n){var r=n(1060);t.exports=r},2073:function(t,e,n){var r=n(9601);t.exports=r},5286:function(t,e,n){var r=n(8299);t.exports=r},2856:function(t,e,n){var r=n(9355);t.exports=r},2348:function(t,e,n){var r=n(8339);t.exports=r},5799:function(t,e,n){var r=n(1495);t.exports=r},353:function(t,e,n){var r=n(5371);t.exports=r},6361:function(t,e,n){var r=n(2774);t.exports=r},8933:function(t,e,n){var r=n(4426);t.exports=r},3383:function(t,e,n){var r=n(5999);t.exports=r},4471:function(t,e,n){var r=n(5254);t.exports=r},7396:function(t,e,n){var r=n(7702);t.exports=r},1910:function(t,e,n){var r=n(8171);t.exports=r},6209:function(t,e,n){var r=n(3081);t.exports=r},9427:function(t,e,n){var r=n(286);t.exports=r},2857:function(t,e,n){var r=n(2766);t.exports=r},4477:function(t,e,n){var r=n(3288);t.exports=r},9534:function(t,e,n){var r=n(498);t.exports=r},3059:function(t,e,n){var r=n(8494);t.exports=r},7795:function(t,e,n){var r=n(8430);t.exports=r},6877:function(t,e,n){var r=n(7579);t.exports=r},4888:function(t,e,n){var r=n(8524);t.exports=r},7460:function(t,e,n){var r=n(2956);n(7634),t.exports=r},3474:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setInterval},7989:function(t,e,n){n(1249);var r=n(4058);t.exports=r.setTimeout},5519:function(t,e,n){var r=n(6998);n(7634),t.exports=r},2547:function(t,e,n){var r=n(7473);n(7634),t.exports=r},6509:function(t,e,n){var r=n(4227);n(7634),t.exports=r},4289:function(t,e,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,n,r){var o;(!(e in t)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},l=function(t,e){var n=arguments.length>2?arguments[2]:{},i=r(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)c(t,i[s],e[i[s]],n[i[s]])};l.supportsDescriptors=!!u,t.exports=l},4445:function(t){t.exports=r,r.default=r,r.stable=a,r.stableStringify=a;var e=[],n=[];function r(t,r,i){var a;for(o(t,"",[],void 0),a=0===n.length?JSON.stringify(t,r,i):JSON.stringify(t,u(r),i);0!==e.length;){var s=e.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}return a}function o(t,r,i,a){var s;if("object"==typeof t&&null!==t){for(s=0;s<i.length;s++)if(i[s]===t){var u=Object.getOwnPropertyDescriptor(a,r);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,r,{value:"[Circular]"}),e.push([a,r,t,u])):n.push([t,r]):(a[r]="[Circular]",e.push([a,r,t])))}if(i.push(t),Array.isArray(t))for(s=0;s<t.length;s++)o(t[s],s,i,t);else{var c=Object.keys(t);for(s=0;s<c.length;s++){var l=c[s];o(t[l],l,i,t)}}i.pop()}}function i(t,e){return t<e?-1:t>e?1:0}function a(t,r,o){var i,a=s(t,"",[],void 0)||t;for(i=0===n.length?JSON.stringify(a,r,o):JSON.stringify(a,u(r),o);0!==e.length;){var c=e.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return i}function s(t,r,o,a){var u;if("object"==typeof t&&null!==t){for(u=0;u<o.length;u++)if(o[u]===t){var c=Object.getOwnPropertyDescriptor(a,r);return void(void 0!==c.get?c.configurable?(Object.defineProperty(a,r,{value:"[Circular]"}),e.push([a,r,t,c])):n.push([t,r]):(a[r]="[Circular]",e.push([a,r,t])))}if("function"==typeof t.toJSON)return;if(o.push(t),Array.isArray(t))for(u=0;u<t.length;u++)s(t[u],u,o,t);else{var l={},p=Object.keys(t).sort(i);for(u=0;u<p.length;u++){var f=p[u];s(t[f],f,o,t),l[f]=t[f]}if(void 0===a)return l;e.push([a,r,t]),a[r]=l}o.pop()}}function u(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r="[Circular]",n.splice(o,1);break}}return t.call(this,e,r)}}},7648:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||r.call(i)!==o)throw new TypeError(e+i);for(var a,s=n.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(n.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(n.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],p=0;p<c;p++)l.push("$"+p);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},8612:function(t,e,n){"use strict";var r=n(7648);t.exports=Function.prototype.bind||r},210:function(t,e,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,p=n(1405)(),f=Object.getPrototypeOf||function(t){return t.__proto__},h={},d="undefined"==typeof Uint8Array?r:f(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(n=f(o.prototype))}return v[e]=n,n},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=n(8612),b=n(7642),_=m.call(Function.call,Array.prototype.concat),E=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),w=m.call(Function.call,String.prototype.slice),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,T=function(t){var e=w(t,0,1),n=w(t,-1);if("%"===e&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return x(t,D,(function(t,e,n,o){r[r.length]=n?x(o,A,"$1"):e||t})),r},C=function(t,e){var n,r=t;if(b(g,r)&&(r="%"+(n=g[r])[0]+"%"),b(v,r)){var i=v[r];if(i===h&&(i=y(r)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var n=T(t),r=n.length>0?n[0]:"",i=C("%"+r+"%",e),s=i.name,c=i.value,l=!1,p=i.alias;p&&(r=p[0],E(n,_([0,1],p)));for(var f=1,h=!0;f<n.length;f+=1){var d=n[f],y=w(d,0,1),g=w(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&h||(l=!0),b(v,s="%"+(r+="."+d)+"%"))c=v[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=n.length){var m=u(c,d);c=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[d]}else h=b(c,d),c=c[d];h&&!l&&(v[s]=c)}}return c}},1221:function(t){"use strict";"undefined"!=typeof self?t.exports=self:"undefined"!=typeof window?t.exports=window:t.exports=Function("return this")()},2503:function(t,e,n){"use strict";var r=n(4289),o=n(1221),i=n(2168),a=n(9471),s=i(),u=function(){return s};r(u,{getPolyfill:i,implementation:o,shim:a}),t.exports=u},2168:function(t,e,n){"use strict";var r=n(1221);t.exports=function(){return"object"==typeof n.g&&n.g&&n.g.Math===Math&&n.g.Array===Array?n.g:r}},9471:function(t,e,n){"use strict";var r=n(4289),o=n(2168);t.exports=function(){var t=o();if(r.supportsDescriptors){var e=Object.getOwnPropertyDescriptor(t,"globalThis");(!e||e.configurable&&(e.enumerable||e.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!1})}else"object"==typeof globalThis&&globalThis===t||(t.globalThis=t);return t}},1405:function(t,e,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7642:function(t,e,n){"use strict";var r=n(8612);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},679:function(t){t.exports=function(t){var e={},n=[];(t=t||this).on=function(n,r,o){return(e[n]=e[n]||[]).push([r,o]),t},t.off=function(r,o){r||(e={});for(var i=e[r]||n,a=i.length=o?i.length:0;a--;)o==i[a][0]&&i.splice(a,1);return t},t.emit=function(r){for(var o,i=e[r]||n,a=i.length>0?i.slice(0,i.length):i,s=0;o=a[s++];)o[0].apply(o[1],n.slice.call(arguments,1));return t}}},631:function(t,e,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,v=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x=Object.prototype.propertyIsEnumerable,w=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),D=n(4654).custom,A=D&&O(D)?D:null,T="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function C(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function S(t){return String(t).replace(/"/g,"&quot;")}function k(t){return!("[object Array]"!==N(t)||T&&"object"==typeof t&&T in t)}function O(t){if(E)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,o){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return R(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var v=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=v&&v>0&&"object"==typeof e)return k(e)?"[Array]":"[Object]";var b,x=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=Array(t.indent+1).join(" ")}return{base:n,prev:Array(e+1).join(n)}}(s,r);if(void 0===o)o=[];else if(j(o,e)>=0)return"[Circular]";function D(e,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,o)}return t(e,s,r+1,o)}if("function"==typeof e){var I=function(t){if(t.name)return t.name;var e=g.call(y.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),P=$(e,D);return"[Function"+(I?": "+I:" (anonymous)")+"]"+(P.length>0?" { "+P.join(", ")+" }":"")}if(O(e)){var z=E?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(e);return"object"!=typeof e||E?z:L(z)}if((b=e)&&"object"==typeof b&&("undefined"!=typeof HTMLElement&&b instanceof HTMLElement||"string"==typeof b.nodeName&&"function"==typeof b.getAttribute)){for(var H="<"+String(e.nodeName).toLowerCase(),q=e.attributes||[],V=0;V<q.length;V++)H+=" "+q[V].name+"="+C(S(q[V].value),"double",s);return H+=">",e.childNodes&&e.childNodes.length&&(H+="..."),H+"</"+String(e.nodeName).toLowerCase()+">"}if(k(e)){if(0===e.length)return"[]";var W=$(e,D);return x&&!function(t){for(var e=0;e<t.length;e++)if(j(t[e],"\n")>=0)return!1;return!0}(W)?"["+M(W,x)+"]":"[ "+W.join(", ")+" ]"}if(function(t){return!("[object Error]"!==N(t)||T&&"object"==typeof t&&T in t)}(e)){var G=$(e,D);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(A&&"function"==typeof e[A])return e[A]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var Y=[];return a.call(e,(function(t,n){Y.push(D(n,e,!0)+" => "+D(t,e))})),U("Map",i.call(e),Y,x)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var K=[];return l.call(e,(function(t){K.push(D(t,e))})),U("Set",c.call(e),K,x)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return B("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return B("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return B("WeakRef");if(function(t){return!("[object Number]"!==N(t)||T&&"object"==typeof t&&T in t)}(e))return L(D(Number(e)));if(function(t){if(!t||"object"!=typeof t||!m)return!1;try{return m.call(t),!0}catch(t){}return!1}(e))return L(D(m.call(e)));if(function(t){return!("[object Boolean]"!==N(t)||T&&"object"==typeof t&&T in t)}(e))return L(d.call(e));if(function(t){return!("[object String]"!==N(t)||T&&"object"==typeof t&&T in t)}(e))return L(D(String(e)));if(!function(t){return!("[object Date]"!==N(t)||T&&"object"==typeof t&&T in t)}(e)&&!function(t){return!("[object RegExp]"!==N(t)||T&&"object"==typeof t&&T in t)}(e)){var J=$(e,D),Q=w?w(e)===Object.prototype:e instanceof Object||e.constructor===Object,Z=e instanceof Object?"":"null prototype",X=!Q&&T&&Object(e)===e&&T in e?N(e).slice(8,-1):Z?"Object":"",tt=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(X||Z?"["+[].concat(X||[],Z||[]).join(": ")+"] ":"");return 0===J.length?tt+"{}":x?tt+"{"+M(J,x)+"}":tt+"{ "+J.join(", ")+" }"}return String(e)};var I=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return I.call(t,e)}function N(t){return v.call(t)}function j(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function R(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return R(t.slice(0,e.maxStringLength),e)+r}return C(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,P),"single",e)}function P(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function L(t){return"Object("+t+")"}function B(t){return t+" { ? }"}function U(t,e,n,r){return t+" ("+e+") {"+(r?M(n,r):n.join(", "))+"}"}function M(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+t.join(","+n)+"\n"+e.prev}function $(t,e){var n=k(t),r=[];if(n){r.length=t.length;for(var o=0;o<t.length;o++)r[o]=F(t,o)?e(t[o],t):""}var i,a="function"==typeof b?b(t):[];if(E){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)F(t,u)&&(n&&String(Number(u))===u&&u<t.length||E&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?r.push(e(u,t)+": "+e(t[u],t)):r.push(u+": "+e(t[u],t))));if("function"==typeof b)for(var c=0;c<a.length;c++)x.call(t,a[c])&&r.push("["+e(a[c])+"]: "+e(t[a[c]],t));return r}},8987:function(t,e,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),r=a(t),s=e&&"[object String]"===i.call(t),f=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&t.length>0&&!o.call(t,0))for(var v=0;v<t.length;++v)f.push(String(v));if(r&&t.length>0)for(var y=0;y<t.length;++y)f.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||f.push(String(g));if(u)for(var m=function(t){if("undefined"==typeof window||!h)return p(t);try{return p(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)m&&"constructor"===l[b]||!o.call(t,l[b])||f.push(l[b]);return f}}t.exports=r},2215:function(t,e,n){"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(t){return i(t)}:n(8987),s=Object.keys;a.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return o(t)?s(r.call(t)):s(t)}):Object.keys=a,Object.keys||a},t.exports=a},1414:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},5798:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},129:function(t,e,n){"use strict";var r=n(8261),o=n(5235),i=n(5798);t.exports={formats:i,parse:o,stringify:r}},5235:function(t,e,n){"use strict";var r=n(2769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var p=0;n.depth>0&&null!==(s=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:u(e,n),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[c]=o:a={0:o}}o=a}return o}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?d="utf-8":"utf8=%26%2310003%3B"===f[n]&&(d="iso-8859-1"),h=n,n=f.length);for(n=0;n<f.length;++n)if(n!==h){var v,y,g=f[n],m=g.indexOf("]="),b=-1===m?g.indexOf("="):m+1;-1===b?(v=e.decoder(g,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(g.slice(0,b),a.decoder,d,"key"),y=r.maybeMap(u(g.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),o.call(c,v)?c[v]=r.combine(c[v],y):c[v]=y}return c}(t,n):t,p=n.plainObjects?Object.create(null):{},f=Object.keys(l),h=0;h<f.length;++h){var d=f[h],v=c(d,l[d],n,"string"==typeof t);p=r.merge(p,v,n)}return!0===n.allowSparse?p:r.compact(p)}},8261:function(t,e,n){"use strict";var r=n(7478),o=n(2769),i=n(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,a,s,c,p,f,d,v,y,g,m,b,_){var E,x=e;if(_.has(e))throw new RangeError("Cyclic object value");if("function"==typeof p?x=p(n,x):x instanceof Date?x=v(x):"comma"===i&&u(x)&&(x=o.maybeMap(x,(function(t){return t instanceof Date?v(t):t}))),null===x){if(a)return c&&!m?c(n,h.encoder,b,"key",y):n;x=""}if("string"==typeof(E=x)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(x))return c?[g(m?n:c(n,h.encoder,b,"key",y))+"="+g(c(x,h.encoder,b,"value",y))]:[g(n)+"="+g(String(x))];var w,D=[];if(void 0===x)return D;if("comma"===i&&u(x))w=[{value:x.length>0?x.join(",")||null:void 0}];else if(u(p))w=p;else{var A=Object.keys(x);w=f?A.sort(f):A}for(var T=0;T<w.length;++T){var C=w[T],S="object"==typeof C&&void 0!==C.value?C.value:x[C];if(!s||null!==S){var k=u(x)?"function"==typeof i?i(n,C):n:n+(d?"."+C:"["+C+"]");_.set(e,!0);var O=r();l(D,t(S,k,i,a,s,c,p,f,d,v,y,g,m,b,O))}}return D};t.exports=function(t,e){var n,o=t,c=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof c.filter?o=(0,c.filter)("",o):u(c.filter)&&(n=c.filter);var p,f=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var v=s[p];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var y=r(),g=0;g<n.length;++g){var m=n[g];c.skipNulls&&null===o[m]||l(f,d(o[m],m,v,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var b=f.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},2769:function(t,e,n){"use strict";var r=n(5798),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:a,prop:c}),n.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n,o,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return i(e)&&!i(n)&&(a=s(e,r)),i(e)&&i(n)?(n.forEach((function(n,i){if(o.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,r):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return o.call(e,i)?e[i]=t(e[i],a,r):e[i]=a,e}),a)}}},7478:function(t,e,n){"use strict";var r=n(210),o=n(1924),i=n(631),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+i(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(u){if(e)return f(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return p(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,o){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),l(t,r,o)):u?(e||(e=new u),h(e,r,o)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,o))}};return r}},1839:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n=t.Symbol;if("function"==typeof n)if(n.observable)e=n.observable;else{e=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=e}catch(t){}}else e="@@observable";return e}},868:function(t,e,n){t.exports=n(1839)},3813:function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.NO_IL=e.NO=e.MemoryStream=e.Stream=void 0;var i=n(868),a=n(2503),s=i.default(a.getPolyfill()),u={};function c(){}function l(t){for(var e=t.length,n=Array(e),r=0;r<e;++r)n[r]=t[r];return n}function p(t,e,n){try{return t.f(e)}catch(t){return n._e(t),u}}e.NO=u;var f={_n:c,_e:c,_c:c};function h(t){t._start=function(t){t.next=t._n,t.error=t._e,t.complete=t._c,this.start(t)},t._stop=t.stop}e.NO_IL=f;var d=function(){function t(t,e){this._stream=t,this._listener=e}return t.prototype.unsubscribe=function(){this._stream._remove(this._listener)},t}(),v=function(){function t(t){this._listener=t}return t.prototype.next=function(t){this._listener._n(t)},t.prototype.error=function(t){this._listener._e(t)},t.prototype.complete=function(){this._listener._c()},t}(),y=function(){function t(t){this.type="fromObservable",this.ins=t,this.active=!1}return t.prototype._start=function(t){this.out=t,this.active=!0,this._sub=this.ins.subscribe(new v(t)),this.active||this._sub.unsubscribe()},t.prototype._stop=function(){this._sub&&this._sub.unsubscribe(),this.active=!1},t}(),g=function(){function t(t){this.type="merge",this.insArr=t,this.out=u,this.ac=0}return t.prototype._start=function(t){this.out=t;var e=this.insArr,n=e.length;this.ac=n;for(var r=0;r<n;r++)e[r]._add(this)},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=0;n<e;n++)t[n]._remove(this);this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){if(--this.ac<=0){var t=this.out;if(t===u)return;t._c()}},t}(),m=function(){function t(t,e,n){this.i=t,this.out=e,this.p=n,n.ils.push(this)}return t.prototype._n=function(t){var e=this.p,n=this.out;if(n!==u&&e.up(t,this.i)){var r=l(e.vals);n._n(r)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.p;t.out!==u&&0==--t.Nc&&t.out._c()},t}(),b=function(){function t(t){this.type="combine",this.insArr=t,this.out=u,this.ils=[],this.Nc=this.Nn=0,this.vals=[]}return t.prototype.up=function(t,e){var n=this.vals[e],r=this.Nn?n===u?--this.Nn:this.Nn:0;return this.vals[e]=t,0===r},t.prototype._start=function(t){this.out=t;var e=this.insArr,n=this.Nc=this.Nn=e.length,r=this.vals=new Array(n);if(0===n)t._n([]),t._c();else for(var o=0;o<n;o++)r[o]=u,e[o]._add(new m(o,t,this))},t.prototype._stop=function(){for(var t=this.insArr,e=t.length,n=this.ils,r=0;r<e;r++)t[r]._remove(n[r]);this.out=u,this.ils=[],this.vals=[]},t}(),_=function(){function t(t){this.type="fromArray",this.a=t}return t.prototype._start=function(t){for(var e=this.a,n=0,r=e.length;n<r;n++)t._n(e[n]);t._c()},t.prototype._stop=function(){},t}(),E=function(){function t(t){this.type="fromPromise",this.on=!1,this.p=t}return t.prototype._start=function(t){var e=this;this.on=!0,this.p.then((function(n){e.on&&(t._n(n),t._c())}),(function(e){t._e(e)})).then(c,(function(t){setTimeout((function(){throw t}))}))},t.prototype._stop=function(){this.on=!1},t}(),x=function(){function t(t){this.type="periodic",this.period=t,this.intervalID=-1,this.i=0}return t.prototype._start=function(t){var e=this;this.intervalID=setInterval((function(){t._n(e.i++)}),this.period)},t.prototype._stop=function(){-1!==this.intervalID&&clearInterval(this.intervalID),this.intervalID=-1,this.i=0},t}(),w=function(){function t(t,e){this.type="debug",this.ins=t,this.out=u,this.s=c,this.l="","string"==typeof e?this.l=e:"function"==typeof e&&(this.s=e)}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=this.s,r=this.l;if(n!==c)try{n(t)}catch(t){e._e(t)}else r?console.log(r+":",t):console.log(t);e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),D=function(){function t(t,e){this.type="drop",this.ins=e,this.out=u,this.max=t,this.dropped=0}return t.prototype._start=function(t){this.out=t,this.dropped=0,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&this.dropped++>=this.max&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),A=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(){this.op.end()},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.end()},t}(),T=function(){function t(t,e){this.type="endWhen",this.ins=e,this.out=u,this.o=t,this.oil=f}return t.prototype._start=function(t){this.out=t,this.o._add(this.oil=new A(t,this)),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.o._remove(this.oil),this.out=u,this.oil=f},t.prototype.end=function(){var t=this.out;t!==u&&t._c()},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){this.end()},t}(),C=function(){function t(t,e){this.type="filter",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&n&&e._n(t)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),S=function(){function t(t,e){this.out=t,this.op=e}return t.prototype._n=function(t){this.out._n(t)},t.prototype._e=function(t){this.out._e(t)},t.prototype._c=function(){this.op.inner=u,this.op.less()},t}(),k=function(){function t(t){this.type="flatten",this.ins=t,this.out=u,this.open=!0,this.inner=u,this.il=f}return t.prototype._start=function(t){this.out=t,this.open=!0,this.inner=u,this.il=f,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.inner!==u&&this.inner._remove(this.il),this.out=u,this.open=!0,this.inner=u,this.il=f},t.prototype.less=function(){var t=this.out;t!==u&&(this.open||this.inner!==u||t._c())},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=this.inner,r=this.il;n!==u&&r!==f&&n._remove(r),(this.inner=t)._add(this.il=new S(e,this))}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){this.open=!1,this.less()},t}(),O=function(){function t(t,e,n){var r=this;this.type="fold",this.ins=n,this.out=u,this.f=function(e){return t(r.acc,e)},this.acc=this.seed=e}return t.prototype._start=function(t){this.out=t,this.acc=this.seed,t._n(this.acc),this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u,this.acc=this.seed},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&e._n(this.acc=n)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),I=function(){function t(t){this.type="last",this.ins=t,this.out=u,this.has=!1,this.val=u}return t.prototype._start=function(t){this.out=t,this.has=!1,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u,this.val=u},t.prototype._n=function(t){this.has=!0,this.val=t},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&(this.has?(t._n(this.val),t._c()):t._e(new Error("last() failed because input stream completed")))},t}(),F=function(){function t(t,e){this.type="map",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=p(this,t,e);n!==u&&e._n(n)}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),N=function(){function t(t){this.type="remember",this.ins=t,this.out=u}return t.prototype._start=function(t){this.out=t,this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=u},t}(),j=function(){function t(t,e){this.type="replaceError",this.ins=e,this.out=u,this.f=t}return t.prototype._start=function(t){this.out=t,this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;e!==u&&e._n(t)},t.prototype._e=function(t){var e=this.out;if(e!==u)try{this.ins._remove(this),(this.ins=this.f(t))._add(this)}catch(t){e._e(t)}},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),R=function(){function t(t,e){this.type="startWith",this.ins=t,this.out=u,this.val=e}return t.prototype._start=function(t){this.out=t,this.out._n(this.val),this.ins._add(t)},t.prototype._stop=function(){this.ins._remove(this.out),this.out=u},t}(),P=function(){function t(t,e){this.type="take",this.ins=e,this.out=u,this.max=t,this.taken=0}return t.prototype._start=function(t){this.out=t,this.taken=0,this.max<=0?t._c():this.ins._add(this)},t.prototype._stop=function(){this.ins._remove(this),this.out=u},t.prototype._n=function(t){var e=this.out;if(e!==u){var n=++this.taken;n<this.max?e._n(t):n===this.max&&(e._n(t),e._c())}},t.prototype._e=function(t){var e=this.out;e!==u&&e._e(t)},t.prototype._c=function(){var t=this.out;t!==u&&t._c()},t}(),L=function(){function t(t){this._prod=t||u,this._ils=[],this._stopID=u,this._dl=u,this._d=!1,this._target=null,this._err=u}return t.prototype._n=function(t){var e=this._ils,n=e.length;if(this._d&&this._dl._n(t),1==n)e[0]._n(t);else{if(0==n)return;for(var r=l(e),o=0;o<n;o++)r[o]._n(t)}},t.prototype._e=function(t){if(this._err===u){this._err=t;var e=this._ils,n=e.length;if(this._x(),this._d&&this._dl._e(t),1==n)e[0]._e(t);else{if(0==n)return;for(var r=l(e),o=0;o<n;o++)r[o]._e(t)}if(!this._d&&0==n)throw this._err}},t.prototype._c=function(){var t=this._ils,e=t.length;if(this._x(),this._d&&this._dl._c(),1==e)t[0]._c();else{if(0==e)return;for(var n=l(t),r=0;r<e;r++)n[r]._c()}},t.prototype._x=function(){0!==this._ils.length&&(this._prod!==u&&this._prod._stop(),this._err=u,this._ils=[])},t.prototype._stopNow=function(){this._prod._stop(),this._err=u,this._stopID=u},t.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),!(n.length>1))if(this._stopID!==u)clearTimeout(this._stopID),this._stopID=u;else{var r=this._prod;r!==u&&r._start(this)}},t.prototype._remove=function(t){var e=this,n=this._target;if(n)return n._remove(t);var r=this._ils,o=r.indexOf(t);o>-1&&(r.splice(o,1),this._prod!==u&&r.length<=0?(this._err=u,this._stopID=setTimeout((function(){return e._stopNow()}))):1===r.length&&this._pruneCycles())},t.prototype._pruneCycles=function(){this._hasNoSinks(this,[])&&this._remove(this._ils[0])},t.prototype._hasNoSinks=function(t,e){if(-1!==e.indexOf(t))return!0;if(t.out===this)return!0;if(t.out&&t.out!==u)return this._hasNoSinks(t.out,e.concat(t));if(t._ils){for(var n=0,r=t._ils.length;n<r;n++)if(!this._hasNoSinks(t._ils[n],e.concat(t)))return!1;return!0}return!1},t.prototype.ctor=function(){return this instanceof B?B:t},t.prototype.addListener=function(t){t._n=t.next||c,t._e=t.error||c,t._c=t.complete||c,this._add(t)},t.prototype.removeListener=function(t){this._remove(t)},t.prototype.subscribe=function(t){return this.addListener(t),new d(this,t)},t.prototype[s]=function(){return this},t.create=function(e){if(e){if("function"!=typeof e.start||"function"!=typeof e.stop)throw new Error("producer requires both start and stop functions");h(e)}return new t(e)},t.createWithMemory=function(t){return t&&h(t),new B(t)},t.never=function(){return new t({_start:c,_stop:c})},t.empty=function(){return new t({_start:function(t){t._c()},_stop:c})},t.throw=function(e){return new t({_start:function(t){t._e(e)},_stop:c})},t.from=function(e){if("function"==typeof e[s])return t.fromObservable(e);if("function"==typeof e.then)return t.fromPromise(e);if(Array.isArray(e))return t.fromArray(e);throw new TypeError("Type of input to from() must be an Array, Promise, or Observable")},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.fromArray(e)},t.fromArray=function(e){return new t(new _(e))},t.fromPromise=function(e){return new t(new E(e))},t.fromObservable=function(e){if(void 0!==e.endWhen)return e;var n="function"==typeof e[s]?e[s]():e;return new t(new y(n))},t.periodic=function(e){return new t(new x(e))},t.prototype._map=function(t){return new(this.ctor())(new F(t,this))},t.prototype.map=function(t){return this._map(t)},t.prototype.mapTo=function(t){var e=this.map((function(){return t}));return e._prod.type="mapTo",e},t.prototype.filter=function(e){var n,r,o=this._prod;return new t(o instanceof C?new C((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new C(e,this))},t.prototype.take=function(t){return new(this.ctor())(new P(t,this))},t.prototype.drop=function(e){return new t(new D(e,this))},t.prototype.last=function(){return new t(new I(this))},t.prototype.startWith=function(t){return new B(new R(this,t))},t.prototype.endWhen=function(t){return new(this.ctor())(new T(t,this))},t.prototype.fold=function(t,e){return new B(new O(t,e,this))},t.prototype.replaceError=function(t){return new(this.ctor())(new j(t,this))},t.prototype.flatten=function(){return new t(new k(this))},t.prototype.compose=function(t){return t(this)},t.prototype.remember=function(){return new B(new N(this))},t.prototype.debug=function(t){return new(this.ctor())(new w(this,t))},t.prototype.imitate=function(t){if(t instanceof B)throw new Error("A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq");this._target=t;for(var e=this._ils,n=e.length,r=0;r<n;r++)t._add(e[r]);this._ils=[]},t.prototype.shamefullySendNext=function(t){this._n(t)},t.prototype.shamefullySendError=function(t){this._e(t)},t.prototype.shamefullySendComplete=function(){this._c()},t.prototype.setDebugListener=function(t){t?(this._d=!0,t._n=t.next||c,t._e=t.error||c,t._c=t.complete||c,this._dl=t):(this._d=!1,this._dl=u)},t.merge=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new g(e))},t.combine=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new t(new b(e))},t}();e.Stream=L;var B=function(t){function e(e){var n=t.call(this,e)||this;return n._has=!1,n}return o(e,t),e.prototype._n=function(e){this._v=e,this._has=!0,t.prototype._n.call(this,e)},e.prototype._add=function(t){var e=this._target;if(e)return e._add(t);var n=this._ils;if(n.push(t),n.length>1)this._has&&t._n(this._v);else if(this._stopID!==u)this._has&&t._n(this._v),clearTimeout(this._stopID),this._stopID=u;else if(this._has)t._n(this._v);else{var r=this._prod;r!==u&&r._start(this)}},e.prototype._stopNow=function(){this._has=!1,t.prototype._stopNow.call(this)},e.prototype._x=function(){this._has=!1,t.prototype._x.call(this)},e.prototype.map=function(t){return this._map(t)},e.prototype.mapTo=function(e){return t.prototype.mapTo.call(this,e)},e.prototype.take=function(e){return t.prototype.take.call(this,e)},e.prototype.endWhen=function(e){return t.prototype.endWhen.call(this,e)},e.prototype.replaceError=function(e){return t.prototype.replaceError.call(this,e)},e.prototype.remember=function(){return this},e.prototype.debug=function(e){return t.prototype.debug.call(this,e)},e}(L);e.MemoryStream=B;var U=L;e.default=U},4654:function(){}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{AgentInfo:function(){return Eu},AppFrame:function(){return eu},ChatFrame:function(){return bu},Conversation:function(){return ol},Engine:function(){return uf},EntryContainer:function(){return xl},EventParticipant:function(){return Iu},ExternalApi:function(){return hf},Header:function(){return xu},Icon:function(){return Sa},Interrupt:function(){return wl},MessageContainer:function(){return Pu},SeamlyApiContext:function(){return de},SeamlyConfigurationError:function(){return Ti},SeamlyEventBusContext:function(){return ve},SeamlyGeneralError:function(){return Ai},SeamlyLiveRegionContext:function(){return qi},SeamlyOfflineError:function(){return Si},SeamlySessionExpiredError:function(){return Ci},SeamlyUnauthorizedError:function(){return ki},StoreProvider:function(){return Ie},Text:function(){return hc},ToggleButton:function(){return _u},View:function(){return Dl},calculateVisibility:function(){return Kr},className:function(){return ba},createReduxStore:function(){return He},default:function(){return df},eventTypes:function(){return Bn},getUrlParams:function(){return pn},getUrlSearchString:function(){return fn},randomId:function(){return pi},seamlyActions:function(){return er},useChoicePrompt:function(){return Mu},useDispatch:function(){return jo},useEvents:function(){return Co},useGeneratedId:function(){return fi},useI18n:function(){return Eo},useSeamlyChat:function(){return aa},useSeamlyCommands:function(){return Hi},useSeamlyConfig:function(){return co},useSeamlyEventStream:function(){return ya},useSeamlyIdleDetachCountdown:function(){return ha},useSeamlyMessageContainerClassNames:function(){return $o},useSeamlyOptions:function(){return Ko},useSeamlyVisibility:function(){return oa},useTranslatedEventData:function(){return Ha},useTranslations:function(){return za},useTranslationsContainer:function(){return qa},visibilityStates:function(){return zn}}),n(2698);var t=n(1511),e=n.n(t),o=n(4103),i=n.n(o),a=n(6902),s=n.n(a),u=n(4310),c=n.n(u),l=n(4074),p=n.n(l),f=n(9649),h=n.n(f),d=n(368),v=n.n(d),y=n(3978),g=n.n(y),m=n(4341);function b(t,e,n){return e in t?m(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=n(2991),E=n.n(_),x=n(116),w=n.n(x),D=n(8914),A=n.n(D),T=n(455),C=n.n(T),S=n(7149),k=n.n(S),O=n(3263),I=n(5683),F=n(9356);function N(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=F(t);for(r=0;r<i.length;r++)n=i[r],I(e).call(e,n)>=0||(o[n]=t[n]);return o}(t,e);if(O){var i=O(t);for(r=0;r<i.length;r++)n=i[r],I(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var j,R,P,L,B,U,M,$=n(6295),z=n.n($),H={},q=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function W(t,e){for(var n in e)t[n]=e[n];return t}function G(t){var e=t.parentNode;e&&e.removeChild(t)}function Y(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++P:o};return null!=R.vnode&&R.vnode(i),i}function K(t){return t.children}function J(t,e){this.props=t,this.context=e}function Q(t,e){if(null==e)return t.__?Q(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Q(t):null}function Z(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Z(t)}}function X(t){(!t.__d&&(t.__d=!0)&&L.push(t)&&!tt.__r++||U!==R.debounceRendering)&&((U=R.debounceRendering)||B)(tt)}function tt(){for(var t;tt.__r=L.length;)t=L.sort((function(t,e){return t.__v.__b-e.__v.__b})),L=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=W({},o)).__v=o.__v+1,ct(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Q(o):i,o.__h),lt(n,o),o.__e!=i&&Z(o)))}))}function et(t,e,n,r,o,i,a,s,u,c){var l,p,f,h,d,v,y,g=r&&r.__k||q,m=g.length;for(n.__k=[],l=0;l<e.length;l++)if(null!=(h=n.__k[l]=null==(h=e[l])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Y(null,h,null,null,h):Array.isArray(h)?Y(K,{children:h},null,null,null):h.__b>0?Y(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=g[l])||f&&h.key==f.key&&h.type===f.type)g[l]=void 0;else for(p=0;p<m;p++){if((f=g[p])&&h.key==f.key&&h.type===f.type){g[p]=void 0;break}f=null}ct(t,h,f=f||H,o,i,a,s,u,c),d=h.__e,(p=h.ref)&&f.ref!=p&&(y||(y=[]),f.ref&&y.push(f.ref,null,h),y.push(p,h.__c||d,h)),null!=d?(null==v&&(v=d),"function"==typeof h.type&&null!=h.__k&&h.__k===f.__k?h.__d=u=nt(h,u,t):u=ot(t,h,f,g,d,u),c||"option"!==n.type?"function"==typeof n.type&&(n.__d=u):t.value=""):u&&f.__e==u&&u.parentNode!=t&&(u=Q(f))}for(n.__e=v,l=m;l--;)null!=g[l]&&("function"==typeof n.type&&null!=g[l].__e&&g[l].__e==n.__d&&(n.__d=Q(r,l+1)),ht(g[l],g[l]));if(y)for(l=0;l<y.length;l++)ft(y[l],y[++l],y[++l])}function nt(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?nt(o,e,n):ot(n,o,o,t.__k,o.__e,e));return e}function rt(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){rt(t,e)})):e.push(t)),e}function ot(t,e,n,r,o,i){var a,s,u;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function it(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||V.test(e)?n:n+"px"}function at(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||it(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||it(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?ut:st,i):t.removeEventListener(e,i?ut:st,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function st(t){this.l[t.type+!1](R.event?R.event(t):t)}function ut(t){this.l[t.type+!0](R.event?R.event(t):t)}function ct(t,e,n,r,o,i,a,s,u){var c,l,p,f,h,d,v,y,g,m,b,_=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(u=n.__h,s=e.__e=n.__e,e.__h=null,i=[s]),(c=R.__b)&&c(e);try{t:if("function"==typeof _){if(y=e.props,g=(c=_.contextType)&&r[c.__c],m=c?g?g.props.value:c.__:r,n.__c?v=(l=e.__c=n.__c).__=l.__E:("prototype"in _&&_.prototype.render?e.__c=l=new _(y,m):(e.__c=l=new J(y,m),l.constructor=_,l.render=dt),g&&g.sub(l),l.props=y,l.state||(l.state={}),l.context=m,l.__n=r,p=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=_.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=W({},l.__s)),W(l.__s,_.getDerivedStateFromProps(y,l.__s))),f=l.props,h=l.state,p)null==_.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==_.getDerivedStateFromProps&&y!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(y,m),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(y,l.__s,m)||e.__v===n.__v){l.props=y,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),l.__h.length&&a.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(y,l.__s,m),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,h,d)}))}l.context=m,l.props=y,l.state=l.__s,(c=R.__r)&&c(e),l.__d=!1,l.__v=e,l.__P=t,c=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=W(W({},r),l.getChildContext())),p||null==l.getSnapshotBeforeUpdate||(d=l.getSnapshotBeforeUpdate(f,h)),b=null!=c&&c.type===K&&null==c.key?c.props.children:c,et(t,Array.isArray(b)?b:[b],e,n,r,o,i,a,s,u),l.base=e.__e,e.__h=null,l.__h.length&&a.push(l),v&&(l.__E=l.__=null),l.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=pt(n.__e,e,n,r,o,i,a,u);(c=R.diffed)&&c(e)}catch(t){e.__v=null,(u||null!=i)&&(e.__e=s,e.__h=!!u,i[i.indexOf(s)]=null),R.__e(t,e,n)}}function lt(t,e){R.__c&&R.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){R.__e(t,e.__v)}}))}function pt(t,e,n,r,o,i,a,s){var u,c,l,p=n.props,f=e.props,h=e.type,d=0;if("svg"===h&&(o=!0),null!=i)for(;d<i.length;d++)if((u=i[d])&&(u===t||(h?u.localName==h:3==u.nodeType))){t=u,i[d]=null;break}if(null==t){if(null===h)return document.createTextNode(f);t=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),i=null,s=!1}if(null===h)p===f||s&&t.data===f||(t.data=f);else{if(i=i&&j.call(t.childNodes),c=(p=n.props||H).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!s){if(null!=i)for(p={},d=0;d<t.attributes.length;d++)p[t.attributes[d].name]=t.attributes[d].value;(l||c)&&(l&&(c&&l.__html==c.__html||l.__html===t.innerHTML)||(t.innerHTML=l&&l.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||at(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||at(t,i,e[i],n[i],r)}(t,f,p,o,s),l)e.__k=[];else if(d=e.props.children,et(t,Array.isArray(d)?d:[d],e,n,r,o&&"foreignObject"!==h,i,a,i?i[0]:n.__k&&Q(n,0),s),null!=i)for(d=i.length;d--;)null!=i[d]&&G(i[d]);s||("value"in f&&void 0!==(d=f.value)&&(d!==t.value||"progress"===h&&!d)&&at(t,"value",d,p.value,!1),"checked"in f&&void 0!==(d=f.checked)&&d!==t.checked&&at(t,"checked",d,p.checked,!1))}return t}function ft(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){R.__e(t,n)}}function ht(t,e,n){var r,o;if(R.unmount&&R.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ft(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){R.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&ht(r[o],e,"function"!=typeof t.type);n||null==t.__e||G(t.__e),t.__e=t.__d=void 0}function dt(t,e,n){return this.constructor(t,n)}function vt(t,e,n){var r,o,i;R.__&&R.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],ct(e,t=(!r&&n||e).__k=function(t,e,n){var r,o,i,a={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];if(arguments.length>2&&(a.children=arguments.length>3?j.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return Y(t,a,r,o,null)}(K,null,[t]),o||H,H,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?j.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),lt(i,t)}function yt(t,e){var n={__c:e="__cC"+M++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(X)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}j=q.slice,R={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},P=0,J.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof t&&(t=t(W({},n),this.props)),t&&W(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),X(this))},J.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),X(this))},J.prototype.render=K,L=[],B="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0,M=0;var gt,mt,bt,_t=n(679),Et=n.n(_t),xt=0,wt=[],Dt=R.__b,At=R.__r,Tt=R.diffed,Ct=R.__c,St=R.unmount;function kt(t,e){R.__h&&R.__h(mt,t,xt||e),xt=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Ot(t){return xt=1,It(Ht,t)}function It(t,e,n){var r=kt(gt++,2);return r.t=t,r.__c||(r.__=[n?n(e):Ht(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=mt),r.__}function Ft(t,e){var n=kt(gt++,3);!R.__s&&zt(n.__H,e)&&(n.__=t,n.__H=e,mt.__H.__h.push(n))}function Nt(t,e){var n=kt(gt++,4);!R.__s&&zt(n.__H,e)&&(n.__=t,n.__H=e,mt.__h.push(n))}function jt(t){return xt=5,Rt((function(){return{current:t}}),[])}function Rt(t,e){var n=kt(gt++,7);return zt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Pt(t,e){return xt=8,Rt((function(){return t}),e)}function Lt(t){var e=mt.context[t.__c],n=kt(gt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(mt)),e.props.value):t.__}function Bt(){wt.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(Mt),t.__H.__h.forEach($t),t.__H.__h=[]}catch(e){t.__H.__h=[],R.__e(e,t.__v)}})),wt=[]}R.__b=function(t){mt=null,Dt&&Dt(t)},R.__r=function(t){At&&At(t),gt=0;var e=(mt=t.__c).__H;e&&(e.__h.forEach(Mt),e.__h.forEach($t),e.__h=[])},R.diffed=function(t){Tt&&Tt(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==wt.push(e)&&bt===R.requestAnimationFrame||((bt=R.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),Ut&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ut&&(e=requestAnimationFrame(n))})(Bt)),mt=void 0},R.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Mt),t.__h=t.__h.filter((function(t){return!t.__||$t(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],R.__e(n,t.__v)}})),Ct&&Ct(t,e)},R.unmount=function(t){St&&St(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(Mt)}catch(t){R.__e(t,e.__v)}};var Ut="function"==typeof requestAnimationFrame;function Mt(t){var e=mt;"function"==typeof t.__c&&t.__c(),mt=e}function $t(t){var e=mt;t.__c=t.__(),mt=e}function zt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ht(t,e){return"function"==typeof e?e(t):e}var qt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Vt=qt.join(","),Wt="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Gt=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e},Yt=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Kt=function(t){return"INPUT"===t.tagName},Jt=function(t,e){return!(e.disabled||function(t){return Kt(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var n=Wt.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Wt.call(n,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var r=t.getBoundingClientRect(),o=r.width,i=r.height;return 0===o&&0===i}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(Kt(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if("LEGEND"===r.tagName)return!r.contains(t)}return!0}e=e.parentElement}return!1}(e))},Qt=function(t,e){return!(!Jt(t,e)||function(t){return function(t){return Kt(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||t.ownerDocument,r=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=r(window.CSS.escape(t.name));else try{e=r(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)}(e)||Gt(e)<0)},Zt=qt.concat("iframe").join(","),Xt=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Wt.call(t,Zt)&&Jt(e,t)};function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ne,re=(ne=[],{activateTrap:function(t){if(ne.length>0){var e=ne[ne.length-1];e!==t&&e.pause()}var n=ne.indexOf(t);-1===n||ne.splice(n,1),ne.push(t)},deactivateTrap:function(t){var e=ne.indexOf(t);-1!==e&&ne.splice(e,1),ne.length>0&&ne[ne.length-1].unpause()}}),oe=function(t){return setTimeout(t,0)},ie=function(t,e){var n=-1;return t.every((function(t,r){return!e(t)||(n=r,!1)})),n},ae=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return"function"==typeof t?t.apply(void 0,n):t},se=function(t,e){var n,r=document,o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),i={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(t,e,n){return t&&void 0!==t[e]?t[e]:o[n||e]},s=function(t){return i.containers.some((function(e){return e.contains(t)}))},u=function(t){var e=o[t];if(!e)return null;var n=e;if("string"==typeof e&&!(n=r.querySelector(e)))throw new Error("`".concat(t,"` refers to no known node"));if("function"==typeof e&&!(n=e()))throw new Error("`".concat(t,"` did not return a node"));return n},c=function(){var t;if(!1===a({},"initialFocus"))return!1;if(null!==u("initialFocus"))t=u("initialFocus");else if(s(r.activeElement))t=r.activeElement;else{var e=i.tabbableGroups[0];t=e&&e.firstTabbableNode||u("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},l=function(){if(i.tabbableGroups=i.containers.map((function(t){var e=function(t,e){var n=[],r=[];return function(t,e,n){var r=Array.prototype.slice.apply(t.querySelectorAll(Vt));return e&&Wt.call(t,Vt)&&r.unshift(t),r.filter(n)}(t,(e=e||{}).includeContainer,Qt.bind(null,e)).forEach((function(t,e){var o=Gt(t);0===o?n.push(t):r.push({documentOrder:e,tabIndex:o,node:t})})),r.sort(Yt).map((function(t){return t.node})).concat(n)}(t);if(e.length>0)return{container:t,firstTabbableNode:e[0],lastTabbableNode:e[e.length-1]}})).filter((function(t){return!!t})),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function t(e){!1!==e&&e!==r.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(c()))},f=function(t){return u("setReturnFocus")||t},h=function(t){s(t.target)||(ae(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Xt(t.target)}):ae(o.allowOutsideClick,t)||t.preventDefault())},d=function(t){var e=s(t.target);e||t.target instanceof Document?e&&(i.mostRecentlyFocusedNode=t.target):(t.stopImmediatePropagation(),p(i.mostRecentlyFocusedNode||c()))},v=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==ae(o.escapeDeactivates))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){l();var e=null;if(i.tabbableGroups.length>0){var n=ie(i.tabbableGroups,(function(e){return e.container.contains(t.target)}));if(n<0)e=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var r=ie(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t.target===n}));if(r<0&&i.tabbableGroups[n].container===t.target&&(r=n),r>=0){var o=0===r?i.tabbableGroups.length-1:r-1;e=i.tabbableGroups[o].lastTabbableNode}}else{var a=ie(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t.target===n}));if(a<0&&i.tabbableGroups[n].container===t.target&&(a=n),a>=0){var s=a===i.tabbableGroups.length-1?0:a+1;e=i.tabbableGroups[s].firstTabbableNode}}}else e=u("fallbackFocus");e&&(t.preventDefault(),p(e))}(t)},y=function(t){ae(o.clickOutsideDeactivates,t)||s(t.target)||ae(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},g=function(){if(i.active)return re.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?oe((function(){p(c())})):p(c()),r.addEventListener("focusin",d,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",y,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),n},m=function(){if(i.active)return r.removeEventListener("focusin",d,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",v,!0),n};return(n={activate:function(t){if(i.active)return this;var e=a(t,"onActivate"),n=a(t,"onPostActivate"),o=a(t,"checkCanFocusTrap");o||l(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,e&&e();var s=function(){o&&l(),g(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(t){if(!i.active)return this;clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,m(),i.active=!1,i.paused=!1,re.deactivateTrap(n);var e=a(t,"onDeactivate"),r=a(t,"onPostDeactivate"),o=a(t,"checkCanReturnFocus");e&&e();var s=a(t,"returnFocus","returnFocusOnDeactivate"),u=function(){oe((function(){s&&p(f(i.nodeFocusedBeforeActivation)),r&&r()}))};return s&&o?(o(f(i.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,m()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,l(),g(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return i.containers=e.map((function(t){return"string"==typeof t?r.querySelector(t):t})),i.active&&l(),this}}).updateContainerElements(t),n},ue=n(4198),ce=n.n(ue),le=n(3032),pe=n.n(le),fe=n(8580),he=n.n(fe);const de=yt(null),ve=yt(""),ye=()=>Lt(de),ge=()=>ye().store||{},me=()=>{const{get:t}=ge();return t?t("conversationUrl"):null},be=()=>!!me(),_e=()=>{const{get:t}=ge();return!!t&&!!t("userResponded")};function Ee(t,e){return t===e}function xe(t,e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var r=e.length,o=0;o<r;o++)if(!t(e[o],n[o]))return!1;return!0}function we(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return typeof t})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return e}var De=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=0,a=r.pop(),s=we(r),u=t.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),c=t((function(){for(var t=[],e=s.length,n=0;n<e;n++)t.push(s[n].apply(null,arguments));return u.apply(null,t)}));return c.resultFunc=a,c.dependencies=s,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ee,n=null,r=null;return function(){return xe(e,n,arguments)||(r=t.apply(null,arguments)),n=arguments,r}}));const Ae=yt(void 0);var Te=Ae;const{Provider:Ce,Consumer:Se}=Ae;var ke=0;function Oe(t,e,n,r,o){var i,a,s={};for(a in e)"ref"==a?i=e[a]:s[a]=e[a];var u={type:t,props:s,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ke,__source:r,__self:o};if("function"==typeof t&&(i=t.defaultProps))for(a in i)void 0===s[a]&&(s[a]=i[a]);return R.vnode&&R.vnode(u),u}function Ie({store:t,children:e}){return Oe(Ce,{value:t,children:e})}function Fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(n),!0).forEach((function(e){Fe(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Be={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function Ue(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Me(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Re(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Re(1));return n(Me)(t,e)}if("function"!=typeof t)throw new Error(Re(2));var o=t,i=e,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function l(){if(u)throw new Error(Re(3));return i}function p(t){if("function"!=typeof t)throw new Error(Re(4));if(u)throw new Error(Re(5));var e=!0;return c(),s.push(t),function(){if(e){if(u)throw new Error(Re(6));e=!1,c();var n=s.indexOf(t);s.splice(n,1),a=null}}}function f(t){if(!Ue(t))throw new Error(Re(7));if(void 0===t.type)throw new Error(Re(8));if(u)throw new Error(Re(9));try{u=!0,i=o(i,t)}finally{u=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}function h(t){if("function"!=typeof t)throw new Error(Re(10));o=t,f({type:Be.REPLACE})}function d(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Re(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Pe]=function(){return this},t}return f({type:Be.INIT}),(r={dispatch:f,subscribe:p,getState:l,replaceReducer:h})[Pe]=d,r}function $e(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}let ze=$e;function He({reducers:t={},initialState:e={},middlewares:n=[]}={}){return Me(function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];"function"==typeof t[o]&&(n[o]=t[o])}var i,a=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Be.INIT}))throw new Error(Re(12));if(void 0===n(void 0,{type:Be.PROBE_UNKNOWN_ACTION()}))throw new Error(Re(13))}))}(n)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],l=t[u],p=c(l,e);if(void 0===p)throw e&&e.type,new Error(Re(14));o[u]=p,r=r||p!==l}return(r=r||a.length!==Object.keys(t).length)?o:t}}(t),e,ze(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Re(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return r=$e.apply(void 0,i)(n.dispatch),je(je({},n),{},{dispatch:r})}}}(...n)))}function qe(){return Lt(Te)}function Ve(){return qe().dispatch}function We(t,e=[]){const n=qe(),[,r]=It((t=>t+1),0),o=jt(),i=Pt(t,e),a=jt(),s=jt(),u=n.getState();return a.current===i&&s.current===u||(s.current=u,o.current=i(s.current),a.current=i),Nt((()=>n.subscribe((()=>{var t;if(n.getState()===s.current)return;const e=null===(t=a.current)||void 0===t?void 0:t.call(a,n.getState());e!==o.current&&(o.current=e,r())}))),[n]),o.current}const Ge=function(t,e,n=[]){return We(Pt((n=>t(n,e)),n),n)};var Ye=n(1238),Ke=n.n(Ye),Je=n(3649),Qe=n.n(Je),Ze=n(1643),Xe=n.n(Ze),tn=n(2366),en=n.n(tn),nn=n(1864),rn=n.n(nn);function on(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function an(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=on(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=on(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const sn=(t,e)=>{let n;return function(...r){const o=this;let i=!1;return clearTimeout(n),n=pe()((()=>{n=null,i||t.apply(o,r),i=!1}),e),e=>{i=!0,e&&t.apply(o,r)}}},un=()=>{var t;const e=[],n=[];return A()(t=document.querySelectorAll('body > *:not([role="dialog"])')).call(t,(t=>{const r=t.getAttribute("aria-hidden");null!==r&&"false"!==r||(e.push(r),n.push(t),t.setAttribute("aria-hidden","true"))})),()=>{A()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}},cn=t=>Math.ceil(t/1e3),ln=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},pn=()=>{const{search:t}=window.location;if(!t)return{};const e=Qe()(t).call(t,Xe()(t).call(t,"?")+1).split("&");return en()(e).call(e,((t,e)=>{const[n,r]=e.split("=");return an(an({},t),{},{[n]:decodeURIComponent(r)})}),{})},fn=t=>{var e;return en()(e=s()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},hn={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},dn={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},vn=t=>t.code?dn[t.code]:hn[t.keyCode],yn=t=>{t&&t.focus()},gn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()},mn=(t,e="")=>{var n;return en()(n=s()(t)).call(n,((n,r)=>{const o=e.length?`${e}.`:"";return"object"==typeof t[r]&&null!==t[r]&&s()(t[r]).length>0?rn()(n,mn(t[r],o+r)):n[o+r]=t[r],n}),{})};function bn(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}const _n="//";function En(t,e,n="/"){return(r,...o)=>e(t+n+r,...o)}function xn(t,e=(t=>({payload:t}))){const n=(...n)=>function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=bn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=bn(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({type:t},e(...n));return n.toString=()=>t.toString(),n}function wn(t,...e){const n=[];A()(e).call(e,(t=>{var e;const r=typeof t;if("string"===r)return n.push([t]);"object"!==r||t instanceof Array||A()(e=s()(t)).call(e,(e=>n.push([e,t[e]])))}));const r=En(t,xn,"/");return E()(n).call(n,(t=>r(...t)))}function Dn(t,e){const n=(...n)=>{const r=e(...n);return r.type=t,r};return n.toString=()=>t,n}function An(t){return{createAction:En(t,xn,_n),createActions:En(t,wn,_n),createThunk:En(t,Dn,_n)}}function Tn(t,e={},n){const r=(t,r)=>{void 0===t&&(t=n);const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}const{createAction:Cn}=An("config"),Sn=Cn("initialize",(t=>({config:t}))),kn=Cn("update",(t=>({config:t})));var On=n(7302),In=n.n(On),Fn=n(7093),Nn=n.n(Fn),jn=n(4473),Rn=n.n(jn);function Pn(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ln(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Pn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Pn(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Bn={info:"info",message:"message",participant:"participant",system:"system"},Un="text",Mn="text",$n="upload",zn={hidden:"hidden",minimized:"minimized",open:"open",initialize:null},Hn="received",qn="read",Vn="typing",Wn="read",Gn="detach_service",Yn="set_translation",Kn="click_cta",Jn="assertive",Qn="polite",Zn={new_topic:"newTopic",new_translation:"newTranslation"},Xn="cobrowsing",tr="uploads",er={ADD_EVENT:"ADD_EVENT",CLEAR_EVENTS:"CLEAR_EVENTS",SET_HISTORY:"SET_HISTORY",SET_EVENTS_READ:"SET_EVENTS_READ",ACK_EVENT:"ACK_EVENT",SET_IS_LOADING:"SET_IS_LOADING",CLEAR_PARTICIPANTS:"CLEAR_PARTICIPANTS",SET_PARTICIPANT:"SET_PARTICIPANT",SET_HEADER_TITLE:"SET_HEADER_TITLE",SET_HEADER_SUB_TITLE:"SET_HEADER_SUB_TITLE",SET_VISIBILITY:"SET_VISIBILITY",RESET_HISTORY_LOADED_FLAG:"RESET_HISTORY_LOADED_FLAG",SET_ACTIVE_SERVICE:"SET_ACTIVE_SERVICE",INIT_IDLE_DETACH_COUNTDOWN:"INIT_IDLE_DETACH_COUNTDOWN",DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:"DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER",STOP_IDLE_DETACH_COUNTDOWN_COUNTER:"STOP_IDLE_DETACH_COUNTDOWN_COUNTER",CLEAR_IDLE_DETACH_COUNTDOWN:"CLEAR_IDLE_DETACH_COUNTDOWN",INIT_RESUME_CONVERSATION_PROMPT:"INIT_RESUME_CONVERSATION_PROMPT",CLEAR_RESUME_CONVERSATION_PROMPT:"CLEAR_RESUME_CONVERSATION_PROMPT",SET_SERVICE_DATA_ITEM:"SET_SERVICE_DATA_ITEM",SET_FEATURES:"SET_FEATURES",SET_FEATURE_ENABLED_STATE:"SET_FEATURE_ENABLED_STATE",CLEAR_FEATURES:"CLEAR_FEATURES",SET_INITIAL_STATE:"SET_INITIAL_STATE",SET_USER_SELECTED_OPTIONS:"SET_USER_SELECTED_OPTIONS",SET_USER_SELECTED_OPTION:"SET_USER_SELECTED_OPTION",SHOW_OPTION:"SHOW_OPTION",HIDE_OPTION:"HIDE_OPTION",SET_SERVICE_ENTRY_METADATA:"SET_SERVICE_ENTRY_METADATA",SET_BLOCK_AUTO_ENTRY_SWITCH:"SET_BLOCK_AUTO_ENTRY_SWITCH",SET_ACTIVE_ENTRY_TYPE:"SET_ACTIVE_ENTRY_TYPE",SET_USER_ENTRY_TYPE:"SET_USER_ENTRY_TYPE",REGISTER_UPLOAD:"REGISTER_UPLOAD",SET_UPLOAD_PROGRESS:"SET_UPLOAD_PROGRESS",SET_UPLOAD_COMPLETE:"SET_UPLOAD_COMPLETE",SET_UPLOAD_ERROR:"SET_UPLOAD_ERROR",CLEAR_UPLOAD:"CLEAR_UPLOAD",CLEAR_ALL_UPLOADS:"CLEAR_ALL_UPLOADS",RESET_UPLOAD_STATE:"RESET_UPLOAD_STATE",RESET_ENTRY_STATE:"RESET_ENTRY_STATE",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},nr="navigate",{ADD_EVENT:rr,CLEAR_EVENTS:or,SET_HISTORY:ir,SET_EVENTS_READ:ar,ACK_EVENT:sr,SET_IS_LOADING:ur,CLEAR_PARTICIPANTS:cr,SET_PARTICIPANT:lr,SET_HEADER_TITLE:pr,SET_HEADER_SUB_TITLE:fr,SET_VISIBILITY:hr,RESET_HISTORY_LOADED_FLAG:dr,SET_ACTIVE_SERVICE:vr,INIT_IDLE_DETACH_COUNTDOWN:yr,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:gr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:mr,CLEAR_IDLE_DETACH_COUNTDOWN:br,INIT_RESUME_CONVERSATION_PROMPT:_r,CLEAR_RESUME_CONVERSATION_PROMPT:Er,SET_SERVICE_DATA_ITEM:xr,SET_FEATURES:wr,SET_FEATURE_ENABLED_STATE:Dr,CLEAR_FEATURES:Ar,SET_INITIAL_STATE:Tr,SET_USER_SELECTED_OPTION:Cr,SET_USER_SELECTED_OPTIONS:Sr,SHOW_OPTION:kr,HIDE_OPTION:Or,SET_BLOCK_AUTO_ENTRY_SWITCH:Ir,SET_USER_ENTRY_TYPE:Fr,SET_ACTIVE_ENTRY_TYPE:Nr,SET_SERVICE_ENTRY_METADATA:jr,REGISTER_UPLOAD:Rr,SET_UPLOAD_PROGRESS:Pr,SET_UPLOAD_COMPLETE:Lr,SET_UPLOAD_ERROR:Br,CLEAR_UPLOAD:Ur,CLEAR_ALL_UPLOADS:Mr,RESET_UPLOAD_STATE:$r,RESET_ENTRY_STATE:zr,SET_SEAMLY_CONTAINER_ELEMENT:Hr}=er,qr=({type:t,payload:e})=>t===Bn.message&&!e.fromClient||t===Bn.info&&e.type===Un,Vr=t=>In()(t).call(t,(({payload:{occurredAt:t}},{payload:{occurredAt:e}})=>t-e)),Wr=(t,e)=>{switch(e.type){case cr:return{participants:{},currentAgent:""};case lr:const{participants:n}=t,{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],u=Ln(Ln({},n),{},{[r]:s?Ln(Ln(Ln(Ln({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return Ln(Ln({},t),{},{participants:u,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},Gr=(t,e)=>{switch(e.type){case pr:return Ln(Ln({},t),{},{title:e.title});case fr:return Ln(Ln({},t),{},{subTitle:e.title});default:return t}},Yr=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return Ln(Ln({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),Ln(Ln({},t),{},{active:a,optionsOverride:Ln(Ln({},t.optionsOverride),{},{[o]:i||{}})})},Kr=({hasResponded:t,previousVisibility:e,requestedVisibility:n,config:r})=>{const{defaults:o,layoutMode:i,hideOnNoUserResponse:a}=r,{visible:s}=o||{};if("window"===i&&a&&n!==zn.open)return t?n||e||zn.open:zn.hidden;const u="inline"===i?zn.open:zn.minimized;return n||e||s||u},Jr="cvco",Qr="2",Zr="seamly-client-participant",Xr=["messages","typing"];function to(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function eo(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=to(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=to(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const no=eo(eo({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}},typing:{timeout:2e3},appContainerClassNames:t=>[`app--layout-${t.layoutMode}`,`namespace--${t.namespace}`]}),{},{hideOnNoUserResponse:!1,showDisclaimer:!1,showFaq:!1,customComponents:{},defaults:{}}),ro=["hideOnNoUserResponse","showDisclaimer","showFaq","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","typing","visible","visibilityCallback"],oo=(t,{config:e})=>{const n=((t,e)=>en()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(e,ro),{messages:r,typing:o}=n,i=N(n,Xr);let a=t;return s()(i).length>0&&(a=eo(eo({},a),i)),r&&(a=eo(eo({},a),{},{messages:eo(eo({},a.messages),r)})),o&&(a=eo(eo({},a),{},{typing:eo(eo({},a.typing),o)})),a};var io=Tn("config",{[Sn]:(t,e)=>oo(t,e),[kn]:(t,e)=>oo(t,e)},no);function ao(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function so(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ao(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ao(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const uo=De((t=>t[String(io)]),(t=>{let e=so({visible:"inline"===(null==t?void 0:t.layoutMode)?zn.open:zn.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=so(so({},e),{},{appContainerClassNames:e.appContainerClassNames(e)})),e}));function co(){return We(uo)}function lo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function po(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=lo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=lo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{createAction:fo}=An("i18n"),ho=fo("init",(t=>({overrides:t}))),vo={translations:mn({"carousel.controls.next":"Next","carousel.controls.previous":"Previous","carousel.slide.label":({index:t,total:e})=>`${t} of ${e}`,"dateTime.srText":({date:t,time:e})=>`Messages starting ${t} at ${e}:`,"dateTime.today":"Today","dateTime.yesterday":"Yesterday","disclaimer.content":"This chat session will be saved to help us improve our service delivery.","disclaimer.title":"Privacy disclaimer","dividerKeys.newTopic":"New topic started.","errors.configError.message":"We are sorry this happened, please retry at a later time.","errors.configError.srText":"A chat configuration error occurred. Our apologies, please retry at a later time.","errors.configError.title":"Chat configuration error.","errors.general.buttonText":"Restart chat","errors.general.message":"Do you want to start a new chat session?","errors.general.srText":"Something went wrong with the chat session. You can restart the chat.","errors.general.title":"Something went wrong","errors.seamlyOffline.message":"There might be a problem with your or our network connection. The chat session should resume as soon the connection is available again.","errors.seamlyOffline.srText":"The chat has connection issues. There might be a problem with your or our network connection. The chat session should resume as soon as the connection is available again.","errors.seamlyOffline.title":"Connection issues","faq.headingText":"Suggested topics","faq.srAvailableText":"Suggested topics are available in the chat.","faq.srUnavailableText":"Suggested topics are no longer available in the chat.","faq.srUpdatedText":"There are new suggested topics in the chat.","fileUpload.cancelButtonText":"Cancel upload","fileUpload.contentHint":t=>`Select a file of maximum ${t}`,"fileUpload.errors.general":"Something went wrong with the upload. Please cancel the upload and try again.","fileUpload.errors.noFile":"Please select a file to upload","fileUpload.errors.tooLarge":"The selected file is too large, please upload a smaller file","fileUpload.errors.unavailable":"Uploading files is no longer possible. Please cancel the upload and try again later.","fileUpload.errors.virusFound":"The selected file is unsafe, please upload a different file.","fileUpload.errors.wrongType":"The selected file type is not supported. Please cancel the upload and upload a different file.","fileUpload.fileUnavailableText":"This download link has expired","fileUpload.labelText":"Select file","fileUpload.selectedText":t=>t||"No file selected","fileUpload.srAvailableText":"File uploads are now available in the chat.","fileUpload.srCompleteText":"Upload complete.","fileUpload.srFileDownloadText":t=>`Download file ${t}.`,"fileUpload.srFileUploadedText":t=>`Uploaded file ${t}.`,"fileUpload.srProgressLabel":t=>`${t} upload progress status`,"fileUpload.srStartedText":"Upload started.","fileUpload.srUnavailableText":"File uploads in the chat are no longer available.","fileUpload.toggleButtonText":"Upload files","fileUpload.uploadButtonText":"Upload file","header.collapseApp":"collapse chat","header.title":"You're talking to","idleDetachWarning.continueButton":"Continue conversation","idleDetachWarning.countdownText":"Your conversation will automatically end in:","idleDetachWarning.countdownTimer":({minutes:t,seconds:e})=>{switch(t){case 1:switch(e){case 1:return"1 minute, 1 second";case 0:return"1 minute";default:return`1 minute, ${e} seconds`}case 0:switch(e){case 1:return"1 second";case 0:default:return`${e} seconds`}default:switch(e){case 1:return`${t} minutes, 1 second`;case 0:return`${t} minutes`;default:return`${t} minutes, ${e} seconds`}}},"idleDetachWarning.countdownTitle":"Are you still there?","idleDetachWarning.detachButton":"End conversation","idleDetachWarning.notifyTransferText":"Your conversation is being ended.","idleDetachWarning.srCountDownStoppedText":"Automatic conversation ending prevented. Welcome back.","info.cobrowsing.cobrowsingEnded":"Screen sharing has ended","info.cobrowsing.cobrowsingStarted":"Screen sharing is now enabled. The agent can see the page you're currently on","info.sendTranscript.accepted":({emailAddress:t})=>`A transcript will be sent to ${t}`,"input.inputLabel":t=>t?`Your message (max. ${t} characters)`:"Your message","input.inputPlaceholder":t=>t?`Your message (max. ${t} characters)`:"Your message","input.sendMessage":"Send","input.srCharacterLimitText":t=>{switch(t){case 1:return"1 character remaining.";case 0:default:return`${t} characters remaining.`}},"lightbox.closeLabel":"Close","lightbox.heading":"Enlarged chat image","message.choicePrompts.cancelChooseAgain":"Cancel choice change","message.choicePrompts.chooseAgain":"Change your choice","message.image.srTextEnlargeButtonLabel":({description:t})=>`Enlarge ${t}`,"message.srNewEventCount":({newCount:t})=>{switch(t){case 1:return"There is 1 new chat message.";case 0:default:return`There are ${t} new chat messages.`}},"message.srTextUnreadCount":({unreadCount:t})=>{switch(t){case 1:return"There is 1 new unread chat message.";case 0:default:return`There are ${t} new unread chat messages.`}},"options.cancelButtonText":"Cancel","options.cobrowsing.cobrowsingActiveText":"Sharing screen","options.cobrowsing.cobrowsingUnavailable":"Screen sharing is currently unavailable.","options.cobrowsing.description":"This allows the agent to see the page you're currently on. Nothing else is shared.","options.cobrowsing.labelTurnOff":"Turn screen sharing off","options.cobrowsing.labelTurnOn":"Turn screen sharing on","options.cobrowsing.menuTitle":"Screen sharing","options.cobrowsing.srCobrowsingAvailable":"Screen sharing is now available.","options.cobrowsing.srStartedCobrowsingText":"Screen sharing has been started.","options.cobrowsing.srStopCobrowsingText":"Stop screen sharing","options.cobrowsing.srStoppedCobrowsingText":"Screen sharing has been stopped.","options.cobrowsing.stopCobrowsingText":"Stop","options.cobrowsing.title":"Share my screen","options.openButtonText":"Options","options.saveButtonText":"Save","options.sendTranscript.description":"Enter the email address you would like to send the chat transcript to.","options.sendTranscript.invalidEmailText":"Please enter a valid email address","options.sendTranscript.label":"Email address","options.sendTranscript.menuTitle":"Send transcript","options.sendTranscript.noEmailText":"Please enter an email address","options.sendTranscript.sendButtonText":"Send","options.sendTranscript.title":"Send chat transcript","options.unavailableText":"unavailable","resumeConversationPrompt.continueButton":"Resume conversation","resumeConversationPrompt.detachButton":"Ask new question","resumeConversationPrompt.title":t=>`Would you like to continue the conversation with ${t}?`,skiplinkText:"Skip to chat input","toggleButton.resumeTitle":"Resume chat with","toggleButton.subtitle":"Start a chat with us","toggleButton.title":"Have a question?","translations.divider.restartButtonText":"Start again","translations.divider.startText":t=>`Translating to ${t}`,"translations.divider.stopText":t=>`Translating to ${t} ended`,"translations.settings.cancelButtonText":"Cancel","translations.settings.currentTranslationLabel":"Currently translating to","translations.settings.defaultOptionLabel":"Choose language","translations.settings.description":"Automatic translations might contain errors.","translations.settings.endButtonText":"Stop translating","translations.settings.inputLabel":"Translate chat to","translations.settings.noLocaleText":"Choose a language to translate to","translations.settings.openButtonText":"Translation","translations.settings.startButtonText":"Start translating","translations.settings.title":"Translation","translations.status.label":t=>`Translating to ${t}`,"translations.status.srStopText":"Stop translating","translations.status.stopText":"Stop","translations.toggle.hideButtonText":"Show original","translations.toggle.showButtonText":"Show translation","window.srModalLayoutLabel":"Chat window","window.srTexts.onClose":"The chat is closed.","window.srTexts.onHistoryLoad":"Chat history has been loaded.","window.srTexts.onLoad":"Chat is available on this page.","window.srTexts.onOpen":"The chat is opened."}),overrides:{}},yo=Tn("i18n",{[ho]:(t,{overrides:e})=>po(po({},t),{},{overrides:e?mn(e):void 0})},vo),go=t=>t[String(yo)],mo=De(go,(t=>t.translations)),bo=De(go,(t=>t.overrides||{})),_o=De(mo,bo,((t,e)=>{const n=s()(e);if(0===n.length)return t;const r=s()(t);return A()(r).call(r,(t=>{-1===Xe()(n).call(n,t)&&console.error("Seamly: Missing translation key:",t)})),po(po({},t),e)}));function Eo(){const t=We(_o);return{t:Pt(((e,n={})=>{const r=t[e];return"function"==typeof r?r(n):r}),[t])}}function xo(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function wo(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=xo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=xo(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Do=t=>t.state,Ao=()=>We(Do),To=De(Do,uo,(({events:t},e)=>{var n;const{enabled:r,threshold:o}=(null==e||null===(n=e.messages)||void 0===n?void 0:n.timeIndicator)??{};if(!r)return t;const i=[];let a=null;return A()(t).call(t,((t,e)=>{if(0===e)i.push(wo(wo({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&cn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(wo(wo({},t),{},{timeIndicator:e}))}a=t})),i})),Co=()=>We(To,[]),So=()=>Ao().headerTitles,ko=()=>Ao().unreadEvents,Oo=()=>Ao().skiplinkTargetId,Io=De(To,(t=>{var e;const n=w()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),Fo=()=>{const{participants:t,currentAgent:e}=Ao().participantInfo;return e?t[e]:null},No=()=>{const{layoutMode:t}=co();return{isInline:"inline"===t,isModal:"modal"===t,isWindow:"window"===t,isResolving:!t}};var jo=Ve;const{SET_SEAMLY_CONTAINER_ELEMENT:Ro}=er,Po=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;yn(e)}))}))},Lo=()=>{const{seamlyContainerElement:t}=Ao(),e=jo();return[t,Pt((t=>{e({type:Ro,element:t})}),[e])]},Bo=t=>Pt((()=>{Po(t)}),[t]),Uo=()=>{const t=Oo();return Bo(t)},Mo=()=>co().appContainerClassNames,$o=t=>{const{fromClient:e}=t.payload,n=["message"];return"info"===t.type?n.push("message--source-info"):e?n.push("message--source-user"):n.push("message--source-agent"),n},zo=()=>{const{cobrowsingContainerId:t}=Ao();return{id:t,focusContainer:Bo(t)}};function Ho(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function qo(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ho(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ho(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{SET_USER_SELECTED_OPTION:Vo,SET_USER_SELECTED_OPTIONS:Wo,SHOW_OPTION:Go,HIDE_OPTION:Yo}=er,Ko=()=>{var t,e;const{t:n}=Eo(),{options:r}=Ao(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:u}=r,{cobrowsing:c,sendTranscript:l}=u,p={cobrowsing:c,sendTranscript:l},f=E()(t=w()(e=s()(p)).call(e,(t=>p[t]))).call(t,(t=>({name:t,title:n(`options.${t}.menuTitle`),available:p[t].enabled}))),h=c||l,d=jo(),{get:v,set:y}=ge();return{allowOptionSelection:h,userSelectedOptions:a,features:u,menuOptions:f,initUserSelectedOptions:Pt((()=>{const t=v("options")||{};d({type:Wo,options:t})}),[v,d]),setUserSelectedOptions:Pt((t=>{d({type:Wo,options:t}),y("options",t)}),[y,d]),setUserSelectedOption:Pt(((t,e)=>{const n=v("options")||{};y("options",qo(qo({},n),{},{[t]:e})),d({type:Vo,option:t,value:e})}),[d,v,y]),showOption:t=>{d({type:Go,optionName:t})},hideOption:()=>{d({type:Yo})},panelActive:o,optionActive:i}},Jo=()=>{const{optionsButtonId:t}=Ao();return{id:t,focusButton:Bo(t)}};var Qo=n(62),Zo=n.n(Qo),Xo=yt({});function ti(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ei(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ti(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ti(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{CLEAR_ALL_UPLOADS:ni}=er,ri=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=Ao(),{allowedMimeTypes:o,maxSize:i}=n.upload||{},{enabled:a,enabledFromEntry:s}=r||{},{allowedMimeTypes:u,maxSize:c}=ei(ei(ei({},e.upload||{allowedMimeTypes:[],maxSize:0}),o?{allowedMimeTypes:o}:{}),i?{maxSize:i}:{});return{showFileUpload:t,accountAllowsUploads:!!r,serviceAllowsUploads:s||a,allowedMimeTypes:u,maxSize:c}},oi=()=>{const{currentUploads:t}=Ao(),e=jo(),n=Lt(Xo);return{uploadFile:Pt((t=>{n(t)}),[n]),clearUploads:Pt((()=>{e({type:ni})}),[e]),currentUploads:t,isUploading:k()(t).call(t,(t=>t.uploading)),isComplete:Zo()(t).call(t,(t=>t.complete))}};var ii=n(1128),ai=n.n(ii),si=n(5843),ui=n.n(si),ci=n(3476),li=n.n(ci);function pi(){var t;return"_"+(Number(Qe()(t=String(Math.random())).call(t,2))+ai()()+Math.round(performance.now())).toString(36)}const fi=()=>{const[t]=Ot((()=>pi()));return t},hi=t=>{const e=jt();e.current=t;const n="function"==typeof t;return Rt((()=>n?(...t)=>e.current(...t):void 0),[n])},{createAction:di}=An("interrupt"),vi=di("set",(t=>({error:t}))),yi=di("clear");function gi(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function mi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=gi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=gi(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const bi={error:void 0};var _i=Tn("interrupt",{[vi]:(t,{error:e})=>mi(mi({},t),{},{error:e}),[yi]:()=>bi},bi);const Ei=De((t=>t[String(_i)]),(({error:t})=>t));function xi(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=xi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=xi(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Di(){const{t:t}=Eo(),e=We(Ei);return{hasInterrupt:Boolean(e),meta:Rt((()=>{if(!e)return{};const{langKey:n,action:r}=e,o=t(`${n}.title`),i=t(`${n}.message`),a=t(`${n}.srText`),s=t(`${n}.buttonText`);return wi(wi(wi(wi({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{},{originalError:e})}),[t,e]),error:e}}class Ai extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Ai),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class Ti extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Ti),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class Ci extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Ci),this.name="SeamlySessionExpiredError",this.action="reset"}}class Si extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Si),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class ki extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,ki),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}const Oi=[Ai,Ti,Ci,Si,ki];function Ii(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ii(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ii(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{ADD_EVENT:Ni,CLEAR_EVENTS:ji,SET_IS_LOADING:Ri,CLEAR_PARTICIPANTS:Pi,SET_HEADER_SUB_TITLE:Li,SET_INITIAL_STATE:Bi,CLEAR_FEATURES:Ui,SET_FEATURES:Mi,RESET_UPLOAD_STATE:$i,RESET_ENTRY_STATE:zi}=er;var Hi=()=>{const t=ye(),e=co(),n=jo(),r=Lt(ve),o=_e(),i=be(),{visible:a}=Ao(),s=ko(),u=Pt(((...t)=>{r.emit(...t)}),[r]),c=hi((()=>{t.sendContext(e.context||{}),u("ui.beforeStart",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:s}),t.send("start"),u("ui.start",{visibility:a,hasConversation:i,hasResponded:o,unreadMessageCount:s})})),l=Pt((async()=>{n({type:ji}),n(yi()),n({type:Ri,isLoading:!0}),n({type:Pi}),n({type:$i}),n({type:zi}),n({type:Ui});const{agentName:r}=e.defaults||{};n({type:Li,title:r||""});try{const{accountConfig:e={},initialState:r={}}=await t.reset(),{features:o}=e||{};n({type:Mi,features:o}),n({type:Bi,initialState:r})}catch(t){n(vi(t))}}),[t,n,e]),p=Pt((t=>({type:t,id:pi(),transactionId:pi(),participant:Zr,fromClient:!0,occurredAt:1e3*ai()(),meta:{}})),[]),f=Pt((t=>Fi(Fi({},p("text")),{},{body:{text:t}})),[p]),h=Pt((({body:e,config:r={}})=>{if(""===ui()(e).call(e))return;const o=Fi(Fi({},f(e)),r),i=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;"),a=Fi(Fi({},o),{},{body:{text:i}});t.send("message",o),u("message",o),n({type:Ni,event:{type:"message",payload:a}})}),[t,n,u,f]),d=Pt((t=>{n({type:Ni,event:{type:"message",payload:f(t)}})}),[n,f]),v=Pt(((t,e,r,o,i,a,s)=>{n({type:Ni,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:Zr,fromClient:!0,occurredAt:r,meta:{},body:{contentType:o,filename:i,filesize:a,url:s}}}})}),[n]),y=Pt((t=>{const e={body:{subtype:t,type:"divider"},fromClient:!1,fromHistory:!0,id:pi(),transactionId:pi(),type:"divider"};n({type:Ni,event:{type:"info",payload:e}})}),[n]),g=Pt((({type:e,subtype:n})=>{const r={type:e,subtype:n,id:pi(),transactionId:pi(),participant:Zr,fromClient:!0};t.send("info",r)}),[t]),m=Pt((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==Vn&&n!==Wn&&u(`action.${n}`,e)}),[t,u]),b=Pt((e=>{t.sendContext(e)}),[t]);return{connect:Pt((()=>t.connected?li().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&n({type:Bi,initialState:t})})).catch((t=>{n(vi(t))}))),[t,n]),start:c,sendMessage:h,sendInfo:g,sendAction:m,sendContext:b,reset:l,emitEvent:u,addMessageBubble:d,addUploadBubble:v,addDivider:y,apiConfigReady:t.configReady}};const qi=yt(null),Vi=()=>{const t=Lt(qi);return{sendPolite:Pt((e=>{t({ariaLive:Qn,messageText:e})}),[t]),sendAssertive:Pt((e=>{t({ariaLive:Jn,messageText:e})}),[t])}};var Wi=yt(null),Gi=()=>Lt(Wi),Yi=n(1581),Ki=n.n(Yi);function Ji(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}const{SET_BLOCK_AUTO_ENTRY_SWITCH:Qi,SET_ACTIVE_ENTRY_TYPE:Zi,SET_USER_ENTRY_TYPE:Xi}=er,ta=()=>{const{default:t,active:e,userSelected:n,options:r}=Ao().entryMeta,o=jo(),i=n||e||t,a=r[i]||{},s=Pt((t=>{o({type:Qi,value:t})}),[o]),u=Pt((t=>{o({type:Zi,entryType:t})}),[o]),c=Pt((t=>{o({type:Xi,entryType:t})}),[o]),l=Pt((()=>{n?c(null):u(t)}),[n,t,c,u]);return{activeEntry:i,activeEntryOptions:a,setActiveEntryType:u,setUserEntryType:c,cancelEntrySelection:l,setBlockAutoEntrySwitch:s}};function ea(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function na(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ea(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ea(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{SET_VISIBILITY:ra}=er;var oa=()=>{const t=co(),{layoutMode:e,visibilityCallback:n}=t,{visible:r}=Ao(),{emitEvent:o}=Hi(),i=jo(),[a,s]=(()=>{const{layoutMode:t}=co(),e="visibility",{get:n,set:r}=ge();let o={};const i=n?n(e):{};i&&(o=i);const a=Pt((o=>{const i=n?n(e):{};r(e,na(na({},i),{},{[t]:o}))}),[r,n,t]);return[t?o[t]:null,r&&t?a:null]})(),u=_e(),c=be(),l=ko(),p=!!r&&r!==zn.hidden,f=!(!r||!e)&&(r===zn.open||"inline"===e&&r!==zn.hidden),h=Pt((e=>{var p;const f=(n||Kr)({hasConversation:c,hasResponded:u,previousVisibility:a||null,requestedVisibility:e,config:t});he()(p=[zn.open,zn.minimized,zn.hidden]).call(p,f)?f!==r&&(s&&s(f),e&&o("ui.visible",f,{visibility:f,hasConversation:c,hasResponded:u,unreadMessageCount:l}),i({type:ra,visible:f})):console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')}),[r,o,i,c,u,a,n,t,s,l]);return{isVisible:p,isOpen:f,visible:r,setVisibility:h}};const{SET_IS_LOADING:ia}=er;var aa=()=>{const{t:t}=Eo(),{isOpen:e,isVisible:n,visible:r,setVisibility:o}=oa(),i=jo(),a=Co(),s=jt(null),{start:u,connect:c,apiConfigReady:l}=Hi(),p=be(),f=jt(null),h=jt(null),{sendAssertive:d}=Vi(),v=jt(!1),y=a.length>0;return Ft((()=>{n&&pe()((()=>{d(t("window.srTexts.onLoad"))}),500)}),[n,d,t]),Ft((()=>{if(n!==h.current)return f.current=e,void(h.current=n);null!==f.current&&d(t(e?"window.srTexts.onOpen":"window.srTexts.onClose")),f.current=e,h.current=n}),[e,n,d,t]),Ft((()=>{}),[r,d]),Ft((()=>{s.current=pe()((()=>{i({type:ia,isLoading:!0})}),500)}),[i]),Ft((()=>{y&&(clearTimeout(s.current),i({type:ia,isLoading:!1}))}),[y,i]),Ft((()=>{p&&l||(v.current=!1)}),[p,l]),Ft((()=>{(e||p)&&!v.current&&l&&(p&&(clearTimeout(s.current),i({type:ia,isLoading:!1})),c().then((()=>{u()})),v.current=!0)}),[e,p,l,u,c,i]),{openChat:()=>{o(zn.open)},closeChat:()=>{o(zn.minimized)}}};function sa(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ua(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=sa(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=sa(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:ca,INIT_IDLE_DETACH_COUNTDOWN:la,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:pa,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:fa}=er;var ha=()=>{const t=jo(),{idleDetachCountdown:e}=Ao(),{isOpen:n}=oa(),r=jt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=Hi(),{t:a}=Eo(),{sendAssertive:s,sendPolite:u}=Vi(),c=Pt((t=>{const{isOpen:e}=r.current;e&&s(t)}),[s]),l=Pt((t=>{const{isOpen:e}=r.current;e&&u(t)}),[u]),p=Pt((e=>{const n=(t=>Math.ceil(t/1e3))(e),r=ln(n);t({type:la,delaySeconds:n,delayTime:r}),o("idleTimer.start"),c(`${a("idleDetachWarning.countdownTitle")} ${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",r)}`)}),[t,o,c,a]),f=Pt(((e,n)=>{const{hasCountdown:s,wasStopped:u}=r.current;s&&(e||(n||i({type:Gn}),c(a("idleDetachWarning.notifyTransferText"))),u||o("idleTimer.stop"),t({type:ca}))}),[t,i,o,c,a]),h=Pt((()=>{const{remaining:e}=r.current;if(e<=0)return;const n=e-1;n%10==0&&c(`${a("idleDetachWarning.countdownText")} ${a("idleDetachWarning.countdownTimer",ln(n))}`),t({type:pa})}),[t,c,a]),d=Pt((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:fa}),n&&(o("idleTimer.stop"),l(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,l,a]);return ua(ua({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:h,stopCountdown:d})};const{CLEAR_RESUME_CONVERSATION_PROMPT:da}=er;var va=()=>{const t=jo(),e=Ao().resumeConversationPrompt,{sendAction:n}=Hi(),{t:r}=Eo(),{sendAssertive:o}=Vi();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:da})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:Gn}),t({type:da})}}};const ya=(t,e)=>{const n=ye();Ft((()=>{var r;n.stream&&(e?w()(r=n.stream()).call(r,e).subscribe({next:t}):n.stream().subscribe({next:t}))}),[n,t,e])};var ga=n(6423),ma=n.n(ga);const ba=(...t)=>{var e,n,r,o,i,a;return E()(e=w()(n=ma()(r=E()(o=w()(i=E()(a=ma()(t).call(t)).call(a,(t=>{var e;return"object"==typeof t?E()(e=z()(t)).call(e,(([t,e])=>e?t:"")).join(" "):t}))).call(i,(t=>"string"==typeof t))).call(o,(t=>t.split(" ")))).call(r)).call(n,(t=>t.length))).call(e,(t=>[Jr,t].join("-"))).join(" ")},_a={visible:ba("transition--visible"),in:ba("transition--in"),visuallyHidden:ba("visually-hidden")},Ea=C()(_a),xa="notRendered",wa="rendered",Da="visuallyHidden";var Aa=({children:t,isActive:e,timeout:n,transitionStartState:r="notRendered",onInTransitionComplete:o,onOutTransitionComplete:i})=>{var a;const s=jt(!1),u=n?ce()(n,10):300,c=hi(o),l=hi(i),p=r===Da,[f,h]=Ot((()=>p?[_a.visuallyHidden]:[])),d="notRendered"!==r||f.length>0;return Ft((()=>{let t=null,n=null;return s.current&&!e&&(h([_a.visible]),t=pe()((()=>{h([...p?[_a.visuallyHidden]:[]]),l&&(n=requestAnimationFrame((()=>{l()})))}),u)),!s.current&&e&&(h([_a.visible]),n=requestAnimationFrame((()=>{n=requestAnimationFrame((()=>{h([_a.visible,_a.in]),c&&(t=pe()((()=>{c()}),u))}))}))),s.current=e,()=>{clearTimeout(t),cancelAnimationFrame(n)}}),[e,p,u,c,l]),d&&E()(a=rt(t)).call(a,(t=>{var e;const{className:n=""}=t.props;return function(t,e,n){var r,o,i,a=W({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:a[i]=e[i];return arguments.length>2&&(a.children=arguments.length>3?j.call(arguments,2):n),Y(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...w()(e=n.split(" ")).call(e,(t=>!he()(Ea).call(Ea,t))),...f].join(" ")})}))},Ta=({children:t})=>{const{t:e}=Eo(),{isModal:n}=No(),{isOpen:r,setVisibility:o}=oa(),i=jt(null),a=jt(null);return Ft((()=>{if(!n)return null;let t;return r&&(t=un(),i.current.parentElement.removeAttribute("aria-hidden")),()=>{t&&(t(),t=null)}}),[r,n]),n?Oe(Aa,{isActive:r,transitionStartState:wa,onInTransitionComplete:()=>{a.current=se(i.current),a.current.activate()},onOutTransitionComplete:()=>{a.current&&(a.current.deactivate(),a.current=null)},children:Oe("div",{className:ba("modal-overlay"),role:"dialog","aria-modal":"true","aria-label":e("window.srModalLayoutLabel"),onClick:()=>{o(zn.minimized)},ref:i,children:t})}):t};const Ca={send32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M6.714,14.985l17.837-7.906c0.681-0.302,1.414,0.301,1.25,1.027L22.273,23.59\tc-0.13,0.566-0.751,0.865-1.275,0.613l-3.623-1.752l-2.334,2.287c-0.572,0.562-1.538,0.156-1.538-0.645V21.01\tc0-0.217,0.078-0.43,0.222-0.594l7.676-8.841l-10.414,7.472l-4.351-2.445C5.987,16.236,6.033,15.287,6.714,14.985L6.714,14.985z"/></svg>',balloon32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,10.824v10.375c0,1.104-0.896,2-2,2h-4.694l-4.931,3.625v-3.625H10c-1.104,0-2-0.896-2-2V10.824\tc0-1.104,0.896-2,2-2h12C23.104,8.824,24,9.719,24,10.824z"/></svg>',newTopic32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,8.593l2.407,4.573l5.093,0.876l-3.604,3.702l0.74,5.115L16,20.574l-4.634,2.285l0.739-5.115L8.5,14.042\tl5.094-0.876L16,8.593z"/></svg>',newTranslation16:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 16 16"><path fill="#4A48C1" d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M14.1,7.1h-1.4c-0.1-1.5-0.4-2.9-1-4\tC13,4,13.9,5.4,14.1,7.1z M7.1,2.1v5H5C5.2,4.7,6.1,2.9,7.1,2.1z M7.1,8.9v5c-1-0.7-1.9-2.5-2.1-5H7.1z M8.9,13.9v-5H11\tC10.8,11.3,9.9,13.2,8.9,13.9z M8.9,7.1v-5c1,0.7,1.9,2.5,2.1,5H8.9z M4.2,3.1c-0.5,1.1-0.9,2.5-1,4H1.9C2.1,5.4,3,4,4.2,3.1z M1.9,8.9h1.4c0.1,1.5,0.4,2.9,1,4C3,12,2.1,10.5,1.9,8.9z M11.8,12.9c0.5-1.1,0.9-2.5,1-4h1.4C13.9,10.5,13,12,11.8,12.9z"/></svg>',newTranslation32:'<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 32 32"><path fill="#4A48C1" d="M16,7c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4.1,9-9S20.9,7,16,7z M22.9,15h-1.6c-0.1-1.7-0.5-3.3-1.1-4.5\tC21.6,11.5,22.6,13.1,22.9,15z M15,9.4V15h-2.3C12.9,12.3,13.9,10.2,15,9.4z M15,17v5.6c-1.1-0.8-2.1-2.9-2.3-5.6H15z M17,22.6V17\th2.3C19.1,19.8,18.1,21.8,17,22.6z M17,15V9.4c1.1,0.8,2.1,2.9,2.3,5.6H17z M11.8,10.4c-0.6,1.3-1,2.8-1.1,4.5H9.1\tC9.4,13.1,10.4,11.5,11.8,10.4z M9.1,17h1.6c0.1,1.7,0.5,3.3,1.1,4.5C10.4,20.5,9.4,18.9,9.1,17z M20.2,21.5c0.6-1.3,1-2.8,1.1-4.5\th1.6C22.6,18.8,21.6,20.5,20.2,21.5z"/></svg>',avatar32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#003A5D" d="M0,4.717C0,2.112,2.112,0,4.717,0h22.566C29.888,0,32,2.112,32,4.717v22.566C32,29.887,29.888,32,27.283,32 H4.717C2.113,32,0,29.887,0,27.283V4.717z"/><path fill="#FFF" d="M10.103,14.901c-1.107,0-2.004-0.897-2.004-2.004s0.897-2.005,2.004-2.005c1.107,0,2.005,0.897,2.005,2.005 C12.108,14.004,11.211,14.901,10.103,14.901z M16,14.901c1.107,0,2.005-0.897,2.005-2.004S17.108,10.892,16,10.892 c-1.108,0-2.005,0.897-2.005,2.005C13.995,14.004,14.892,14.901,16,14.901z M21.896,10.892c-1.106,0-2.004,0.897-2.004,2.005 c0,1.107,0.896,2.004,2.004,2.004c1.109,0,2.005-0.897,2.005-2.004C23.901,11.789,23.005,10.892,21.896,10.892z M21.408,18.207 H10.783C11.83,23.973,20.361,23.973,21.408,18.207z"/></svg>',chevronDown8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M-0.001,2.876c0-0.247,0.091-0.494,0.273-0.688c0.38-0.401,1.013-0.418,1.414-0.039l1.938,1.834\tc0.199,0.188,0.547,0.188,0.746,0L6.31,2.15c0.401-0.379,1.034-0.362,1.414,0.04c0.379,0.401,0.361,1.034-0.04,1.414L5.745,5.437\tC4.782,6.35,3.213,6.35,2.249,5.436L0.311,3.603C0.103,3.406-0.001,3.142-0.001,2.876z"/></svg>',chevronDown32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M16,20.425c-0.782,0-1.563-0.291-2.159-0.874l-6.541-6.408c-0.395-0.387-0.401-1.02-0.015-1.414\tc0.387-0.394,1.021-0.4,1.414-0.015l6.541,6.408c0.42,0.409,1.102,0.409,1.52-0.001l6.541-6.407c0.396-0.386,1.028-0.38,1.414,0.015\tc0.387,0.395,0.381,1.027-0.014,1.414l-6.541,6.407C17.563,20.133,16.782,20.425,16,20.425z"/></svg>',chevronRight8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M2.875,7.998c-0.247,0-0.494-0.091-0.688-0.273c-0.401-0.38-0.418-1.013-0.039-1.414l1.834-1.938\tc0.188-0.199,0.188-0.547,0-0.746l-1.835-1.94c-0.379-0.401-0.362-1.034,0.04-1.414s1.034-0.361,1.414,0.04l1.834,1.939\tc0.913,0.963,0.913,2.532-0.001,3.496L3.601,7.686C3.405,7.894,3.14,7.998,2.875,7.998z"/></svg>',chevronRight16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M6.5,13c-0.247,0-0.494-0.091-0.687-0.273c-0.401-0.38-0.419-1.013-0.04-1.414L8.22,8.727\tc0.373-0.394,0.373-1.06,0-1.454L5.773,4.687c-0.379-0.401-0.362-1.034,0.04-1.414c0.4-0.378,1.034-0.362,1.414,0.04l2.446,2.586\tc1.096,1.159,1.096,3.043,0,4.203l-2.446,2.586C7.03,12.896,6.765,13,6.5,13z"/></svg>',close8:'<svg xmlns="http://www.w3.org/2000/svg" width="8px" height="8px" x="0px" y="0px" viewBox="0 0 8 8"><defs/><path fill="#4A48C1" d="M7.705,7.729C7.511,7.923,7.255,8.02,7,8.02c-0.257,0-0.514-0.099-0.709-0.295L4,5.423L1.709,7.725\tC1.513,7.921,1.257,8.02,1,8.02c-0.255,0-0.51-0.097-0.706-0.291c-0.391-0.39-0.393-1.022-0.003-1.414l2.298-2.309l-2.27-2.28\tC-0.07,1.334-0.068,0.701,0.323,0.311c0.392-0.389,1.024-0.387,1.415,0.003L4,2.587l2.263-2.274C6.653-0.077,7.287-0.079,7.677,0.31\tC8.068,0.7,8.07,1.333,7.681,1.725l-2.27,2.281l2.298,2.309C8.099,6.705,8.097,7.339,7.705,7.729z"/></svg>',close16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#4A48C1" d="M12.709,11.295L9.411,7.982l3.262-3.276c0.39-0.392,0.388-1.024-0.004-1.414\tc-0.39-0.39-1.023-0.388-1.414,0.003L8,6.564L4.746,3.295C4.357,2.904,3.724,2.903,3.332,3.292C2.94,3.682,2.939,4.315,3.329,4.707\tl3.261,3.275l-3.298,3.313c-0.39,0.391-0.388,1.024,0.003,1.414C3.49,12.903,3.745,13,4,13c0.257,0,0.513-0.099,0.708-0.295L8,9.399\tl3.291,3.306C11.486,12.901,11.743,13,12,13c0.255,0,0.511-0.097,0.705-0.291C13.097,12.319,13.099,11.686,12.709,11.295z"/></svg>',enlarge32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M24,9v6.5c0,0.552-0.447,1-1,1s-1-0.448-1-1v-4.086L11.414,22H15.5c0.552,0,1,0.447,1,1s-0.448,1-1,1H9\tc-0.13,0-0.26-0.026-0.382-0.077c-0.245-0.102-0.439-0.296-0.541-0.541C8.026,23.26,8,23.13,8,23v-6.5c0-0.552,0.448-1,1-1\ts1,0.448,1,1v4.085L20.586,10H16.5c-0.552,0-1-0.448-1-1s0.448-1,1-1H23c0.13,0,0.26,0.026,0.382,0.077\tc0.245,0.102,0.439,0.296,0.541,0.541C23.974,8.74,24,8.87,24,9z"/></svg>',options32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M26.1,21.383c0.334-0.625,0.602-1.279,0.812-1.949L32,18.609V13.51l-5.058-0.846\tc-0.208-0.67-0.468-1.325-0.795-1.956l3.009-4.145l-3.604-3.634L21.38,5.903c-0.626-0.333-1.276-0.602-1.948-0.81L18.609,0\tl-5.098,0.001l-0.847,5.061c-0.669,0.203-1.326,0.465-1.957,0.794L6.562,2.847L2.929,6.449l2.973,4.171\tC5.569,11.247,5.3,11.9,5.091,12.569L0,13.373v5.099l5.06,0.866c0.204,0.669,0.467,1.324,0.796,1.955l-3.009,4.146l3.601,3.635\tl4.171-2.975c0.627,0.335,1.282,0.603,1.951,0.811L13.372,32h5.118l0.849-5.057c0.668-0.207,1.323-0.469,1.953-0.795l4.144,3.01\tl3.639-3.604L26.1,21.383z M19.01,19.035c-1.675,1.663-4.381,1.652-6.041-0.025c-1.662-1.675-1.649-4.381,0.024-6.042\tc1.676-1.661,4.382-1.648,6.043,0.025C20.699,14.67,20.686,17.377,19.01,19.035z"/></svg>',file32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="none" stroke="#4A48C1" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="M18.132,11.784v10.039c0,1.15-0.915,2.079-2.048,2.079l0,0c-1.133,0-2.048-0.929-2.048-2.079V8.3c0-2.099,1.675-3.8,3.743-3.8l0,0\tc2.066,0,3.741,1.701,3.741,3.8v13.596c0,3.093-2.475,5.604-5.52,5.604l0,0c-3.048,0-5.519-2.511-5.519-5.604V9.604"/></svg>',upload32:'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" x="0px" y="0px" viewBox="0 0 32 32"><defs/><path fill="#4A48C1" d="M9.488,13.481c-0.391-0.391-0.391-1.023,0-1.414l5.805-5.805c0.026-0.026,0.06-0.036,0.088-0.058\tc0.073-0.06,0.146-0.119,0.235-0.156c0.246-0.103,0.522-0.103,0.769,0c0.093,0.039,0.171,0.101,0.249,0.165\tc0.023,0.02,0.053,0.027,0.074,0.049l5.805,5.805c0.391,0.391,0.391,1.023,0,1.414c-0.195,0.195-0.451,0.293-0.707,0.293\ts-0.512-0.098-0.707-0.293L17,9.383V20.33c0,0.553-0.447,1-1,1c-0.552,0-1-0.447-1-1V9.383l-4.098,4.098\tC10.512,13.872,9.879,13.872,9.488,13.481z M22.819,24.031H9.181c-0.552,0-1,0.447-1,1s0.448,1,1,1h13.639c0.553,0,1-0.447,1-1\tS23.372,24.031,22.819,24.031z"/></svg>',download16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#FFF" d="M3.175,7.726c-0.413-0.367-0.45-0.999-0.083-1.412c0.367-0.413,0.999-0.45,1.412-0.083L7,8.45V1.5\tc0-0.552,0.448-1,1-1c0.553,0,1,0.448,1,1v6.95l2.496-2.219c0.412-0.367,1.044-0.331,1.411,0.083\tc0.367,0.413,0.33,1.045-0.083,1.412l-4.16,3.698c-0.047,0.041-0.103,0.062-0.154,0.094c-0.047,0.028-0.089,0.064-0.141,0.085\tC8.25,11.649,8.125,11.677,8,11.677c-0.126,0-0.25-0.027-0.369-0.074c-0.05-0.021-0.09-0.055-0.136-0.083\tc-0.053-0.031-0.111-0.053-0.159-0.096L3.175,7.726z M12.018,13.5H3.983c-0.552,0-1,0.447-1,1s0.448,1,1,1h8.035\tc0.553,0,1-0.447,1-1S12.57,13.5,12.018,13.5z"/></svg>',error16:'<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16"><defs/><path fill="#ad001f" d="M15.744,13.104L9.097,1.47c-0.604-1.055-1.59-1.055-2.193,0L0.256,13.104\tc-0.604,1.056-0.102,1.919,1.113,1.919H14.63C15.847,15.022,16.348,14.159,15.744,13.104z M7,5.045c0-0.552,0.448-1,1-1s1,0.448,1,1\tv3.656c0,0.552-0.448,1-1,1s-1-0.448-1-1V5.045z M8,13.212c-0.748,0-1.354-0.607-1.354-1.354c0-0.748,0.606-1.354,1.354-1.354\ts1.354,0.606,1.354,1.354C9.354,12.604,8.748,13.212,8,13.212z"/></svg>',arrowLeft16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M13.6,8c0,0.6-0.4,1-1,1h-7l2.2,2.5c0.4,0.4,0.3,1-0.1,1.4c-0.2,0.2-0.4,0.2-0.7,0.2c-0.3,0-0.6-0.1-0.8-0.3\n\tL2.6,8.6c0,0-0.1-0.1-0.1-0.2c0,0-0.1-0.1-0.1-0.1c0-0.1-0.1-0.2-0.1-0.3c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.3,0.1-0.4\n\tc0,0,0.1-0.1,0.1-0.1c0-0.1,0.1-0.1,0.1-0.2l3.7-4.1c0.4-0.4,1-0.4,1.4-0.1c0.4,0.4,0.4,1,0.1,1.4L5.6,7h7C13.2,7,13.6,7.4,13.6,8z"\n\t/>\n</svg>\n',arrowRight16:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n\t viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">\n<path fill="#5053A4" d="M2.4,8.1c0-0.6,0.4-1,1-1h7L8.1,4.5c-0.4-0.4-0.3-1,0.1-1.4c0.2-0.2,0.4-0.2,0.7-0.2c0.3,0,0.6,0.1,0.8,0.3\n\tl3.7,4.2c0,0,0.1,0.1,0.1,0.2c0,0,0.1,0.1,0.1,0.1c0,0.1,0.1,0.2,0.1,0.3c0,0,0,0,0,0c0,0,0,0,0,0c0,0.1,0,0.3-0.1,0.4\n\tc0,0-0.1,0.1-0.1,0.1c0,0.1-0.1,0.1-0.1,0.2l-3.7,4.1c-0.4,0.4-1,0.4-1.4,0.1c-0.4-0.4-0.4-1-0.1-1.4l2.2-2.4h-7\n\tC2.8,9.1,2.4,8.6,2.4,8.1z"/>\n</svg>\n'};var Sa=({name:t,size:e="32",className:n,alt:r})=>{const o=`${t}${e}`;return Oe(K,{children:[Oe("div",{"aria-hidden":"true",className:n||ba("icon"),dangerouslySetInnerHTML:{__html:Ca[o]}}),r&&Oe("span",{className:ba("visually-hidden"),children:r})]})};const{createActions:ka}=An("translations"),[Oa,Ia]=ka("translate",{enable:t=>({locale:t}),disable:()=>({})}),[Fa,Na]=ka("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),ja=(t,e)=>(n,r)=>r[t]||e;function Ra(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pa(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ra(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ra(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const La={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:pi()};var Ba=Tn("translations",{[er.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?Pa(Pa({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[er.SET_HISTORY]:(t,{history:e})=>{var n,r;return Pa(Pa({},t),{},{isActive:null==e||null===(n=e.translation)||void 0===n?void 0:n.enabled,currentLocale:null==e||null===(r=e.translation)||void 0===r?void 0:r.locale})},[er.CLEAR_FEATURES]:()=>La,[Oa]:(t,{locale:e})=>Pa(Pa({},t),{},{isActive:!0,currentLocale:e}),[Ia]:t=>Pa(Pa({},t),{},{isActive:!1,currentLocale:void 0}),[Fa]:(t,{payloadId:e})=>{var n,r;return he()(n=t.originalPayloadIds).call(n,e)?Pa(Pa({},t),{},{originalPayloadIds:w()(r=t.originalPayloadIds).call(r,(t=>t!==e))}):t},[Na]:(t,{payloadId:e})=>{var n;return he()(n=t.originalPayloadIds).call(n,e)?t:Pa(Pa({},t),{},{originalPayloadIds:[...t.originalPayloadIds,e]})}},La);const Ua=t=>t[String(Ba)],Ma=De(Ua,(t=>t.originalPayloadIds)),$a=De(Ma,ja("payloadId"),((t,e)=>!he()(t).call(t,e)));function za(){const{sendAction:t}=Hi(),e=Ve(),n=hi((n=>{t({type:Yn,body:{enabled:!0,locale:n}}),e(Oa(n))})),r=hi((()=>{t({type:Yn,body:{enabled:!1}}),e(Ia())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=We(Ua,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Ha({payload:t}={}){var e,n,r;const o=null==t?void 0:t.id;let i,a;switch(null==t?void 0:t.type){case"participant":i=t.participant.introduction,a=t.participant.translatedIntroduction;break;default:i=null==t?void 0:t.body,a=null==t?void 0:t.translatedBody}const s=!!a,u=Ge($a,{payloadId:o},[o]),c=Ve(),l=hi((()=>{c(u?Na(o):Fa(o))}));return[s&&u?null===(e=a)||void 0===e?void 0:e.data:i,{hasTranslation:s,isTranslated:u&&s,toggleTranslation:l,translatedBy:null===(n=a)||void 0===n?void 0:n.translatedBy,locale:null===(r=a)||void 0===r?void 0:r.locale}]}function qa(){const t=We(Ua,[]).containerId;return{id:t,focusContainer:Bo(t)}}var Va=({children:t,onCancel:e,headingText:n,cancelButtonText:r,disableButtonFocusing:o,cancelButtonRef:i,position:a="right"})=>{const s=jt(null),u=fi(),{hideOption:c}=Ko(),{focusButton:l}=Jo();return Ft((()=>{yn(s.current)}),[]),Oe("section",{className:ba("options",{"options--right":"left"!==a,"options--left":"left"===a}),"aria-labelledby":u,tabIndex:"-1",ref:s,children:Oe("div",{className:ba("options__body"),children:[Oe("h2",{id:u,className:ba("options__title"),children:n}),Oe("button",{type:"button",onClick:()=>{e&&e(),c(),o||l()},"aria-describedby":u,className:ba("button","options__close"),ref:t=>{i&&(i.current=t)},children:[Oe(Sa,{name:"close",size:"16"}),Oe("span",{children:r})]}),Oe("div",{className:ba("options__wrapper"),children:t})]})})};const{createActions:Wa}=An("forms"),[Ga,Ya]=Wa("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[Ka,Ja,Qa,Za]=Wa("control",{register:(t,e)=>({formId:t,name:e}),deregister:(t,e)=>({formId:t,name:e}),updateValue:(t,e,n)=>({formId:t,name:e,value:n}),updateTouched:(t,e,n)=>({formId:t,name:e,touched:n})});function Xa(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ts(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Xa(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Xa(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const es={controls:{}},ns={value:"",touched:!1};function rs(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||ns;return ts(ts({},t),{},{[e]:ts(ts({},t[e]),{},{controls:ts(ts({},t[e].controls),{},{[n]:ts(ts({},i),r)})})})}var os=Tn("form",{[Ga]:(t,{formId:e,persistData:n})=>{const r=n?t[e]??ts(ts({},es),{},{persistData:n}):ts(ts({},es),{},{persistData:n});return ts(ts({},t),{},{[e]:r})},[Ya]:(t,{formId:e})=>{var n;const r=ts({},t);return null!==(n=r[e])&&void 0!==n&&n.persistData||delete r[e],r},[Ka]:(t,{name:e,formId:n})=>rs(t,n,e),[Ja]:(t,{formId:e,name:n})=>{const r=t[e];if(!r)return t;if(r.persistData)return t;const o=ts({},r.controls);return delete o[n],ts(ts({},t),{},{[e]:ts(ts({},r),{},{controls:o})})},[Qa]:(t,{formId:e,name:n,value:r})=>rs(t,e,n,{value:r}),[Za]:(t,{formId:e,name:n,touched:r})=>rs(t,e,n,{touched:r})},{});const is=De((t=>t[String(os)]),ja("formId"),((t,e)=>t[e])),as=De(is,(t=>(null==t?void 0:t.controls)||{})),ss=De(as,(t=>{var e;const n={};return A()(e=z()(t)).call(e,(([t,{value:e}])=>{n[t]=e})),n})),us=De(as,ja("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),cs=De(as,ja("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),ls=yt({});var ps=ls;const{Provider:fs,Consumer:hs}=ls;function ds(){return Lt(ps)}function vs(t){const e=Ve(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=ds(),a=!!Ge(is,{formId:n},[n]),s=jt();s.current=a;const u=Ge(us,{formId:n,name:t},[n,t]),c=Ge(cs,{formId:n,name:t},[n,t]),l=null==i?void 0:i[t],p=!l;Ft((()=>{s.current&&e(Ka(n,t))}),[a,n,t,e]),Nt((()=>()=>{e(Ja(n,t))}),[a,n,t,e]);const f=Pt((e=>r(t,e.target.value)),[t,r]),h=Pt((()=>{o(t,!0)}),[o,t]);return[Rt((()=>({name:t,onInput:f,onBlur:h,value:u})),[t,f,h,u]),Rt((()=>({isValid:p,error:l,touched:c})),[p,l,c])]}const ys=["children","formId","persistData","onSubmit","validationSchema"];function gs(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ms(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=gs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=gs(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function bs(t){let{children:n,formId:r,persistData:o,onSubmit:i,validationSchema:a}=t,u=N(t,ys);const c=Ve(),l=Ge(ss,{formId:r},[r]),[p,f]=Ot(!1),[h,d]=Ot({}),{isValid:v,errors:y}=function(t,n){const r=Rt((()=>function(t,n={}){var r;return en()(r=z()(n)).call(r,((n,[r,o])=>{o&&!e()(o)&&(o=[o]);for(let e=0;e<(null===(i=o)||void 0===i?void 0:i.length);e++){var i;if(!o[e].fn(t[r],o[e].compareValue)){n[r]=o[e].errorText;break}}return n}),{})}(t,n)),[t,n]);return{isValid:0===s()(r).length,errors:r}}(l,a),g=Rt((()=>ms(ms({},y),h)),[y,h]);Nt((()=>{c(Ga(r,o))}),[r,o,c]),Ft((()=>()=>{c(Ya(r))}),[r,o,c]);const m=Pt(((t,e)=>{c(Qa(r,t,e))}),[r,c]),b=Pt(((t,e)=>{c(Za(r,t,e))}),[c,r]),_=Pt(((t,e)=>{d((n=>ms(ms({},n),{},{[t]:e})))}),[d]),E=Pt((t=>{t.preventDefault(),f(!0),v&&i(l,{updateControlValue:m,setError:_})}),[v,i,l,m,_]),x=Rt((()=>({formId:r,values:l,errors:g,isValid:0===s()(g).length,isSubmitted:p,handleSubmit:E,validationSchema:a,updateControlValue:m,updateControlTouched:b})),[r,l,g,p,E,a,m,b]);return r?i?Oe(fs,ms(ms({},u),{},{value:x,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}var _s=n(2088);function Es(){return(Es=_s||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function xs(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}var ws=function(t){let e=Es({},t);const{handleSubmit:n}=function(){const{handleSubmit:t}=ds();return{handleSubmit:t}}();return Oe("form",function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=xs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=xs(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({onSubmit:n},e))};function Ds({id:t,error:e}){const[n,r]=Ot(!1);return Ft((()=>{const t=pe()((()=>r(!0)),300);return()=>clearTimeout(t)}),[]),Oe("div",{"aria-live":"assertive","aria-atomic":"true",children:n&&e&&Oe("span",{id:t,className:ba("error"),children:[Oe(Sa,{name:"error",size:"16"}),e]})})}var As=({contentHint:t,id:e,labelText:n,labelClass:r=ba("label"),validity:o,errorText:i,children:a})=>Oe(K,{children:[Oe("label",{htmlFor:e,className:r,children:n}),t&&Oe("span",{id:`${e}-content-hint`,className:ba("input__content-hint"),children:t}),Oe(Ds,{id:`${e}-error`,error:!o&&i}),a]});const Ts=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function Cs(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Cs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Cs(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var ks=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,u=N(t,Ts);const{isSubmitted:c}=ds(),[l,{error:p}]=vs(n),f=c&&p,h=[];return a&&h.push(a),i&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(As,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:Oe("select",Ss(Ss(Ss({id:e,name:n,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u),{},{children:E()(s).call(s,(t=>Oe("option",{value:t.value,children:t.label},t.value)))}))})},Os=function({controlName:t,descriptionId:e}){const{t:n}=Eo(),{isActive:r,languages:o,currentLocale:i}=za(),a=Rt((()=>{var t;return null==o||null===(t=Rn()(o).call(o,(t=>t.locale===i)))||void 0===t?void 0:t.nativeName}),[o,i]),s=Rt((()=>[{value:"",label:n("translations.settings.defaultOptionLabel")},...E()(o).call(o,(t=>({value:t.locale,label:t.nativeName})))]),[n,o]);return Oe(ws,{noValidate:"true",children:[Oe("p",{className:ba("options__description"),id:e,children:n("translations.settings.description")}),r?Oe(K,{children:[Oe("h3",{children:n("translations.settings.currentTranslationLabel")}),Oe("p",{className:ba("options__active-language"),children:a})]}):Oe(ks,{name:t,type:"text",className:ba("input__select"),"aria-describedby":e,labelClass:ba("label"),labelText:n("translations.settings.inputLabel"),options:s,defaultValue:i||""}),Oe("div",{className:ba("options__actions"),children:Oe("button",{type:"submit",className:ba("button","button--primary","options__submit"),children:n(r?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const{REGISTER_FORM:Is,DE_REGISTER_FORM:Fs,REGISTER:Ns,DE_REGISTER:js,SET_VALUE:Rs,SET_VALIDITY:Ps,SET_STATE:Ls,SET_SUBMITTED:Bs,SET_PERSIST_FORM_DATA:Us}={REGISTER_FORM:"REGISTER_FORM",DE_REGISTER_FORM:"DE_REGISTER_FORM",REGISTER:"REGISTER",DE_REGISTER:"DEREGISTER",SET_VALUE:"SET_VALUE",SET_VALIDITY:"SET_VALIDITY",SET_STATE:"SET_STATE",SET_SUBMITTED:"SET_SUBMITTED",SET_PERSIST_FORM_DATA:"SET_PERSIST_FORM_DATA"},Ms=(t,e,n=null)=>({fn:t,errorText:e,compareValue:n}),$s=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},zs=t=>!(null==t||!t.length)>0,Hs=t=>{const e=t&&ui()(t).call(t);return!(!e||!e.match(/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i))},qs=t=>!!t,Vs="translation-settings",Ws="locale";var Gs=function({onClose:t}){const{t:e}=Eo(),{isActive:n,enableTranslations:r,disableTranslations:o}=za(),i=fi(),{focusContainer:a}=qa(),s=jt(0),u=Rt((()=>(s.current+=1,n?{}:{[Ws]:Ms(qs,e("translations.settings.noLocaleText"))})),[n,e]);return Oe(Va,{onCancel:t,formName:Vs,headingText:e("translations.settings.title"),cancelButtonText:e("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:Oe(bs,{onSubmit:({locale:e})=>{n?o():(r(e),t(),a())},formId:Vs,validationSchema:u,children:Oe(Os,{controlName:Ws,descriptionId:i})},s.current)})};function Ys(){const{t:t}=Eo(),[e,n]=Ot(!1),r=jt(null),o=fi();return Oe("div",{className:ba("translations__container"),onKeyDown:t=>{e&&vn(t)===dn.Escape&&(n(!1),yn(r.current))},children:[Oe(Aa,{transitionStartState:xa,isActive:e,children:Oe("div",{className:ba("options__dialog"),role:"dialog",children:Oe(Gs,{onClose:()=>{n(!1)}})})}),Oe("button",{type:"button",className:ba(["button","button--secondary","app__options__button"]),id:o,onClick:()=>{n((t=>!t))},onKeyDown:t=>{vn(t)===dn.ArrowDown&&(n(!0),t.preventDefault())},ref:r,"aria-haspopup":"dialog","aria-expanded":e.toString(),children:[Oe(Sa,{name:"newTranslation",size:"16"}),Oe("span",{className:ba("button__text"),children:t("translations.settings.openButtonText")})]})]})}function Ks({id:t,label:e,onButtonClick:n,buttonText:r,srButtonText:o,type:i}){const a=fi();return Oe("section",{className:ba("chat-status",i&&`chat-status--${i}`),id:t,tabIndex:"-1","aria-labelledby":a,children:[Oe("h2",{className:ba("chat-status__title"),id:a,children:e}),Oe("button",{type:"button",className:ba("button","button--tertiary"),onClick:n,children:[Oe("span",{"aria-hidden":o?"true":void 0,children:r}),o&&Oe("span",{className:ba("visually-hidden"),children:o})]})]})}function Js(){const{t:t}=Eo(),{id:e}=qa(),{hasInterrupt:n}=Di(),{isActive:r,disableTranslations:o,languages:i,currentLocale:a}=za(),s=Uo(),u=Rt((()=>{var t;return null==i||null===(t=Rn()(i).call(i,(t=>t.locale===a)))||void 0===t?void 0:t.nativeName}),[i,a]),c=Pt((()=>{o(),s()}),[o,s]);return!r||n?null:Oe(Ks,{type:"translations",id:e,label:t("translations.status.label",u),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const Qs=["categories"];function Zs(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xs(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Zs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Zs(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var tu=()=>{const{t:t}=Eo(),{sendAction:e,addMessageBubble:n}=Hi(),r=fi(),o=Uo(),{sendPolite:i}=Vi(),{hasInterrupt:a}=Di(),{hasCountdown:s,endCountdown:u}=ha(),{hasPrompt:c,continueChat:l}=va(),p=("suggestion",Ao().serviceData.suggestion);const[f]=Ha({payload:p}),h=Rt((()=>{const t=p&&!a?f:[];return E()(t).call(t,(t=>{let{categories:e=[]}=t;return Xs(Xs({},N(t,Qs)),{},{categories:e,classNames:["faqs__item",...E()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[p,a,f]),d=jt(null),v=jt(!1),{isInline:y}=No(),g=_e(),m=!y&&g,b=jt(m),_=!!h.length,x=_&&!m,w=jt([]),D=_?h:w.current;w.current=D;const A=jt(null);Ft((()=>{if(d.current!==h&&!m){if(_){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");pe()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));d.current=h}!b.current&&m?(gn(A.current,o),i(t("faq.srUnavailableText"))):!_&&v.current&&gn(A.current,o),v.current=_,b.current=m}),[_,h,m,o,i,t]);const T=t("faq.headingText");return Oe(Aa,{isActive:x,transitionStartState:xa,children:Oe(T?"section":"div",{className:ba("faqs"),"aria-labelledby":T?r:null,ref:A,children:[T&&Oe("h2",{id:r,className:ba("faqs__heading"),children:T}),!!D.length&&Oe("ul",{className:ba("faqs__list"),children:E()(D).call(D,(t=>Oe("li",{className:ba(t.classNames),children:Oe("button",{type:"button",onClick:()=>{(({id:t,question:r})=>{s&&u(!0),c&&l(),e({type:"custom",originMessage:p.id,body:{type:"faqclick",body:{faqId:t,faqQuestion:r}}}),n(r),o()})(t)},className:ba("button","button--secondary"),children:[Oe(Sa,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},eu=({children:t})=>{const[,e]=Lo(),{isOpen:n,isVisible:r,setVisibility:o}=oa(),{context:i,zIndex:a,showFaq:s}=co(),{isModal:u,isInline:c}=No(),l=Mo(),p=_e(),[f,h]=Ot(void 0),{locale:d}=i||{},v=Pt((t=>{e(t)}),[e]);Ft((()=>{if(d){const t=document.querySelector("html").getAttribute("lang");t&&t===d||h(d)}}),[d]);const y=["app",...l];return n||y.push("app--collapsed"),p&&y.push("app--user-responded"),r&&Oe("section",{className:ba(y),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!c&&n&&o(zn.minimized)},onClick:t=>{u&&t.stopPropagation()},lang:f,tabIndex:"-1",ref:v,style:{zIndex:a},"data-nosnippet":!0,children:[Oe("div",{className:ba("app-wrapper"),children:t}),s&&Oe(tu,{})]})},nu=()=>{const{t:t}=Eo(),{setUserSelectedOption:e}=Ko(),n=Uo(),{id:r}=zo();return Oe(Ks,{type:"cobrowsing",id:r,label:t("options.cobrowsing.cobrowsingActiveText"),onButtonClick:()=>{e(Xn,!1),n()},buttonText:t("options.cobrowsing.stopCobrowsingText"),srButtonText:t("options.cobrowsing.srStopCobrowsingText")})},ru=()=>{const{t:t}=Eo(),{userSelectedOptions:e}=Ko(),{hasInterrupt:n}=Di(),{cobrowsing:r}=e,o=jt(r),{sendPolite:i}=Vi();return Ft((()=>{!r&&o.current&&pe()((()=>{i(t("options.cobrowsing.srStoppedCobrowsingText"))}),300),o.current=r}),[r,t,i]),r&&!n&&Oe(nu,{})},ou=n(6419),iu=n.n(ou),au=n(2462),su=n.n(au);const uu=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function cu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function lu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=cu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=cu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var pu=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,u=N(t,uu);const{isSubmitted:c}=ds(),[l,{error:p}]=vs(n),f=c&&p,h=[];return s&&h.push(s),a&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(As,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:Oe("input",lu(lu({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u))})};function fu({controlName:t,describedById:e}){const{t:n}=Eo();return Oe(ws,{noValidate:"true",children:[Oe(pu,{name:t,type:"email",className:ba("transcript__input"),"aria-describedby":e,labelClass:ba("label"),labelText:n("options.sendTranscript.label")}),Oe("div",{className:ba("options__actions"),children:Oe("button",{type:"submit",className:ba("button","button--primary","options__submit"),children:n("options.sendTranscript.sendButtonText")})})]})}const hu="email",du={cobrowsing:()=>{const{t:t}=Eo(),e=fi(),{userSelectedOptions:n,features:r,setUserSelectedOption:o,hideOption:i}=Ko(),{enabled:a}=r.cobrowsing||{},s=jt(null),[u,c]=Ot(a),{focusButton:l}=Jo(),{focusContainer:p}=zo(),{sendAssertive:f}=Vi(),h=jt(null),d=jt(null);Ft((()=>{a||!0!==s.current||(f(t("options.cobrowsing.cobrowsingUnavailable")),o(Xn,!1),gn(d.current,(()=>{yn(h.current)}))),a&&!1===s.current&&f(t("options.cobrowsing.srCobrowsingAvailable")),c(a),s.current=a}),[a,o,f,t]);const v=t=>{t||n.cobrowsing?l():p()};return Oe(Va,{headingText:t("options.cobrowsing.title"),cancelButtonText:t("options.cancelButtonText"),onCancel:()=>{v(!0)},disableButtonFocusing:!0,cancelButtonRef:h,children:[Oe("p",{className:ba("options__description"),id:e,children:t("options.cobrowsing.description")}),!u&&Oe("p",{className:ba("notification"),children:t("options.cobrowsing.cobrowsingUnavailable")}),u&&Oe("button",{type:"button",className:ba(["button","button--primary"]),onClick:()=>{i(),v(),o(Xn,!n.cobrowsing),f(t("options.cobrowsing.srStartedCobrowsingText"))},"aria-describedby":e,ref:d,children:n.cobrowsing?t("options.cobrowsing.labelTurnOff"):t("options.cobrowsing.labelTurnOn")})]})},sendTranscript:()=>{const{hideOption:t}=Ko(),{focusButton:e}=Jo(),{t:n}=Eo(),r=fi(),{sendAction:o}=Hi(),i=Rt((()=>({[hu]:[Ms(qs,n("options.sendTranscript.noEmailText")),Ms(Hs,n("options.sendTranscript.invalidEmailText"))]})),[n]),a=Pt((n=>{var r;const i=ui()(r=n.email).call(r);o({type:"send_transcript",body:{emailAddress:i}}),t(),e()}),[o,t,e]);return Oe(Va,{headingText:n("options.sendTranscript.title"),cancelButtonText:n("options.cancelButtonText"),children:[Oe("p",{className:ba("options__description"),id:r,children:n("options.sendTranscript.description")}),Oe(bs,{formId:"sendTranscript",onSubmit:a,validationSchema:i,children:Oe(fu,{controlName:hu,describedById:r})})]})}};var vu=()=>{const{optionActive:t}=Ko(),e=jt(null),n=du[t||e.current];return t&&(e.current=t),Oe(n,{})},yu=()=>{const{t:t}=Eo(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=Ko(),{id:i}=Jo(),a=jt(null),[s,u]=Ot(!1),c=jt(null),l=e.length,p=jt(iu()({length:l},(()=>({current:null})))),f=jt(!1),h=l>1,d=e[0],v=Rt((()=>{var t;return null==d||null===(t=d.name)||void 0===t?void 0:ui()(t).call(t).replace(/\s+/g,"")}),[d]);return Ft((()=>()=>{clearTimeout(a.current)}),[]),Ft((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=su()(e).call(e,(t=>t.available)),n=-1===t?0:t;yn(p.current[n])}))})),f.current=s}),[s,e]),l?Oe("div",{className:ba("options__container"),onKeyDown:t=>{s&&(vn(t)===dn.Escape&&(u(!1),yn(c.current)),vn(t)===dn.Home&&(yn(p.current[0]),t.preventDefault()),vn(t)===dn.End&&(yn(p.current[l-1]),t.preventDefault()))},onfocusout:()=>{h&&(a.current=pe()((()=>{u(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[Oe(Aa,{transitionStartState:xa,isActive:r,children:Oe("div",{className:ba("options__dialog"),children:Oe(vu,{})})}),h&&Oe(Aa,{isActive:s,transitionStartState:xa,children:Oe("ul",{className:ba(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:E()(e).call(e,(({name:r,title:o,available:i},a)=>Oe("li",{className:ba("options__menu__item"),role:"menuitem","data-testid":r,children:Oe("button",{type:"button",ref:t=>{p.current[a]=t},className:ba(["button","button--secondary",...i?[]:["button--disabled"]]),onKeyDown:t=>((t,e)=>{if(vn(t)===dn.ArrowDown){const n=Math.min(l-1,e+1);yn(p.current[e===n?0:n]),t.preventDefault()}if(vn(t)===dn.ArrowUp){const n=Math.max(0,e-1);yn(p.current[e===n?l-1:n]),t.preventDefault()}})(t,a),onKeyPress:t=>((t,n)=>{const r=String.fromCharCode(t.charCode);if(1!==r.length||!r.match(/\S/))return;let o=-1;A()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&yn(p.current[o])})(t,a),onClick:()=>((t,e)=>{e&&(u(!1),n(t))})(r,i),"aria-disabled":i?null:"true",children:[Oe("span",{className:ba("button__text"),children:[o,!i&&" "]}),!i&&Oe("span",{className:ba("button__state"),children:t("options.unavailableText")})]})},r)))})}),Oe("button",{type:"button",className:ba(["button","button--secondary","app__options__button",...!h&&v?[`app__options__button--${v}`]:[],...h||d.available?[]:["button--disabled"]]),id:i,onClick:()=>{r&&o(),h?u((t=>!t)):d.available&&n(d.name)},onKeyDown:h?t=>{vn(t)===dn.ArrowDown&&(u(!0),t.preventDefault())}:null,ref:c,"aria-haspopup":h?"menu":null,"aria-expanded":h?s.toString():null,"aria-disabled":h||d.available?null:"true",children:[h&&Oe(Sa,{name:"options",size:"32"}),Oe("span",{className:ba("button__text"),children:h?t("options.openButtonText"):`${d.title}${d.available?"":" "}`}),!h&&!d.available&&Oe("span",{className:ba("button__state"),children:t("options.unavailableText")})]})]}):null};function gu(){const{menuOptions:t,allowOptionSelection:e}=Ko(),{isAvailable:n}=za();return n||e&&t.length?Oe("div",{className:ba("app__options"),children:[n&&Oe("div",{className:ba("app__options-item","app__options-item--left"),children:Oe(Ys,{})}),e&&Oe("div",{className:ba("app__options-item","app__options-item--right"),children:Oe(yu,{})})]}):null}function mu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}var bu=function({children:t,interruptComponent:e}){const{hasInterrupt:n,meta:r}=Di(),{isOpen:o}=oa();return Oe(K,{children:[Oe(ru,{}),Oe(Js,{}),Oe("div",{className:ba("app__container"),children:n?o?Oe(e,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=mu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=mu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({},r)):null:t}),Oe(gu,{})]})},_u=({onOpenChat:t})=>{const{t:e}=Eo(),n=fi(),{isOpen:r}=oa(),o=jt(null),i=jt(null),a=jt(),s=Uo(),u=(()=>{const t=jt(null),[e]=Lo();return t.current=e,Pt((e=>{gn(t.current,(()=>{Po(e)}))}),[])})(),c=Fo(),l=So().subTitle,{hasInterrupt:p}=Di(),{headerCollapseButtonId:f}=Ao(),h=c&&!p;return Nt((()=>{!1===r&&!0===o.current&&u(i.current),o.current=r}),[r,u]),Oe("div",{className:ba("toggle-button"),children:[Oe("div",{id:n,children:[Oe("p",{className:ba("toggle-button__title"),children:e(h?"toggleButton.resumeTitle":"toggleButton.title")}),Oe("p",{className:ba("toggle-button__subtitle"),children:h?l:e("toggleButton.subtitle")})]}),Oe("button",{type:"button","aria-labelledby":n,className:ba("toggle-button__button"),ref:i,onMouseUp:()=>{a.current="mouse"},onKeyUp:()=>{a.current="key"},onClick:()=>{t(),"mouse"===a.current?s():"key"===a.current&&u(f)}})]})},Eu=()=>{const{t:t}=Eo(),{title:e,subTitle:n}=So(),r=ko(),{isOpen:o}=oa(),i=Fo(),{hasInterrupt:a}=Di(),{defaults:s}=co(),{startChatIcon:u}=s||{},c=i&&!a?i.avatar:null,l=a?"":n,p=["message-count"];return o&&p.push("message-count__hide"),0===r&&p.push("message-count__empty"),(c||l||!o)&&Oe("div",{className:ba("agent-info"),children:[Oe("div",{className:ba("agent-info__graphic"),children:[c||u?Oe("img",{className:ba(c?"avatar":"icon"),src:c||u,alt:""}):Oe(Sa,{name:"avatar",size:"32"}),Oe("span",{className:ba(p),"aria-hidden":"true",children:r})]}),Oe("div",{className:ba("agent-info__body"),children:[Oe("p",{className:ba("agent-info__heading"),children:e??t("header.title")}),Oe("p",{className:ba("agent-info__text"),children:l})]})]})},xu=({children:t,onCloseChat:e})=>{const{headerCollapseButtonId:n}=Ao(),r=jt(null),{t:o}=Eo();return Oe("header",{className:ba("app__header"),children:[t,Oe("div",{className:ba("header-controls"),children:Oe("button",{type:"button",className:ba("button","header-controls__collapse"),onClick:e,ref:r,id:n,children:Oe(Sa,{name:"chevronDown",size:"32",alt:o("header.collapseApp")})})})]})},wu=yt({});function Du(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Au(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Du(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Du(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Tu({children:t,childrenHTML:e,className:n,graphicSrc:r,graphicType:o="icon",iconName:i,iconSize:a,iconClassName:s,dividerType:u}){const c=Boolean(i||r),l=e?{dangerouslySetInnerHTML:{__html:e}}:{children:t};return Oe("div",{className:ba("divider",u&&`divider--type-${u}`,n),children:[c&&Oe("span",{className:ba("divider__graphic"),children:i?Oe(Sa,{name:i,size:a,className:s}):Oe("img",{src:r,className:ba({icon:"icon"===o,avatar:"avatar"===o},s)})}),Oe("div",Au({className:ba("divider__body")},l))]})}const Cu={month:"long",day:"numeric",year:"numeric"},Su={hour:"numeric",minute:"numeric"};var ku=({event:t})=>{const e=(()=>{const[t,e]=It((t=>t+1),0);return Pt((()=>{pe()((()=>{e()}))}),[])})(),{date:n,time:r,timeUntilMidnight:o,srText:i}=(t=>{var e;const{t:n}=Eo(),r=co(),o=(null==r||null===(e=r.context)||void 0===e?void 0:e.locale)??[],i=new Date(t),a=new Date,s=new Date(a);s.setHours(24,0,0,0);const u=s-a,c=i.toString(),l=new Intl.DateTimeFormat(o,Su).format(i);let p=((t,e)=>{const n=new Date(e).setHours(0,0,0,0),r=t.getTime(),o=864e5;return r>=n+o?t:r>n?"today":r>n-o?"yesterday":t})(i,a);switch(p){case"today":p=n("dateTime.today");break;case"yesterday":p=n("dateTime.yesterday");break;default:p=new Intl.DateTimeFormat(o,Cu).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:l}),time:l,fullDateTime:c,timeUntilMidnight:u}})(cn(t.timeIndicator));return Ft((()=>{const t=pe()((()=>{e()}),o);return()=>{clearTimeout(t)}}),[e,o]),Oe(Tu,{dividerType:"time-indicator",children:[Oe("p",{className:ba("divider__time"),"aria-hidden":"true",children:[Oe("span",{children:n}),Oe("span",{children:r})]}),Oe("p",{className:ba("visually-hidden"),children:i})]})},Ou=({event:t,newParticipant:e})=>{const[n,r]=(t=>{const e=Lt(wu);let n=null;"choice_prompt"===t.payload.type&&(n=e[t.type][t.payload.body.prompt.type]);const r=e[t.type][t.payload.type]||e.fallback;return[r&&"function"!=typeof r?r[t.payload.body.type]||e.fallback:r,n]})(t);if(!n)return null;const o=["conversation__item"];return"info"===t.type?o.push("conversation__item--source-info"):t.payload.fromClient?o.push("conversation__item--source-user"):o.push("conversation__item--source-agent"),e&&o.push("conversation__item--new-participant"),Oe("li",{className:ba(o),children:[t.timeIndicator&&Oe(ku,{event:t}),Oe(n,{event:t,children:Oe(r,{event:t})})]})},Iu=({eventPayload:t})=>{const{fromClient:e,participant:n}=t,r=(t=>Ao().participantInfo.participants[t])(n)||{},{messages:o,defaults:i}=co(),a=r&&r.name,{showAvatar:s,showName:u}=o[e?"user":"agent"]||{},{userName:c}=i||{};if(!s&&!u)return null;const l=[];s&&a&&r.avatar&&l.push(Oe("span",{className:ba("message__avatar"),children:Oe("img",{src:r.avatar,className:ba("avatar"),alt:""})}));const p=e&&c||a;return u&&p&&l.push(Oe("span",{className:ba("message__author-name"),children:p})),l.length>0&&Oe("div",{className:ba("message__author"),children:l})},Fu=()=>{const{id:t}=Fo()||{};return Oe("li",{className:ba("conversation__item","conversation__item--source-agent"),children:Oe("div",{className:ba("message","message--source-agent","message--type-loading"),children:[Oe(Iu,{eventPayload:{fromClient:!1,participant:t}}),Oe("div",{className:ba("message__body"),children:Oe("span",{className:ba("loader"),children:[Oe("span",{className:ba("loader__part","one")}),Oe("span",{className:ba("loader__part","two")}),Oe("span",{className:ba("loader__part","three")}),Oe("span",{className:ba("loader__part","four")})]})})]})})};const Nu=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function ju(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ru(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ju(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ju(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var Pu=function(t){let{showParticipant:e=!0,showTranslationToggle:n=!0,event:r,type:o,modifiers:i,children:a,bodyProps:s={},info:u}=t,c=N(t,Nu);const l=$o(r),{t:p}=Eo(),[,{hasTranslation:f,isTranslated:h,toggleTranslation:d,locale:v}]=Ha(r);var y;(o&&l.push("message--type-"+o),i)&&("string"==typeof i&&(i=w()(y=i.split(" ")).call(y,(t=>t.length))),A()(i).call(i,(t=>{l.push("message--"+t)})));return h&&l.push("message--is-translated"),f&&l.push("message--has-translation"),h&&(s=Ru(Ru({},s),{},{lang:v})),Oe(K,{children:Oe("div",Ru(Ru({className:ba(l)},c),{},{children:[e&&Oe(Iu,{eventPayload:r.payload}),Oe("div",Ru(Ru({className:ba("message__body")},s),{},{children:a})),u&&Oe("div",{"aria-hidden":"true",className:ba("message__info"),children:u}),n&&f&&Oe("div",{className:ba("message__translation-info"),children:Oe("button",{className:ba("message__translation-toggle","button","button--secondary"),onClick:d,children:p(h?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const Lu=["event","children"];function Bu(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Bu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Bu(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Mu=t=>{const{payload:e}=t,[n,r]=Ot(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=Hi(),{activeServiceSessionId:s}=Ao().serviceInfo,u=We(Io),[c]=Ha(t),{service:l}=e,p=Rt((()=>{var e;return Uu(Uu({},t),{},{payload:Uu(Uu({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&Uu(Uu({},t.payload.translatedBody),{},{data:t.payload.translatedBody.data.prompt})})})}),[t]),f=c.chooseAgain&&s===l.serviceSessionId&&e.id!==u;return Ft((()=>{r(e.id===u)}),[e,u]),{body:c,subEvent:p,showOptions:n,chooseAgain:f,onChoiceClickHandler:t=>{f&&a("new_topic"),i(t.text),o({type:"pick_choice",originMessage:e.id,choice:{id:t.id,text:t.text,chooseAgain:f}}),r(!1)},onChooseAgainClickHandler:()=>{r((t=>!t))}}};var $u=n(9853),zu=n.n($u),Hu=t=>{try{return zu()(t)}catch(e){return console.log("Could not parse message",t,e),""}},qu=t=>{const{sendAction:e}=Hi();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}},Vu=Object.prototype.toString,Wu=Array.isArray||function(t){return"[object Array]"===Vu.call(t)};function Gu(t){return"function"==typeof t}function Yu(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ku(t,e){return null!=t&&"object"==typeof t&&e in t}var Ju=RegExp.prototype.test,Qu=/\S/;var Zu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},Xu=/\s*/,tc=/\s+/,ec=/\s*=/,nc=/\s*\}/,rc=/#|\^|\/|>|\{|&|=|!/;function oc(t){this.string=t,this.tail=t,this.pos=0}function ic(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function ac(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}oc.prototype.eos=function(){return""===this.tail},oc.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},oc.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},ic.prototype.push=function(t){return new ic(t,this)},ic.prototype.lookup=function(t){var e,n,r,o=this.cache;if(o.hasOwnProperty(t))e=o[t];else{for(var i,a,s,u=this,c=!1;u;){if(t.indexOf(".")>0)for(i=u.view,a=t.split("."),s=0;null!=i&&s<a.length;)s===a.length-1&&(c=Ku(i,a[s])||(n=i,r=a[s],null!=n&&"object"!=typeof n&&n.hasOwnProperty&&n.hasOwnProperty(r))),i=i[a[s++]];else i=u.view[t],c=Ku(u.view,t);if(c){e=i;break}u=u.parent}o[t]=e}return Gu(e)&&(e=e.call(this.view)),e},ac.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},ac.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||sc.tags).join(":"),o=void 0!==n,i=o?n.get(r):void 0;return null==i&&(i=function(t,e){if(!t)return[];var n,r,o,i,a=!1,s=[],u=[],c=[],l=!1,p=!1,f="",h=0;function d(){if(l&&!p)for(;c.length;)delete u[c.pop()];else c=[];l=!1,p=!1}function v(t){if("string"==typeof t&&(t=t.split(tc,2)),!Wu(t)||2!==t.length)throw new Error("Invalid tags: "+t);n=new RegExp(Yu(t[0])+"\\s*"),r=new RegExp("\\s*"+Yu(t[1])),o=new RegExp("\\s*"+Yu("}"+t[1]))}v(e||sc.tags);for(var y,g,m,b,_,E,x=new oc(t);!x.eos();){if(y=x.pos,m=x.scanUntil(n))for(var w=0,D=m.length;w<D;++w)i=b=m.charAt(w),function(t,e){return Ju.call(t,e)}(Qu,i)?(p=!0,a=!0,f+=" "):(c.push(u.length),f+=b),u.push(["text",b,y,y+1]),y+=1,"\n"===b&&(d(),f="",h=0,a=!1);if(!x.scan(n))break;if(l=!0,g=x.scan(rc)||"name",x.scan(Xu),"="===g?(m=x.scanUntil(ec),x.scan(ec),x.scanUntil(r)):"{"===g?(m=x.scanUntil(o),x.scan(nc),x.scanUntil(r),g="&"):m=x.scanUntil(r),!x.scan(r))throw new Error("Unclosed tag at "+x.pos);if(_=">"==g?[g,m,y,x.pos,f,h,a]:[g,m,y,x.pos],h++,u.push(_),"#"===g||"^"===g)s.push(_);else if("/"===g){if(!(E=s.pop()))throw new Error('Unopened section "'+m+'" at '+y);if(E[1]!==m)throw new Error('Unclosed section "'+E[1]+'" at '+y)}else"name"===g||"{"===g||"&"===g?p=!0:"="===g&&v(m)}if(d(),E=s.pop())throw new Error('Unclosed section "'+E[1]+'" at '+x.pos);return function(t){for(var e,n=[],r=n,o=[],i=0,a=t.length;i<a;++i)switch((e=t[i])[0]){case"#":case"^":r.push(e),o.push(e),r=e[4]=[];break;case"/":o.pop()[5]=e[2],r=o.length>0?o[o.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],o=0,i=t.length;o<i;++o)(e=t[o])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(r.push(e),n=e));return r}(u))}(t,e),o&&n.set(r,i)),i},ac.prototype.render=function(t,e,n,r){var o=this.getConfigTags(r),i=this.parse(t,o),a=e instanceof ic?e:new ic(e,void 0);return this.renderTokens(i,a,n,t,r)},ac.prototype.renderTokens=function(t,e,n,r,o){for(var i,a,s,u="",c=0,l=t.length;c<l;++c)s=void 0,"#"===(a=(i=t[c])[0])?s=this.renderSection(i,e,n,r,o):"^"===a?s=this.renderInverted(i,e,n,r,o):">"===a?s=this.renderPartial(i,e,n,o):"&"===a?s=this.unescapedValue(i,e):"name"===a?s=this.escapedValue(i,e,o):"text"===a&&(s=this.rawValue(i)),void 0!==s&&(u+=s);return u},ac.prototype.renderSection=function(t,e,n,r,o){var i=this,a="",s=e.lookup(t[1]);if(s){if(Wu(s))for(var u=0,c=s.length;u<c;++u)a+=this.renderTokens(t[4],e.push(s[u]),n,r,o);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)a+=this.renderTokens(t[4],e.push(s),n,r,o);else if(Gu(s)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(e.view,r.slice(t[3],t[5]),(function(t){return i.render(t,e,n,o)})))&&(a+=s)}else a+=this.renderTokens(t[4],e,n,r,o);return a}},ac.prototype.renderInverted=function(t,e,n,r,o){var i=e.lookup(t[1]);if(!i||Wu(i)&&0===i.length)return this.renderTokens(t[4],e,n,r,o)},ac.prototype.indentPartial=function(t,e,n){for(var r=e.replace(/[^ \t]/g,""),o=t.split("\n"),i=0;i<o.length;i++)o[i].length&&(i>0||!n)&&(o[i]=r+o[i]);return o.join("\n")},ac.prototype.renderPartial=function(t,e,n,r){if(n){var o=this.getConfigTags(r),i=Gu(n)?n(t[1]):n[t[1]];if(null!=i){var a=t[6],s=t[5],u=t[4],c=i;0==s&&u&&(c=this.indentPartial(i,u,a));var l=this.parse(c,o);return this.renderTokens(l,e,n,c,r)}}},ac.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},ac.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||sc.escape,o=e.lookup(t[1]);if(null!=o)return"number"==typeof o&&r===sc.escape?String(o):r(o)},ac.prototype.rawValue=function(t){return t[1]},ac.prototype.getConfigTags=function(t){return Wu(t)?t:t&&"object"==typeof t?t.tags:void 0},ac.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!Wu(t)?t.escape:void 0};var sc={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){uc.templateCache=t},get templateCache(){return uc.templateCache}},uc=new ac;sc.clearCache=function(){return uc.clearCache()},sc.parse=function(t,e){return uc.parse(t,e)},sc.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(Wu(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return uc.render(t,e,n,r)},sc.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return Zu[t]}))},sc.Scanner=oc,sc.Context=ic,sc.Writer=ac;var cc=sc;cc.escape=function(t){return t};const lc=["event"];function pc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=pc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=pc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var hc=t=>{let{event:e}=t,n=N(t,lc);const{payload:r}=e,[o]=Ha(e),i=qu(r.id),a=(({text:t,variables:e={}})=>Rt((()=>function(t,e={}){var n;const r={};A()(n=z()(e)).call(n,(([t,e])=>{switch(e.type){case"link":r[t]=(t=>`<a href='${t.url}' data-link-id='${t.id}' ${t.newTab?'target="_blank"':""}>${t.name}</a>`)(e);break;case"text":r[t]=e.value}}),{});const o=cc.escape;cc.escape=function(t){return t};const i=cc.render(t,r);return cc.escape=o,i}(t,e)),[t,e]))({text:Hu(o.text),variables:o.variables});return Oe(Pu,fc(fc({type:"text",event:e,onClick:i},n),{},{bodyProps:{dangerouslySetInnerHTML:{__html:a}}}))};function dc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function vc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=dc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=dc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var yc=({children:t,onClose:e,"aria-label":n,"aria-labelledby":r,fallBackFocusRef:o})=>{var i;const a=fi(),s=jt(null),u=jt(null),[c,l]=Ot(!1);return Ft((()=>(c&&(u.current=se(s.current,{initialFocus:o&&o.current?o.current:null}),u.current.activate()),()=>{u.current&&u.current.deactivate()})),[c,o]),Ft((()=>{const t=un();return()=>{t()}}),[c]),Ft((()=>{c&&s.current.addEventListener("keydown",(t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&e()}))}),[c,e]),Nt((()=>{const t=document.getElementsByTagName("body")[0],e=document.createElement("div");return e.setAttribute("id",a),e.setAttribute("role","dialog"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-modal","true"),n&&e.setAttribute("aria-label",n),r&&e.setAttribute("aria-labelledby",r),t.appendChild(e),s.current=e,l(!0),()=>{s.current&&(t.removeChild(s.current),s.current=null)}}),[n,r,a]),"function"==typeof t?t({onClose:e,modalRenderFn:t=>s.current&&vt(t,s.current)}):s.current&&vt(E()(i=rt(t)).call(i,(t=>(t.props=vc(vc({},t.props),{},{onClose:e}),t))),s.current)},gc=({url:t,description:e,onClose:n})=>{const{zIndex:r}=co(),o=Gi(),i=Mo(),a=jt(null),{t:s}=Eo(),u=["modal",...i],c=t=>{t.stopPropagation()},l=()=>{n()},p=r?{zIndex:r+1}:void 0;return Oe(yc,{onClose:n,"aria-label":s("lightbox.heading"),fallBackFocusRef:a,children:({onClose:n,modalRenderFn:r})=>r((n=>Oe("div",{className:ba(u),onClick:l,style:p,children:Oe("div",{className:ba("modal__float"),tabIndex:"-1",onMouseDown:o,onKeyDown:o,onTouchStart:o,onMouseMove:o,onWheel:o,onPointerDown:o,onPointerMove:o,ref:a,children:[Oe("div",{className:ba("modal__inner"),onClick:c,children:Oe("img",{className:ba("modal__image"),src:t,alt:e})}),Oe("button",{type:"button",className:ba("modal__close"),onClick:n,children:[Oe(Sa,{name:"close",size:"16"}),s("lightbox.closeLabel")]})]})}))(n))})},mc=({description:t,url:e})=>{const{t:n}=Eo(),[r,o]=Ot(!1);return Oe(K,{children:[Oe("button",{type:"button",className:ba("modal__enlarge"),onClick:()=>{o(!0)},children:[n("message.image.srTextEnlargeButtonLabel",{description:t}),Oe(Sa,{name:"enlarge",size:"32"})]}),r&&Oe(gc,{url:e,description:t,onClose:()=>{o(!1)}})]})};const bc=["event","descriptorId"];function _c(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ec(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=_c(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=_c(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const xc=["event","descriptorId"];function wc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=wc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=wc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Ac={[Zn.new_topic]:"newtopic"},Tc=["event"];function Cc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}const Sc={default:({event:t})=>{const{t:e}=Eo(),{subtype:n}=t.payload.body;return Oe(Tu,{dividerType:Ac[Zn[n]],iconName:Zn[n],children:Oe("p",{children:e(`dividerKeys.${Zn[n]}`)})})},[Zn.new_translation]:({event:t})=>{const{t:e}=Eo(),{translationEnabled:n,translationLocale:r,text:o}=t.payload.body,{enableTranslations:i,languages:a}=za(),s=Rt((()=>{var t;return null==a||null===(t=Rn()(a).call(a,(t=>t.locale===r)))||void 0===t?void 0:t.nativeName}),[a,r]);return Oe(Tu,{iconName:"newTranslation",dividerType:"newtranslation",children:[Oe("p",{className:ba("divider__title"),children:e(n?"translations.divider.startText":"translations.divider.stopText",s)}),n?Oe("p",{children:o}):Oe("button",{className:ba("button","button--secondary"),onClick:()=>{i(r)},children:e("translations.divider.restartButtonText")})]})}};const kc=["event"];function Oc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Oc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Oc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Fc=["event"];function Nc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function jc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Nc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Nc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Rc=({children:t,url:e,target:n})=>e?Oe("a",{href:e,download:!0,target:n||void 0,children:t}):Oe("span",{children:t});var Pc=n(4494),Lc=n.n(Pc);function Bc({items:t,currentIndex:e,onChange:n,getItemKey:r,getItemLabel:o}){const i=t.length,a=Pt((t=>{const r=Number(t.target.dataset.item||"0"),o=Math.min(i-1,Math.max(0,r));o!==e&&n(o)}),[i,e,n]);return Oe("div",{className:ba("carousel-pagination__wrapper"),role:"group",children:Oe("ul",{className:ba("carousel-pagination"),children:E()(t).call(t,((t,n)=>{const i=e===n;return Oe("li",{className:ba("carousel-pagination__item",i?"is-active":void 0),children:Oe("button",{className:ba("carousel-pagination__button"),type:"button",onClick:a,"data-item":n,"aria-disabled":i?"true":void 0,"aria-label":o(t,n)})},r(t,n,"pagination-item-"))}))})})}function Uc({items:t,currentIndex:e,onChange:n,children:r}){const{t:o}=Eo(),i=t.length;return Oe("div",{className:ba("carousel-controls"),children:[Oe("button",{className:ba("button","button--previous"),"aria-label":o("carousel.controls.previous"),onClick:()=>{n((e-1+i)%i)},children:Oe(Sa,{name:"arrowLeft",size:"16"})}),r,Oe("button",{className:ba("button","button--next"),"aria-label":o("carousel.controls.next"),onClick:()=>{n((e+1)%i)},children:Oe(Sa,{name:"arrowRight",size:"16"})})]})}function Mc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function $c(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Mc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Mc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var zc=({id:t,action:e,buttonText:n,description:r,hasFocus:o,image:i,title:a,isCarouselItem:s})=>{const u=jt(null),{sendMessage:c,sendAction:l,emitEvent:p}=Hi(),f=fi(),h=jt(),d=e.type===nr?"a":"button",v=Pt((()=>p("action.click_card",{type:Kn,originMessage:t,action:e})),[p,t,e]),y=Pt((()=>{if(v(),"ask"===e.type)c({body:e.ask});else if("topic"===e.type){const{topic:t,fallbackMessage:n}=e;l({type:"set_topic",body:{name:t,fallbackMessage:n}})}}),[c,e,l,v]),g=Rt((()=>e.type===nr?{href:e.link,rel:"noopener noreferrer",target:e.newTab?"_blank":"_self",onClick:v}:{onClick:y}),[e,y,v]);return Ft((()=>{s&&(o&&h.current?window.requestAnimationFrame((()=>u.current.focus())):u.current.blur()),h.current=!0}),[o,s]),Oe("div",{className:ba("card__wrapper"),id:t,tabIndex:"-1",ref:u,children:[Oe("img",{className:ba("card__image"),src:i,alt:""}),Oe("div",{className:ba("card__content"),id:t,children:[a&&Oe("h2",{className:ba("card__title"),children:a}),r&&Oe("div",{className:ba("card__description"),dangerouslySetInnerHTML:{__html:Hu(r)}}),Oe(d,$c($c({tabIndex:s&&!o?"-1":void 0,className:ba("button","button--primary"),"aria-describedby":f},g),{},{children:n}))]})]})};function Hc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function qc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Hc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Hc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Vc({item:t,items:e,currentIndex:n,isActive:r}){const{t:o}=Eo();return Oe("div",{className:ba("carousel-item",`carousel-item--${t.type}`),role:"group","aria-roledescription":"slide","aria-label":o("carousel.slide.label",{index:n+1,total:e.length}),children:Oe(zc,qc(qc({},t),{},{isCarouselItem:!0,hasFocus:r}))})}const Wc=(t,e,n)=>`${n}${e}`,Gc=t=>t.label;function Yc({currentIndex:t,onChange:e,getItemKey:n=Wc,getItemLabel:r=Gc,items:o}){const i=fi(),a=o.length,[s,u]=Ot(Number(t||"0"));Ft((()=>{u(Number(t||"0"))}),[u,t]);const c=jt([]);c.current=Rt((()=>{var t,e;return E()(t=Lc()(e=Array(a)).call(e,1)).call(t,(()=>({current:null})))}),[a]);const l=jt(!0),p=jt();return p.current=e,Ft((()=>{l.current?l.current=!1:p.current&&p.current(s)}),[s]),Oe("div",{className:ba("carousel"),role:"group","aria-roledescription":"carousel",children:[Oe("div",{className:ba("carousel__slides-wrapper"),children:Oe("div",{id:i,className:ba("carousel__slides"),style:{width:100*a+"%",left:-100*s+"%"},"aria-live":"polite","aria-atomic":"false",children:E()(o).call(o,((t,e)=>{const r=s===e;return Oe("div",{ref:c.current[e],className:ba("carousel__slide",r?"is-active":void 0),"aria-hidden":r?void 0:"true",children:Oe(Vc,{item:t,items:o,currentIndex:s,isActive:r})},n(t,e,"item-"))}))})}),Oe("div",{className:ba("carousel__controls"),children:Oe(Uc,{currentIndex:s,items:o,onChange:u,controlId:i,children:Oe("div",{className:ba("carousel__pagination"),children:Oe(Bc,{currentIndex:s,items:o,onChange:u,getItemKey:n,getItemLabel:r})})})})]})}const Kc=(t,e,n="")=>`${n}${t.title}:${e}`,Jc=t=>t.title;function Qc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Qc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Qc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Xc(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function tl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Xc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Xc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const el={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=N(t,Lu);const{t:a}=Eo(),s=fi(),{body:u,subEvent:c,showOptions:l,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:h}=Mu(r);return Oe(K,{children:[E()(e=rt(o)).call(e,(t=>(t.props=Uu(Uu({},t.props),{},{event:c,descriptorId:s,showTranslationToggle:!1}),t))),p&&Oe("button",{type:"button",className:ba("button","button--secondary","button--choose-again"),"aria-expanded":l?"true":"false",onClick:h,"aria-describedby":s,children:[a(l?"message.choicePrompts.cancelChooseAgain":"message.choicePrompts.chooseAgain"),Oe(Sa,{name:"chevronDown",size:"8"})]}),l&&Oe(Pu,Uu(Uu({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:Oe("ul",{className:ba("choice-prompt","choice-prompt--many"),children:E()(n=u.choices).call(n,(t=>Oe("li",{className:ba("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:Oe("button",{type:"button",className:ba("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:hc,image:t=>{let{event:e,descriptorId:n}=t,r=N(t,bc);const[o]=Ha(e),{description:i,url:a,isZoomable:s}=o,[u,c]=Ot(!1);return Oe(Pu,Ec(Ec({event:e,type:"image"},r),{},{children:[Oe("img",{src:a,id:n,alt:i,onLoad:()=>{c(!0)}}),s&&u&&Oe(mc,{description:i,url:a})]}))},video:t=>{let{event:e,descriptorId:n}=t,r=N(t,xc);const[o]=Ha(e),{description:i,url:a}=o;return $o(e).push("message--type-video"),Oe(Pu,Dc(Dc({event:e,type:"video"},r),{},{children:[Oe("div",{id:n,className:ba("visually-hidden"),children:i}),Oe("iframe",{title:i,src:a,allow:"autoplay; encrypted-media",allowFullScreen:!0})]}))},upload:t=>{let{event:e}=t,n=N(t,Fc);const{t:r}=Eo(),[o]=Ha(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,u=Rt((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",a)),[s,a,r]);return Oe(Pu,jc(jc({event:e,type:"upload"},n),{},{children:Oe("div",{className:ba("download"),children:[Oe(Sa,{name:"download",size:"16"}),Oe(Rc,{url:s,target:i?void 0:"_blank",children:[Oe("span",{"aria-hidden":"true",className:ba("file-download"),children:a}),Oe("span",{className:ba("visually-hidden"),children:u})]})]})}))},cta:({event:t})=>{const[e]=Ha(t),n=qu(t.payload.id),{emitEvent:r}=Hi(),o=fi(),i=Pt((()=>r("action.click_cta",{type:Kn,originMessage:t.payload.id,link:{url:e.buttonLink}})),[r,e,t]);return Oe(Pu,{type:"cta",event:t,children:[Oe("div",{className:ba("cta__content"),id:o,dangerouslySetInnerHTML:{__html:Hu(e.description)},onClick:n}),Oe("a",{className:ba("button","button--primary"),"aria-describedby":o,href:e.buttonLink,rel:"noreferrer",target:e.buttonNewTab?"_blank":"_self",onClick:i,children:e.buttonText})]})},carousel:({event:t})=>{const e=t.payload.body.cards;return Oe(Pu,{event:t,modifiers:"type-carousel",children:Oe(Yc,{items:e,ItemComponent:Vc,getItemKey:Kc,getItemLabel:Jc})})},card:({event:t})=>{const[e]=Ha(t),n=fi();return Oe(Pu,{type:"card",event:t,children:Oe(zc,Zc({id:n},e))})}},info:{text:hc,divider:t=>{let{event:e}=t,n=N(t,Tc);return Oe(Sc[Zn[e.payload.body.subtype]]||Sc.default,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Cc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Cc(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=N(t,kc);const{t:r}=Eo(),[o]=Ha(e);return Oe(Pu,Ic(Ic({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:ku},participant:{participant:({event:t})=>{const{agentIcon:e}=co().defaults||{},{participant:n}=t.payload,[r]=Ha(t),o=Rt((()=>r?cc.render(Hu(r),n):void 0),[r,n]);if(!o)return null;const i=n.avatar||e;return Oe(Tu,{graphicSrc:i,graphicType:n.avatar?"avatar":void 0,iconName:i?void 0:"balloon",childrenHTML:o,dividerType:"participant"})}}};var nl=({children:t})=>{const{customComponents:e}=co(),n=Rt((()=>{var t;return en()(t=s()(el)).call(t,((t,n)=>tl(tl({},t),{},{[n]:tl(tl({},el[n]),e?e[n]:{})})),{fallback:hc})}),[e]);return Oe(wu.Provider,{value:n,children:t})},rl=()=>{const{t:t}=Eo(),{showDisclaimer:e}=co();return e&&Oe("div",{className:ba("disclaimer"),tabIndex:"0",children:[Oe("h2",{className:ba("disclaimer__title"),children:t("disclaimer.title")}),Oe("div",{className:ba("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},ol=()=>{const{t:t}=Eo(),e=jt(null),n=Co(),r=Ao().isLoading,{isOpen:o}=oa(),i=Oo(),a=Uo();return Ft((()=>{window.requestAnimationFrame((()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)}))}),[n,r,o]),Oe(K,{children:[o&&Oe("a",{className:ba("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),Oe("div",{className:ba("app__body"),ref:e,children:Oe("div",{className:ba("conversation__container"),children:[Oe(rl,{}),Oe("ol",{className:ba("conversation"),children:[Oe(nl,{children:(()=>{let t=null;return E()(n).call(n,(e=>{const{type:n,payload:r}=e,{participant:o,fromClient:i}=r;let a=!1;if("participant"!==n){const n=i?"seamly-client-participant":o;"info"!==e.type&&t!==n&&(a=!0),t=n}return Oe(Ou,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&Oe(Fu,{})]})]})})]})},il=({baseClassName:t,children:e,title:n})=>{const r=Oo(),o=fi();return Oe("section",{id:r,className:ba(t),"aria-describedby":o,tabIndex:"-1",children:[Oe("h2",{className:ba(`${t}__title`),id:o,children:n}),e]})},al=()=>{const{t:t}=Eo(),e=Uo(),n=Gi(),{emitEvent:r}=Hi(),{isActive:o,remaining:i,timer:a,endCountdown:s}=ha(),u=i>0,c=t(u?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return Oe(il,{baseClassName:"idle",title:c,children:u&&Oe(K,{children:[Oe("div",{className:ba("idle__count-container"),children:o&&Oe(K,{children:[Oe("span",{className:ba("idle__count-text"),children:t("idleDetachWarning.countdownText")}),Oe("span",{className:ba("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),Oe("div",{className:ba("idle__options"),children:[Oe("button",{type:"button",className:ba("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),Oe("button",{type:"button",className:ba("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},sl=()=>{const{t:t}=Eo(),e=Gi(),{name:n}=Fo()||{},{continueChat:r,restartChat:o}=va();return Oe(il,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",n),children:Oe("div",{className:ba("prompt__options"),children:[Oe("button",{type:"button",className:ba("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),Oe("button",{type:"button",className:ba("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function ul({controlName:t,skipLinkId:e}){const{t:n}=Eo(),{sendAssertive:r}=Vi(),{emitEvent:o}=Hi(),i=(()=>{const{sendAction:t}=Hi(),{typing:e}=co(),{features:n}=Ko(),{typingPeekahead:r}=n||{},o=jt(null),i=jt(null),a=jt(!1),s=jt(null);Ft((()=>()=>{clearInterval(s.current),clearTimeout(o.current),clearTimeout(i.current)}),[]);const u=(e,n)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ji(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ji(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}({type:Vn,state:e},r&&r.enabled?{body:{currentMessage:n}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||e&&(a.current=!0,s.current||(u(!0,t.target.value),s.current=Ki()((()=>{a.current?r&&r.enabled&&u(!0,t.target.value):(clearInterval(s.current),s.current=null)}),e.timeout)),clearTimeout(o.current),clearTimeout(i.current),o.current=pe()((()=>{a.current=!1}),300),i.current=pe()((()=>{u(!1,t.target.value)}),e.timeout))}})(),{setBlockAutoEntrySwitch:a}=ta(),{hasCharacterLimit:s,characterLimit:u,reachedCharacterWarning:c,reachedCharacterLimit:l,remainingChars:f}=function(t){const{t:e}=Eo(),{sendAssertive:n}=Vi(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t}}}=Ao(),{limit:e}=t||{};return{hasLimit:null!=e,limit:null!=e?e:null}})(),i=Pt(sn(n,300),[n]),a=Rt((()=>sn(((t,n)=>{t&&i(e("input.srCharacterLimitText",n))}),300)),[i,e]),[{value:s}]=vs(t),u=r&&s?o-s.length:o,c=!!r&&u<=50,l=!!r&&u<0;return Ft((()=>{a(c,u)}),[c,u,a]),{hasCharacterLimit:r,characterLimit:o,reachedCharacterWarning:c,reachedCharacterLimit:l,remainingChars:u}}(t),[{value:d}]=vs(t),y=!!d,m=Pt((()=>{c&&r(n("input.srCharacterLimitText",f)),o("ui.inputFocus")}),[n,r,c,f,o]),_=Rt((()=>n("input.inputPlaceholder",s?u:null)),[n,s,u]),E=Rt((()=>n("input.inputLabel",s?u:null)),[n,s,u]);return Nt((()=>(a(y),()=>{a(!1)})),[a,y]),Oe(ws,{className:ba("input","input--text"),noValidate:"true",children:[Oe("div",{className:ba(["input--text__container",...c&&!l?["character-warning"]:[],...l?["character-exceeded"]:[]]),children:[Oe(pu,{id:e,type:"text",name:t,className:ba("input__text"),autocomplete:"off",placeholder:_,labelText:E,labelClass:ba("visually-hidden"),"aria-invalid":s?l:null,onKeyUp:i,onFocus:m}),Oe("div",{className:ba("character-count"),children:c&&Oe("span",{children:f})})]}),Oe("button",{className:ba("button","input__submit"),type:"submit",disabled:!y||l,children:Oe(Sa,{name:"send",size:"32",alt:n("input.sendMessage")})})]})}function cl(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ll(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=cl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=cl(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const pl="userText";function fl(t){let e=Es({},t);const n=Oo(),r=Uo(),{sendMessage:o}=Hi(),i=Pt(((t,{updateControlValue:e})=>{o({body:t.userText}),e(pl,""),r()}),[o,r]);return Oe(bs,ll(ll({},e),{},{formId:"textEntry",persistData:!0,onSubmit:i,children:Oe(ul,{controlName:pl,skipLinkId:n})}))}var hl=()=>{const{t:t}=Eo(),{showFileUpload:e,serviceAllowsUploads:n}=ri(),[r,o]=Ot(n),i=Uo(),a=jt(null),{setUserEntryType:s,activeEntry:u}=ta(),c=jt(null),{sendPolite:l}=Vi(),p=!!Fo();return Ft((()=>{gn(c.current,(()=>{n||i()})),o(n)}),[n,i]),Ft((()=>{a.current&&!n&&l(t("fileUpload.srUnavailableText")),!1===a.current&&n&&l(t("fileUpload.srAvailableText")),p&&(a.current=n)}),[n,p,l,t]),!e&&u!==$n&&Oe(Aa,{isActive:r,transitionStartState:wa,children:Oe("div",{className:ba("upload-toggle-wrapper"),children:Oe(Aa,{isActive:r,transitionStartState:Da,children:Oe("button",{className:ba(["button","button--secondary","upload-toggle"]),ref:c,disabled:r?null:"true",type:"button",onClick:()=>{s($n),i()},children:Oe(Sa,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},dl=()=>{const{t:t}=Eo(),{currentUploads:e}=oi();return Oe("div",{className:ba("progress"),children:E()(e).call(e,(({id:e,name:n,progress:r,uploading:o,error:i})=>Oe("div",{className:ba("progress_container"),children:[Oe("div",{className:ba("progress__text"),children:[Oe("span",{className:ba("progress__text--file-name"),children:n}),Oe("span",{className:ba("progress__text--percentage"),children:`${r}%`})]}),Oe(Ds,{error:i}),Oe("progress",{className:ba("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",n),max:"100","aria-valuenow":r,value:r,"aria-busy":o,children:`${r}%`})]},e)))})};function vl({id:t,name:e,labelText:n,contentHint:r,outputText:o,accept:i}){const{isSubmitted:a}=ds(),[s,u]=Ot(!1),[{onInput:c,onBlur:l},{error:p}]=vs(e),f=fi(),h=fi(),d=fi(),v=a&&p,y=[d];r&&y.push(h),v&&y.push(f);const g=Pt((()=>{u(!0)}),[u]),m=Pt((()=>{u(!1),l()}),[u,l]),b=Pt((t=>{const e={target:{value:t.target.files}};c(e)}),[c]);return Oe("div",{className:ba("upload__container"),children:[r&&Oe("span",{className:ba("upload__content-hint"),id:h,children:r}),Oe(Ds,{id:f,error:v&&p}),Oe("div",{className:ba(["file-upload",...s?["focus-within"]:[]]),children:Oe("label",{htmlFor:t,className:ba("upload__label"),children:[Oe(Sa,{name:"upload",size:"32"}),Oe("div",{children:[Oe("span",{className:ba(["upload__label--text"]),children:n}),Oe("input",{id:t,className:ba("upload__input"),type:"file",name:e,onChange:b,"aria-invalid":v?"true":"false","aria-describedby":y.join(" "),accept:i||null,onFocus:g,onBlur:m}),Oe("span",{className:ba("upload__output"),"aria-hidden":"true",id:d,children:o})]})]})})]})}function yl({skiplinkId:t,controlName:e,accept:n,contentHint:r,isUploading:o,isComplete:i,onClickCancel:a}){const{t:s}=Eo(),[{value:u}]=vs(e),c=u&&u.length>0?u[0].name:"";return Oe(ws,{className:ba("input","input--file"),children:[Oe(vl,{name:e,id:t,accept:n,labelText:s("fileUpload.labelText"),outputText:s("fileUpload.selectedText",c),contentHint:r}),Oe("div",{className:ba("upload__button-container"),children:[Oe("button",{id:o||!i?t:void 0,type:"button",onClick:a,className:ba("button","button--secondary","upload__cancel"),children:s("fileUpload.cancelButtonText")}),Oe("button",{className:ba("button","button--primary"),type:"submit",children:s("fileUpload.uploadButtonText")})]})]})}const gl="fileListForm",ml="fileList";var bl=()=>{const{t:t}=Eo(),{sendPolite:e,sendAssertive:n}=Vi(),r=Oo(),o=Uo(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ri(),u=jt(null),c=jt(i),{cancelEntrySelection:l}=ta(),{uploadFile:p,clearUploads:f,isUploading:h,isComplete:d}=oi(),{selectedFileName:v,uploadHandle:y,hasServerError:g,progress:m}=((t,e)=>{const n=Ge(us,{formId:t,name:e},[t,e]),{currentUploads:r}=oi();let o=null,i=!1,a=0;if(r&&r.length>0){const t=r[0];o=t.uploadHandle,i=!!t.error,a=t.progress}return{selectedFileName:n&&n.length>0?n[0].name:"",uploadHandle:o,hasServerError:i,progress:a}})(gl,ml),b=fi(),_=jt(!0),E=t("fileUpload.contentHint",((t,e=2)=>{if(0===t)return"0 Bytes";const n=e<0?0:e,r=Math.floor(Math.log(t)/Math.log(1024));return Ke()((t/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]})(s)),x=jt(""),w=jt(null);Ft((()=>{x.current&&w.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(E),x.current=E}),[E,n]),Ft((()=>{if(m>0)switch(m){case 1:e(t("fileUpload.srStartedText"));break;default:e(`${m}%`)}}),[m,e,t]),Ft((()=>{_.current||h||!d||(f(),l(),o(),pe()((()=>{e(t("fileUpload.srCompleteText"))}),300)),_.current=d}),[h,d,f,l,o,e,t]);const D=Pt((({fileList:t})=>{p(t[0]),o()}),[p,!1,o]),A=Pt((()=>{y&&y.abort(),f(),l(),o()}),[y,f,l,o]),T=Rt((()=>({[ml]:[Ms((()=>i),t("fileUpload.errors.unavailable")),Ms(zs,t("fileUpload.errors.noFile")),Ms($s,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return Oe("div",{className:ba(["upload",...g?["upload--error"]:[]]),ref:w,children:Oe(bs,{formId:gl,persistData:!0,onSubmit:D,validationSchema:T,children:[(h||!d)&&Oe(K,{children:[Oe(dl,{}),Oe("div",{className:ba("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:A,ref:u,className:ba("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!h&&d&&Oe(yl,{controlName:ml,skiplinkId:r,accept:a.join(", "),contentHint:E,isComplete:d,isUploading:h,outputText:t("fileUpload.selectedText",v),onClickCancel:A}),!c.current&&Oe(K,{children:[Oe("span",{className:ba("notification"),id:b,children:t("fileUpload.unavailableText")}),Oe("div",{className:ba("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:A,className:ba("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};function _l(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=_l(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=_l(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var xl=()=>{const t=jt(null),{hasCountdown:e}=ha(),[n,r]=Ot(e),{hasPrompt:o}=va(),[i,a]=Ot(o),s=Uo(),u=jt(!1),{activeEntry:c}=ta(),[l,p]=Ot({text:fl,upload:bl}),[f,h]=Ot((()=>c)),d=co(),{accountAllowsUploads:v}=ri(),y=Pt((()=>{gn(t.current,(()=>{s()}))}),[s]);Ft((()=>{const{customComponents:t}=d,{entry:e}=t||{};e&&p((t=>El(El({},t),e)))}),[d]),Ft((()=>{y(),r(e),a(o)}),[e,o,y]),Ft((()=>{h(c),y()}),[c,y,t]),u.current=!(!t.current||!t.current.contains(document.activeElement));const g=l[f];return Oe("div",{className:ba("app__entry"),ref:t,children:[n&&Oe(al,{}),i&&Oe(sl,{}),Oe("div",{className:ba(["entry__body",...e||o?["entry__body--hidden"]:[]]),children:[f!==$n&&v&&Oe(hl,{}),Oe(g,{})]})]})},wl=({originalError:t,title:e,message:n,buttonText:r,action:o,srText:i})=>{const a=Hi(),s=fi(),{sendPolite:u}=Vi(),c=Uo(),l=t instanceof Ci;return Ft((()=>{l?a[o]():i&&pe()((()=>{u(i)}),200)}),[u,a,i,l,o]),!l&&Oe("section",{className:ba("interrupt"),"aria-labelledby":s,children:Oe("div",{className:ba("interrupt__body"),children:[Oe("h2",{id:s,className:ba("interrupt__title"),children:e}),Oe("p",{className:ba("interrupt__message"),children:n}),r&&o&&Oe("div",{className:ba("interrupt__actions"),children:Oe("button",{type:"button",className:ba("button","button--primary"),onClick:()=>{a[o](),c()},children:r})})]})})},Dl=()=>{const{isVisible:t}=oa(),{openChat:e,closeChat:n}=aa(),{isModal:r}=No();return t&&Oe(Ta,{children:Oe(eu,{children:[!r&&Oe(_u,{onOpenChat:e}),Oe(xu,{onCloseChat:n,children:Oe(Eu,{})}),Oe(bu,{interruptComponent:wl,children:[Oe(ol,{}),Oe(xl,{})]})]})})};function Al(t,e,n=[]){const r=Lt(ve),o=jt();o.current=e,Ft((()=>{if(!Zo()(n).call(n,Boolean))return;const e=(...t)=>{var e;return null===(e=o.current)||void 0===e?void 0:e.call(o,...t)};return r.emit("function.register",t,e),()=>r.emit("function.unregister",t,e)}),[r,t,...n])}var Tl=()=>{const t=co(),{sendMessage:e,sendContext:n,sendAction:r}=Hi(),{setVisibility:o,visible:i}=oa(),a=jt(i),s=Lt(ve),u=ye(),c=ko(),l=jt(null),p=jt(null),{isInline:f,isResolving:h}=No(),{hasInterrupt:d}=Di(),v=me(),y=jt(null),g=Gi(),{enableTranslations:m,disableTranslations:b}=za();return Ft((()=>{a.current=i}),[i]),Al("askText",(t=>{e({body:t})}),[null==u?void 0:u.send]),Al("setLocale",(t=>{n({locale:t})}),[null==u?void 0:u.send]),Al("setVariables",(t=>{n({variables:t})}),[null==u?void 0:u.send]),Al("getVisibility",(t=>{t?t(a.current):console.warn("A callback function is required for the getVisibility action.")})),Al("setVisibility",(e=>{var n;he()(n=C()(zn)).call(n,e)?(g(),"inline"===t.layoutMode&&e===zn.minimized?console.warn("Inline chat windows cannot be minimized."):o(e)):console.error('Requested visibility states should be "open", "minimized" ,"hidden" or null.')}),[null==t?void 0:t.api]),Al("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[u.send]),Al("setTopic",(({name:t,fallbackMessage:e})=>{t&&e?r({type:"set_topic",body:{name:t,fallbackMessage:e}}):console.warn("A name and a fallbackMessage are required for the setTopic action.")}),[u.send]),Al("setTranslation",(({enabled:t,locale:e})=>{t?m(e):b()}),[u.send]),Ft((()=>{h||d||(y.current&&y.current!==v&&s.emit("unreadMessageCount",c),i===zn.open&&i!==p.current&&0!==l.current&&s.emit("unreadMessageCount",0),i!==zn.open&&c!==l.current&&s.emit("unreadMessageCount",c),p.current=i,l.current=c,y.current=v)}),[c,i,s,f,h,d,v]),null};const{SET_EVENTS_READ:Cl}=er;var Sl=()=>{const{t:t}=Eo(),e=Co(),n=jo(),{isOpen:r,isVisible:o}=oa(),{sendAction:i}=Hi(),a=ko(),{sendPolite:s}=Vi(),u=Pt(sn(s,2e3),[s]),c=jt(null),l=jt(null);return Ft((()=>{var t;if(!r)return;const o=E()(t=w()(e).call(e,(t=>qr(t)&&t.payload.messageStatus===Hn))).call(t,(t=>t.payload.id));o.length>0&&(n({type:Cl,ids:o}),i({type:Wn,events:o}))}),[e,n,r,i]),Ft((()=>{c.current!==o&&!o&&l.current&&l.current(),0!==a&&!r&&o&&(l.current=u(t("message.srTextUnreadCount",{unreadCount:a}))),c.current=o}),[a,r,o,u,t]),null},kl=()=>{const{t:t}=Eo(),e=Co(),n=jt(0),r=jt(0),o=Ao().historyLoaded,{sendPolite:i}=Vi(),{isOpen:a}=oa(),s=jt(null),u=jt(null),c=Pt(sn((e=>{const n=w()(e).call(e,(({payload:t})=>!t.fromClient&&!t.fromHistory)).length;n>r.current&&(i(t("message.srNewEventCount",{newCount:n-r.current})),r.current=n)}),1e3),[i]);return Ft((()=>{e.length>n.current&&(a&&(u.current=c(e)),n.current=e.length)}),[e,c,a]),Ft((()=>{s.current&&!a&&u.current&&(u.current(!0),u.current=null)}),[a]),Ft((()=>{o&&pe()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Ol=({children:t})=>{const e=Lt(ve),[n,r]=Ot({}),o=jt(!0),i=Pt((t=>{o.current&&(r(t),e.emit("aria-live",t))}),[r,e]);Ft((()=>{let t=null;return n&&n.messageText&&(t=pe()((()=>{i({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[n,i]),Ft((()=>()=>{o.current=!1}),[]);const{ariaLive:a,messageText:s}=n;return Oe(qi.Provider,{value:i,children:[t,Oe("div",{className:ba("app__live-container"),children:[Oe("div",{"aria-live":"assertive","aria-atomic":"true",className:ba("visually-hidden"),children:a===Jn?s:null}),Oe("div",{"aria-live":"polite","aria-atomic":"true",className:ba("visually-hidden"),children:a===Qn?s:null})]})]})},Il=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=ha();return((t,e)=>{const n=jt(t);Ft((()=>{n.current=t}),[t]),Ft((()=>{if(null!==e){const t=Ki()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},Fl=({children:t})=>{const e=jt(0),{sendAction:n}=Hi(),{hasCountdown:r,isActive:o,stopCountdown:i}=ha(),a=Pt((()=>{const t=(new Date).getTime(),a=()=>{n({type:"interactivity_update"}),e.current=t};r&&o&&(a(),i()),t-e.current>15e3&&a()}),[n,r,o,i]);return Oe("div",{className:ba("activity-monitor"),tabIndex:"-1",onMouseDown:a,onKeyUp:a,onTouchStart:a,onMouseMove:a,onWheel:a,onPointerDown:a,onPointerMove:a,children:Oe(Wi.Provider,{value:a,children:t})})},Nl=()=>{const{initUserSelectedOptions:t}=Ko(),e=jt(!1),{setVisibility:n}=oa(),r=co();return Ft((()=>{r.api&&!e.current&&(e.current=!0,t(),n(zn.initialize))}),[t,r,n]),null};const jl=["serviceSettings"],{ADD_EVENT:Rl,ACK_EVENT:Pl,SET_IS_LOADING:Ll,SET_PARTICIPANT:Bl,SET_HEADER_SUB_TITLE:Ul,SET_ACTIVE_SERVICE:Ml,INIT_RESUME_CONVERSATION_PROMPT:$l,CLEAR_EVENTS:zl,SET_SERVICE_DATA_ITEM:Hl,SET_FEATURE_ENABLED_STATE:ql,SET_SERVICE_ENTRY_METADATA:Vl,SET_HISTORY:Wl}=er,Gl=["text","choice_prompt","image","video"];var Yl=({eventBus:t})=>{const{t:e}=Eo(),n=ye(),r=jo(),o=Co(),i=jt(null),{setUserSelectedOption:a}=Ko(),{initCountdown:s,endCountdown:u}=ha(),{emitEvent:c}=Hi();return Ft((()=>{if(n.connectionInfo){var e;const o=t=>{const{payload:e}=t;if(!e||!e.participant)return;const{fromClient:n,participant:o}=e;!n&&o.name&&r({type:Ul,title:o.name}),r({type:Bl,participant:o,fromClient:n}),o.introduction&&r({type:Rl,event:t})};n.stream().subscribe({next:e=>{const{type:n,payload:i}=e;switch(n){case"ui":switch(i.state&&i.state.hasOwnProperty("loading")&&r({type:Ll,isLoading:i.state.loading}),i.type){case"idle_detach_countdown":s(i.body.duration);break;case"idle_detach_countdown_elapsed":u(void 0,!0);break;case"resume_conversation_prompt":r({type:$l});break;case"user_first_response":t.emit("system.userFirstResponse",i.body)}break;case"message":switch(o(i),i.type){case"text":case"choice_prompt":case"image":case"upload":case"video":case"cta":case"custom":case"carousel":case"card":i.service&&i.service.serviceSessionId&&r({type:Ml,activeServiceSessionId:i.service.serviceSessionId}),r({type:Rl,event:e})}break;case"participant":o(e);break;case"service_data":i.persist&&r({type:Hl,payload:i});break;case"ack":r({type:Pl,event:e});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=N(i,jl),{cobrowsing:n,uploads:o,entry:s}=t;r({type:ql,key:Xn,enabled:!(!n||!n.enabled)}),r({type:ql,key:tr,enabled:!(!o||!o.enabled)}),a(Xn,!1),r({type:Vl,entryMeta:s}),r({type:Ml,activeServiceSessionId:i.serviceSessionId}),c("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||r({type:Rl,event:e});break;case"error":switch(i.type){case"find_conversation_erred":r(vi(new Ci));break;case"seamly_offline":r(vi(new Si)),r({type:zl});break;default:r(vi(new Ai))}break;case"socket_opened":r(yi())}}}),w()(e=n.stream()).call(e,(t=>"message"===t.type&&he()(Gl).call(Gl,t.payload.type))).subscribe({next:({payload:e})=>{e.id!==i.current&&t.emit("message",e),i.current=e.id}})}}),[r,n,t,e,a,s,u,c]),Ft((()=>{if(n.stream){const e=w()(t=n.stream()).call(t,(t=>"sync"===t.type)).subscribe({next:t=>{const{payload:e}=t,i=o[o.length-1],{id:a}=e.lastEvent;i&&a===i.payload.id||n.getConversation().then((t=>{t&&r({type:Wl,history:t})})).catch((t=>{r(vi(t))}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[n,o,r]),null};const{REGISTER_UPLOAD:Kl,SET_UPLOAD_PROGRESS:Jl,SET_UPLOAD_ERROR:Ql,SET_UPLOAD_COMPLETE:Zl}=er;var Xl=({children:t})=>{const{t:e}=Eo(),n=jo(),r=ye(),{addUploadBubble:o}=Hi();return Oe(Xo.Provider,{value:t=>{const i=pi(),a=r.uploadFile(t,(t=>{n({type:Jl,fileId:i,progress:Math.ceil(t)})}),(t=>{const{id:e,transactionId:r,occurredAt:a,body:{contentType:s,filename:u,filesize:c,url:l}}=t.body;n({type:Zl,fileId:i}),o(e,r,a,s,u,c,l)}),(t=>{let r;switch(t&&t.body?t.body.error:""){case"file_uploads_are_disabled":r=e("fileUpload.errors.unavailable");break;case"request_entity_too_large":r=e("fileUpload.errors.tooLarge");break;case"file_has_invalid_mime_type":r=e("fileUpload.errors.wrongType");break;case"virus_found":r=e("fileUpload.errors.virusFound");break;default:r=e("fileUpload.errors.general")}n({type:Ql,fileId:i,errorText:r})}));n({type:Kl,fileId:i,fileName:t.name,uploadHandle:a})},children:t})},tp=({store:t,children:e,config:n,eventBus:r,api:o})=>Oe(Ie,{store:t,children:Oe(ve.Provider,{value:r,children:Oe(de.Provider,{value:o,children:Oe(Ol,{children:[Oe(Nl,{config:n}),Oe(Yl,{eventBus:r}),Oe(Sl,{}),Oe(kl,{}),Oe(Il,{}),Oe(Fl,{children:[Oe(Tl,{}),Oe(Xl,{children:e})]})]})})})});function ep(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function np(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ep(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ep(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var rp=t=>Oe(tp,np(np({},t),{},{children:Oe(Dl,{})})),op=n(3813),ip=n.n(op),ap=n(8158),sp=n.n(ap),up=n(9340),cp=n.n(up);n(8604);const lp="undefined"!=typeof self?self:null,pp="undefined"!=typeof window?window:null,fp=lp||pp||void 0,hp="closed",dp="errored",vp="joined",yp="joining",gp="leaving",mp="phx_close",bp="phx_error",_p="phx_join",Ep="phx_reply",xp="phx_leave",wp=[mp,bp,_p,Ep,xp];let Dp=t=>"function"==typeof t?t:function(){return t};class Ap{constructor(t,e,n,r){this.channel=t,this.event=e,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:t,response:e,ref:n}){var r,o;A()(r=w()(o=this.recHooks).call(o,(e=>e.status===t))).call(r,(t=>t.callback(e)))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,(t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)})),this.timeoutTimer=pe()((()=>{this.trigger("timeout",{})}),this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}}class Tp{constructor(t,e,n){this.state=hp,this.topic=t,this.params=Dp(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ap(this,_p,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ip((()=>{this.socket.isConnected()&&this.rejoin()}),this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError((()=>this.rejoinTimer.reset()))),this.stateChangeRefs.push(this.socket.onOpen((()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()}))),this.joinPush.receive("ok",(()=>{var t;this.state=vp,this.rejoinTimer.reset(),A()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=dp,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.onClose((()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=hp,this.socket.remove(this)})),this.onError((t=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,t),this.isJoining()&&this.joinPush.reset(),this.state=dp,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.joinPush.receive("timeout",(()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Ap(this,xp,Dp({}),this.timeout).send(),this.state=dp,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Ep,((t,e)=>{this.trigger(this.replyEventName(e),t)}))}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(mp,t)}onError(t){return this.on(bp,(e=>t(e)))}on(t,e){let n=this.bindingRef++;return this.bindings.push({event:t,ref:n,callback:e}),n}off(t,e){var n;this.bindings=w()(n=this.bindings).call(n,(n=>!(n.event===t&&(void 0===e||e===n.ref))))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,n=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ap(this,t,(function(){return e}),n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=gp;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(mp,"leave")},n=new Ap(this,xp,Dp({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isLifecycleEvent(t){return Xe()(wp).call(wp,t)>=0}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&this.isLifecycleEvent(e)&&(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:n,joinRef:r}),1))}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=yp,this.joinPush.resend(t))}trigger(t,e,n,r){var o;let i=this.onMessage(t,e,n,r);if(e&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=w()(o=this.bindings).call(o,(e=>e.event===t));for(let t=0;t<a.length;t++)a[t].callback(i,n,r||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===hp}isErrored(){return this.state===dp}isJoined(){return this.state===vp}isJoining(){return this.state===yp}isLeaving(){return this.state===gp}}let Cp={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(cp()(n))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[n,r,o,i,a]=JSON.parse(t);return e({join_ref:n,ref:r,topic:o,event:i,payload:a})}},binaryEncode(t){let{join_ref:e,ref:n,event:r,topic:o,payload:i}=t,a=this.META_LENGTH+e.length+n.length+o.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),u=new DataView(s),c=0;u.setUint8(c++,this.KINDS.push),u.setUint8(c++,e.length),u.setUint8(c++,n.length),u.setUint8(c++,o.length),u.setUint8(c++,r.length),iu()(e,(t=>u.setUint8(c++,t.charCodeAt(0)))),iu()(n,(t=>u.setUint8(c++,t.charCodeAt(0)))),iu()(o,(t=>u.setUint8(c++,t.charCodeAt(0)))),iu()(r,(t=>u.setUint8(c++,t.charCodeAt(0))));var l=new Uint8Array(s.byteLength+i.byteLength);return l.set(new Uint8Array(s),0),l.set(new Uint8Array(i),s.byteLength),l.buffer},binaryDecode(t){let e=new DataView(t),n=e.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(t,e,r);case this.KINDS.reply:return this.decodeReply(t,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,r)}},decodePush(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(Qe()(t).call(t,a,a+r));a+=r;let u=n.decode(Qe()(t).call(t,a,a+o));a+=o;let c=n.decode(Qe()(t).call(t,a,a+i));return a+=i,{join_ref:s,ref:null,topic:u,event:c,payload:Qe()(t).call(t,a,t.byteLength)}},decodeReply(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=e.getUint8(3),a=e.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,u=n.decode(Qe()(t).call(t,s,s+r));s+=r;let c=n.decode(Qe()(t).call(t,s,s+o));s+=o;let l=n.decode(Qe()(t).call(t,s,s+i));s+=i;let p=n.decode(Qe()(t).call(t,s,s+a));s+=a;let f=Qe()(t).call(t,s,t.byteLength);return{join_ref:u,ref:c,topic:l,event:Ep,payload:{status:p,response:f}}},decodeBroadcast(t,e,n){let r=e.getUint8(1),o=e.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(Qe()(t).call(t,i,i+r));i+=r;let s=n.decode(Qe()(t).call(t,i,i+o));return i+=o,{join_ref:null,ref:null,topic:a,event:s,payload:Qe()(t).call(t,i,t.byteLength)}}};class Sp{constructor(t,e={}){var n,r;this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||1e4,this.transport=e.transport||fp.WebSocket||kp,this.defaultEncoder=i()(n=Cp.encode).call(n,Cp),this.defaultDecoder=i()(r=Cp.decode).call(r,Cp),this.closeWasClean=!1,this.unloaded=!1,this.binaryType=e.binaryType||"arraybuffer",this.transport!==kp?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder),pp&&pp.addEventListener&&pp.addEventListener("beforeunload",(t=>{this.conn&&(this.unloaded=!0,this.abnormalClose("unloaded"))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>this.unloaded?100:e.reconnectAfterMs?e.reconnectAfterMs(t):[10,50,100,150,200,250,500,1e3,2e3][t-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Dp(e.params||{}),this.endPoint=`${t}/websocket`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ip((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Op.appendParams(Op.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==t.charAt(0)?t:"/"===t.charAt(1)?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,n){this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Dp(t)),this.conn||(this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t))}log(t,e,n){this.logger(t,e,n)}hasLogger(){return null!==this.logger}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onConnOpen(){var t;this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.unloaded=!1,this.closeWasClean=!1,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),A()(t=this.stateChangeCallbacks.open).call(t,(([,t])=>t()))}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.abnormalClose("heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,clearTimeout(this.heartbeatTimer),pe()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs))}teardown(t,e,n){if(!this.conn)return t&&t();this.waitForBufferDone((()=>{this.conn&&(e?this.conn.close(e,n||""):this.conn.close()),this.waitForSocketClosed((()=>{this.conn&&(this.conn.onclose=function(){},this.conn=null),t&&t()}))}))}waitForBufferDone(t,e=1){5!==e&&this.conn&&this.conn.bufferedAmount?pe()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?pe()((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){var e;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearTimeout(this.heartbeatTimer),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),A()(e=this.stateChangeCallbacks.close).call(e,(([,e])=>e(t)))}onConnError(t){var e;this.hasLogger()&&this.log("transport",t),this.triggerChanError(),A()(e=this.stateChangeCallbacks.error).call(e,(([,e])=>e(t)))}triggerChanError(){var t;A()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(bp)}))}connectionState(){switch(this.conn&&this.conn.readyState){case 0:return"connecting";case 1:return"open";case 2:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(t){var e;this.off(t.stateChangeRefs),this.channels=w()(e=this.channels).call(e,(e=>e.joinRef()!==t.joinRef()))}off(t){for(let n in this.stateChangeCallbacks){var e;this.stateChangeCallbacks[n]=w()(e=this.stateChangeCallbacks[n]).call(e,(([e])=>-1===Xe()(t).call(t,e)))}}channel(t,e={}){let n=new Tp(t,e,this);return this.channels.push(n),n}push(t){if(this.hasLogger()){let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;this.log("push",`${e} ${n} (${i}, ${o})`,r)}this.isConnected()?this.encode(t,(t=>this.conn.send(t))):this.sendBuffer.push((()=>this.encode(t,(t=>this.conn.send(t)))))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimer=pe()((()=>this.heartbeatTimeout()),this.heartbeatIntervalMs))}abnormalClose(t){this.closeWasClean=!1,this.isConnected()&&this.conn.close(1e3,t)}flushSendBuffer(){var t;this.isConnected()&&this.sendBuffer.length>0&&(A()(t=this.sendBuffer).call(t,(t=>t())),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,(t=>{let{topic:e,event:n,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(clearTimeout(this.heartbeatTimer),this.pendingHeartbeatRef=null,pe()((()=>this.sendHeartbeat()),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${e} ${n} ${o&&"("+o+")"||""}`,r);for(let t=0;t<this.channels.length;t++){const a=this.channels[t];a.isMember(e,n,r,i)&&a.trigger(n,r,o,i)}for(let e=0;e<this.stateChangeCallbacks.message.length;e++){let[,n]=this.stateChangeCallbacks.message[e];n(t)}}))}leaveOpenTopic(t){var e;let n=Rn()(e=this.channels).call(e,(e=>e.topic===t&&(e.isJoined()||e.isJoining())));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}}class kp{constructor(t){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=0,this.poll()}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/websocket"),"$1/longpoll")}endpointURL(){return Op.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(){this.close(),this.readyState=0}ontimeout(){this.onerror("timeout"),this.closeAndRetry()}poll(){var t;1!==this.readyState&&0!==this.readyState||Op.request("GET",this.endpointURL(),"application/json",null,this.timeout,i()(t=this.ontimeout).call(t,this),(t=>{if(t){var{status:e,token:n,messages:r}=t;this.token=n}else var e=0;switch(e){case 200:A()(r).call(r,(t=>{pe()((()=>{this.onmessage({data:t})}),0)})),this.poll();break;case 204:this.poll();break;case 410:this.readyState=1,this.onopen(),this.poll();break;case 403:this.onerror(),this.close();break;case 0:case 500:this.onerror(),this.closeAndRetry();break;default:throw new Error(`unhandled poll status ${e}`)}}))}send(t){var e;Op.request("POST",this.endpointURL(),"application/json",t,this.timeout,i()(e=this.onerror).call(e,this,"timeout"),(t=>{t&&200===t.status||(this.onerror(t&&t.status),this.closeAndRetry())}))}close(t,e){this.readyState=3,this.onclose()}}class Op{static request(t,e,n,r,o,i,a){if(fp.XDomainRequest){let n=new XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new fp.XMLHttpRequest;this.xhrRequest(s,t,e,n,r,o,i,a)}}static xdomainRequest(t,e,n,r,o,i,a){t.timeout=o,t.open(e,n),t.onload=()=>{let e=this.parseJSON(t.responseText);a&&a(e)},i&&(t.ontimeout=i),t.onprogress=()=>{},t.send(r)}static xhrRequest(t,e,n,r,o,i,a,s){t.open(e,n,!0),t.timeout=i,t.setRequestHeader("Content-Type",r),t.onerror=()=>{s&&s(null)},t.onreadystatechange=()=>{if(t.readyState===this.states.complete&&s){let e=this.parseJSON(t.responseText);s(e)}},a&&(t.ontimeout=a),t.send(o)}static parseJSON(t){if(!t||""===t)return null;try{return JSON.parse(t)}catch(e){return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let n=[];for(var r in t){if(!t.hasOwnProperty(r))continue;let o=e?`${e}[${r}]`:r,i=t[r];"object"==typeof i?n.push(this.serialize(i,o)):n.push(encodeURIComponent(o)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(t,e){if(0===s()(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}}Op.states={complete:4};class Ip{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=pe()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}}function Fp(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Np(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Fp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Fp(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}var jp=n(1905),Rp=n.n(jp);function Pp(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Pp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Pp(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const Bp=Rp()("seamly");class Up{constructor(t,e,n){this.url=t,this.accessToken=n,this.channelName=e,this.connect(),this.socket.onError((t=>{Bp("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline"}})})),this.socket.onOpen((()=>{Bp("[SOCKET]OPEN"),this.emit({type:"socket_opened"})})),this.channel.on("system",(t=>{switch(t.type){case"join_conversation_succeeded":this.emit({type:"connection",connected:!0,ready:!0})}})),this.socket.onClose((t=>{Bp("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((t=>{Bp("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{Bp("[CHANNEL][ERROR]",t),this.emit({type:"connection",connected:!1,ready:!1})})),this.listenTo("ack"),this.listenTo("ui"),this.listenTo("error"),this.listenTo("participant",((t,e)=>Lp(Lp({},e),{},{type:t}))),this.listenTo("message"),this.listenTo("service_data"),this.listenTo("system"),this.listenTo("info"),this.listenTo("sync")}start(t){this.listener=t,this.channel.join().receive("ok",(()=>{Bp("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{Bp("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred"}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{Bp("[CHANEL][JOIN] Networking issue. Still waiting...")}))}stop(){this.listener=null}connect(){const{url:t,params:e}=(t=>{var e;const n=Xe()(t).call(t,"?");return n<0?{url:t,params:{}}:{url:Qe()(t).call(t,0,n),params:en()(e=Qe()(t).call(t,n+1).split("&")).call(e,(function(t,e){const[n,r]=e.split("=");return Np(Np({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new Sp(t,{params:Lp(Lp({},e),{},{v:Qr})}),this.socket.connect(),this.channel=this.socket.channel(this.channelName,{authorization:`Bearer ${this.accessToken}`})}disconnect(){return new(li())((t=>{this.socket.disconnect(t)}))}listenTo(t,e=null){this.channel.on(t,(n=>{Bp("[RECEIVE]",t,n),this.emit({type:t,payload:e?e(t,n):n})}))}emit(t){this.listener&&this.listener.next(t)}push(t,e,n){this.channel.push(t,e,n)}}function Mp(t){const e="cvco."+t;return{get:()=>JSON.parse(sessionStorage.getItem(e)),set(t){t&&sessionStorage.setItem(e,cp()(t))}}}class $p{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function zp(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=zp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=zp(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const qp=Rp()("seamly");function Vp(){if(!Intl||"undefined"==typeof Intl||void 0===Intl.DateTimeFormat)return null;const t=Intl.DateTimeFormat();if(void 0===t||void 0===t.resolvedOptions)return null;const e=t.resolvedOptions().timeZone;return e&&(Xe()(e).call(e,"/")>-1||"UTC"===e)?e:null}class Wp{constructor({namespace:t,config:e={}}){var n;this.store=function(t,e){const n=e(t),r=n.get()||{};return{get:t=>void 0===t?r:r[t],set:(t,e)=>(r[t]=e,n.set(r),e),delete(t){const e=this.get(t);return delete r[t],n.set(r),e}}}(`${t}.connection`,e.storageProvider||Mp),this.connectionInfo={apiKey:e.key,domain:e.domain||"api.seamly-app.com",secure:!1!==e.secure&&(e.secure||!0)},this.sendEnvironment=void 0===e.sendEnvironment||e.sendEnvironment,this.connected=!1,this.configReady=!1,this.externalId=e.externalId,this.internalProducer=new $p("API"),this.internal$=ip().create(this.internalProducer).flatten(),this.connection$=w()(n=this.internal$).call(n,(t=>"connection"===t.type)),this.connection$.subscribe({next:({connected:t,ready:e})=>{this.connected=t,this.ready=e}}),this.URLS={}}getAccessToken(){return this.store.get("accessToken")}setAccessToken(t){this.store.set("accessToken",t)}getConversationUrl(){return this.store.get("conversationUrl")}setConversationUrl(t){this.store.set("conversationUrl",t)}hasConversation(){return!!this.getConversationUrl()}getChannelName(){return this.store.get("channelName")}setChannelName(t){this.store.set("channelName",t)}setUserResponded(t){this.store.set("userResponded",t)}clearStore(){this.store.delete("accessToken"),this.store.delete("conversationUrl"),this.store.delete("channelName")}getUrlPrefix(t){return`${this.connectionInfo.secure?`${t}s`:t}://${this.connectionInfo.domain}`}updateUrls({_links:t}){var e,n;this.URLS=en()(e=w()(n=z()(t)).call(n,(([t])=>"self"!==t))).call(e,((t,[e,{href:n}])=>Hp(Hp({},t),{},{[e]:n})),this.URLS)}async reset(){return await this.disconnect(),this.clearStore(),this.getConfig()}async disconnect(){this.conversationProducer&&await this.conversationProducer.disconnect(),this.connected=!1,this.configReady=!1}async createConversation(){try{const t=sp().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:Qr}).withCredentials().send({authorizationRequired:!0,externalId:this.externalId||void 0}),{body:e}=await t,{conversation:n}=e,r=Hp({},n);return delete r.accessToken,delete r.channelName,this.setAccessToken(n.accessToken),this.setChannelName(n.channelName),this.updateUrls(e),this.setConversationUrl(this.URLS.conversation),r}catch(t){if(t.status>=500)throw new Ai;throw t}}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await sp().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Qr});this.updateUrls(t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:E()(e).call(e,(([t,e])=>({type:t,payload:Hp(Hp({},e),{},{type:"participant"===t?t:e.type})}))),participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,resumeConversationPrompt:!!a&&Boolean(a.resumeConversationPrompt),translation:s}}catch(t){if(401===t.status)throw new ki;if(404===t.status)throw new Ci;if(t.status>=500)throw new Ai;throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new Up(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.getChannelName(),this.getAccessToken()),this.internalProducer.emit(ip().create(this.conversationProducer)),this.sendEnvironment&&this.send("context",{environment:!0===this.sendEnvironment?{screenResolution:`${window.screen.width}x${window.screen.height}`,userAgent:navigator.userAgent,currentUrl:window.location.toString(),timezone:Vp()}:this.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=sp().post(`${this.getUrlPrefix("http")}${this.URLS.uploads}`).set("Authorization",`Bearer ${this.getAccessToken()}`).send(o);return i.on("progress",(function(t){const{direction:n,percent:r}=t;"upload"===n&&"function"==typeof e&&e(r)})),i.then((t=>{n&&n(t)})).catch((t=>{if(!r)throw t;r(t.response)})),i}getAccountConfig(){return sp().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:Qr}).then((({body:t})=>(this.updateUrls(t),{accountConfig:t.config}))).catch((t=>{if(404===t.status)throw new Ti;if(t.status>=500)throw new Ai;throw t}))}getConversationIntitialState(){return sp().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:Qr}).then((({body:t})=>{this.updateUrls(t);const e=Hp({},t.conversation);return delete e.accessToken,delete e.channelName,{initialState:e}})).catch((t=>{if(401===t.status)throw new ki;if(404===t.status)throw new Ci;if(t.status>=500)throw new Ai;throw t}))}getConfig(){const t=[this.getAccountConfig()];return this.hasConversation()&&t.push(this.getConversationIntitialState()),li().all(t).then((t=>{const e=en()(t).call(t,((t,e)=>Hp(Hp({},t),e)),{});return this.configReady=!0,e}))}send(t,e,n=!0){var r;!this.connected||n&&!this.ready?w()(r=this.connection$).call(r,(t=>n?t.connected&&t.ready:t.connected)).take(1).subscribe({next:()=>this.send(t,e,n)}):(qp("[SEND]",t,e),this.conversationProducer.push(t,function(t,e){if("message"!==t)return e;const{type:n,body:r}=e;let{transactionId:o}=e;return o||(o=pi()),{type:n,body:r,transactionId:o}}(t,e),1e4),("message"===t||"action"===t&&e&&"pick_choice"===e.type||"action"===t&&e&&"custom"===e.type&&e.body&&"faqclick"==e.body.type)&&this.setUserResponded(!0))}sendContext(t={}){const{locale:e,variables:n}=t,r={};if(e){if("string"!=typeof e)throw new Error("Locale must be a string");r.locale=e}if(n){if("object"!=typeof n)throw new Error("Variables must be an object");r.variables=n}0===s()(r).length&&r.constructor===Object||this.send("context",r,!1)}stream(){var t;return w()(t=this.internal$).call(t,(t=>"connection"!==t.type))}}function Gp(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}var Yp=Gp();Yp.withExtraArgument=Gp;var Kp=Yp;function Jp(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Jp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Jp(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}function Zp({api:t}){return({dispatch:e})=>n=>r=>{const o=n(r);switch(r.type){case String(vi):r.error instanceof Si||e({type:er.SET_USER_SELECTED_OPTION,option:Xn,value:!1});break;case er.SET_USER_SELECTED_OPTIONS:t.store.set("options",r.options);break;case er.SET_USER_SELECTED_OPTION:t.store.set("options",Qp(Qp({},t.store.get("options")||{}),{},{[r.option]:r.value}))}return o}}const Xp={events:[],initialState:{},unreadEvents:0,isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,visible:zn.hidden,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:pi(),optionsButtonId:pi(),cobrowsingContainerId:pi(),headerCollapseButtonId:pi(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:Mn,active:Mn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function tf(t=Xp,e){return((t,e)=>{var n,r,o,i,a,s,u,c,l,p;switch(e.type){case rr:const{type:f,payload:h}=e.event,d=t.options.features.hasOwnProperty(tr),v=Yr(t.entryMeta,h);let y=Ln({},t.options);if(d&&(f===Bn.message||f===Bn.participant)&&!h.fromClient){const{type:t}=h.entry||{};y=Ln(Ln({},y),{},{features:Ln(Ln({},y.features),{},{uploads:Ln(Ln({},y.features.uploads),{},{enabledFromEntry:t===$n})})})}const g=qr(e.event);return Rn()(n=t.events).call(n,(t=>t.payload.id===h.id))?t:Ln(Ln({},t),{},{entryMeta:d||v.active!==$n?v:Ln({},t.entryMeta),options:y,unreadEvents:g?t.unreadEvents+1:t.unreadEvents,events:[...t.events,Ln(Ln({},e.event),{},{payload:Ln(Ln({},g&&{messageStatus:h.fromClient?qn:Hn}),h)})]});case sr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const m=Rn()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:b,occurredAt:_}=e.event.payload;return m?Ln(Ln({},t),{},{events:Vr(E()(o=t.events).call(o,(t=>t.payload.id===m.payload.id?Ln(Ln({},t),{},{payload:Ln(Ln({},t.payload),{},{id:b,occurredAt:_})}):t)))}):t;case or:return Ln(Ln({},t),{},{unreadEvents:0,events:[]});case ar:return Ln(Ln({},t),{},{unreadEvents:0,events:E()(i=t.events).call(i,(t=>{var n;return-1!==Xe()(n=e.ids).call(n,t.payload.id)?Ln(Ln({},t),{},{payload:Ln(Ln({},t.payload),t.payload.messageStatus===Hn&&{messageStatus:qn})}):t}))});case ir:const{events:x,participants:D,activeServiceSessionId:A,activeServiceSettings:T={},serviceData:C,resumeConversationPrompt:S}=e.history,k=((t,e)=>{var n;const r=Nn()(n=w()(e).call(e,(e=>!(Rn()(t).call(t,(t=>t.payload.id===e.payload.id))||"participant"===e.type&&!e.payload.participant.introduction)))).call(n);return Vr([...r,...t])})(t.events,x),O=Ln(Ln({},t.participantInfo.participants),D),I=Rn()(a=Nn()(s=Qe()(k).call(k)).call(s)).call(a,(t=>("message"===t.type||"participant"===t.type)&&!t.payload.fromClient));let F=null;I&&("message"===I.type&&(F=I.payload.participant),"participant"===I.type&&(F=I.payload.participant.id));const{cobrowsing:N,entry:j,uploads:R}=T,P=Yr(Ln(Ln(Ln({},t.entryMeta),j),{},{active:j.default||Un,options:Ln({},j&&j.options?j.options:{})}),k[k.length-1].payload);let L=Ln({},t.options.features);L.hasOwnProperty(Xn)&&(L=Ln(Ln({},L),{},{cobrowsing:{enabled:!(!N||!N.enabled)}}));const B=L.hasOwnProperty(tr);if(B){const{payload:t}=I,{type:e}=t.entry||{};L=Ln(Ln({},L),{},{uploads:{enabled:!(!R||!R.enabled),enabledFromEntry:e===$n}})}const U=Ln(Ln({},t),{},{unreadEvents:w()(k).call(k,(t=>"message"===t.type&&t.payload.messageStatus===Hn)).length,events:w()(k).call(k,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:Ln(Ln(Ln({},t.participantInfo),F?Wr(t.participantInfo,{type:lr,participant:O[F]}):{}),{},{participants:O}),historyLoaded:!0,serviceInfo:Ln(Ln({},t.serviceInfo),{},{activeServiceSessionId:A}),serviceData:C||{},options:Ln(Ln({},t.options),{},{features:L}),entryMeta:B||P.active!==$n?P:Ln({},t.entryMeta),resumeConversationPrompt:S||!1});return F&&(U.headerTitles=Gr(t.headerTitles,{type:fr,title:O[F].name})),U;case dr:return Ln(Ln({},t),{},{historyLoaded:!1});case ur:return Ln(Ln({},t),{},{isLoading:e.isLoading});case yr:const{delaySeconds:M,delayTime:$}=e;return Ln(Ln({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:M,remaining:M,timer:$}});case gr:const{idleDetachCountdown:z}=t,{remaining:H}=z,q=H-1;return Ln(Ln({},t),{},{idleDetachCountdown:Ln(Ln({},t.idleDetachCountdown),{},{remaining:q,timer:ln(q)})});case mr:return Ln(Ln({},t),{},{idleDetachCountdown:Ln(Ln({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case br:return Ln(Ln({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case _r:return Ln(Ln({},t),{},{resumeConversationPrompt:!0});case Er:return Ln(Ln({},t),{},{resumeConversationPrompt:!1});case hr:return Ln(Ln({},t),{},{visible:e.visible});case lr:case cr:return Ln(Ln({},t),{},{participantInfo:Wr(t.participantInfo,e)});case vr:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?Ln(Ln({},t),{},{serviceInfo:Ln(Ln({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case pr:case fr:return Ln(Ln({},t),{},{headerTitles:Gr(t.headerTitles,e)});case Tr:return Ln(Ln({},t),{},{initialState:e.initialState});case xr:return Ln(Ln({},t),{},{serviceData:Ln(Ln({},t.serviceData),{},{[e.payload.type]:e.payload})});case wr:return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{features:e.features})});case Dr:return t.options.features.hasOwnProperty(e.key)?Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{features:Ln(Ln({},t.options.features),{},{[e.key]:Ln(Ln({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case Ar:return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{features:{}})});case kr:return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case Or:return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{panelActive:!1,optionActive:""})});case Sr:return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{userSelectedOptions:e.options})});case Cr:const{option:V,value:W}=e;return Ln(Ln({},t),{},{options:Ln(Ln({},t.options),{},{userSelectedOptions:Ln(Ln({},t.options.userSelectedOptions),{},{[V]:W})})});case Ir:const{value:G}=e;return Ln(Ln({},t),{},{entryMeta:Ln(Ln({},t.entryMeta),{},{blockAutoEntrySwitch:G})});case jr:const{entryMeta:Y}=e;return Ln(Ln({},t),{},{entryMeta:Ln(Ln(Ln({},t.entryMeta),Y),{},{active:Y.default,options:Ln({},Y.options||{}),overrideOptions:{}})});case Nr:const{entryType:K}=e;return Ln(Ln({},t),{},{entryMeta:Ln(Ln({},t.entryMeta),{},{active:K})});case Fr:const{entryType:J}=e;return Ln(Ln({},t),{},{entryMeta:Ln(Ln({},t.entryMeta),{},{userSelected:J})});case Rr:return Ln(Ln({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case Pr:return Ln(Ln({},t),{},{currentUploads:E()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?Ln(Ln({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Br:return Ln(Ln({},t),{},{currentUploads:E()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?Ln(Ln({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case Lr:return Ln(Ln({},t),{},{currentUploads:E()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?Ln(Ln({},t),{},{complete:!0}):t))});case Ur:return Ln(Ln({},t),{},{currentUploads:w()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Mr:return Ln(Ln({},t),{},{currentUploads:[]});case $r:return Ln(Ln({},t),{},{showFileUpload:!1,currentUploads:[]});case zr:return Ln(Ln({},t),{},{entryMeta:{default:Un,active:Un,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}}});case Hr:return Ln(Ln({},t),{},{seamlyContainerElement:e.element});default:return t}})(t,e)}const{createThunk:ef}=An("app"),nf=ef("initialize",(t=>async(e,n,{api:r})=>{try{e(Sn(t));const{accountConfig:n={},initialState:o={}}=await r.getConfig(),{features:i}=n||{};e({type:er.SET_FEATURES,features:i}),e({type:er.SET_INITIAL_STATE,initialState:o})}catch(t){e(vi(t))}})),rf=["namespace","parentElement","showFaq"],of=["view"];function af(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function sf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=af(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=af(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}class uf{constructor(t,e){const{namespace:n="",parentElement:r,showFaq:o}=t,i=N(t,rf);this.config=sf(sf({},i),{},{showFaq:!1!==o,namespace:n}),this.namespace=n,this.parentElement=r,this.externalApi=e,this.api=new Wp({namespace:t.namespace,config:t.api}),this.eventBus=new(Et()),this.functions={},this.registerFunctions({on:this.eventBus.on,off:this.eventBus.off}),this.eventBus.on("function.register",((t,e)=>this.registerFunction(t,e))),this.eventBus.on("function.unregister",((t,e)=>this.unregisterFunction(t,e)))}async render(){const t=this.config.customComponents||{},{view:e}=t,n=N(t,of),r=sf(sf({},this.config),{},{customComponents:s()(n).length?n:void 0}),o=function({initialState:t,api:e}={}){return He({reducers:{state:tf,[String(io)]:io,[String(os)]:os,[String(Ba)]:Ba,[String(yo)]:yo,[String(_i)]:_i},initialState:t,middlewares:[Kp.withExtraArgument({api:e}),({dispatch:t})=>e=>n=>{var r,o,i;const a=e(n);switch(n.type){case String(Sn):case String(kn):var s,u;null!=n&&null!==(r=n.config)&&void 0!==r&&r.translations&&t(ho(n.config.translations)),null!=n&&null!==(o=n.config)&&void 0!==o&&null!==(i=o.defaults)&&void 0!==i&&i.agentName&&t({type:er.SET_HEADER_SUB_TITLE,title:null==n||null===(s=n.config)||void 0===s||null===(u=s.defaults)||void 0===u?void 0:u.agentName})}return a},()=>t=>e=>{if(e.type===String(vi)&&!k()(Oi).call(Oi,(t=>e.error instanceof t)))throw e.error;return t(e)},Zp({api:e})]})}({api:this.api});await o.dispatch(nf(r)),vt(e?Oe(tp,{config:r,eventBus:this.eventBus,store:o,api:this.api,children:Oe(e,{})}):Oe(rp,{config:r,eventBus:this.eventBus,store:o,api:this.api}),this.parentElement)}destroy(){vt(null,this.parentElement),this.eventBus.off(),this.api.disconnect(),delete this.functions}registerFunctions(t){var e;A()(e=z()(t)).call(e,(([t,e])=>{this.registerFunction(t,e)}))}registerFunction(t,e){this.functions[t]=this.functions[t]||[],this.functions[t].push(e),this.externalApi.handleActions()}unregisterFunction(t,e){const n=this.functions[t];n&&n.length&&(this.functions[t]=w()(n).call(n,(t=>t!==e)))}execFunction(t,...e){const n=this.functions[t];return!(!n||!n.length||(A()(n).call(n,(n=>{try{n(...e)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function cf(t,e){var n=s()(t);if(c()){var r=c()(t);e&&(r=w()(r).call(r,(function(e){return p()(t,e).enumerable}))),n.push.apply(n,r)}return n}function lf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=cf(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=cf(Object(r))).call(o,(function(e){g()(t,e,p()(r,e))}))}}return t}const pf=t=>"object"==typeof t&&"action"in t,ff=t=>lf(lf({},t),{},{args:e()(t.args)?t.args:[t.args]});var hf=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t}push(...t){var e;(t=E()(e=w()(t).call(t,pf)).call(e,ff)).length&&(this._waitingActions.push(...t),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],A()(t).call(t,(t=>{switch(t.action){case"init":this.handleInit(t);break;case"destroy":this.handleDestroy(t);break;default:this.handleAction(t)||this._waitingActions.push(t)}}))}handleInit(t){var e;const n=this.getUserConfig(...t.args),r=this.getCombinedConfig(n);if(!r)return void this.destroy(n.namespace);const{parentElement:o,namespace:i}=r;A()(e=C()(this._instances)).call(e,(t=>{t.parentElement!==o&&t.namespace!==i||this.destroy(t)}));const a=this.createInstance(r);this._instances[r.namespace]=a,a.render()}handleDestroy(t){var e;void 0!==t.instance?this.destroy(t.instance):A()(e=C()(this._instances)).call(e,(t=>{this.destroy(t)}))}handleAction(t){const{action:e,instance:n,args:r}=t,o=C()(this._instances);!n&&o.length>1&&console.warn(`Multiple instances detected. Due to potential race conditions, it is recommended to target a specific instance with the action: ${e}`);const i=E()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return k()(i).call(i,Boolean)}createInstance(t){return new uf(t,this)}destroy(t){"string"==typeof t&&(t=this._instances[t]),t&&(t.destroy(),delete this._instances[t.namespace])}getUserConfig(t={}){return t}getCombinedConfig(t){return"function"==typeof this.appConfig?this.appConfig(t):lf(lf(lf({},this.appConfig),t),{},{api:lf(lf({},this.appConfig.api),t.api)})}},df=function(t){var n;if(window.seamly&&!e()(window.seamly))throw new Error("Seamly UI has already been initialised. Use the window.seamly object to start new instances instead.");const r=e()(window.seamly)?window.seamly:[],o=new hf(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));