@seamly/web-ui 19.1.3 → 19.1.4

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.
@@ -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)},1611:function(t,e,n){t.exports=n(6507)},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)},149:function(t,e,n){t.exports=n(888)},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){n(149);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),m=n(7149),g=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 C(){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:C,changeDefaults:function(t){A.exports.defaults=t}};var T=/[&<>"']/,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]*$/,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(T.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=$(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},K={exec:function(){}},Y=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,g,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,g=v(w=d[0]).call(w)):(u=e[2].search(/[^ ]/),u=e[1].length+(u>4?1:u),g=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}g+="\n"+o(h).call(h,u)}else f(h).call(h)||(l=!0),h.search(/[^ ]/)>=u?g+="\n"+o(h).call(h,u):g+="\n"+h}E.loose||(p?E.loose=!0:/\n *\n *$/.test(i)&&(p=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(s="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:i,task:!!a,checked:s,loose:!1,text:g}),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(g).call(g),E.raw=y(r=E.raw).call(r);var C=E.items.length;for(c=0;c<C;c++){var T;this.lexer.state.top=!1,E.items[c].tokens=this.lexer.blockTokens(E.items[c].text,[]),m(T=E.items[c].tokens).call(T,(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=K,ct=W,lt=Y,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,mt=ht.inline,gt=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=g(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:mt.normal};this.options.pedantic?(e.block=yt.pedantic,e.inline=mt.pedantic):this.options.gfm&&(e.block=yt.gfm,this.options.breaks?e.inline=mt.breaks:e.inline=mt.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&&m(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)+"["+gt("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)+"["+gt("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&&m(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 g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}throw new Error(g)}}else t=t.substring(n.raw.length),e.push(n)}return e},n=e,i=[{key:"rules",get:function(){return{block:yt,inline:mt}}}],(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}(),Ct=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}(),Tt=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=Ct,Ot=Tt,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,m,g,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++)m=(y=p.items[r]).checked,g=y.task,v="",y.task&&(b=this.renderer.checkbox(m),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,g,m);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=Ct,Bt=Tt,Ut=Y,Mt=X,zt=q,$t=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>"+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 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>"+zt(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),m=n(4445),g=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 C(t){if(!_(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&T(e,n,t[n]);return e.join("&")}function T(t,e,n){if(void 0!==n)if(null!==n)if(u(n))c(n).call(n,(function(n){T(t,e,n)}));else if(_(n))for(var r in n){var o;Object.prototype.hasOwnProperty.call(n,r)&&T(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=C,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":g.stringify,"application/json":m},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=C(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 m(t){if(t)return function(t){for(var e in m.prototype)Object.prototype.hasOwnProperty.call(m.prototype,e)&&(t[e]=m.prototype[e]);return t}(t)}t.exports=m,m.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},m.prototype.parse=function(t){return this._parser=t,this},m.prototype.responseType=function(t){return this._responseType=t,this},m.prototype.serialize=function(t){return this._serializer=t,this},m.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},m.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 g=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),b=new i([408,413,429,500,502,503,504,521,522,524]);m.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&&g.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},m.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()},m.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)},m.prototype.catch=function(t){return this.then(void 0,t)},m.prototype.use=function(t){return t(this),this},m.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},m.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},m.prototype.get=function(t){return this._header[t.toLowerCase()]},m.prototype.getHeader=m.prototype.get,m.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},m.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},m.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},m.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},m.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},m.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},m.prototype.redirects=function(t){return this._maxRedirects=t,this},m.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},m.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},m.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},m.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},m.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("&")}}},m.prototype._appendQueryString=function(){console.warn("Unsupported")},m.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)}},m.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},1031:function(t,e,n){n(2595),t.exports=n(1899)},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},3966:function(t,e,n){n(7405);var r=n(4058);t.exports=r.Object.getPrototypeOf},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},888:function(t,e,n){n(9668);var r=n(1031);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,m=y>1?arguments[1]:void 0,g=void 0!==m,b=c(d),_=0;if(g&&(m=r(m,y>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)h=g?m(d[_],_):d[_],u(n,_,h);else for(f=(p=b.call(d)).next,n=new v;!(l=f.call(p)).done;_++)h=g?i(p,m,[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,m){for(var g,b,_=i(d),E=o(_),x=r(v,y,3),w=a(E.length),D=0,A=m||s,C=e?A(d,w):n||f?A(d,0):void 0;w>D;D++)if((h||D in E)&&(b=x(g=E[D],D,_),t))if(e)C[D]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return D;case 2:u.call(C,g)}else switch(t){case 4:return!1;case 7:u.call(C,g)}return p?-1:c||l?l:C}};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=m(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},m=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=m(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!!m(this,t)}}),i(l.prototype,n?{get:function(t){var e=m(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,m=v.getterFor;t.exports=function(t,e,n){var v,g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=g?"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:g})}));var D=m(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,g,_),i.enable();return p(v,t,!1,!0),w[t]=v,r({global:!0,forced:!0},w),b||n.setStrong(v,t,g),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"),m="keys",g="values",b="entries",_=function(){return this};t.exports=function(t,e,n,l,h,E,x){o(n,e,l);var w,D,A,C=function(t){if(t===h&&I)return I;if(!v&&t in k)return k[t];switch(t){case m:case g:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",S=!1,k=t.prototype,O=k[y]||k["@@iterator"]||h&&k[h],I=!v&&O||C(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,T,!0,!0),p&&(f[T]=_))),h==g&&O&&O.name!==g&&(S=!0,I=function(){return O.call(this)}),p&&!x||k[y]===I||u(k,y,I),f[e]=I,h)if(D={values:C(g),keys:E?I:C(m),entries:C(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,m,g=t.target,b=t.global,_=t.stat,E=t.proto,x=b?r:_?r[g]:(r[g]||{}).prototype,w=b?a:a[g]||(a[g]={}),D=w.prototype;for(f in e)n=!i(b?f:g+(_?".":"#")+f,t.forced)&&x&&c(x,f),d=w[f],n&&(v=t.noTargetGet?(m=o(x,f))&&m.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=g+"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:{}}})},m=t.exports={enable:function(){m.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),m=y.get,g=y.has,b=y.set;r=function(t,e){if(g.call(y,t))throw new TypeError(d);return e.facade=t,b.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},i=function(t){return g.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,m=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),E=a(e,m,1+g+_),x=function(t){return l&&u(l),new c(!0,t)},w=function(t){return g?(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),m=p.MutationObserver||p.WebKitMutationObserver,g=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||!m||!g?_&&_.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=g.createTextNode(""),new m(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,m=0;y>m;)h=v[m++],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,m=s.MessageChannel,g=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))}:g&&g.now?o=function(t){g.now(x(t))}:m&&!f?(a=(i=new m).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",m=h>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),g=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:!m||!g},{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),m=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,m);for(r=new(void 0===n?Array:n)(d(m-y,0)),l=0;y<m;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,m=u((function(){v.sort(void 0)})),g=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:m||!g||!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,m,g=s(this),b=a(g.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(g,r),v=0;v<r;v++)(y=_+v)in g&&c(l,v,g[y]);if(l.length=r,n<r){for(v=_;v<b-r;v++)m=v+n,(y=v+r)in g?g[m]=g[y]:delete g[m];for(v=b;v>b-r+n;v--)delete g[v-1]}else if(n>r)for(v=b-r;v>_;v--)m=v+n-1,(y=v+r-1)in g?g[m]=g[y]:delete g[m];for(v=0;v<n;v++)g[v+_]=arguments[v+2];return g.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)})},2595:function(t,e,n){n(6887)({global:!0},{globalThis:n(1899)})},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})},7405:function(t,e,n){var r=n(6887),o=n(5981),i=n(9678),a=n(249),s=n(4160);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},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),m=n(941),g=n(3916),b=n(5743),_=n(1302),E=n(3091),x=n(1385),w=n(487),D=n(2941).set,A=n(6132),C=n(6584),T=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),z=p&&p.prototype,$=p,H=z,q=c.TypeError,V=c.document,W=c.process,G=S.f,K=G,Y=!!(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===R)return!0;if(u&&!H.finally)return!0;if(R>=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!(!m(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;Y?((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&&T("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=($=function(t){b(this,$,L),g(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=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===$||t===i?new o(t):K(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 C(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=g(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=g(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),m=n(3894),g=n(5803),b=n(1887),_=n(9290),E=n(4771),x=n(946),w=n(684),D=n(7857),A=n(9677),C=n(5988),T=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"),z="Symbol",$=j("toPrimitive"),H=B.set,q=B.getterFor(z),V=Object.prototype,W=o.Symbol,G=i("JSON","stringify"),K=A.f,Y=C.f,J=w.f,Q=T.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!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(V,e);r&&delete V[e],Y(t,e,n),r&&t!==V&&Y(V,e,r)}:Y,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=m(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)||Y(t,M,b(1,{})),t[M][r]=!0),it(t,r,n)):Y(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=m(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=m(e);if(n!==V||!l(Z,r)||l(X,r)){var o=K(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]?g(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)})),T.f=ct,C.f=st,A.f=lt,x.f=w.f=pt,D.f=ft,R.f=function(t){return at(j(t),t)},s&&(Y(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=g(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")},9668:function(t,e,n){n(2595)},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},6507:function(t,e,n){var r=n(3966);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},m={"%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"]},g=n(8612),b=n(7642),_=g.call(Function.call,Array.prototype.concat),E=g.call(Function.apply,Array.prototype.splice),x=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=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},T=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[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=C(t),r=n.length>0?n[0]:"",i=T("%"+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),m=w(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)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 g=u(c,d);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.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,m=String.prototype.match,g="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,C="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(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)||C&&"object"==typeof t&&C 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=m.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+"="+T(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(j(t[e],"\n")>=0)return!1;return!0}(W)?"["+M(W,x)+"]":"[ "+W.join(", ")+" ]"}if(function(t){return!("[object Error]"!==N(t)||C&&"object"==typeof t&&C in t)}(e)){var G=z(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 K=[];return a.call(e,(function(t,n){K.push(D(n,e,!0)+" => "+D(t,e))})),U("Map",i.call(e),K,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 Y=[];return l.call(e,(function(t){Y.push(D(t,e))})),U("Set",c.call(e),Y,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)||C&&"object"==typeof t&&C in t)}(e))return L(D(Number(e)));if(function(t){if(!t||"object"!=typeof t||!g)return!1;try{return g.call(t),!0}catch(t){}return!1}(e))return L(D(g.call(e)));if(function(t){return!("[object Boolean]"!==N(t)||C&&"object"==typeof t&&C in t)}(e))return L(d.call(e));if(function(t){return!("[object String]"!==N(t)||C&&"object"==typeof t&&C in t)}(e))return L(D(String(e)));if(!function(t){return!("[object Date]"!==N(t)||C&&"object"==typeof t&&C in t)}(e)&&!function(t){return!("[object RegExp]"!==N(t)||C&&"object"==typeof t&&C 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&&C&&Object(e)===e&&C 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 T(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 m in t)d&&"prototype"===m||!o.call(t,m)||f.push(String(m));if(u)for(var g=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)g&&"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,m=f[n],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(v=e.decoder(m,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(m.slice(0,b),a.decoder,d,"key"),y=r.maybeMap(u(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),m.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,m,g,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&&!g?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?[m(g?n:c(n,h.encoder,b,"key",y))+"="+m(c(x,h.encoder,b,"value",y))]:[m(n)+"="+m(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 C=0;C<w.length;++C){var T=w[C],S="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!s||null!==S){var k=u(x)?"function"==typeof i?i(n,T):n:n+(d?"."+T:"["+T+"]");_.set(e,!0);var O=r();l(D,t(S,k,i,a,s,c,p,f,d,v,y,m,g,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(),m=0;m<n.length;++m){var g=n[m];c.skipNulls&&null===o[g]||l(f,d(o[g],g,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}(),m=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}(),g=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 g(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}(),C=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}(),T=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 T?new T((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new T(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 C(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 m(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,{API:function(){return Gf},AgentInfo:function(){return Ec},AppFrame:function(){return ec},ChatFrame:function(){return bc},Conversation:function(){return ip},Engine:function(){return uh},EntryContainer:function(){return wp},EventParticipant:function(){return Ic},ExternalApi:function(){return hh},Header:function(){return xc},Icon:function(){return Ds},Interrupt:function(){return Dp},MessageContainer:function(){return Pc},SeamlyApiContext:function(){return ve},SeamlyEventBusContext:function(){return ye},SeamlyGeneralError:function(){return Gi},SeamlyLiveRegionContext:function(){return qa},SeamlyOfflineError:function(){return Ji},StoreProvider:function(){return Ie},Text:function(){return dl},ToggleButton:function(){return _c},View:function(){return Ap},calculateVisibility:function(){return pa},className:function(){return vs},createReduxStore:function(){return He},default:function(){return dh},eventTypes:function(){return Yn},getUrlParams:function(){return ln},getUrlSearchString:function(){return pn},randomId:function(){return En},seamlyActions:function(){return pr},useChoicePrompt:function(){return Mc},useDispatch:function(){return Ao},useEvents:function(){return go},useGeneratedId:function(){return Ni},useI18n:function(){return pi},useSeamlyChat:function(){return ns},useSeamlyCommands:function(){return Ha},useSeamlyConfig:function(){return Mn},useSeamlyEventStream:function(){return fs},useSeamlyIdleDetachCountdown:function(){return cs},useSeamlyMessageContainerClassNames:function(){return Fo},useSeamlyOptions:function(){return Ei},useSeamlyVisibility:function(){return Ia},useTranslatedEventData:function(){return Ls},useTranslations:function(){return Ps},useTranslationsContainer:function(){return Bs},visibilityStates:function(){return Pn}}),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),m=n.n(y),g=n(4341);function b(t,e,n){return e in t?g(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),C=n(455),T=n.n(C),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,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 K(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==o&&null!=R.vnode&&R.vnode(i),i}function Y(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,m=r&&r.__k||q,g=m.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?K(null,h,null,null,h):Array.isArray(h)?K(Y,{children:h},null,null,null):h.__b>0?K(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=m[l])||f&&h.key==f.key&&h.type===f.type)m[l]=void 0;else for(p=0;p<g;p++){if((f=m[p])&&h.key==f.key&&h.type===f.type){m[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&&h.__k===f.__k?h.__d=u=nt(h,u,t):u=ot(t,h,f,m,d,u),"function"==typeof n.type&&(n.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=Q(f))}for(n.__e=v,l=g;l--;)null!=m[l]&&("function"==typeof n.type&&null!=m[l].__e&&m[l].__e==n.__d&&(n.__d=Q(r,l+1)),ht(m[l],m[l]));if(y)for(l=0;l<y.length;l++)ft(y[l],y[++l],y[++l])}function nt(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?nt(r,e,n):ot(n,r,r,o,r.__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,m,g,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,m=(c=_.contextType)&&r[c.__c],g=c?m?m.props.value:c.__:r,n.__c?v=(l=e.__c=n.__c).__=l.__E:("prototype"in _&&_.prototype.render?e.__c=l=new _(y,g):(e.__c=l=new J(y,g),l.constructor=_,l.render=dt),m&&m.sub(l),l.props=y,l.state||(l.state={}),l.context=g,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,g),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(y,l.__s,g)||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,g),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,h,d)}))}l.context=g,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===Y&&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 K(t,a,r,o,null)}(Y,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=Y,L=[],B="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0,M=0;var mt,gt,bt,_t=n(679),Et=n.n(_t),xt=0,wt=[],Dt=R.__b,At=R.__r,Ct=R.diffed,Tt=R.__c,St=R.unmount;function kt(t,e){R.__h&&R.__h(gt,t,xt||e),xt=0;var n=gt.__H||(gt.__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(mt++,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=gt),r.__}function Ft(t,e){var n=kt(mt++,3);!R.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,gt.__H.__h.push(n))}function Nt(t,e){var n=kt(mt++,4);!R.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,gt.__h.push(n))}function jt(t){return xt=5,Rt((function(){return{current:t}}),[])}function Rt(t,e){var n=kt(mt++,7);return $t(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=gt.context[t.__c],n=kt(mt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(gt)),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=[],R.__e(e,t.__v)}})),wt=[]}R.__b=function(t){gt=null,Dt&&Dt(t)},R.__r=function(t){At&&At(t),mt=0;var e=(gt=t.__c).__H;e&&(e.__h.forEach(Mt),e.__h.forEach(zt),e.__h=[])},R.diffed=function(t){Ct&&Ct(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)),gt=null},R.__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=[],R.__e(n,t.__v)}})),Tt&&Tt(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=gt;"function"==typeof t.__c&&t.__c(),gt=e}function zt(t){var e=gt;t.__c=t.__(),gt=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},Kt=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Yt=function(t){return"INPUT"===t.tagName},Jt=function(t,e){return!(e.disabled||function(t){return Yt(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(Yt(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 Yt(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){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},ue=function(t,e){var n,r=(null==e?void 0:e.document)||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!(!t||!i.containers.some((function(e){return e.contains(t)})))},u=function(t){var e=o[t];if("function"==typeof e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e=e.apply(void 0,i)}if(!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},c=function(){var t=u("initialFocus");if(!1===t)return!1;if(void 0===t)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(Kt).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){var e=u("setReturnFocus",t);return e||!1!==e&&t},h=function(t){var e=se(t);s(e)||(ae(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Xt(e)}):ae(o.allowOutsideClick,t)||t.preventDefault())},d=function(t){var e=se(t),n=s(e);n||e instanceof Document?n&&(i.mostRecentlyFocusedNode=e):(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,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=se(t);l();var n=null;if(i.tabbableGroups.length>0){var r=ie(i.tabbableGroups,(function(t){return t.container.contains(e)}));if(r<0)n=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var o=ie(i.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e===n}));if(o<0&&i.tabbableGroups[r].container===e&&(o=r),o>=0){var a=0===o?i.tabbableGroups.length-1:o-1;n=i.tabbableGroups[a].lastTabbableNode}}else{var s=ie(i.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e===n}));if(s<0&&i.tabbableGroups[r].container===e&&(s=r),s>=0){var c=s===i.tabbableGroups.length-1?0:s+1;n=i.tabbableGroups[c].firstTabbableNode}}}else n=u("fallbackFocus");n&&(t.preventDefault(),p(n))}(t)},y=function(t){if(!ae(o.clickOutsideDeactivates,t)){var e=se(t);s(e)||ae(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}},m=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},g=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(),m(),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,g(),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,g()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,l(),m(),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},ce=n(4198),le=n.n(ce),pe=n(3032),fe=n.n(pe),he=n(8580),de=n.n(he);const ve=yt(null),ye=yt(""),me=()=>Lt(ve),ge=()=>me().store||{},be=()=>{const{get:t}=ge();return t?t("conversationUrl"):null},_e=()=>!!be();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 Ce=Ae;const{Provider:Te,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(Te,{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 ze(){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 $e=ze;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,$e(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=ze.apply(void 0,i)(n.dispatch),je(je({},n),{},{dispatch:r})}}}(...n)))}function qe(){return Lt(Ce)}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 Ke=n(1238),Ye=n.n(Ke),Je=n(3649),Qe=n.n(Je),Ze=n(1643),Xe=n.n(Ze),tn=n(2366),en=n.n(tn);function nn(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 rn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=nn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=nn(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const on=(t,e)=>{let n;return function(...r){const o=this;let i=!1;return clearTimeout(n),n=fe()((()=>{n=null,i||t.apply(o,r),i=!1}),e),e=>{i=!0,e&&t.apply(o,r)}}},an=()=>{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)}))}},sn=t=>Math.ceil(t/1e3),un=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},cn=(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 Ye()((t/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},ln=()=>{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 rn(rn({},t),{},{[n]:decodeURIComponent(r)})}),{})},pn=t=>{var e;return en()(e=s()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},fn={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},hn={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},dn=t=>t.code?hn[t.code]:fn[t.keyCode],vn=t=>{t&&t.focus()},yn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var mn=n(1864),gn=n.n(mn),bn=n(1128),_n=n.n(bn);function En(){var t;return"_"+(Number(Qe()(t=String(Math.random())).call(t,2))+_n()()+Math.round(performance.now())).toString(36)}function xn(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 wn="//";function Dn(t,e,n="/"){return(r,...o)=>e(t+n+r,...o)}function An(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=xn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=xn(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}({type:t},e(...n));return n.toString=()=>String(t),n.match=e=>(null==e?void 0:e.type)===String(t),n}function Cn(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=Dn(t,An,"/");return E()(n).call(n,(t=>r(...t)))}function Tn(t,e){const[n,r,o]=Cn(t,{pending:(t,e)=>({meta:{arg:t,requestId:e,status:"pending"}}),fulfilled:(t,e,n)=>({payload:e,meta:{arg:t,requestId:n,status:"fulfilled"}}),rejected:(t,e,n)=>({error:e,meta:{arg:t,requestId:n,status:"rejected",error:String(e)}})});return gn()((i=>(a,s,u)=>{const c=En(),l=(async()=>{let t;try{a(n(i,c));const o=e(i,{dispatch:a,getState:s,extra:u}),l=await o;t=r(i,l,c)}catch(e){t=o(i,e,c)}return a(t),t})();return gn()(l,{type:t,arg:i,requestId:c})}),{type:t,pending:n,fulfilled:r,rejected:o})}function Sn(t){return{createAction:Dn(t,An,wn),createActions:Dn(t,Cn,wn),createThunk:Dn(t,Tn,wn),createReducer:(e,n)=>function(t,e={},n){const r=(t=n,r)=>{const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}(t,e,n),selectState:e=>e[t]}}const{createAction:kn,createThunk:On,createReducer:In,selectState:Fn}=Sn("config"),Nn=kn("initialize",(t=>({config:t}))),jn=kn("update",(t=>({config:t}))),Rn="visibility",Pn={hidden:"hidden",minimized:"minimized",open:"open",initialize:null};function Ln(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 Bn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ln(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ln(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Un=De(Fn,(t=>{let e=Bn({visible:"inline"===(null==t?void 0:t.layoutMode)?Pn.open:Pn.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=Bn(Bn({},e),{},{appContainerClassNames:e.appContainerClassNames(e)})),e}));function Mn(){return We(Un)}var zn=n(7302),$n=n.n(zn),Hn=n(7093),qn=n.n(Hn),Vn=n(4473),Wn=n.n(Vn);function Gn(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 Kn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Gn(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Gn(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Yn={info:"info",message:"message",participant:"participant",system:"system"},Jn="text",Qn="text",Zn="upload",Xn="received",tr="read",er="typing",nr="read",rr="detach_service",or="set_translation",ir="click_cta",ar="assertive",sr="polite",ur={new_topic:"newTopic",new_translation:"newTranslation"},cr="cobrowsing",lr="uploads",pr={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",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",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},fr="navigate",{ADD_EVENT:hr,CLEAR_EVENTS:dr,SET_HISTORY:vr,SET_EVENTS_READ:yr,ACK_EVENT:mr,SET_IS_LOADING:gr,CLEAR_PARTICIPANTS:br,SET_PARTICIPANT:_r,SET_HEADER_TITLE:Er,SET_HEADER_SUB_TITLE:xr,RESET_HISTORY_LOADED_FLAG:wr,SET_ACTIVE_SERVICE:Dr,INIT_IDLE_DETACH_COUNTDOWN:Ar,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:Cr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:Tr,CLEAR_IDLE_DETACH_COUNTDOWN:Sr,INIT_RESUME_CONVERSATION_PROMPT:kr,CLEAR_RESUME_CONVERSATION_PROMPT:Or,SET_SERVICE_DATA_ITEM:Ir,SET_FEATURES:Fr,SET_FEATURE_ENABLED_STATE:Nr,CLEAR_FEATURES:jr,SET_INITIAL_STATE:Rr,SET_USER_SELECTED_OPTION:Pr,SET_USER_SELECTED_OPTIONS:Lr,SHOW_OPTION:Br,HIDE_OPTION:Ur,SET_BLOCK_AUTO_ENTRY_SWITCH:Mr,SET_USER_ENTRY_TYPE:zr,SET_ACTIVE_ENTRY_TYPE:$r,SET_SERVICE_ENTRY_METADATA:Hr,REGISTER_UPLOAD:qr,SET_UPLOAD_PROGRESS:Vr,SET_UPLOAD_COMPLETE:Wr,SET_UPLOAD_ERROR:Gr,CLEAR_UPLOAD:Kr,CLEAR_ALL_UPLOADS:Yr,SET_SEAMLY_CONTAINER_ELEMENT:Jr}=pr,Qr=({type:t,payload:e})=>t===Yn.message&&!e.fromClient||t===Yn.info&&e.type===Jn,Zr=t=>$n()(t).call(t,(({payload:{occurredAt:t}},{payload:{occurredAt:e}})=>t-e)),Xr=(t,e)=>{switch(e.type){case br:return{participants:{},currentAgent:""};case _r:const{participants:n}=t,{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],u=Kn(Kn({},n),{},{[r]:s?Kn(Kn(Kn(Kn({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return Kn(Kn({},t),{},{participants:u,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},to=(t,e)=>{switch(e.type){case Er:return Kn(Kn({},t),{},{title:e.title});case xr:return Kn(Kn({},t),{},{subTitle:e.title});default:return t}},eo=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return Kn(Kn({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),Kn(Kn({},t),{},{active:a,optionsOverride:Kn(Kn({},t.optionsOverride),{},{[o]:i||{}})})},no="cvco",ro="2",oo="seamly-client-participant",io=["messages"];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){m()(t,e,p()(r,e))}))}}return t}const uo=so(so({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}},appContainerClassNames:t=>[`app--layout-${t.layoutMode}`,`namespace--${t.namespace}`]}),{},{hideOnNoUserResponse:!1,showDisclaimer:!1,showFaq:!1,customComponents:{},defaults:{}}),co=["hideOnNoUserResponse","showDisclaimer","showFaq","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback"],lo=(t,{config:e})=>{const n=((t,e)=>en()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(e,co),{messages:r}=n,o=N(n,io);let i=t;return s()(o).length>0&&(i=so(so({},i),o)),r&&(i=so(so({},i),{},{messages:so(so({},i.messages),r)})),i};var po=In({[Nn]:(t,e)=>lo(t,e),[jn]:(t,e)=>lo(t,e)},uo);function fo(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 ho(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=fo(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=fo(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const vo=t=>t.state,yo=()=>We(vo),mo=De(vo,Un,(({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(ho(ho({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&sn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(ho(ho({},t),{},{timeIndicator:e}))}a=t})),i})),go=()=>We(mo,[]),bo=()=>yo().headerTitles,_o=()=>yo().unreadEvents,Eo=()=>yo().skiplinkTargetId,xo=De(mo,(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})),wo=()=>{const{participants:t,currentAgent:e}=yo().participantInfo;return e?t[e]:null},Do=()=>{const{layoutMode:t}=Mn();return{isInline:"inline"===t,isModal:"modal"===t,isWindow:"window"===t,isResolving:!t}};var Ao=Ve;const{SET_SEAMLY_CONTAINER_ELEMENT:Co}=pr,To=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;vn(e)}))}))},So=()=>{const{seamlyContainerElement:t}=yo(),e=Ao();return[t,Pt((t=>{e({type:Co,element:t})}),[e])]},ko=t=>Pt((()=>{To(t)}),[t]),Oo=()=>{const t=Eo();return ko(t)},Io=()=>Mn().appContainerClassNames,Fo=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},No=()=>{const{cobrowsingContainerId:t}=yo();return{id:t,focusContainer:ko(t)}};var jo=n(3476),Ro=n.n(jo);const{createAction:Po,createThunk:Lo,createReducer:Bo,selectState:Uo}=Sn("i18n"),Mo=De(Uo,(t=>t.translations)),zo=De(Uo,(t=>t.initialLocale)),$o=De(Uo,(t=>t.locale)),Ho=Po("setInitialLocale",(t=>({locale:t}))),qo=function(){let t=!1;const e=[],n=async()=>{if(!t)for(;e.length;){const n=e.shift();t=!0,await n().catch((()=>{})),t=!1}};return{next:n,runExclusively:async t=>{const r=new(Ro())(((n,r)=>{e.push((async()=>{try{n(await t())}catch(t){r(t)}}))}));return n(),r}}}(),Vo=Lo("setLocale",(async(t,{getState:e,extra:{api:n}})=>qo.runExclusively((()=>{if(t!==$o(e()))return n.getTranslations(t)}))));function Wo(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 Go(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Wo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qo(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?Qo(e):e)}),[])}function Zo(t){var e={};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length?r.map((function(t){return null===t?"null":void 0===t?"undefined":"function"==typeof t?t.toString():t instanceof Date?t.toISOString():JSON.stringify(t)})).join("|"):"_(no-args)_";if(Object.prototype.hasOwnProperty.call(e,i))return e[i];var a=t.apply(void 0,r);return e[i]=a,a}}function Xo(t){for(var e=function(t){return/\s/.test(t)},n=[],r={},o=0,i=null,a=!1,s=0;s<t.length;){if(a&&(e(t[s])||"{"===t[s]))a=!1,i=t.slice(o,s),"{"===t[s]&&s--;else if(!a&&!e(t[s])){var u="{"===t[s];if(i&&u){var c=ti(t,s);if(-1===c)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));r[i]=t.slice(s+1,c),s=c,i=null}else i&&(n.push(i),i=null),a=!0,o=s}s++}return a&&(i=t.slice(o)),i&&n.push(i),{args:n,cases:r}}function ti(t,e){for(var n=0,r=e+1;r<t.length;r++){var o=t.charAt(r);if("}"===o){if(0===n)return r;n--}else"{"===o&&n++}return-1}function ei(t){return ni(t.slice(1,-1),",",3)}function ni(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!t)return r;if(1===n)return r.push(t),r;var o=t.indexOf(e);if(-1===o)return r.push(t),r;var i=t.substring(0,o).trim(),a=t.substring(o+e.length+1).trim();return r.push(i),ni(a,e,n-1,r)}var ri;function oi(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 ii(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oi(Object(n),!0).forEach((function(e){Jo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ai=0,si="other";function ui(t,e){for(var n=0,r="",o=0,i={};n<t.length;){if("#"!==t[n]||o)r+=t[n];else{var a="__hashToken".concat(ai++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var ci="other";const li=new(function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ko(this,t),Jo(this,"format",Zo((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qo(n.process(t,e)).join("")}))),this.locale=e,this.typeHandlers=r}var e,n;return e=t,(n=[{key:"process",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];var n=t.indexOf("{");if(-1!==n){var r=ti(t,n);if(-1===r)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));var o=t.substring(n,r+1);if(o){var i=[],a=t.substring(0,n);a&&i.push(a);var s=ei(o),u=Go(s,3),c=u[0],l=u[1],p=u[2],f=e[c];null==f&&(f="");var h=l&&this.typeHandlers[l];i.push(h?h(f,p,this.locale,e,this.process.bind(this)):f);var d=t.substring(r+1);return d&&i.push(this.process(d,e)),i}}return[t]}}])&&Yo(e.prototype,n),t}())("en-GB",{plural:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=Xo(e),a=i.args,s=i.cases,u=parseInt(t);a.forEach((function(t){t.startsWith("offset:")&&(u-=parseInt(t.slice("offset:".length)))}));var c=[];if("PluralRules"in Intl){void 0!==ri&&ri.resolvedOptions().locale===n||(ri=new Intl.PluralRules(n));var l=ri.select(u);l!==si&&c.push(l)}1===u&&c.push("one"),c.push("=".concat(u),si);for(var p=0;p<c.length;p++){var f=c[p];if(f in s){var h=ui(s[f],u),d=h.caseBody,v=h.numberValues;return o(d,ii(ii({},r),v))}}return t},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=Xo(e),i=o.cases;return t in i?r(i[t],n):ci in i?r(i.other,n):t}});function pi(){const t=We(Mo),e=We($o),n=We(zo);return{t:Pt(((e,n={})=>{const r=t[e];return r?li.format(r,n):null}),[t]),locale:e,initialLocale:n}}function fi(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 hi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=fi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=fi(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var di=Bo({[Ho]:(t,{locale:e})=>hi(hi({},t),{},{initialLocale:e}),[Vo.pending]:t=>hi(hi({},t),{},{isLoading:!0}),[Vo.fulfilled]:(t,{payload:e,meta:{arg:n}})=>{var r,o;return hi(hi({},t),{},e?{isLoading:!1,locale:n,translations:en()(r=$n()(o=s()(e)).call(o)).call(r,((t,n)=>hi(hi({},t),{},{[n]:e[n]})),{})}:{isLoading:!1})},[Vo.rejected]:t=>hi(hi({},t),{},{isLoading:!1})},{translations:{"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","errors.seamlyUnavailable.buttonText":"Try again","errors.seamlyUnavailable.message":"The server could not be reached. Try again in a little while.","errors.seamlyUnavailable.srText":"The chat server could not be reached. Try again in a little while.","errors.seamlyUnavailable.title":"Server unavailable"},isLoading:!1,initialLocale:void 0});function vi(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 yi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=vi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=vi(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const{SET_USER_SELECTED_OPTION:mi,SET_USER_SELECTED_OPTIONS:gi,SHOW_OPTION:bi,HIDE_OPTION:_i}=pr,Ei=()=>{var t,e;const{t:n}=pi(),{options:r}=yo(),{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=Ao(),{get:v,set:y}=ge();return{allowOptionSelection:h,userSelectedOptions:a,features:u,menuOptions:f,initUserSelectedOptions:Pt((()=>{const t=v("options")||{};d({type:gi,options:t})}),[v,d]),setUserSelectedOptions:Pt((t=>{d({type:gi,options:t}),y("options",t)}),[y,d]),setUserSelectedOption:Pt(((t,e)=>{const n=v("options")||{};y("options",yi(yi({},n),{},{[t]:e})),d({type:mi,option:t,value:e})}),[d,v,y]),showOption:t=>{d({type:bi,optionName:t})},hideOption:()=>{d({type:_i})},panelActive:o,optionActive:i}},xi=()=>{const{optionsButtonId:t}=yo();return{id:t,focusButton:ko(t)}};var wi=n(62),Di=n.n(wi),Ai=yt({});function Ci(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)A()(n=Ci(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ci(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const{CLEAR_ALL_UPLOADS:Si}=pr,ki=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=yo(),{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}},Oi=()=>{const{currentUploads:t}=yo(),e=Ao(),n=Lt(Ai);return{uploadFile:Pt((t=>{n(t)}),[n]),clearUploads:Pt((()=>{e({type:Si})}),[e]),currentUploads:t,isUploading:k()(t).call(t,(t=>t.uploading)),isComplete:Di()(t).call(t,(t=>t.complete))}};var Ii=n(5843),Fi=n.n(Ii);const Ni=()=>{const[t]=Ot((()=>En()));return t},ji=t=>{const e=jt();e.current=t;const n="function"==typeof t;return Rt((()=>n?(...t)=>e.current(...t):void 0),[n])},{createAction:Ri,createReducer:Pi,selectState:Li}=Sn("interrupt"),Bi=Ri("set",(t=>({error:t}))),Ui=Ri("clear"),Mi=De(Li,(({error:t})=>t));function zi(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 $i(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=zi(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=zi(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}function Hi(){const{t:t}=pi(),e=We(Mi);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 $i($i($i($i({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{},{originalError:e})}),[t,e]),error:e}}var qi=n(1611),Vi=n.n(qi);class Wi extends Error{constructor(t,...e){super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,Vi()(this)),this.originalError=t,null!=t&&t.payload&&(this.originalEvent=t,this.originalError=t.payload.error),null!=t&&t.error&&(this.originalError=t.error)}}class Gi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class Ki extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class Yi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlySessionExpiredError",this.action="reset"}}class Ji extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class Qi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}class Zi extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Zi),this.name="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}const Xi=[Gi,Ki,Yi,Ji,Qi,Zi];function ta({api:t}){return()=>e=>n=>{const{error:r}=n;if(r){if(!k()(Xi).call(Xi,(t=>r instanceof t)))throw r;"reset"===r.action&&t.disconnect().then((()=>{t.clearStore()}))}return e(n)}}const{createAction:ea,createThunk:na,createReducer:ra,selectState:oa}=Sn("app"),ia=De(oa,(t=>t.userHasResponded)),{createAction:aa,createActions:sa,createThunk:ua,createReducer:ca,selectState:la}=Sn("visibility"),pa=({hasResponded:t,previousVisibility:e,requestedVisibility:n,config:r})=>{const{defaults:o,layoutMode:i,hideOnNoUserResponse:a}=r,{visible:s}=o||{};if("window"===i&&a&&n!==Pn.open)return t?n||e||Pn.open:Pn.hidden;const u="inline"===i?Pn.open:Pn.minimized;return n||e||s||u},fa=De(la,(t=>t.visibility));function ha(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 da(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ha(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ha(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const va=aa("setFromStorage",(t=>({visibility:t}))),ya=[Pn.open,Pn.minimized,Pn.hidden],ma=ua("set",((t,{getState:e,extra:{api:n,eventBus:r}})=>{const o=e(),i=fa(o),a=ia(o),s=n.hasConversation(),u=Un(o),{visibilityCallback:c=pa,layoutMode:l}=u,{unreadEvents:p}=vo(o),f=c({hasConversation:s,hasResponded:a,previousVisibility:i,requestedVisibility:t,config:u});if(de()(ya).call(ya,f)){if(i!==f)return n.store.set(Rn,da(da({},n.store.get(Rn)||{}),{},{[l]:t})),t&&r.emit("ui.visible",t,{visibility:t,hasConversation:s,hasResponded:a,unreadMessageCount:p}),f}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),ga=ua("initialize",(async(t,{dispatch:e,getState:n,extra:{api:r}})=>{var o;const{layoutMode:i}=Un(n()),a=null===(o=r.store.get(Rn))||void 0===o?void 0:o[i];a&&e(va(a)),e(ma(Pn.initialize))})),ba=ea("setHasResponded",(t=>({hasResponded:t}))),_a=na("initialize",(async(t,{dispatch:e,extra:{api:n}})=>{var r;e(Nn(t));let o=null==t||null===(r=t.context)||void 0===r?void 0:r.locale;try{const{features:t,defaultLocale:r}=await n.getConfig();e({type:pr.SET_FEATURES,features:t}),o=o||r,e(Ho(o))}catch(t){throw new Zi}try{if(n.hasConversation()){var i;const t=await n.getConversationIntitialState();e({type:pr.SET_INITIAL_STATE,initialState:t}),o=(null===(i=t.translation)||void 0===i?void 0:i.locale)||o,"userResponded"in t&&e(ba(t.userResponded))}}catch(t){if(t instanceof Yi)throw t;throw new Zi}finally{await e(Vo(o)),e(ga())}})),Ea=ea("reset",(()=>{}));function xa(){return We(ia)}function wa(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 Da(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=wa(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=wa(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var Aa=ra({[ba]:(t,{hasResponded:e})=>Da(Da({},t),{},{userHasResponded:e})},{userHasResponded:!1});function Ca(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 Ta(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ca(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ca(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Sa={error:void 0},ka=(t,{error:e})=>Ta(Ta({},t),{},{error:e});var Oa=Pi({[Bi]:ka,[_a.rejected]:ka,[Ui]:()=>Sa,[Ea]:()=>Sa},Sa);const Ia=()=>{const t=Ve(),e=We(fa),n=!!e&&e!==Pn.hidden,{layoutMode:r}=Mn();return{isVisible:n,isOpen:!(!e||!r)&&(e===Pn.open||"inline"===r&&e!==Pn.hidden),visible:e,setVisibility:Pt((e=>t(ma(e))),[t])}};function Fa(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=Fa(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Fa(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const ja={visibility:Pn.initialize};var Ra=ca({[va]:(t,{visibility:e})=>Na(Na({},t),{},{visibility:e}),[ma.fulfilled]:(t,{payload:e})=>e?Na(Na({},t),{},{visibility:e}):t},ja);function Pa(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 La(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Pa(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Pa(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const{ADD_EVENT:Ba,SET_IS_LOADING:Ua,SET_HEADER_SUB_TITLE:Ma,SET_INITIAL_STATE:za,SET_FEATURES:$a}=pr;var Ha=()=>{const t=me(),e=Mn(),n=Ao(),r=Lt(ye),o=xa(),i=_e(),{visible:a}=Ia(),s=_o(),u=Pt(((...t)=>{r.emit(...t)}),[r]),c=ji((()=>{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(Ea()),n(Ui()),n({type:Ua,isLoading:!0});const{agentName:r}=e.defaults||{};n({type:Ma,title:r||""});try{const{features:e}=await t.reset();n({type:$a,features:e}),n({type:za,initialState:{}})}catch(t){n(Bi(t))}}),[t,n,e]),p=Pt((t=>({type:t,id:En(),transactionId:En(),participant:oo,fromClient:!0,occurredAt:1e3*_n()(),meta:{}})),[]),f=Pt((t=>La(La({},p("text")),{},{body:{text:t}})),[p]),h=Pt((({body:e,config:r={}})=>{if(""===Fi()(e).call(e))return;const o=La(La({},f(e)),r);t.send("message",o),u("message",o),n({type:Ba,event:{type:"message",payload:o}})}),[t,n,u,f]),d=Pt((t=>{n({type:Ba,event:{type:"message",payload:f(t)}})}),[n,f]),v=Pt(((t,e,r,o,i,a,s)=>{n({type:Ba,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:oo,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:En(),transactionId:En(),type:"divider"};n({type:Ba,event:{type:"info",payload:e}})}),[n]),m=Pt((({type:e,subtype:n})=>{const r={type:e,subtype:n,id:En(),transactionId:En(),participant:oo,fromClient:!0};t.send("info",r)}),[t]),g=Pt((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==er&&n!==nr&&u(`action.${n}`,e)}),[t,u]),b=Pt((e=>{t.sendContext(e)}),[t]);return{connect:Pt((()=>t.connected?Ro().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&n({type:za,initialState:t})})).catch((t=>{n(Bi(t))}))),[t,n]),start:c,sendMessage:h,sendInfo:m,sendAction:g,sendContext:b,reset:l,emitEvent:u,addMessageBubble:d,addUploadBubble:v,addDivider:y,apiConfigReady:t.configReady}};const qa=yt(null),Va=()=>{const t=Lt(qa);return{sendPolite:Pt((e=>{t({ariaLive:sr,messageText:e})}),[t]),sendAssertive:Pt((e=>{t({ariaLive:ar,messageText:e})}),[t])}};var Wa=yt(null),Ga=()=>Lt(Wa),Ka=n(1581),Ya=n.n(Ka);function Ja(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:Qa,SET_ACTIVE_ENTRY_TYPE:Za,SET_USER_ENTRY_TYPE:Xa}=pr,ts=()=>{const{default:t,active:e,userSelected:n,options:r}=yo().entryMeta,o=Ao(),i=n||e||t,a=r[i]||{},s=Pt((t=>{o({type:Qa,value:t})}),[o]),u=Pt((t=>{o({type:Za,entryType:t})}),[o]),c=Pt((t=>{o({type:Xa,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}},{SET_IS_LOADING:es}=pr;var ns=()=>{const{t:t}=pi(),{isOpen:e,isVisible:n,setVisibility:r}=Ia(),o=Ao(),i=go(),a=jt(null),{start:s,connect:u,apiConfigReady:c}=Ha(),l=_e(),p=jt(null),f=jt(null),{sendAssertive:h}=Va(),d=jt(!1),v=i.length>0;return Ft((()=>{n&&fe()((()=>{h(t("window.srTexts.onLoad"))}),500)}),[n,h,t]),Ft((()=>{if(n!==f.current)return p.current=e,void(f.current=n);null!==p.current&&h(t(e?"window.srTexts.onOpen":"window.srTexts.onClose")),p.current=e,f.current=n}),[e,n,h,t]),Ft((()=>{a.current=fe()((()=>{o({type:es,isLoading:!0})}),500)}),[o]),Ft((()=>{v&&(clearTimeout(a.current),o({type:es,isLoading:!1}))}),[v,o]),Ft((()=>{l&&c||(d.current=!1)}),[l,c]),Ft((()=>{(e||l)&&!d.current&&c&&(l&&(clearTimeout(a.current),o({type:es,isLoading:!1})),u().then((()=>{s()})),d.current=!0)}),[e,l,c,s,u,o]),{openChat:()=>{r(Pn.open)},closeChat:()=>{r(Pn.minimized)}}};function rs(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 os(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=rs(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=rs(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:is,INIT_IDLE_DETACH_COUNTDOWN:as,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:ss,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:us}=pr;var cs=()=>{const t=Ao(),{idleDetachCountdown:e}=yo(),{isOpen:n}=Ia(),r=jt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=Ha(),{t:a}=pi(),{sendAssertive:s,sendPolite:u}=Va(),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=un(n);t({type:as,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:rr}),c(a("idleDetachWarning.notifyTransferText"))),u||o("idleTimer.stop"),t({type:is}))}),[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",un(n))}`),t({type:ss})}),[t,c,a]),d=Pt((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:us}),n&&(o("idleTimer.stop"),l(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,l,a]);return os(os({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:h,stopCountdown:d})};const{CLEAR_RESUME_CONVERSATION_PROMPT:ls}=pr;var ps=()=>{const t=Ao(),e=yo().resumeConversationPrompt,{sendAction:n}=Ha(),{t:r}=pi(),{sendAssertive:o}=Va();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:ls})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:rr}),t({type:ls})}}};const fs=(t,e)=>{const n=me();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 hs=n(6423),ds=n.n(hs);const vs=(...t)=>{var e,n,r,o,i,a;return E()(e=w()(n=ds()(r=E()(o=w()(i=E()(a=ds()(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=>[no,t].join("-"))).join(" ")},ys={visible:vs("transition--visible"),in:vs("transition--in"),visuallyHidden:vs("visually-hidden")},ms=T()(ys),gs="notRendered",bs="rendered",_s="visuallyHidden";var Es=({children:t,isActive:e,timeout:n,transitionStartState:r="notRendered",onInTransitionComplete:o,onOutTransitionComplete:i})=>{var a;const s=jt(!1),u=n?le()(n,10):300,c=ji(o),l=ji(i),p=r===_s,[f,h]=Ot((()=>p?[ys.visuallyHidden]:[])),d="notRendered"!==r||f.length>0;return Ft((()=>{let t=null,n=null;return s.current&&!e&&(h([ys.visible]),t=fe()((()=>{h([...p?[ys.visuallyHidden]:[]]),l&&(n=requestAnimationFrame((()=>{l()})))}),u)),!s.current&&e&&(h([ys.visible]),n=requestAnimationFrame((()=>{n=requestAnimationFrame((()=>{h([ys.visible,ys.in]),c&&(t=fe()((()=>{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),K(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...w()(e=n.split(" ")).call(e,(t=>!de()(ms).call(ms,t))),...f].join(" ")})}))},xs=({children:t})=>{const{t:e}=pi(),{isModal:n}=Do(),{isOpen:r,setVisibility:o}=Ia(),i=jt(null),a=jt(null);return Ft((()=>{if(!n)return null;let t;return r&&(t=an(),i.current.parentElement.removeAttribute("aria-hidden")),()=>{t&&(t(),t=null)}}),[r,n]),n?Oe(Es,{isActive:r,transitionStartState:bs,onInTransitionComplete:()=>{a.current=ue(i.current),a.current.activate()},onOutTransitionComplete:()=>{a.current&&(a.current.deactivate(),a.current=null)},children:Oe("div",{className:vs("modal-overlay"),role:"dialog","aria-modal":"true","aria-label":e("window.srModalLayoutLabel"),onClick:()=>{o(Pn.minimized)},ref:i,children:t})}):t};const ws={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 Ds=({name:t,size:e="32",className:n,alt:r})=>{const o=`${t}${e}`;return Oe(Y,{children:[Oe("div",{"aria-hidden":"true",className:n||vs("icon"),dangerouslySetInnerHTML:{__html:ws[o]}}),r&&Oe("span",{className:vs("visually-hidden"),children:r})]})};const{createActions:As,createReducer:Cs,selectState:Ts}=Sn("translations"),[Ss,ks]=As("translate",{enable:t=>({locale:t}),disable:()=>({})}),[Os,Is]=As("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),Fs=(t,e)=>(n,r)=>r[t]||e,Ns=Ts,js=De(Ns,(t=>t.originalPayloadIds)),Rs=De(js,Fs("payloadId"),((t,e)=>!de()(t).call(t,e)));function Ps(){const{sendAction:t}=Ha(),e=Ve(),n=ji((n=>{t({type:or,body:{enabled:!0,locale:n}}),e(Ss(n))})),r=ji((()=>{t({type:or,body:{enabled:!1}}),e(ks())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=We(Ns,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Ls({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(Rs,{payloadId:o},[o]),c=Ve(),l=ji((()=>{c(u?Is(o):Os(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 Bs(){const t=We(Ns,[]).containerId;return{id:t,focusContainer:ko(t)}}function Us(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=Us(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Us(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const zs={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:En()};var $s=Cs({[pr.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?Ms(Ms({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[pr.CLEAR_FEATURES]:()=>zs,[Ss]:(t,{locale:e})=>Ms(Ms({},t),{},{isActive:!0,currentLocale:e}),[ks]:t=>Ms(Ms({},t),{},{isActive:!1,currentLocale:void 0}),[Os]:(t,{payloadId:e})=>{var n,r;return de()(n=t.originalPayloadIds).call(n,e)?Ms(Ms({},t),{},{originalPayloadIds:w()(r=t.originalPayloadIds).call(r,(t=>t!==e))}):t},[Is]:(t,{payloadId:e})=>{var n;return de()(n=t.originalPayloadIds).call(n,e)?t:Ms(Ms({},t),{},{originalPayloadIds:[...t.originalPayloadIds,e]})}},zs),Hs=({children:t,onCancel:e,headingText:n,cancelButtonText:r,disableButtonFocusing:o,cancelButtonRef:i,position:a="right"})=>{const s=jt(null),u=Ni(),{hideOption:c}=Ei(),{focusButton:l}=xi();return Ft((()=>{vn(s.current)}),[]),Oe("section",{className:vs("options",{"options--right":"left"!==a,"options--left":"left"===a}),"aria-labelledby":u,tabIndex:"-1",ref:s,children:Oe("div",{className:vs("options__body"),children:[Oe("h2",{id:u,className:vs("options__title"),children:n}),Oe("button",{type:"button",onClick:()=>{e&&e(),c(),o||l()},"aria-describedby":u,className:vs("button","options__close"),ref:t=>{i&&(i.current=t)},children:[Oe(Ds,{name:"close",size:"16"}),Oe("span",{children:r})]}),Oe("div",{className:vs("options__wrapper"),children:t})]})})};const{createActions:qs,createReducer:Vs,selectState:Ws}=Sn("forms"),[Gs,Ks]=qs("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[Ys,Js,Qs,Zs]=qs("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})}),Xs=De(Ws,Fs("formId"),((t,e)=>t[e])),tu=De(Xs,(t=>(null==t?void 0:t.controls)||{})),eu=De(tu,(t=>{var e;const n={};return A()(e=$()(t)).call(e,(([t,{value:e}])=>{n[t]=e})),n})),nu=De(tu,Fs("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),ru=De(tu,Fs("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),ou=yt({});var iu=ou;const{Provider:au,Consumer:su}=ou;function uu(){return Lt(iu)}function cu(t){const e=Ve(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=uu(),a=!!Ge(Xs,{formId:n},[n]),s=jt();s.current=a;const u=Ge(nu,{formId:n,name:t},[n,t]),c=Ge(ru,{formId:n,name:t},[n,t]),l=null==i?void 0:i[t],p=!l;Ft((()=>{s.current&&e(Ys(n,t))}),[a,n,t,e]),Nt((()=>()=>{e(Js(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 lu=["children","formId","persistData","onSubmit","validationSchema"];function pu(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 fu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=pu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=pu(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}function hu(t){let{children:n,formId:r,persistData:o,onSubmit:i,validationSchema:a}=t,u=N(t,lu);const c=Ve(),l=Ge(eu,{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=$()(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),m=Rt((()=>fu(fu({},y),h)),[y,h]);Nt((()=>{c(Gs(r,o))}),[r,o,c]),Ft((()=>()=>{c(Ks(r))}),[r,o,c]);const g=Pt(((t,e)=>{c(Qs(r,t,e))}),[r,c]),b=Pt(((t,e)=>{c(Zs(r,t,e))}),[c,r]),_=Pt(((t,e)=>{d((n=>fu(fu({},n),{},{[t]:e})))}),[d]),E=Pt((t=>{t.preventDefault(),f(!0),v&&i(l,{updateControlValue:g,setError:_})}),[v,i,l,g,_]),x=Rt((()=>({formId:r,values:l,errors:m,isValid:0===s()(m).length,isSubmitted:p,handleSubmit:E,validationSchema:a,updateControlValue:g,updateControlTouched:b})),[r,l,m,p,E,a,g,b]);return r?i?Oe(au,fu(fu({},u),{},{value:x,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}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 vu(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){m()(t,e,p()(r,e))}))}}return t}const yu={controls:{}},mu={value:"",touched:!1};function gu(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||mu;return vu(vu({},t),{},{[e]:vu(vu({},t[e]),{},{controls:vu(vu({},t[e].controls),{},{[n]:vu(vu({},i),r)})})})}var bu=Vs({[Gs]:(t,{formId:e,persistData:n})=>{const r=n?t[e]??vu(vu({},yu),{},{persistData:n}):vu(vu({},yu),{},{persistData:n});return vu(vu({},t),{},{[e]:r})},[Ks]:(t,{formId:e})=>{var n;const r=vu({},t);return null!==(n=r[e])&&void 0!==n&&n.persistData||delete r[e],r},[Ys]:(t,{name:e,formId:n})=>gu(t,n,e),[Js]:(t,{formId:e,name:n})=>{const r=t[e];if(!r)return t;if(r.persistData)return t;const o=vu({},r.controls);return delete o[n],vu(vu({},t),{},{[e]:vu(vu({},r),{},{controls:o})})},[Qs]:(t,{formId:e,name:n,value:r})=>gu(t,e,n,{value:r}),[Zs]:(t,{formId:e,name:n,touched:r})=>gu(t,e,n,{touched:r})},{}),_u=n(2088);function Eu(){return(Eu=_u||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 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}var wu=function(t){let e=Eu({},t);const{handleSubmit:n}=function(){const{handleSubmit:t}=uu();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=xu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=xu(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}({onSubmit:n},e))};function Du({id:t,error:e}){const[n,r]=Ot(!1);return Ft((()=>{const t=fe()((()=>r(!0)),300);return()=>clearTimeout(t)}),[]),Oe("div",{"aria-live":"assertive","aria-atomic":"true",children:n&&e&&Oe("span",{id:t,className:vs("error"),children:[Oe(Ds,{name:"error",size:"16"}),e]})})}var Au=({contentHint:t,id:e,labelText:n,labelClass:r=vs("label"),validity:o,errorText:i,children:a})=>Oe(Y,{children:[Oe("label",{htmlFor:e,className:r,children:n}),t&&Oe("span",{id:`${e}-content-hint`,className:vs("input__content-hint"),children:t}),Oe(Du,{id:`${e}-error`,error:!o&&i}),a]});const Cu=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function Tu(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 Su(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Tu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Tu(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var ku=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,u=N(t,Cu);const{isSubmitted:c}=uu(),[l,{error:p}]=cu(n),f=c&&p,h=[];return a&&h.push(a),i&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(Au,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:Oe("select",Su(Su(Su({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)))}))})},Ou=function({controlName:t,descriptionId:e}){const{t:n}=pi(),{isActive:r,languages:o,currentLocale:i}=Ps(),{locale:a}=pi(),s=Rt((()=>{var t;return null==o||null===(t=Wn()(o).call(o,(t=>t.locale===i)))||void 0===t?void 0:t.nativeName}),[o,i]),u=Rt((()=>{var t;return[{value:"",label:n("translations.settings.defaultOptionLabel")},...E()(t=w()(o).call(o,(t=>t.locale.toLowerCase()!==String(a).toLowerCase()))).call(t,(t=>({value:t.locale,label:t.nativeName})))]}),[n,o,a]);return Oe(wu,{noValidate:"true",children:[Oe("p",{className:vs("options__description"),id:e,children:n("translations.settings.description")}),r?Oe(Y,{children:[Oe("h3",{children:n("translations.settings.currentTranslationLabel")}),Oe("p",{className:vs("options__active-language"),children:s})]}):Oe(ku,{name:t,type:"text",className:vs("input__select"),"aria-describedby":e,labelClass:vs("label"),labelText:n("translations.settings.inputLabel"),options:u,defaultValue:i||""}),Oe("div",{className:vs("options__actions"),children:Oe("button",{type:"submit",className:vs("button","button--primary","options__submit"),children:n(r?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const{REGISTER_FORM:Iu,DE_REGISTER_FORM:Fu,REGISTER:Nu,DE_REGISTER:ju,SET_VALUE:Ru,SET_VALIDITY:Pu,SET_STATE:Lu,SET_SUBMITTED:Bu,SET_PERSIST_FORM_DATA:Uu}={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"},Mu=(t,e,n=null)=>({fn:t,errorText:e,compareValue:n}),zu=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},$u=t=>!(null==t||!t.length)>0,Hu=t=>{const e=t&&Fi()(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))},qu=t=>!!t,Vu="translation-settings",Wu="locale";var Gu=function({onClose:t}){const{t:e}=pi(),{isActive:n,enableTranslations:r,disableTranslations:o}=Ps(),i=Ni(),{focusContainer:a}=Bs(),s=jt(0),u=Rt((()=>(s.current+=1,n?{}:{[Wu]:Mu(qu,e("translations.settings.noLocaleText"))})),[n,e]);return Oe(Hs,{onCancel:t,formName:Vu,headingText:e("translations.settings.title"),cancelButtonText:e("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:Oe(hu,{onSubmit:({locale:e})=>{n?o():(r(e),t(),a())},formId:Vu,validationSchema:u,children:Oe(Ou,{controlName:Wu,descriptionId:i})},s.current)})};function Ku(){const{t:t}=pi(),[e,n]=Ot(!1),r=jt(null),o=Ni();return Oe("div",{className:vs("translations__container"),onKeyDown:t=>{e&&dn(t)===hn.Escape&&(n(!1),vn(r.current))},children:[Oe(Es,{transitionStartState:gs,isActive:e,children:Oe("div",{className:vs("options__dialog"),role:"dialog",children:Oe(Gu,{onClose:()=>{n(!1)}})})}),Oe("button",{type:"button",className:vs(["button","button--secondary","app__options__button"]),id:o,onClick:()=>{n((t=>!t))},onKeyDown:t=>{dn(t)===hn.ArrowDown&&(n(!0),t.preventDefault())},ref:r,"aria-haspopup":"dialog","aria-expanded":e.toString(),children:[Oe(Ds,{name:"newTranslation",size:"16"}),Oe("span",{className:vs("button__text"),children:t("translations.settings.openButtonText")})]})]})}function Yu({id:t,label:e,onButtonClick:n,buttonText:r,srButtonText:o,type:i}){const a=Ni();return Oe("section",{className:vs("chat-status",i&&`chat-status--${i}`),id:t,tabIndex:"-1","aria-labelledby":a,children:[Oe("h2",{className:vs("chat-status__title"),id:a,children:e}),Oe("button",{type:"button",className:vs("button","button--tertiary"),onClick:n,children:[Oe("span",{"aria-hidden":o?"true":void 0,children:r}),o&&Oe("span",{className:vs("visually-hidden"),children:o})]})]})}function Ju(){const{t:t}=pi(),{id:e}=Bs(),{hasInterrupt:n}=Hi(),{isActive:r,disableTranslations:o,languages:i,currentLocale:a}=Ps(),s=Oo(),u=Rt((()=>{var t;return null==i||null===(t=Wn()(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(Yu,{type:"translations",id:e,label:t("translations.status.label",{language:u}),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const Qu=["categories"];function Zu(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 Xu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Zu(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Zu(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var tc=()=>{const{t:t}=pi(),{sendAction:e,addMessageBubble:n}=Ha(),r=Ni(),o=Oo(),{sendPolite:i}=Va(),{hasInterrupt:a}=Hi(),{hasCountdown:s,endCountdown:u}=cs(),{hasPrompt:c,continueChat:l}=ps(),p=("suggestion",yo().serviceData.suggestion);const[f]=Ls({payload:p}),h=Rt((()=>{const t=p&&!a?f:[];return E()(t).call(t,(t=>{let{categories:e=[]}=t;return Xu(Xu({},N(t,Qu)),{},{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}=Do(),m=xa(),g=!y&&m,b=jt(g),_=!!h.length,x=_&&!g,w=jt([]),D=_?h:w.current;w.current=D;const A=jt(null);Ft((()=>{if(d.current!==h&&!g){if(_){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");fe()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));d.current=h}!b.current&&g?(yn(A.current,o),i(t("faq.srUnavailableText"))):!_&&v.current&&yn(A.current,o),v.current=_,b.current=g}),[_,h,g,o,i,t]);const C=t("faq.headingText");return Oe(Es,{isActive:x,transitionStartState:gs,children:Oe(C?"section":"div",{className:vs("faqs"),"aria-labelledby":C?r:null,ref:A,children:[C&&Oe("h2",{id:r,className:vs("faqs__heading"),children:C}),!!D.length&&Oe("ul",{className:vs("faqs__list"),children:E()(D).call(D,(t=>Oe("li",{className:vs(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:vs("button","button--secondary"),children:[Oe(Ds,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},ec=({children:t})=>{const[,e]=So(),{isOpen:n,isVisible:r,setVisibility:o}=Ia(),{zIndex:i,showFaq:a}=Mn(),{isModal:s,isInline:u}=Do(),c=Io(),l=xa(),{locale:p}=pi(),f=Pt((t=>{e(t)}),[e]),h=Rt((()=>{if(p&&document.querySelector("html").getAttribute("lang")!==p)return p}),[p]),d=["app",...c];return n||d.push("app--collapsed"),l&&d.push("app--user-responded"),r&&Oe("section",{className:vs(d),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!u&&n&&o(Pn.minimized)},onClick:t=>{s&&t.stopPropagation()},lang:h,tabIndex:"-1",ref:f,style:{zIndex:i},"data-nosnippet":!0,children:[Oe("div",{className:vs("app-wrapper"),children:t}),a&&Oe(tc,{})]})},nc=()=>{const{t:t}=pi(),{setUserSelectedOption:e}=Ei(),n=Oo(),{id:r}=No();return Oe(Yu,{type:"cobrowsing",id:r,label:t("options.cobrowsing.cobrowsingActiveText"),onButtonClick:()=>{e(cr,!1),n()},buttonText:t("options.cobrowsing.stopCobrowsingText"),srButtonText:t("options.cobrowsing.srStopCobrowsingText")})},rc=()=>{const{t:t}=pi(),{userSelectedOptions:e}=Ei(),{hasInterrupt:n}=Hi(),{cobrowsing:r}=e,o=jt(r),{sendPolite:i}=Va();return Ft((()=>{!r&&o.current&&fe()((()=>{i(t("options.cobrowsing.srStoppedCobrowsingText"))}),300),o.current=r}),[r,t,i]),r&&!n&&Oe(nc,{})},oc=n(6419),ic=n.n(oc),ac=n(2462),sc=n.n(ac);const uc=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];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}function lc(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){m()(t,e,p()(r,e))}))}}return t}var pc=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,u=N(t,uc);const{isSubmitted:c}=uu(),[l,{error:p}]=cu(n),f=c&&p,h=[];return s&&h.push(s),a&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(Au,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:Oe("input",lc(lc({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u))})};function fc({controlName:t,describedById:e}){const{t:n}=pi();return Oe(wu,{noValidate:"true",children:[Oe(pc,{name:t,type:"email",className:vs("transcript__input"),"aria-describedby":e,labelClass:vs("label"),labelText:n("options.sendTranscript.label")}),Oe("div",{className:vs("options__actions"),children:Oe("button",{type:"submit",className:vs("button","button--primary","options__submit"),children:n("options.sendTranscript.sendButtonText")})})]})}const hc="email",dc={cobrowsing:()=>{const{t:t}=pi(),e=Ni(),{userSelectedOptions:n,features:r,setUserSelectedOption:o,hideOption:i}=Ei(),{enabled:a}=r.cobrowsing||{},s=jt(null),[u,c]=Ot(a),{focusButton:l}=xi(),{focusContainer:p}=No(),{sendAssertive:f}=Va(),h=jt(null),d=jt(null);Ft((()=>{a||!0!==s.current||(f(t("options.cobrowsing.cobrowsingUnavailable")),o(cr,!1),yn(d.current,(()=>{vn(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(Hs,{headingText:t("options.cobrowsing.title"),cancelButtonText:t("options.cancelButtonText"),onCancel:()=>{v(!0)},disableButtonFocusing:!0,cancelButtonRef:h,children:[Oe("p",{className:vs("options__description"),id:e,children:t("options.cobrowsing.description")}),!u&&Oe("p",{className:vs("notification"),children:t("options.cobrowsing.cobrowsingUnavailable")}),u&&Oe("button",{type:"button",className:vs(["button","button--primary"]),onClick:()=>{i(),v(),o(cr,!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}=Ei(),{focusButton:e}=xi(),{t:n}=pi(),r=Ni(),{sendAction:o}=Ha(),i=Rt((()=>({[hc]:[Mu(qu,n("options.sendTranscript.noEmailText")),Mu(Hu,n("options.sendTranscript.invalidEmailText"))]})),[n]),a=Pt((n=>{var r;const i=Fi()(r=n.email).call(r);o({type:"send_transcript",body:{emailAddress:i}}),t(),e()}),[o,t,e]);return Oe(Hs,{headingText:n("options.sendTranscript.title"),cancelButtonText:n("options.cancelButtonText"),children:[Oe("p",{className:vs("options__description"),id:r,children:n("options.sendTranscript.description")}),Oe(hu,{formId:"sendTranscript",onSubmit:a,validationSchema:i,children:Oe(fc,{controlName:hc,describedById:r})})]})}};var vc=()=>{const{optionActive:t}=Ei(),e=jt(null),n=dc[t||e.current];return t&&(e.current=t),Oe(n,{})},yc=()=>{const{t:t}=pi(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=Ei(),{id:i}=xi(),a=jt(null),[s,u]=Ot(!1),c=jt(null),l=e.length,p=jt(ic()({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:Fi()(t).call(t).replace(/\s+/g,"")}),[d]);return Ft((()=>()=>{clearTimeout(a.current)}),[]),Ft((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=sc()(e).call(e,(t=>t.available)),n=-1===t?0:t;vn(p.current[n])}))})),f.current=s}),[s,e]),l?Oe("div",{className:vs("options__container"),onKeyDown:t=>{s&&(dn(t)===hn.Escape&&(u(!1),vn(c.current)),dn(t)===hn.Home&&(vn(p.current[0]),t.preventDefault()),dn(t)===hn.End&&(vn(p.current[l-1]),t.preventDefault()))},onfocusout:()=>{h&&(a.current=fe()((()=>{u(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[Oe(Es,{transitionStartState:gs,isActive:r,children:Oe("div",{className:vs("options__dialog"),children:Oe(vc,{})})}),h&&Oe(Es,{isActive:s,transitionStartState:gs,children:Oe("ul",{className:vs(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:E()(e).call(e,(({name:r,title:o,available:i},a)=>Oe("li",{className:vs("options__menu__item"),role:"menuitem","data-testid":r,children:Oe("button",{type:"button",ref:t=>{p.current[a]=t},className:vs(["button","button--secondary",...i?[]:["button--disabled"]]),onKeyDown:t=>((t,e)=>{if(dn(t)===hn.ArrowDown){const n=Math.min(l-1,e+1);vn(p.current[e===n?0:n]),t.preventDefault()}if(dn(t)===hn.ArrowUp){const n=Math.max(0,e-1);vn(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&&vn(p.current[o])})(t,a),onClick:()=>((t,e)=>{e&&(u(!1),n(t))})(r,i),"aria-disabled":i?null:"true",children:[Oe("span",{className:vs("button__text"),children:[o,!i&&" "]}),!i&&Oe("span",{className:vs("button__state"),children:t("options.unavailableText")})]})},r)))})}),Oe("button",{type:"button",className:vs(["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=>{dn(t)===hn.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(Ds,{name:"options",size:"32"}),Oe("span",{className:vs("button__text"),children:h?t("options.openButtonText"):`${d.title}${d.available?"":" "}`}),!h&&!d.available&&Oe("span",{className:vs("button__state"),children:t("options.unavailableText")})]})]}):null};function mc(){const{menuOptions:t,allowOptionSelection:e}=Ei(),{isAvailable:n}=Ps();return n||e&&t.length?Oe("div",{className:vs("app__options"),children:[n&&Oe("div",{className:vs("app__options-item","app__options-item--left"),children:Oe(Ku,{})}),e&&Oe("div",{className:vs("app__options-item","app__options-item--right"),children:Oe(yc,{})})]}):null}function gc(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 bc=function({children:t,interruptComponent:e}){const{hasInterrupt:n,meta:r}=Hi(),{isOpen:o}=Ia();return Oe(Y,{children:[Oe(rc,{}),Oe(Ju,{}),Oe("div",{className:vs("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=gc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=gc(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}({},r)):null:t}),Oe(mc,{})]})},_c=({onOpenChat:t})=>{const{t:e}=pi(),n=Ni(),{isOpen:r}=Ia(),o=jt(null),i=jt(null),a=jt(),s=Oo(),u=(()=>{const t=jt(null),[e]=So();return t.current=e,Pt((e=>{yn(t.current,(()=>{To(e)}))}),[])})(),c=wo(),l=bo().subTitle,{hasInterrupt:p}=Hi(),{headerCollapseButtonId:f}=yo(),h=c&&!p;return Nt((()=>{!1===r&&!0===o.current&&u(i.current),o.current=r}),[r,u]),Oe("div",{className:vs("toggle-button"),children:[Oe("div",{id:n,children:[Oe("p",{className:vs("toggle-button__title"),children:e(h?"toggleButton.resumeTitle":"toggleButton.title")}),Oe("p",{className:vs("toggle-button__subtitle"),children:h?l:e("toggleButton.subtitle")})]}),Oe("button",{type:"button","aria-labelledby":n,className:vs("toggle-button__button"),ref:i,onMouseUp:()=>{a.current="mouse"},onKeyUp:()=>{a.current="key"},onClick:()=>{t(),"mouse"===a.current?s():"key"===a.current&&u(f)}})]})},Ec=()=>{const{t:t}=pi(),{title:e,subTitle:n}=bo(),r=_o(),{isOpen:o}=Ia(),i=wo(),{hasInterrupt:a}=Hi(),{defaults:s}=Mn(),{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:vs("agent-info"),children:[Oe("div",{className:vs("agent-info__graphic"),children:[c||u?Oe("img",{className:vs(c?"avatar":"icon"),src:c||u,alt:""}):Oe(Ds,{name:"avatar",size:"32"}),Oe("span",{className:vs(p),"aria-hidden":"true",children:r})]}),Oe("div",{className:vs("agent-info__body"),children:[Oe("p",{className:vs("agent-info__heading"),children:e??t("header.title")}),Oe("p",{className:vs("agent-info__text"),children:l})]})]})},xc=({children:t,onCloseChat:e})=>{const{headerCollapseButtonId:n}=yo(),r=jt(null),{t:o}=pi();return Oe("header",{className:vs("app__header"),children:[t,Oe("div",{className:vs("header-controls"),children:Oe("button",{type:"button",className:vs("button","header-controls__collapse"),onClick:e,ref:r,id:n,children:Oe(Ds,{name:"chevronDown",size:"32",alt:o("header.collapseApp")})})})]})},wc=yt({});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 Ac(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){m()(t,e,p()(r,e))}))}}return t}function Cc({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:vs("divider",u&&`divider--type-${u}`,n),children:[c&&Oe("span",{className:vs("divider__graphic"),children:i?Oe(Ds,{name:i,size:a,className:s}):Oe("img",{src:r,className:vs({icon:"icon"===o,avatar:"avatar"===o},s)})}),Oe("div",Ac({className:vs("divider__body")},l))]})}const Tc={month:"long",day:"numeric",year:"numeric"},Sc={hour:"numeric",minute:"numeric"};var kc=({event:t})=>{const e=(()=>{const[t,e]=It((t=>t+1),0);return Pt((()=>{fe()((()=>{e()}))}),[])})(),{date:n,time:r,timeUntilMidnight:o,srText:i}=(t=>{var e;const{t:n}=pi(),r=Mn(),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,Sc).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,Tc).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:l}),time:l,fullDateTime:c,timeUntilMidnight:u}})(sn(t.timeIndicator));return Ft((()=>{const t=fe()((()=>{e()}),o);return()=>{clearTimeout(t)}}),[e,o]),Oe(Cc,{dividerType:"time-indicator",children:[Oe("p",{className:vs("divider__time"),"aria-hidden":"true",children:[Oe("span",{children:n}),Oe("span",{children:r})]}),Oe("p",{className:vs("visually-hidden"),children:i})]})},Oc=({event:t,newParticipant:e})=>{const[n,r]=(t=>{const e=Lt(wc);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:vs(o),children:[t.timeIndicator&&Oe(kc,{event:t}),Oe(n,{event:t,children:Oe(r,{event:t})})]})},Ic=({eventPayload:t})=>{const{fromClient:e,participant:n}=t,r=(t=>yo().participantInfo.participants[t])(n)||{},{messages:o,defaults:i}=Mn(),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:vs("message__avatar"),children:Oe("img",{src:r.avatar,className:vs("avatar"),alt:""})}));const p=e&&c||a;return u&&p&&l.push(Oe("span",{className:vs("message__author-name"),children:p})),l.length>0&&Oe("div",{className:vs("message__author"),children:l})},Fc=()=>{const{id:t}=wo()||{};return Oe("li",{className:vs("conversation__item","conversation__item--source-agent"),children:Oe("div",{className:vs("message","message--source-agent","message--type-loading"),children:[Oe(Ic,{eventPayload:{fromClient:!1,participant:t}}),Oe("div",{className:vs("message__body"),children:Oe("span",{className:vs("loader"),children:[Oe("span",{className:vs("loader__part","one")}),Oe("span",{className:vs("loader__part","two")}),Oe("span",{className:vs("loader__part","three")}),Oe("span",{className:vs("loader__part","four")})]})})]})})};const Nc=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function jc(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 Rc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=jc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=jc(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var Pc=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,Nc);const l=Fo(r),{t:p}=pi(),[,{hasTranslation:f,isTranslated:h,toggleTranslation:d,locale:v}]=Ls(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=Rc(Rc({},s),{},{lang:v})),Oe(Y,{children:Oe("div",Rc(Rc({className:vs(l)},c),{},{children:[e&&Oe(Ic,{eventPayload:r.payload}),Oe("div",Rc(Rc({className:vs("message__body")},s),{},{children:a})),u&&Oe("div",{"aria-hidden":"true",className:vs("message__info"),children:u}),n&&f&&Oe("div",{className:vs("message__translation-info"),children:Oe("button",{className:vs("message__translation-toggle","button","button--secondary"),onClick:d,children:p(h?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const Lc=["event","children"];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)A()(n=Bc(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Bc(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Mc=t=>{const{payload:e}=t,[n,r]=Ot(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=Ha(),{activeServiceSessionId:s}=yo().serviceInfo,u=We(xo),[c]=Ls(t),{service:l}=e,p=Rt((()=>{var e;return Uc(Uc({},t),{},{payload:Uc(Uc({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&Uc(Uc({},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 zc=n(9853),$c=n.n(zc),Hc=t=>{try{return $c()(t)}catch(e){return console.log("Could not parse message",t,e),""}},qc=t=>{const{sendAction:e}=Ha();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}},Vc=Object.prototype.toString,Wc=Array.isArray||function(t){return"[object Array]"===Vc.call(t)};function Gc(t){return"function"==typeof t}function Kc(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Yc(t,e){return null!=t&&"object"==typeof t&&e in t}var Jc=RegExp.prototype.test,Qc=/\S/;var Zc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},Xc=/\s*/,tl=/\s+/,el=/\s*=/,nl=/\s*\}/,rl=/#|\^|\/|>|\{|&|=|!/;function ol(t){this.string=t,this.tail=t,this.pos=0}function il(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function al(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}ol.prototype.eos=function(){return""===this.tail},ol.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},ol.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},il.prototype.push=function(t){return new il(t,this)},il.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=Yc(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=Yc(u.view,t);if(c){e=i;break}u=u.parent}o[t]=e}return Gc(e)&&(e=e.call(this.view)),e},al.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},al.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||sl.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(tl,2)),!Wc(t)||2!==t.length)throw new Error("Invalid tags: "+t);n=new RegExp(Kc(t[0])+"\\s*"),r=new RegExp("\\s*"+Kc(t[1])),o=new RegExp("\\s*"+Kc("}"+t[1]))}v(e||sl.tags);for(var y,m,g,b,_,E,x=new ol(t);!x.eos();){if(y=x.pos,g=x.scanUntil(n))for(var w=0,D=g.length;w<D;++w)i=b=g.charAt(w),function(t,e){return Jc.call(t,e)}(Qc,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,m=x.scan(rl)||"name",x.scan(Xc),"="===m?(g=x.scanUntil(el),x.scan(el),x.scanUntil(r)):"{"===m?(g=x.scanUntil(o),x.scan(nl),x.scanUntil(r),m="&"):g=x.scanUntil(r),!x.scan(r))throw new Error("Unclosed tag at "+x.pos);if(_=">"==m?[m,g,y,x.pos,f,h,a]:[m,g,y,x.pos],h++,u.push(_),"#"===m||"^"===m)s.push(_);else if("/"===m){if(!(E=s.pop()))throw new Error('Unopened section "'+g+'" at '+y);if(E[1]!==g)throw new Error('Unclosed section "'+E[1]+'" at '+y)}else"name"===m||"{"===m||"&"===m?p=!0:"="===m&&v(g)}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},al.prototype.render=function(t,e,n,r){var o=this.getConfigTags(r),i=this.parse(t,o),a=e instanceof il?e:new il(e,void 0);return this.renderTokens(i,a,n,t,r)},al.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},al.prototype.renderSection=function(t,e,n,r,o){var i=this,a="",s=e.lookup(t[1]);if(s){if(Wc(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(Gc(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}},al.prototype.renderInverted=function(t,e,n,r,o){var i=e.lookup(t[1]);if(!i||Wc(i)&&0===i.length)return this.renderTokens(t[4],e,n,r,o)},al.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")},al.prototype.renderPartial=function(t,e,n,r){if(n){var o=this.getConfigTags(r),i=Gc(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)}}},al.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},al.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||sl.escape,o=e.lookup(t[1]);if(null!=o)return"number"==typeof o&&r===sl.escape?String(o):r(o)},al.prototype.rawValue=function(t){return t[1]},al.prototype.getConfigTags=function(t){return Wc(t)?t:t&&"object"==typeof t?t.tags:void 0},al.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!Wc(t)?t.escape:void 0};var sl={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){ul.templateCache=t},get templateCache(){return ul.templateCache}},ul=new al;sl.clearCache=function(){return ul.clearCache()},sl.parse=function(t,e){return ul.parse(t,e)},sl.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(Wc(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return ul.render(t,e,n,r)},sl.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return Zc[t]}))},sl.Scanner=ol,sl.Context=il,sl.Writer=al;var cl=sl;function ll(t,e={}){var n;const r={};A()(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=cl.escape;cl.escape=function(t){return t};const i=cl.render(t,r);return cl.escape=o,i}cl.escape=function(t){return t};const pl=["event"];function fl(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)A()(n=fl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=fl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var dl=t=>{let{event:e}=t,n=N(t,pl);const[r]=Ls(e),o=qc(e.payload.id),i=Rt((()=>e.payload.fromClient?{children:Oe("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:ll(Hc(r.text),r.variables)}}}),[r,e]);return Oe(Pc,hl(hl({type:"text",event:e,onClick:o},n),i))};function vl(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 yl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=vl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=vl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var ml=({children:t,onClose:e,"aria-label":n,"aria-labelledby":r,fallBackFocusRef:o})=>{var i;const a=Ni(),s=jt(null),u=jt(null),[c,l]=Ot(!1);return Ft((()=>(c&&(u.current=ue(s.current,{initialFocus:o&&o.current?o.current:null}),u.current.activate()),()=>{u.current&&u.current.deactivate()})),[c,o]),Ft((()=>{const t=an();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=yl(yl({},t.props),{},{onClose:e}),t))),s.current)},gl=({url:t,description:e,onClose:n})=>{const{zIndex:r}=Mn(),o=Ga(),i=Io(),a=jt(null),{t:s}=pi(),u=["modal",...i],c=t=>{t.stopPropagation()},l=()=>{n()},p=r?{zIndex:r+1}:void 0;return Oe(ml,{onClose:n,"aria-label":s("lightbox.heading"),fallBackFocusRef:a,children:({onClose:n,modalRenderFn:r})=>r((n=>Oe("div",{className:vs(u),onClick:l,style:p,children:Oe("div",{className:vs("modal__float"),tabIndex:"-1",onMouseDown:o,onKeyDown:o,onTouchStart:o,onMouseMove:o,onWheel:o,onPointerDown:o,onPointerMove:o,ref:a,children:[Oe("div",{className:vs("modal__inner"),onClick:c,children:Oe("img",{className:vs("modal__image"),src:t,alt:e})}),Oe("button",{type:"button",className:vs("modal__close"),onClick:n,children:[Oe(Ds,{name:"close",size:"16"}),s("lightbox.closeLabel")]})]})}))(n))})},bl=({description:t,url:e})=>{const{t:n}=pi(),[r,o]=Ot(!1);return Oe(Y,{children:[Oe("button",{type:"button",className:vs("modal__enlarge"),onClick:()=>{o(!0)},children:[n("message.image.srTextEnlargeButtonLabel",{description:t}),Oe(Ds,{name:"enlarge",size:"32"})]}),r&&Oe(gl,{url:e,description:t,onClose:()=>{o(!1)}})]})};const _l=["event","descriptorId"];function El(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 xl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=El(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=El(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const wl=["event","descriptorId"];function Dl(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)A()(n=Dl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Dl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Cl={[ur.new_topic]:"newtopic"},Tl=["event"];function Sl(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 kl={default:({event:t})=>{const{t:e}=pi(),{subtype:n}=t.payload.body;return Oe(Cc,{dividerType:Cl[ur[n]],iconName:ur[n],children:Oe("p",{children:e(`dividerKeys.${ur[n]}`)})})},[ur.new_translation]:({event:t})=>{const{t:e}=pi(),{translationEnabled:n,translationLocale:r,text:o}=t.payload.body,{enableTranslations:i,languages:a}=Ps(),s=Rt((()=>{var t;return null==a||null===(t=Wn()(a).call(a,(t=>t.locale===r)))||void 0===t?void 0:t.nativeName}),[a,r]);return Oe(Cc,{iconName:"newTranslation",dividerType:"newtranslation",children:[Oe("p",{className:vs("divider__title"),children:e(n?"translations.divider.startText":"translations.divider.stopText",{language:s})}),n?Oe("p",{children:o}):Oe("button",{className:vs("button","button--secondary"),onClick:()=>{i(r)},children:e("translations.divider.restartButtonText")})]})}};const Ol=["event"];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 Fl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Il(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Il(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Nl=["event"];function jl(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 Rl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=jl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=jl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Pl=({children:t,url:e,target:n})=>e?Oe("a",{href:e,download:!0,target:n||void 0,children:t}):Oe("span",{children:t});var Ll=n(4494),Bl=n.n(Ll);function Ul({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:vs("carousel-pagination__wrapper"),role:"group",children:Oe("ul",{className:vs("carousel-pagination"),children:E()(t).call(t,((t,n)=>{const i=e===n;return Oe("li",{className:vs("carousel-pagination__item",i?"is-active":void 0),children:Oe("button",{className:vs("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 Ml({items:t,currentIndex:e,onChange:n,children:r}){const{t:o}=pi(),i=t.length;return Oe("div",{className:vs("carousel-controls"),children:[Oe("button",{className:vs("button","button--previous"),"aria-label":o("carousel.controls.previous"),onClick:()=>{n((e-1+i)%i)},children:Oe(Ds,{name:"arrowLeft",size:"16"})}),r,Oe("button",{className:vs("button","button--next"),"aria-label":o("carousel.controls.next"),onClick:()=>{n((e+1)%i)},children:Oe(Ds,{name:"arrowRight",size:"16"})})]})}function zl(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 $l(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=zl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=zl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var Hl=({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}=Ha(),f=Ni(),h=jt(),d=e.type===fr?"a":"button",v=Pt((()=>p("action.click_card",{type:ir,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]),m=Rt((()=>e.type===fr?{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:vs("card__wrapper"),id:t,tabIndex:"-1",ref:u,children:[Oe("img",{className:vs("card__image"),src:i,alt:""}),Oe("div",{className:vs("card__content"),id:t,children:[a&&Oe("h2",{className:vs("card__title"),children:a}),r&&Oe("div",{className:vs("card__description"),dangerouslySetInnerHTML:{__html:Hc(r)}}),Oe(d,$l($l({tabIndex:s&&!o?"-1":void 0,className:vs("button","button--primary"),"aria-describedby":f},m),{},{children:n}))]})]})};function ql(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 Vl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ql(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ql(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}function Wl({item:t,items:e,currentIndex:n,isActive:r}){const{t:o}=pi();return Oe("div",{className:vs("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(Hl,Vl(Vl({},t),{},{isCarouselItem:!0,hasFocus:r}))})}const Gl=(t,e,n)=>`${n}${e}`,Kl=t=>t.label;function Yl({currentIndex:t,onChange:e,getItemKey:n=Gl,getItemLabel:r=Kl,items:o}){const i=Ni(),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=Bl()(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:vs("carousel"),role:"group","aria-roledescription":"carousel",children:[Oe("div",{className:vs("carousel__slides-wrapper"),children:Oe("div",{id:i,className:vs("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:vs("carousel__slide",r?"is-active":void 0),"aria-hidden":r?void 0:"true",children:Oe(Wl,{item:t,items:o,currentIndex:s,isActive:r})},n(t,e,"item-"))}))})}),Oe("div",{className:vs("carousel__controls"),children:Oe(Ml,{currentIndex:s,items:o,onChange:u,controlId:i,children:Oe("div",{className:vs("carousel__pagination"),children:Oe(Ul,{currentIndex:s,items:o,onChange:u,getItemKey:n,getItemLabel:r})})})})]})}const Jl=(t,e,n="")=>`${n}${t.title}:${e}`,Ql=t=>t.title;function Zl(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 Xl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Zl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Zl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}function tp(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 ep(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=tp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=tp(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const np={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=N(t,Lc);const{t:a}=pi(),s=Ni(),{body:u,subEvent:c,showOptions:l,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:h}=Mc(r);return Oe(Y,{children:[E()(e=rt(o)).call(e,(t=>(t.props=Uc(Uc({},t.props),{},{event:c,descriptorId:s,showTranslationToggle:!1}),t))),p&&Oe("button",{type:"button",className:vs("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(Ds,{name:"chevronDown",size:"8"})]}),l&&Oe(Pc,Uc(Uc({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:Oe("ul",{className:vs("choice-prompt","choice-prompt--many"),children:E()(n=u.choices).call(n,(t=>Oe("li",{className:vs("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:dl,image:t=>{let{event:e,descriptorId:n}=t,r=N(t,_l);const[o]=Ls(e),{description:i,url:a,isZoomable:s}=o,[u,c]=Ot(!1);return Oe(Pc,xl(xl({event:e,type:"image"},r),{},{children:[Oe("img",{src:a,id:n,alt:i,onLoad:()=>{c(!0)}}),s&&u&&Oe(bl,{description:i,url:a})]}))},video:t=>{let{event:e,descriptorId:n}=t,r=N(t,wl);const[o]=Ls(e),{description:i,url:a}=o;return Fo(e).push("message--type-video"),Oe(Pc,Al(Al({event:e,type:"video"},r),{},{children:[Oe("div",{id:n,className:vs("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,Nl);const{t:r}=pi(),[o]=Ls(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,u=Rt((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return Oe(Pc,Rl(Rl({event:e,type:"upload"},n),{},{children:Oe("div",{className:vs("download"),children:[Oe(Ds,{name:"download",size:"16"}),Oe(Pl,{url:s,target:i?void 0:"_blank",children:[Oe("span",{"aria-hidden":"true",className:vs("file-download"),children:a}),Oe("span",{className:vs("visually-hidden"),children:u})]})]})}))},cta:({event:t})=>{const[e]=Ls(t),n=qc(t.payload.id),{emitEvent:r}=Ha(),o=Ni(),i=Pt((()=>r("action.click_cta",{type:ir,originMessage:t.payload.id,link:{url:e.buttonLink}})),[r,e,t]);return Oe(Pc,{type:"cta",event:t,children:[Oe("div",{className:vs("cta__content"),id:o,dangerouslySetInnerHTML:{__html:Hc(e.description)},onClick:n}),Oe("a",{className:vs("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(Pc,{event:t,modifiers:"type-carousel",children:Oe(Yl,{items:e,ItemComponent:Wl,getItemKey:Jl,getItemLabel:Ql})})},card:({event:t})=>{const[e]=Ls(t),n=Ni();return Oe(Pc,{type:"card",event:t,children:Oe(Hl,Xl({id:n},e))})}},info:{text:dl,divider:t=>{let{event:e}=t,n=N(t,Tl);return Oe(kl[ur[e.payload.body.subtype]]||kl.default,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Sl(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Sl(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=N(t,Ol);const{t:r}=pi(),[o]=Ls(e);return Oe(Pc,Fl(Fl({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:kc},participant:{participant:({event:t})=>{const{agentIcon:e}=Mn().defaults||{},{participant:n}=t.payload,[r]=Ls(t),o=Rt((()=>r?cl.render(Hc(r),n):void 0),[r,n]);if(!o)return null;const i=n.avatar||e;return Oe(Cc,{graphicSrc:i,graphicType:n.avatar?"avatar":void 0,iconName:i?void 0:"balloon",childrenHTML:o,dividerType:"participant"})}}};var rp=({children:t})=>{const{customComponents:e}=Mn(),n=Rt((()=>{var t;return en()(t=s()(np)).call(t,((t,n)=>ep(ep({},t),{},{[n]:ep(ep({},np[n]),e?e[n]:{})})),{fallback:dl})}),[e]);return Oe(wc.Provider,{value:n,children:t})},op=()=>{const{t:t}=pi(),{showDisclaimer:e}=Mn();return e&&Oe("div",{className:vs("disclaimer"),tabIndex:"0",children:[Oe("h2",{className:vs("disclaimer__title"),children:t("disclaimer.title")}),Oe("div",{className:vs("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},ip=()=>{const{t:t}=pi(),e=jt(null),n=go(),r=yo().isLoading,{isOpen:o}=Ia(),i=Eo(),a=Oo();return Ft((()=>{window.requestAnimationFrame((()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)}))}),[n,r,o]),Oe(Y,{children:[o&&Oe("a",{className:vs("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),Oe("div",{className:vs("app__body"),ref:e,children:Oe("div",{className:vs("conversation__container"),children:[Oe(op,{}),Oe("ol",{className:vs("conversation"),children:[Oe(rp,{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(Oc,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&Oe(Fc,{})]})]})})]})},ap=({baseClassName:t,children:e,title:n})=>{const r=Eo(),o=Ni();return Oe("section",{id:r,className:vs(t),"aria-describedby":o,tabIndex:"-1",children:[Oe("h2",{className:vs(`${t}__title`),id:o,children:n}),e]})},sp=()=>{const{t:t}=pi(),e=Oo(),n=Ga(),{emitEvent:r}=Ha(),{isActive:o,remaining:i,timer:a,endCountdown:s}=cs(),u=i>0,c=t(u?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return Oe(ap,{baseClassName:"idle",title:c,children:u&&Oe(Y,{children:[Oe("div",{className:vs("idle__count-container"),children:o&&Oe(Y,{children:[Oe("span",{className:vs("idle__count-text"),children:t("idleDetachWarning.countdownText")}),Oe("span",{className:vs("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),Oe("div",{className:vs("idle__options"),children:[Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},up=()=>{const{t:t}=pi(),e=Ga(),{name:n}=wo()||{},{continueChat:r,restartChat:o}=ps();return Oe(ap,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:Oe("div",{className:vs("prompt__options"),children:[Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),Oe("button",{type:"button",className:vs("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function cp({controlName:t,skipLinkId:e}){const{t:n}=pi(),{sendAssertive:r}=Va(),{emitEvent:o}=Ha(),i=(()=>{const{sendAction:t}=Ha(),{features:e}=Ei(),{typingPeekahead:n}=e||{},r=jt(null),o=jt(null),i=jt(!1),a=jt(null);Ft((()=>()=>{clearInterval(a.current),clearTimeout(r.current),clearTimeout(o.current)}),[]);const s=(e,r)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Ja(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Ja(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}({type:er,state:e},n&&n.enabled?{body:{currentMessage:r}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||(i.current=!0,a.current||(s(!0,t.target.value),a.current=Ya()((()=>{i.current?n&&n.enabled&&s(!0,t.target.value):(clearInterval(a.current),a.current=null)}),2e3)),clearTimeout(r.current),clearTimeout(o.current),r.current=fe()((()=>{i.current=!1}),300),o.current=fe()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:a}=ts(),{hasCharacterLimit:s,characterLimit:u,reachedCharacterWarning:c,reachedCharacterLimit:l,remainingChars:f}=function(t){const{t:e}=pi(),{sendAssertive:n}=Va(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t}}}=yo(),{limit:e}=t||{};return{hasLimit:null!=e,limit:null!=e?e:null}})(),i=Rt((()=>on(n,300)),[n]),a=Rt((()=>on(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=cu(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}]=cu(t),y=!!d,g=Pt((()=>{c&&r(n("input.srCharacterLimitText",{limit:f})),o("ui.inputFocus")}),[n,r,c,f,o]),_=Rt((()=>n("input.inputPlaceholder",{hasLimit:s,limit:s?u:null})),[n,s,u]),E=Rt((()=>n("input.inputLabel",{hasLimit:s,limit:s?u:null})),[n,s,u]);return Nt((()=>(a(y),()=>{a(!1)})),[a,y]),Oe(wu,{className:vs("input","input--text"),noValidate:"true",children:[Oe("div",{className:vs(["input--text__container",...c&&!l?["character-warning"]:[],...l?["character-exceeded"]:[]]),children:[Oe(pc,{id:e,type:"text",name:t,className:vs("input__text"),autocomplete:"off",placeholder:_,labelText:E,labelClass:vs("visually-hidden"),"aria-invalid":s?l:null,onKeyUp:i,onFocus:g}),Oe("div",{className:vs("character-count"),children:c&&Oe("span",{children:f})})]}),Oe("button",{className:vs("button","input__submit"),type:"submit",disabled:!y||l,children:Oe(Ds,{name:"send",size:"32",alt:n("input.sendMessage")})})]})}function lp(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 pp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=lp(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=lp(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const fp="userText";function hp(t){let e=Eu({},t);const n=Eo(),r=Oo(),{sendMessage:o}=Ha(),i=Pt(((t,{updateControlValue:e})=>{o({body:t.userText}),e(fp,""),r()}),[o,r]);return Oe(hu,pp(pp({},e),{},{formId:"textEntry",persistData:!0,onSubmit:i,children:Oe(cp,{controlName:fp,skipLinkId:n})}))}var dp=()=>{const{t:t}=pi(),{showFileUpload:e,serviceAllowsUploads:n}=ki(),[r,o]=Ot(n),i=Oo(),a=jt(null),{setUserEntryType:s,activeEntry:u}=ts(),c=jt(null),{sendPolite:l}=Va(),p=!!wo();return Ft((()=>{yn(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!==Zn&&Oe(Es,{isActive:r,transitionStartState:bs,children:Oe("div",{className:vs("upload-toggle-wrapper"),children:Oe(Es,{isActive:r,transitionStartState:_s,children:Oe("button",{className:vs(["button","button--secondary","upload-toggle"]),ref:c,disabled:r?null:"true",type:"button",onClick:()=>{s(Zn),i()},children:Oe(Ds,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},vp=()=>{const{t:t}=pi(),{currentUploads:e}=Oi();return Oe("div",{className:vs("progress"),children:E()(e).call(e,(({id:e,name:n,progress:r,uploading:o,error:i})=>Oe("div",{className:vs("progress_container"),children:[Oe("div",{className:vs("progress__text"),children:[Oe("span",{className:vs("progress__text--file-name"),children:n}),Oe("span",{className:vs("progress__text--percentage"),children:`${r}%`})]}),Oe(Du,{error:i}),Oe("progress",{className:vs("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",{fileName:n}),max:"100","aria-valuenow":r,value:r,"aria-busy":o,children:`${r}%`})]},e)))})};function yp({id:t,name:e,labelText:n,contentHint:r,outputText:o,accept:i}){const{isSubmitted:a}=uu(),[s,u]=Ot(!1),[{onInput:c,onBlur:l},{error:p}]=cu(e),f=Ni(),h=Ni(),d=Ni(),v=a&&p,y=[d];r&&y.push(h),v&&y.push(f);const m=Pt((()=>{u(!0)}),[u]),g=Pt((()=>{u(!1),l()}),[u,l]),b=Pt((t=>{const e={target:{value:t.target.files}};c(e)}),[c]);return Oe("div",{className:vs("upload__container"),children:[r&&Oe("span",{className:vs("upload__content-hint"),id:h,children:r}),Oe(Du,{id:f,error:v&&p}),Oe("div",{className:vs(["file-upload",...s?["focus-within"]:[]]),children:Oe("label",{htmlFor:t,className:vs("upload__label"),children:[Oe(Ds,{name:"upload",size:"32"}),Oe("div",{children:[Oe("span",{className:vs(["upload__label--text"]),children:n}),Oe("input",{id:t,className:vs("upload__input"),type:"file",name:e,onChange:b,"aria-invalid":v?"true":"false","aria-describedby":y.join(" "),accept:i||null,onFocus:m,onBlur:g}),Oe("span",{className:vs("upload__output"),"aria-hidden":"true",id:d,children:o})]})]})})]})}function mp({skiplinkId:t,controlName:e,accept:n,contentHint:r,isUploading:o,isComplete:i,onClickCancel:a}){const{t:s}=pi(),[{value:u}]=cu(e),c=u&&u.length>0,l=c?u[0].name:"";return Oe(wu,{className:vs("input","input--file"),children:[Oe(yp,{name:e,id:t,accept:n,labelText:s("fileUpload.labelText"),outputText:s("fileUpload.selectedText",{hasFile:c,filename:l}),contentHint:r}),Oe("div",{className:vs("upload__button-container"),children:[Oe("button",{id:o||!i?t:void 0,type:"button",onClick:a,className:vs("button","button--secondary","upload__cancel"),children:s("fileUpload.cancelButtonText")}),Oe("button",{className:vs("button","button--primary"),type:"submit",children:s("fileUpload.uploadButtonText")})]})]})}const gp="fileListForm",bp="fileList";var _p=()=>{const{t:t}=pi(),{sendPolite:e,sendAssertive:n}=Va(),r=Eo(),o=Oo(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ki(),u=jt(null),c=jt(i),{cancelEntrySelection:l}=ts(),{uploadFile:p,clearUploads:f,isUploading:h,isComplete:d}=Oi(),{hasFile:v,selectedFileName:y,uploadHandle:m,hasServerError:g,progress:b}=((t,e)=>{const n=Ge(nu,{formId:t,name:e},[t,e]),{currentUploads:r}=Oi(),o=n&&n.length>0;let i=null,a=!1,s=0;if(r&&r.length>0){const t=r[0];i=t.uploadHandle,a=!!t.error,s=t.progress}return{hasFile:o,selectedFileName:o?n[0].name:"",uploadHandle:i,hasServerError:a,progress:s}})(gp,bp),_=Ni(),E=jt(!0),x=t("fileUpload.contentHint",{size:cn(s)}),w=jt(""),D=jt(null);Ft((()=>{w.current&&D.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(x),w.current=x}),[x,n]),Ft((()=>{if(b>0)switch(b){case 1:e(t("fileUpload.srStartedText"));break;default:e(`${b}%`)}}),[b,e,t]),Ft((()=>{E.current||h||!d||(f(),l(),o(),fe()((()=>{e(t("fileUpload.srCompleteText"))}),300)),E.current=d}),[h,d,f,l,o,e,t]);const A=Pt((({fileList:t})=>{p(t[0]),o()}),[p,!1,o]),C=Pt((()=>{m&&m.abort(),f(),l(),o()}),[m,f,l,o]),T=Rt((()=>({[bp]:[Mu((()=>i),t("fileUpload.errors.unavailable")),Mu($u,t("fileUpload.errors.noFile")),Mu(zu,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return Oe("div",{className:vs(["upload",...g?["upload--error"]:[]]),ref:D,children:Oe(hu,{formId:gp,persistData:!0,onSubmit:A,validationSchema:T,children:[(h||!d)&&Oe(Y,{children:[Oe(vp,{}),Oe("div",{className:vs("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:C,ref:u,className:vs("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!h&&d&&Oe(mp,{controlName:bp,skiplinkId:r,accept:a.join(", "),contentHint:x,isComplete:d,isUploading:h,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:C}),!c.current&&Oe(Y,{children:[Oe("span",{className:vs("notification"),id:_,children:t("fileUpload.unavailableText")}),Oe("div",{className:vs("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:C,className:vs("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};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 xp(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){m()(t,e,p()(r,e))}))}}return t}var wp=()=>{const t=jt(null),{hasCountdown:e}=cs(),[n,r]=Ot(e),{hasPrompt:o}=ps(),[i,a]=Ot(o),s=Oo(),u=jt(!1),{activeEntry:c}=ts(),[l,p]=Ot({text:hp,upload:_p}),[f,h]=Ot((()=>c)),d=Mn(),{accountAllowsUploads:v}=ki(),y=Pt((()=>{yn(t.current,(()=>{s()}))}),[s]);Ft((()=>{const{customComponents:t}=d,{entry:e}=t||{};e&&p((t=>xp(xp({},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 m=l[f];return Oe("div",{className:vs("app__entry"),ref:t,children:[n&&Oe(sp,{}),i&&Oe(up,{}),Oe("div",{className:vs(["entry__body",...e||o?["entry__body--hidden"]:[]]),children:[f!==Zn&&v&&Oe(dp,{}),Oe(m,{})]})]})},Dp=({originalError:t,title:e,message:n,buttonText:r,action:o,srText:i})=>{const a=Ha(),s=Ni(),{sendPolite:u}=Va(),c=Oo(),l=t instanceof Yi;return Ft((()=>{l&&a[o]()}),[o,a,l]),Ft((()=>{!l&&i&&fe()((()=>{u(i)}),200)}),[u,i,l]),!l&&Oe("section",{className:vs("interrupt"),"aria-labelledby":s,children:Oe("div",{className:vs("interrupt__body"),children:[Oe("h2",{id:s,className:vs("interrupt__title"),children:e}),Oe("p",{className:vs("interrupt__message"),children:n}),r&&o&&Oe("div",{className:vs("interrupt__actions"),children:Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{a[o](),c()},children:r})})]})})},Ap=()=>{const{isVisible:t}=Ia(),{openChat:e,closeChat:n}=ns(),{isModal:r}=Do();return t&&Oe(xs,{children:Oe(ec,{children:[!r&&Oe(_c,{onOpenChat:e}),Oe(xc,{onCloseChat:n,children:Oe(Ec,{})}),Oe(bc,{interruptComponent:Dp,children:[Oe(ip,{}),Oe(wp,{})]})]})})};function Cp(t,e,n=[]){const r=Lt(ye),o=jt();o.current=e,Ft((()=>{if(!Di()(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 Tp=()=>{const t=Mn(),{sendMessage:e,sendContext:n,sendAction:r}=Ha(),{setVisibility:o,visible:i}=Ia(),a=jt(i),s=Lt(ye),u=me(),c=_o(),l=jt(null),p=jt(null),{isInline:f,isResolving:h}=Do(),{hasInterrupt:d}=Hi(),v=be(),y=jt(null),m=Ga(),{enableTranslations:g,disableTranslations:b}=Ps();return Ft((()=>{a.current=i}),[i]),Cp("askText",(t=>{e({body:t})}),[null==u?void 0:u.send]),Cp("setVariables",(t=>{n({variables:t})}),[null==u?void 0:u.send]),Cp("getVisibility",(t=>{t?t(a.current):console.warn("A callback function is required for the getVisibility action.")})),Cp("setVisibility",(e=>{var n;de()(n=T()(Pn)).call(n,e)?(m(),"inline"===t.layoutMode&&e===Pn.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]),Cp("sendCustomAction",((t,e)=>{r({type:"custom",body:{type:t,body:e}})}),[u.send]),Cp("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]),Cp("setTranslation",(({enabled:t,locale:e})=>{t?g(e):b()}),[u.send]),Ft((()=>{h||d||(y.current&&y.current!==v&&s.emit("unreadMessageCount",c),i===Pn.open&&i!==p.current&&0!==l.current&&s.emit("unreadMessageCount",0),i!==Pn.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:Sp}=pr;var kp=()=>{const{t:t}=pi(),e=go(),n=Ao(),{isOpen:r,isVisible:o}=Ia(),{sendAction:i}=Ha(),a=_o(),{sendPolite:s}=Va(),u=Rt((()=>on(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===Xn))).call(t,(t=>t.payload.id));o.length>0&&(n({type:Sp,ids:o}),i({type:nr,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}=pi(),e=go(),n=jt(0),r=jt(0),o=yo().historyLoaded,{sendPolite:i}=Va(),{isOpen:a}=Ia(),s=jt(null),u=jt(null),c=Rt((()=>on((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,t]);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&&fe()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Ip=({children:t})=>{const e=Lt(ye),[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=fe()((()=>{i({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[n,i]),Ft((()=>()=>{o.current=!1}),[]);const{ariaLive:a,messageText:s}=n;return Oe(qa.Provider,{value:i,children:[t,Oe("div",{className:vs("app__live-container"),children:[Oe("div",{"aria-live":"assertive","aria-atomic":"true",className:vs("visually-hidden"),children:a===ar?s:null}),Oe("div",{"aria-live":"polite","aria-atomic":"true",className:vs("visually-hidden"),children:a===sr?s:null})]})]})},Fp=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=cs();return((t,e)=>{const n=jt(t);Ft((()=>{n.current=t}),[t]),Ft((()=>{if(null!==e){const t=Ya()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},Np=({children:t})=>{const e=jt(0),{sendAction:n}=Ha(),{hasCountdown:r,isActive:o,stopCountdown:i}=cs(),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:vs("activity-monitor"),tabIndex:"-1",onMouseDown:a,onKeyUp:a,onTouchStart:a,onMouseMove:a,onWheel:a,onPointerDown:a,onPointerMove:a,children:Oe(Wa.Provider,{value:a,children:t})})},jp=()=>{const{initUserSelectedOptions:t}=Ei(),e=jt(!1),n=Mn();return Ft((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};const Rp=["serviceSettings"],{ADD_EVENT:Pp,ACK_EVENT:Lp,SET_IS_LOADING:Bp,SET_PARTICIPANT:Up,SET_HEADER_SUB_TITLE:Mp,SET_ACTIVE_SERVICE:zp,INIT_RESUME_CONVERSATION_PROMPT:$p,CLEAR_EVENTS:Hp,SET_SERVICE_DATA_ITEM:qp,SET_FEATURE_ENABLED_STATE:Vp,SET_SERVICE_ENTRY_METADATA:Wp,SET_HISTORY:Gp}=pr,Kp=["text","choice_prompt","image","video"];var Yp=({eventBus:t})=>{const{t:e}=pi(),n=me(),r=Ao(),o=go(),i=jt(null),{setUserSelectedOption:a}=Ei(),{initCountdown:s,endCountdown:u}=cs(),{emitEvent:c}=Ha();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:Mp,title:o.name}),r({type:Up,participant:o,fromClient:n}),o.introduction&&r({type:Pp,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:Bp,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:$p});break;case"user_first_response":r(ba(!0)),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:zp,activeServiceSessionId:i.service.serviceSessionId}),r({type:Pp,event:e})}break;case"participant":o(e);break;case"service_data":i.persist&&r({type:qp,payload:i});break;case"ack":r({type:Lp,event:e});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=N(i,Rp),{cobrowsing:n,uploads:o,entry:s}=t;r({type:Vp,key:cr,enabled:!(!n||!n.enabled)}),r({type:Vp,key:lr,enabled:!(!o||!o.enabled)}),a(cr,!1),r({type:Wp,entryMeta:s}),r({type:zp,activeServiceSessionId:i.serviceSessionId}),c("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||r({type:Pp,event:e});break;case"error":switch(i.type){case"find_conversation_erred":r(Bi(new Yi(e)));break;case"seamly_offline":r(Bi(new Ji(e))),r({type:Hp});break;default:r(Bi(new Gi(e)))}break;case"socket_opened":r(Ui())}}}),w()(e=n.stream()).call(e,(t=>"message"===t.type&&de()(Kp).call(Kp,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:Gp,history:t})})).catch((t=>{r(Bi(t))}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[n,o,r]),null};const{REGISTER_UPLOAD:Jp,SET_UPLOAD_PROGRESS:Qp,SET_UPLOAD_ERROR:Zp,SET_UPLOAD_COMPLETE:Xp}=pr;var tf=({children:t})=>{const{t:e}=pi(),n=Ao(),r=me(),{addUploadBubble:o}=Ha();return Oe(Ai.Provider,{value:t=>{const i=En(),a=r.uploadFile(t,(t=>{n({type:Qp,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:Xp,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:Zp,fileId:i,errorText:r})}));n({type:Jp,fileId:i,fileName:t.name,uploadHandle:a})},children:t})};const{createAction:ef}=Sn("errors"),nf=ef("catch-error",(t=>({error:t})));function rf({api:t}){return({getState:e})=>{const n=n=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=Un(e());null==r||r(n.error,{namespace:o,api:i,layoutMode:a,conversationUrl:t.getConversationUrl(),action:n.type?n:void 0})};return t=>e=>{try{return e.error&&n(e),t(e)}catch(t){throw n({error:t}),t}}}}var of=({store:t,children:e,config:n,eventBus:r,api:o})=>(function(e){var n=kt(mt++,10),r=Ot();n.__=e=>t.dispatch(nf(e)),gt.componentDidCatch||(gt.componentDidCatch=function(t){n.__&&n.__(t),r[1](t)}),r[0]}(),Oe(Ie,{store:t,children:Oe(ye.Provider,{value:r,children:Oe(ve.Provider,{value:o,children:Oe(Ip,{children:[Oe(jp,{config:n}),Oe(Yp,{eventBus:r}),Oe(kp,{}),Oe(Op,{}),Oe(Fp,{}),Oe(Np,{children:[Oe(Tp,{}),Oe(tf,{children:e})]})]})})})}));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){m()(t,e,p()(r,e))}))}}return t}var uf=t=>Oe(of,sf(sf({},t),{},{children:Oe(Ap,{})})),cf=n(3813),lf=n.n(cf),pf=n(8158),ff=n.n(pf);n(8604);var hf=n(9340),df=n.n(hf),vf=t=>"function"==typeof t?t:function(){return t},yf="undefined"!=typeof self?self:null,mf="undefined"!=typeof window?window:null,gf=yf||mf||void 0,bf="closed",_f="errored",Ef="joined",xf="joining",wf="leaving",Df="phx_close",Af="phx_error",Cf="phx_reply",Tf="phx_leave",Sf=class{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=fe()((()=>{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})}},kf=class{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=fe()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},Of=class{static request(t,e,n,r,o,i,a){if(gf.XDomainRequest){let n=new gf.XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new gf.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(4===t.readyState&&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(!Object.prototype.hasOwnProperty.call(t,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)}`}},If=class{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 Of.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||Of.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 e=0;switch(e){case 200:A()(r).call(r,(t=>{fe()((()=>{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;Of.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()}},Ff={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(df()(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),ic()(e,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(n,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(o,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(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:Cf,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)}}};function Nf(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 jf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Nf(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Nf(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}var Rf=n(1905),Pf=n.n(Rf);function Lf(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 Bf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Lf(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Lf(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Uf=Pf()("seamly");class Mf{constructor(t,e,n){this.url=t,this.accessToken=n,this.channelName=e,this.connect(),this.socket.onError((t=>{Uf("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline",error:t}})})),this.socket.onOpen((()=>{Uf("[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((()=>{Uf("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((()=>{Uf("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{Uf("[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)=>Bf(Bf({},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",(()=>{Uf("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{Uf("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred",error:t}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{Uf("[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 jf(jf({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{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||gf.WebSocket||If,this.establishedConnections=0,this.defaultEncoder=i()(n=Ff.encode).call(n,Ff),this.defaultDecoder=i()(r=Ff.decode).call(r,Ff),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==If?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let o=null;mf&&mf.addEventListener&&(mf.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),o=this.connectClock)})),mf.addEventListener("pageshow",(t=>{o===this.connectClock&&(o=null,this.connect())}))),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>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=vf(e.params||{}),this.endPoint=`${t}/websocket`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new kf((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}replaceTransport(t){this.disconnect(),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Of.appendParams(Of.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.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){this.connectClock++,t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=vf(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.closeWasClean=!1,this.establishedConnections++,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),fe()((()=>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?fe()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?fe()((()=>{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);let n=this.transport,r=this.establishedConnections;A()(e=this.stateChangeCallbacks.error).call(e,(([,e])=>{e(t,n,r)})),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){var t;A()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Af)}))}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 class{constructor(t,e,n){this.state=bf,this.topic=t,this.params=vf(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Sf(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new kf((()=>{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=Ef,this.rejoinTimer.reset(),A()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=_f,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=bf,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=_f,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 Sf(this,Tf,vf({}),this.timeout).send(),this.state=_f,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Cf,((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(Df,t)}onError(t){return this.on(Af,(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 Sf(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=wf;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Df,"leave")},n=new Sf(this,Tf,vf({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&(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=xf,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===bf}isErrored(){return this.state===_f}isJoined(){return this.state===Ef}isJoining(){return this.state===xf}isLeaving(){return this.state===wf}}(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=fe()((()=>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,fe()((()=>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=Wn()(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())}}(t,{params:Bf(Bf({},e),{},{v:ro})}),this.socket.connect(),this.channel=this.socket.channel(this.channelName,{authorization:`Bearer ${this.accessToken}`})}disconnect(){return new(Ro())((t=>{this.socket.disconnect(t)}))}listenTo(t,e=null){this.channel.on(t,(n=>{Uf("[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 zf(t){const e="cvco."+t;return{get(){var t;const n=[e,Qe()(t=e.split(".")).call(t,0,-1).join(".")];let r;do{r=sessionStorage.getItem(n[0])}while(n.shift()&&!r);return JSON.parse(r)},set(t){t&&sessionStorage.setItem(e,df()(t))}}}class $f{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function Hf(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 qf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Hf(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Hf(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const Vf=Pf()("seamly");function Wf(){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 Gf{constructor({namespace:t,config:e={},locale:n}){var r;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${n?"."+n:""}`,e.storageProvider||zf),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 $f("API"),this.internal$=lf().create(this.internalProducer).flatten(),this.connection$=w()(r=this.internal$).call(r,(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)}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=$()(t)).call(n,(([t])=>"self"!==t))).call(e,((t,[e,{href:n}])=>qf(qf({},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=ff().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:ro}).withCredentials().send({externalId:this.externalId||void 0}),{body:e}=await t,{conversation:n}=e,r=qf({},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 Gi(t);throw t}}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await ff().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:ro});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:qf(qf({},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 Qi(t);if(404===t.status)throw new Yi(t);if(t.status>=500)throw new Gi(t);throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new Mf(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.getChannelName(),this.getAccessToken()),this.internalProducer.emit(lf().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:Wf()}:this.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=ff().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 ff().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:ro}).then((({body:t})=>(this.updateUrls(t),t.config))).catch((t=>{if(404===t.status)throw new Ki(t);if(t.status>=500)throw new Gi(t);throw t}))}getConversationIntitialState(){return ff().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:ro}).then((({body:t})=>(this.updateUrls(t),((t,e)=>{var n;return en()(n=s()(t)).call(n,((n,r)=>(de()(e).call(e,r)||(n[r]=t[r]),n)),{})})(t.conversation,["accessToken","channelName"])))).catch((t=>{if(401===t.status)throw new Qi(t);if(404===t.status)throw new Yi(t);if(t.status>=500)throw new Gi(t);throw t}))}async getConfig(){const t=await this.getAccountConfig();return this.configReady=!0,t}async getTranslations(t){try{const e=`${this.getUrlPrefix("http")}${this.URLS.translations}`.replace("{version}",String(1)).replace("{locale}",t),n=ff().get(e),{body:r}=await n;return r.translations}catch(t){if(t.status>=500)throw new Gi(t);throw t}}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)}):(Vf("[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=En()),{type:n,body:r,transactionId:o}}(t,e),1e4))}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 Kf(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 Yf=Kf();Yf.withExtraArgument=Kf;var Jf=Yf;function Qf(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 Zf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=Qf(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=Qf(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}function Xf({api:t}){return({dispatch:e})=>n=>r=>{const o=n(r);switch(r.type){case String(Bi):r.error instanceof Ji||e({type:pr.SET_USER_SELECTED_OPTION,option:cr,value:!1});break;case pr.SET_USER_SELECTED_OPTIONS:t.store.set("options",r.options);break;case pr.SET_USER_SELECTED_OPTION:t.store.set("options",Zf(Zf({},t.store.get("options")||{}),{},{[r.option]:r.value}))}return o}}function th(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 eh(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=th(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=th(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const nh={events:[],initialState:{},unreadEvents:0,isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:En(),optionsButtonId:En(),cobrowsingContainerId:En(),headerCollapseButtonId:En(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:Qn,active:Qn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function rh(t=nh,e){if(e.type===String(Ea)){const{visible:e}=t;return eh(eh({},nh),{},{visible:e})}return((t,e)=>{var n,r,o,i,a,s,u,c,l,p;switch(e.type){case hr:const{type:f,payload:h}=e.event,d=t.options.features.hasOwnProperty(lr),v=eo(t.entryMeta,h);let y=Kn({},t.options);if(d&&(f===Yn.message||f===Yn.participant)&&!h.fromClient){const{type:t}=h.entry||{};y=Kn(Kn({},y),{},{features:Kn(Kn({},y.features),{},{uploads:Kn(Kn({},y.features.uploads),{},{enabledFromEntry:t===Zn})})})}const m=Qr(e.event);return Wn()(n=t.events).call(n,(t=>t.payload.id===h.id))?t:Kn(Kn({},t),{},{entryMeta:d||v.active!==Zn?v:Kn({},t.entryMeta),options:y,unreadEvents:m?t.unreadEvents+1:t.unreadEvents,events:[...t.events,Kn(Kn({},e.event),{},{payload:Kn(Kn({},m&&{messageStatus:h.fromClient?tr:Xn}),h)})]});case mr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const g=Wn()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:b,occurredAt:_}=e.event.payload;return g?Kn(Kn({},t),{},{events:Zr(E()(o=t.events).call(o,(t=>t.payload.id===g.payload.id?Kn(Kn({},t),{},{payload:Kn(Kn({},t.payload),{},{id:b,occurredAt:_})}):t)))}):t;case dr:return Kn(Kn({},t),{},{unreadEvents:0,events:[]});case yr:return Kn(Kn({},t),{},{unreadEvents:0,events:E()(i=t.events).call(i,(t=>{var n;return-1!==Xe()(n=e.ids).call(n,t.payload.id)?Kn(Kn({},t),{},{payload:Kn(Kn({},t.payload),t.payload.messageStatus===Xn&&{messageStatus:tr})}):t}))});case vr:const{events:x,participants:D,activeServiceSessionId:A,activeServiceSettings:C={},serviceData:T,resumeConversationPrompt:S}=e.history,k=((t,e)=>{var n;const r=qn()(n=w()(e).call(e,(e=>!(Wn()(t).call(t,(t=>t.payload.id===e.payload.id))||"participant"===e.type&&!e.payload.participant.introduction)))).call(n);return Zr([...r,...t])})(t.events,x),O=Kn(Kn({},t.participantInfo.participants),D),I=Wn()(a=qn()(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}=C,P=eo(Kn(Kn(Kn({},t.entryMeta),j),{},{active:j.default||Jn,options:Kn({},j&&j.options?j.options:{})}),k[k.length-1].payload);let L=Kn({},t.options.features);L.hasOwnProperty(cr)&&(L=Kn(Kn({},L),{},{cobrowsing:{enabled:!(!N||!N.enabled)}}));const B=L.hasOwnProperty(lr);if(B){const{payload:t}=I,{type:e}=t.entry||{};L=Kn(Kn({},L),{},{uploads:{enabled:!(!R||!R.enabled),enabledFromEntry:e===Zn}})}const U=Kn(Kn({},t),{},{unreadEvents:w()(k).call(k,(t=>"message"===t.type&&t.payload.messageStatus===Xn)).length,events:w()(k).call(k,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:Kn(Kn(Kn({},t.participantInfo),F?Xr(t.participantInfo,{type:_r,participant:O[F]}):{}),{},{participants:O}),historyLoaded:!0,serviceInfo:Kn(Kn({},t.serviceInfo),{},{activeServiceSessionId:A}),serviceData:T||{},options:Kn(Kn({},t.options),{},{features:L}),entryMeta:B||P.active!==Zn?P:Kn({},t.entryMeta),resumeConversationPrompt:S||!1});return F&&(U.headerTitles=to(t.headerTitles,{type:xr,title:O[F].name})),U;case wr:return Kn(Kn({},t),{},{historyLoaded:!1});case gr:return Kn(Kn({},t),{},{isLoading:e.isLoading});case Ar:const{delaySeconds:M,delayTime:z}=e;return Kn(Kn({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:M,remaining:M,timer:z}});case Cr:const{idleDetachCountdown:$}=t,{remaining:H}=$,q=H-1;return Kn(Kn({},t),{},{idleDetachCountdown:Kn(Kn({},t.idleDetachCountdown),{},{remaining:q,timer:un(q)})});case Tr:return Kn(Kn({},t),{},{idleDetachCountdown:Kn(Kn({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case Sr:return Kn(Kn({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case kr:return Kn(Kn({},t),{},{resumeConversationPrompt:!0});case Or:return Kn(Kn({},t),{},{resumeConversationPrompt:!1});case _r:case br:return Kn(Kn({},t),{},{participantInfo:Xr(t.participantInfo,e)});case Dr:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?Kn(Kn({},t),{},{serviceInfo:Kn(Kn({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case Er:case xr:return Kn(Kn({},t),{},{headerTitles:to(t.headerTitles,e)});case Rr:return Kn(Kn({},t),{},{initialState:e.initialState});case Ir:return Kn(Kn({},t),{},{serviceData:Kn(Kn({},t.serviceData),{},{[e.payload.type]:e.payload})});case Fr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:e.features})});case Nr:return t.options.features.hasOwnProperty(e.key)?Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:Kn(Kn({},t.options.features),{},{[e.key]:Kn(Kn({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case jr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:{}})});case Br:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case Ur:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{panelActive:!1,optionActive:""})});case Lr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{userSelectedOptions:e.options})});case Pr:const{option:V,value:W}=e;return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{userSelectedOptions:Kn(Kn({},t.options.userSelectedOptions),{},{[V]:W})})});case Mr:const{value:G}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{blockAutoEntrySwitch:G})});case Hr:const{entryMeta:K}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn(Kn({},t.entryMeta),K),{},{active:K.default,options:Kn({},K.options||{}),overrideOptions:{}})});case $r:const{entryType:Y}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{active:Y})});case zr:const{entryType:J}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{userSelected:J})});case qr:return Kn(Kn({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case Vr:return Kn(Kn({},t),{},{currentUploads:E()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?Kn(Kn({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Gr:return Kn(Kn({},t),{},{currentUploads:E()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?Kn(Kn({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case Wr:return Kn(Kn({},t),{},{currentUploads:E()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?Kn(Kn({},t),{},{complete:!0}):t))});case Kr:return Kn(Kn({},t),{},{currentUploads:w()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Yr:return Kn(Kn({},t),{},{currentUploads:[]});case Jr:return Kn(Kn({},t),{},{seamlyContainerElement:e.element});default:return t}})(t,e)}const oh=["namespace","parentElement","showFaq"],ih=["view"];function ah(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 sh(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ah(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ah(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}class uh{constructor(t,e){var n;const{namespace:r="",parentElement:o,showFaq:i}=t,a=N(t,oh);this.config=sh(sh({},a),{},{showFaq:!1!==i,namespace:r}),this.namespace=r,this.parentElement=o,this.externalApi=e,this.api=new Gf({namespace:t.namespace,config:t.api,locale:null==t||null===(n=t.context)||void 0===n?void 0:n.locale}),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,ih),r=sh(sh({},this.config),{},{customComponents:s()(n).length?n:void 0}),o=function({initialState:t,api:e,eventBus:n}={}){return He({reducers:{state:rh,[String(Aa)]:Aa,[String(po)]:po,[String(bu)]:bu,[String($s)]:$s,[String(di)]:di,[String(Oa)]:Oa,[String(Ra)]:Ra},initialState:t,middlewares:[rf({api:e}),Jf.withExtraArgument({api:e,eventBus:n}),({dispatch:t})=>e=>n=>{var r,o;const i=e(n);switch(n.type){case String(Nn):case String(jn):var a,s;null!=n&&null!==(r=n.config)&&void 0!==r&&null!==(o=r.defaults)&&void 0!==o&&o.agentName&&t({type:pr.SET_HEADER_SUB_TITLE,title:null==n||null===(a=n.config)||void 0===a||null===(s=a.defaults)||void 0===s?void 0:s.agentName})}return i},ta({api:e}),Xf({api:e}),({dispatch:t,getState:e})=>n=>r=>{var o,i,a,s,u,c,l;const p=n(r);switch(r.type){case String(pr.SET_HISTORY):null!==(o=r.history)&&void 0!==o&&null!==(i=o.translation)&&void 0!==i&&i.enabled&&t(Ss(r.history.translation.locale));break;case String(pr.SET_INITIAL_STATE):null!==(a=r.initialState)&&void 0!==a&&null!==(s=a.translation)&&void 0!==s&&s.enabled&&(t(Ss(r.initialState.translation.locale)),t(Vo(r.locale)));break;case String(pr.ADD_EVENT):"info"===r.event.type&&"new_translation"===(null===(u=r.event)||void 0===u||null===(c=u.payload)||void 0===c||null===(l=c.body)||void 0===l?void 0:l.subtype)&&r.event.payload.body.translationEnabled&&t(Vo(r.event.payload.body.translationLocale));break;case String(ks):const n=zo(e());t(Vo(n))}return p}]})}({api:this.api,eventBus:this.eventBus});await o.dispatch(_a(r)),vt(e?Oe(of,{config:r,eventBus:this.eventBus,store:o,api:this.api,children:Oe(e,{})}):Oe(uf,{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=$()(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 ch(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 lh(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)A()(n=ch(Object(r),!0)).call(n,(function(e){b(t,e,r[e])}));else if(h())v()(t,h()(r));else{var o;A()(o=ch(Object(r))).call(o,(function(e){m()(t,e,p()(r,e))}))}}return t}const ph=t=>"object"==typeof t&&"action"in t,fh=t=>lh(lh({},t),{},{args:e()(t.args)?t.args:[t.args]});var hh=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t}push(...t){var e;(t=E()(e=w()(t).call(t,ph)).call(e,fh)).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=T()(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=T()(this._instances)).call(e,(t=>{this.destroy(t)}))}handleAction(t){const{action:e,instance:n,args:r}=t,o=T()(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 uh(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):lh(lh(lh({},this.appConfig),t),{},{api:lh(lh({},this.appConfig.api),t.api)})}},dh=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 hh(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)},1611:function(t,e,n){t.exports=n(6507)},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)},149:function(t,e,n){t.exports=n(888)},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){n(149);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),m=n(7149),g=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 C(){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:C,changeDefaults:function(t){A.exports.defaults=t}};var T=/[&<>"']/,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]*$/,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(T.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=$(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},K={exec:function(){}},Y=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,g,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,g=v(w=d[0]).call(w)):(u=e[2].search(/[^ ]/),u=e[1].length+(u>4?1:u),g=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}g+="\n"+o(h).call(h,u)}else f(h).call(h)||(l=!0),h.search(/[^ ]/)>=u?g+="\n"+o(h).call(h,u):g+="\n"+h}E.loose||(p?E.loose=!0:/\n *\n *$/.test(i)&&(p=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(s="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:i,task:!!a,checked:s,loose:!1,text:g}),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(g).call(g),E.raw=y(r=E.raw).call(r);var C=E.items.length;for(c=0;c<C;c++){var T;this.lexer.state.top=!1,E.items[c].tokens=this.lexer.blockTokens(E.items[c].text,[]),m(T=E.items[c].tokens).call(T,(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=K,ct=W,lt=Y,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,mt=ht.inline,gt=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=g(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:mt.normal};this.options.pedantic?(e.block=yt.pedantic,e.inline=mt.pedantic):this.options.gfm&&(e.block=yt.gfm,this.options.breaks?e.inline=mt.breaks:e.inline=mt.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&&m(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)+"["+gt("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)+"["+gt("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&&m(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 g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}throw new Error(g)}}else t=t.substring(n.raw.length),e.push(n)}return e},n=e,i=[{key:"rules",get:function(){return{block:yt,inline:mt}}}],(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}(),Ct=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}(),Tt=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=Ct,Ot=Tt,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,m,g,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++)m=(y=p.items[r]).checked,g=y.task,v="",y.task&&(b=this.renderer.checkbox(m),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,g,m);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=Ct,Bt=Tt,Ut=Y,Mt=X,zt=q,$t=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>"+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 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>"+zt(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),m=n(4445),g=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 C(t){if(!_(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&T(e,n,t[n]);return e.join("&")}function T(t,e,n){if(void 0!==n)if(null!==n)if(u(n))c(n).call(n,(function(n){T(t,e,n)}));else if(_(n))for(var r in n){var o;Object.prototype.hasOwnProperty.call(n,r)&&T(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=C,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":g.stringify,"application/json":m},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=C(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 m(t){if(t)return function(t){for(var e in m.prototype)Object.prototype.hasOwnProperty.call(m.prototype,e)&&(t[e]=m.prototype[e]);return t}(t)}t.exports=m,m.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},m.prototype.parse=function(t){return this._parser=t,this},m.prototype.responseType=function(t){return this._responseType=t,this},m.prototype.serialize=function(t){return this._serializer=t,this},m.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},m.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 g=new i(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),b=new i([408,413,429,500,502,503,504,521,522,524]);m.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&&g.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},m.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()},m.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)},m.prototype.catch=function(t){return this.then(void 0,t)},m.prototype.use=function(t){return t(this),this},m.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},m.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},m.prototype.get=function(t){return this._header[t.toLowerCase()]},m.prototype.getHeader=m.prototype.get,m.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},m.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},m.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},m.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},m.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},m.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},m.prototype.redirects=function(t){return this._maxRedirects=t,this},m.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},m.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},m.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},m.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},m.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("&")}}},m.prototype._appendQueryString=function(){console.warn("Unsupported")},m.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)}},m.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},1031:function(t,e,n){n(2595),t.exports=n(1899)},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},3966:function(t,e,n){n(7405);var r=n(4058);t.exports=r.Object.getPrototypeOf},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},888:function(t,e,n){n(9668);var r=n(1031);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,m=y>1?arguments[1]:void 0,g=void 0!==m,b=c(d),_=0;if(g&&(m=r(m,y>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)h=g?m(d[_],_):d[_],u(n,_,h);else for(f=(p=b.call(d)).next,n=new v;!(l=f.call(p)).done;_++)h=g?i(p,m,[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,m){for(var g,b,_=i(d),E=o(_),x=r(v,y,3),w=a(E.length),D=0,A=m||s,C=e?A(d,w):n||f?A(d,0):void 0;w>D;D++)if((h||D in E)&&(b=x(g=E[D],D,_),t))if(e)C[D]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return D;case 2:u.call(C,g)}else switch(t){case 4:return!1;case 7:u.call(C,g)}return p?-1:c||l?l:C}};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=m(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},m=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=m(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!!m(this,t)}}),i(l.prototype,n?{get:function(t){var e=m(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,m=v.getterFor;t.exports=function(t,e,n){var v,g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=g?"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:g})}));var D=m(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,g,_),i.enable();return p(v,t,!1,!0),w[t]=v,r({global:!0,forced:!0},w),b||n.setStrong(v,t,g),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"),m="keys",g="values",b="entries",_=function(){return this};t.exports=function(t,e,n,l,h,E,x){o(n,e,l);var w,D,A,C=function(t){if(t===h&&I)return I;if(!v&&t in k)return k[t];switch(t){case m:case g:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",S=!1,k=t.prototype,O=k[y]||k["@@iterator"]||h&&k[h],I=!v&&O||C(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,T,!0,!0),p&&(f[T]=_))),h==g&&O&&O.name!==g&&(S=!0,I=function(){return O.call(this)}),p&&!x||k[y]===I||u(k,y,I),f[e]=I,h)if(D={values:C(g),keys:E?I:C(m),entries:C(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,m,g=t.target,b=t.global,_=t.stat,E=t.proto,x=b?r:_?r[g]:(r[g]||{}).prototype,w=b?a:a[g]||(a[g]={}),D=w.prototype;for(f in e)n=!i(b?f:g+(_?".":"#")+f,t.forced)&&x&&c(x,f),d=w[f],n&&(v=t.noTargetGet?(m=o(x,f))&&m.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=g+"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:{}}})},m=t.exports={enable:function(){m.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),m=y.get,g=y.has,b=y.set;r=function(t,e){if(g.call(y,t))throw new TypeError(d);return e.facade=t,b.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},i=function(t){return g.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,m=n&&n.that,g=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),E=a(e,m,1+g+_),x=function(t){return l&&u(l),new c(!0,t)},w=function(t){return g?(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),m=p.MutationObserver||p.WebKitMutationObserver,g=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||!m||!g?_&&_.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=g.createTextNode(""),new m(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,m=0;y>m;)h=v[m++],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,m=s.MessageChannel,g=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))}:g&&g.now?o=function(t){g.now(x(t))}:m&&!f?(a=(i=new m).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",m=h>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),g=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:!m||!g},{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),m=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,m);for(r=new(void 0===n?Array:n)(d(m-y,0)),l=0;y<m;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,m=u((function(){v.sort(void 0)})),g=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:m||!g||!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,m,g=s(this),b=a(g.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(g,r),v=0;v<r;v++)(y=_+v)in g&&c(l,v,g[y]);if(l.length=r,n<r){for(v=_;v<b-r;v++)m=v+n,(y=v+r)in g?g[m]=g[y]:delete g[m];for(v=b;v>b-r+n;v--)delete g[v-1]}else if(n>r)for(v=b-r;v>_;v--)m=v+n-1,(y=v+r-1)in g?g[m]=g[y]:delete g[m];for(v=0;v<n;v++)g[v+_]=arguments[v+2];return g.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)})},2595:function(t,e,n){n(6887)({global:!0},{globalThis:n(1899)})},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})},7405:function(t,e,n){var r=n(6887),o=n(5981),i=n(9678),a=n(249),s=n(4160);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},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),m=n(941),g=n(3916),b=n(5743),_=n(1302),E=n(3091),x=n(1385),w=n(487),D=n(2941).set,A=n(6132),C=n(6584),T=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),z=p&&p.prototype,$=p,H=z,q=c.TypeError,V=c.document,W=c.process,G=S.f,K=G,Y=!!(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===R)return!0;if(u&&!H.finally)return!0;if(R>=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!(!m(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;Y?((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&&T("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=($=function(t){b(this,$,L),g(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=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===$||t===i?new o(t):K(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 C(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=g(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=g(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),m=n(3894),g=n(5803),b=n(1887),_=n(9290),E=n(4771),x=n(946),w=n(684),D=n(7857),A=n(9677),C=n(5988),T=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"),z="Symbol",$=j("toPrimitive"),H=B.set,q=B.getterFor(z),V=Object.prototype,W=o.Symbol,G=i("JSON","stringify"),K=A.f,Y=C.f,J=w.f,Q=T.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!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(V,e);r&&delete V[e],Y(t,e,n),r&&t!==V&&Y(V,e,r)}:Y,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=m(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)||Y(t,M,b(1,{})),t[M][r]=!0),it(t,r,n)):Y(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=m(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=m(e);if(n!==V||!l(Z,r)||l(X,r)){var o=K(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]?g(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)})),T.f=ct,C.f=st,A.f=lt,x.f=w.f=pt,D.f=ft,R.f=function(t){return at(j(t),t)},s&&(Y(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=g(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")},9668:function(t,e,n){n(2595)},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},6507:function(t,e,n){var r=n(3966);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},m={"%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"]},g=n(8612),b=n(7642),_=g.call(Function.call,Array.prototype.concat),E=g.call(Function.apply,Array.prototype.splice),x=g.call(Function.call,String.prototype.replace),w=g.call(Function.call,String.prototype.slice),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=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},T=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[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=C(t),r=n.length>0?n[0]:"",i=T("%"+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),m=w(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)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 g=u(c,d);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.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,m=String.prototype.match,g="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,C="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(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)||C&&"object"==typeof t&&C 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=m.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+"="+T(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(j(t[e],"\n")>=0)return!1;return!0}(W)?"["+M(W,x)+"]":"[ "+W.join(", ")+" ]"}if(function(t){return!("[object Error]"!==N(t)||C&&"object"==typeof t&&C in t)}(e)){var G=z(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 K=[];return a.call(e,(function(t,n){K.push(D(n,e,!0)+" => "+D(t,e))})),U("Map",i.call(e),K,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 Y=[];return l.call(e,(function(t){Y.push(D(t,e))})),U("Set",c.call(e),Y,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)||C&&"object"==typeof t&&C in t)}(e))return L(D(Number(e)));if(function(t){if(!t||"object"!=typeof t||!g)return!1;try{return g.call(t),!0}catch(t){}return!1}(e))return L(D(g.call(e)));if(function(t){return!("[object Boolean]"!==N(t)||C&&"object"==typeof t&&C in t)}(e))return L(d.call(e));if(function(t){return!("[object String]"!==N(t)||C&&"object"==typeof t&&C in t)}(e))return L(D(String(e)));if(!function(t){return!("[object Date]"!==N(t)||C&&"object"==typeof t&&C in t)}(e)&&!function(t){return!("[object RegExp]"!==N(t)||C&&"object"==typeof t&&C 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&&C&&Object(e)===e&&C 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 T(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 m in t)d&&"prototype"===m||!o.call(t,m)||f.push(String(m));if(u)for(var g=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)g&&"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,m=f[n],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(v=e.decoder(m,a.decoder,d,"key"),y=e.strictNullHandling?null:""):(v=e.decoder(m.slice(0,b),a.decoder,d,"key"),y=r.maybeMap(u(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,d,"value")}))),y&&e.interpretNumericEntities&&"iso-8859-1"===d&&(y=s(y)),m.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,m,g,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&&!g?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?[m(g?n:c(n,h.encoder,b,"key",y))+"="+m(c(x,h.encoder,b,"value",y))]:[m(n)+"="+m(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 C=0;C<w.length;++C){var T=w[C],S="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!s||null!==S){var k=u(x)?"function"==typeof i?i(n,T):n:n+(d?"."+T:"["+T+"]");_.set(e,!0);var O=r();l(D,t(S,k,i,a,s,c,p,f,d,v,y,m,g,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(),m=0;m<n.length;++m){var g=n[m];c.skipNulls&&null===o[g]||l(f,d(o[g],g,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}(),m=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}(),g=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 g(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}(),C=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}(),T=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 T?new T((n=o.f,r=e,function(t){return n(t)&&r(t)}),o.ins):new T(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 C(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 m(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,{API:function(){return Kf},AgentInfo:function(){return Ec},AppFrame:function(){return ec},ChatFrame:function(){return bc},Conversation:function(){return ap},Engine:function(){return ch},EntryContainer:function(){return Dp},EventParticipant:function(){return Ic},ExternalApi:function(){return dh},Header:function(){return xc},Icon:function(){return Ds},Interrupt:function(){return Ap},MessageContainer:function(){return Pc},SeamlyApiContext:function(){return ve},SeamlyEventBusContext:function(){return ye},SeamlyGeneralError:function(){return Gi},SeamlyLiveRegionContext:function(){return qa},SeamlyOfflineError:function(){return Ji},StoreProvider:function(){return Ie},Text:function(){return dl},ToggleButton:function(){return _c},View:function(){return Cp},calculateVisibility:function(){return pa},className:function(){return vs},createReduxStore:function(){return He},default:function(){return vh},eventTypes:function(){return Yn},getUrlParams:function(){return ln},getUrlSearchString:function(){return pn},randomId:function(){return En},seamlyActions:function(){return pr},useChoicePrompt:function(){return Mc},useDispatch:function(){return Ao},useEvents:function(){return go},useGeneratedId:function(){return Ni},useI18n:function(){return pi},useSeamlyChat:function(){return ns},useSeamlyCommands:function(){return Ha},useSeamlyConfig:function(){return Mn},useSeamlyEventStream:function(){return fs},useSeamlyIdleDetachCountdown:function(){return cs},useSeamlyMessageContainerClassNames:function(){return Fo},useSeamlyOptions:function(){return Ei},useSeamlyVisibility:function(){return Ia},useTranslatedEventData:function(){return Ls},useTranslations:function(){return Ps},useTranslationsContainer:function(){return Bs},visibilityStates:function(){return Pn}}),n(2698);var t=n(1511),e=n.n(t),o=n(4103),i=n.n(o),a=n(4310),s=n.n(a),u=n(4074),c=n.n(u),l=n(9649),p=n.n(l),f=n(368),h=n.n(f),d=n(3978),v=n.n(d),y=n(4341);function m(t,e,n){return e in t?y(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=n(2991),b=n.n(g),_=n(116),E=n.n(_),x=n(8914),w=n.n(x),D=n(455),A=n.n(D),C=n(7149),T=n.n(C),S=n(6902),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,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 K(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==o&&null!=R.vnode&&R.vnode(i),i}function Y(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,m=r&&r.__k||q,g=m.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?K(null,h,null,null,h):Array.isArray(h)?K(Y,{children:h},null,null,null):h.__b>0?K(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=m[l])||f&&h.key==f.key&&h.type===f.type)m[l]=void 0;else for(p=0;p<g;p++){if((f=m[p])&&h.key==f.key&&h.type===f.type){m[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&&h.__k===f.__k?h.__d=u=nt(h,u,t):u=ot(t,h,f,m,d,u),"function"==typeof n.type&&(n.__d=u)):u&&f.__e==u&&u.parentNode!=t&&(u=Q(f))}for(n.__e=v,l=g;l--;)null!=m[l]&&("function"==typeof n.type&&null!=m[l].__e&&m[l].__e==n.__d&&(n.__d=Q(r,l+1)),ht(m[l],m[l]));if(y)for(l=0;l<y.length;l++)ft(y[l],y[++l],y[++l])}function nt(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?nt(r,e,n):ot(n,r,r,o,r.__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,m,g,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,m=(c=_.contextType)&&r[c.__c],g=c?m?m.props.value:c.__:r,n.__c?v=(l=e.__c=n.__c).__=l.__E:("prototype"in _&&_.prototype.render?e.__c=l=new _(y,g):(e.__c=l=new J(y,g),l.constructor=_,l.render=dt),m&&m.sub(l),l.props=y,l.state||(l.state={}),l.context=g,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,g),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(y,l.__s,g)||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,g),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,h,d)}))}l.context=g,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===Y&&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 K(t,a,r,o,null)}(Y,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=Y,L=[],B="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt.__r=0,M=0;var mt,gt,bt,_t=n(679),Et=n.n(_t),xt=0,wt=[],Dt=R.__b,At=R.__r,Ct=R.diffed,Tt=R.__c,St=R.unmount;function kt(t,e){R.__h&&R.__h(gt,t,xt||e),xt=0;var n=gt.__H||(gt.__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(mt++,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=gt),r.__}function Ft(t,e){var n=kt(mt++,3);!R.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,gt.__H.__h.push(n))}function Nt(t,e){var n=kt(mt++,4);!R.__s&&$t(n.__H,e)&&(n.__=t,n.__H=e,gt.__h.push(n))}function jt(t){return xt=5,Rt((function(){return{current:t}}),[])}function Rt(t,e){var n=kt(mt++,7);return $t(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=gt.context[t.__c],n=kt(mt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(gt)),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=[],R.__e(e,t.__v)}})),wt=[]}R.__b=function(t){gt=null,Dt&&Dt(t)},R.__r=function(t){At&&At(t),mt=0;var e=(gt=t.__c).__H;e&&(e.__h.forEach(Mt),e.__h.forEach(zt),e.__h=[])},R.diffed=function(t){Ct&&Ct(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)),gt=null},R.__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=[],R.__e(n,t.__v)}})),Tt&&Tt(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=gt;"function"==typeof t.__c&&t.__c(),gt=e}function zt(t){var e=gt;t.__c=t.__(),gt=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},Kt=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Yt=function(t){return"INPUT"===t.tagName},Jt=function(t,e){return!(e.disabled||function(t){return Yt(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(Yt(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 Yt(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){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},ue=function(t,e){var n,r=(null==e?void 0:e.document)||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!(!t||!i.containers.some((function(e){return e.contains(t)})))},u=function(t){var e=o[t];if("function"==typeof e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e=e.apply(void 0,i)}if(!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=r.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},c=function(){var t=u("initialFocus");if(!1===t)return!1;if(void 0===t)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(Kt).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){var e=u("setReturnFocus",t);return e||!1!==e&&t},h=function(t){var e=se(t);s(e)||(ae(o.clickOutsideDeactivates,t)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!Xt(e)}):ae(o.allowOutsideClick,t)||t.preventDefault())},d=function(t){var e=se(t),n=s(e);n||e instanceof Document?n&&(i.mostRecentlyFocusedNode=e):(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,t))return t.preventDefault(),void n.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=se(t);l();var n=null;if(i.tabbableGroups.length>0){var r=ie(i.tabbableGroups,(function(t){return t.container.contains(e)}));if(r<0)n=t.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var o=ie(i.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e===n}));if(o<0&&i.tabbableGroups[r].container===e&&(o=r),o>=0){var a=0===o?i.tabbableGroups.length-1:o-1;n=i.tabbableGroups[a].lastTabbableNode}}else{var s=ie(i.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e===n}));if(s<0&&i.tabbableGroups[r].container===e&&(s=r),s>=0){var c=s===i.tabbableGroups.length-1?0:s+1;n=i.tabbableGroups[c].firstTabbableNode}}}else n=u("fallbackFocus");n&&(t.preventDefault(),p(n))}(t)},y=function(t){if(!ae(o.clickOutsideDeactivates,t)){var e=se(t);s(e)||ae(o.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}},m=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},g=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(),m(),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,g(),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,g()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,l(),m(),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},ce=n(4198),le=n.n(ce),pe=n(3032),fe=n.n(pe),he=n(8580),de=n.n(he);const ve=yt(null),ye=yt(""),me=()=>Lt(ve),ge=()=>me().store||{},be=()=>{const{get:t}=ge();return t?t("conversationUrl"):null},_e=()=>!!be();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 Ce=Ae;const{Provider:Te,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(Te,{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 ze(){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 $e=ze;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,$e(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=ze.apply(void 0,i)(n.dispatch),je(je({},n),{},{dispatch:r})}}}(...n)))}function qe(){return Lt(Ce)}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 Ke=n(1238),Ye=n.n(Ke),Je=n(3649),Qe=n.n(Je),Ze=n(1643),Xe=n.n(Ze),tn=n(2366),en=n.n(tn);function nn(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function rn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=nn(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=nn(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const on=(t,e)=>{let n;return function(...r){const o=this;let i=!1;return clearTimeout(n),n=fe()((()=>{n=null,i||t.apply(o,r),i=!1}),e),e=>{i=!0,e&&t.apply(o,r)}}},an=()=>{var t;const e=[],n=[];return w()(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"))})),()=>{w()(n).call(n,((t,n)=>{const r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)}))}},sn=t=>Math.ceil(t/1e3),un=t=>{const e=Math.floor(t/60);return{minutes:e,seconds:t-60*e}},cn=(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 Ye()((t/Math.pow(1024,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]},ln=()=>{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 rn(rn({},t),{},{[n]:decodeURIComponent(r)})}),{})},pn=t=>{var e;return en()(e=k()(t)).call(e,((e,n)=>`${e}${e?"&":""}${n}=${encodeURIComponent(t[n])}`),"")},fn={27:"Escape",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown"},hn={Escape:"Escape",End:"End",Home:"Home",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown"},dn=t=>t.code?hn[t.code]:fn[t.keyCode],vn=t=>{t&&t.focus()},yn=(t,e)=>{t&&(t.contains(document.activeElement)||t===document.activeElement)&&e()};var mn=n(1864),gn=n.n(mn),bn=n(1128),_n=n.n(bn);function En(){var t;return"_"+(Number(Qe()(t=String(Math.random())).call(t,2))+_n()()+Math.round(performance.now())).toString(36)}function xn(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}const wn="//";function Dn(t,e,n="/"){return(r,...o)=>e(t+n+r,...o)}function An(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)w()(n=xn(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=xn(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}({type:t},e(...n));return n.toString=()=>String(t),n.match=e=>(null==e?void 0:e.type)===String(t),n}function Cn(t,...e){const n=[];w()(e).call(e,(t=>{var e;const r=typeof t;if("string"===r)return n.push([t]);"object"!==r||t instanceof Array||w()(e=k()(t)).call(e,(e=>n.push([e,t[e]])))}));const r=Dn(t,An,"/");return b()(n).call(n,(t=>r(...t)))}function Tn(t,e){const[n,r,o]=Cn(t,{pending:(t,e)=>({meta:{arg:t,requestId:e,status:"pending"}}),fulfilled:(t,e,n)=>({payload:e,meta:{arg:t,requestId:n,status:"fulfilled"}}),rejected:(t,e,n)=>({error:e,meta:{arg:t,requestId:n,status:"rejected",error:String(e)}})});return gn()((i=>(a,s,u)=>{const c=En(),l=(async()=>{let t;try{a(n(i,c));const o=e(i,{dispatch:a,getState:s,extra:u}),l=await o;t=r(i,l,c)}catch(e){t=o(i,e,c)}return a(t),t})();return gn()(l,{type:t,arg:i,requestId:c})}),{type:t,pending:n,fulfilled:r,rejected:o})}function Sn(t){return{createAction:Dn(t,An,wn),createActions:Dn(t,Cn,wn),createThunk:Dn(t,Tn,wn),createReducer:(e,n)=>function(t,e={},n){const r=(t=n,r)=>{const o=null==e?void 0:e[null==r?void 0:r.type];return o?o(t,r):t};return r.toString=()=>t,r}(t,e,n),selectState:e=>e[t]}}const{createAction:kn,createThunk:On,createReducer:In,selectState:Fn}=Sn("config"),Nn=kn("initialize",(t=>({config:t}))),jn=kn("update",(t=>({config:t}))),Rn="visibility",Pn={hidden:"hidden",minimized:"minimized",open:"open",initialize:null};function Ln(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Ln(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Ln(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Un=De(Fn,(t=>{let e=Bn({visible:"inline"===(null==t?void 0:t.layoutMode)?Pn.open:Pn.minimized,appContainerClassNames:t.appContainerClassNames||[]},t);return"function"==typeof e.appContainerClassNames&&(e=Bn(Bn({},e),{},{appContainerClassNames:e.appContainerClassNames(e)})),e}));function Mn(){return We(Un)}var zn=n(7302),$n=n.n(zn),Hn=n(7093),qn=n.n(Hn),Vn=n(4473),Wn=n.n(Vn);function Gn(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Gn(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Gn(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Yn={info:"info",message:"message",participant:"participant",system:"system"},Jn="text",Qn="text",Zn="upload",Xn="received",tr="read",er="typing",nr="read",rr="detach_service",or="set_translation",ir="click_cta",ar="assertive",sr="polite",ur={new_topic:"newTopic",new_translation:"newTranslation"},cr="cobrowsing",lr="uploads",pr={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",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",SET_SEAMLY_CONTAINER_ELEMENT:"SET_SEAMLY_CONTAINER_ELEMENT"},fr="navigate",{ADD_EVENT:hr,CLEAR_EVENTS:dr,SET_HISTORY:vr,SET_EVENTS_READ:yr,ACK_EVENT:mr,SET_IS_LOADING:gr,CLEAR_PARTICIPANTS:br,SET_PARTICIPANT:_r,SET_HEADER_TITLE:Er,SET_HEADER_SUB_TITLE:xr,RESET_HISTORY_LOADED_FLAG:wr,SET_ACTIVE_SERVICE:Dr,INIT_IDLE_DETACH_COUNTDOWN:Ar,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:Cr,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:Tr,CLEAR_IDLE_DETACH_COUNTDOWN:Sr,INIT_RESUME_CONVERSATION_PROMPT:kr,CLEAR_RESUME_CONVERSATION_PROMPT:Or,SET_SERVICE_DATA_ITEM:Ir,SET_FEATURES:Fr,SET_FEATURE_ENABLED_STATE:Nr,CLEAR_FEATURES:jr,SET_INITIAL_STATE:Rr,SET_USER_SELECTED_OPTION:Pr,SET_USER_SELECTED_OPTIONS:Lr,SHOW_OPTION:Br,HIDE_OPTION:Ur,SET_BLOCK_AUTO_ENTRY_SWITCH:Mr,SET_USER_ENTRY_TYPE:zr,SET_ACTIVE_ENTRY_TYPE:$r,SET_SERVICE_ENTRY_METADATA:Hr,REGISTER_UPLOAD:qr,SET_UPLOAD_PROGRESS:Vr,SET_UPLOAD_COMPLETE:Wr,SET_UPLOAD_ERROR:Gr,CLEAR_UPLOAD:Kr,CLEAR_ALL_UPLOADS:Yr,SET_SEAMLY_CONTAINER_ELEMENT:Jr}=pr,Qr=({type:t,payload:e})=>t===Yn.message&&!e.fromClient||t===Yn.info&&e.type===Jn,Zr=t=>$n()(t).call(t,(({payload:{occurredAt:t}},{payload:{occurredAt:e}})=>t-e)),Xr=(t,e)=>{switch(e.type){case br:return{participants:{},currentAgent:""};case _r:const{participants:n}=t,{id:r,avatar:o,name:i,introduction:a}=e.participant,s=n[r],u=Kn(Kn({},n),{},{[r]:s?Kn(Kn(Kn(Kn({},s),o?{avatar:o}:{}),i?{name:i}:{}),a?{introduction:a}:{}):e.participant});return Kn(Kn({},t),{},{participants:u,currentAgent:t.currentAgent===r||e.fromClient?t.currentAgent:r});default:return t}},to=(t,e)=>{switch(e.type){case Er:return Kn(Kn({},t),{},{title:e.title});case xr:return Kn(Kn({},t),{},{subTitle:e.title});default:return t}},eo=(t,e)=>{const{entry:n}=e,{blockAutoEntrySwitch:r}=t;if(!n)return Kn(Kn({},t),{},{optionsOverride:{}});const{type:o,options:i}=n;let a=t.active;return r||o===t.userSelected||(a=o),Kn(Kn({},t),{},{active:a,optionsOverride:Kn(Kn({},t.optionsOverride),{},{[o]:i||{}})})},no="cvco",ro="2",oo="seamly-client-participant",io=["messages"];function ao(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=ao(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=ao(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const uo=so(so({},{namespace:"default",layoutMode:"window",messages:{agent:{showAvatar:!1,showName:!1},user:{showAvatar:!1,showName:!1},timeIndicator:{enabled:!1,threshold:36e5}},appContainerClassNames:t=>[`app--layout-${t.layoutMode}`,`namespace--${t.namespace}`]}),{},{hideOnNoUserResponse:!1,showDisclaimer:!1,showFaq:!1,customComponents:{},defaults:{}}),co=["hideOnNoUserResponse","showDisclaimer","showFaq","namespace","customComponents","defaults","layoutMode","api","zIndex","context","appContainerClassNames","messages","visible","visibilityCallback","errorCallback"],lo=(t,{config:e})=>{const n=((t,e)=>en()(e).call(e,((e,n)=>(n in t&&(e[n]=t[n]),e)),{}))(e,co),{messages:r}=n,o=N(n,io);let i=t;return k()(o).length>0&&(i=so(so({},i),o)),r&&(i=so(so({},i),{},{messages:so(so({},i.messages),r)})),i};var po=In({[Nn]:(t,e)=>lo(t,e),[jn]:(t,e)=>lo(t,e)},uo);function fo(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ho(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=fo(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=fo(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const vo=t=>t.state,yo=()=>We(vo),mo=De(vo,Un,(({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 w()(t).call(t,((t,e)=>{if(0===e)i.push(ho(ho({},t),{},{timeIndicator:t.payload.occurredAt}));else{const e=a&&sn(t.payload.occurredAt-a.payload.occurredAt)>=o?t.payload.occurredAt:void 0;i.push(ho(ho({},t),{},{timeIndicator:e}))}a=t})),i})),go=()=>We(mo,[]),bo=()=>yo().headerTitles,_o=()=>yo().unreadEvents,Eo=()=>yo().skiplinkTargetId,xo=De(mo,(t=>{var e;const n=E()(t).call(t,(t=>"message"===t.type));return null===(e=n[n.length-1])||void 0===e?void 0:e.payload.id})),wo=()=>{const{participants:t,currentAgent:e}=yo().participantInfo;return e?t[e]:null},Do=()=>{const{layoutMode:t}=Mn();return{isInline:"inline"===t,isModal:"modal"===t,isWindow:"window"===t,isResolving:!t}};var Ao=Ve;const{SET_SEAMLY_CONTAINER_ELEMENT:Co}=pr,To=t=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{const e="string"==typeof t?document.getElementById(t):t;vn(e)}))}))},So=()=>{const{seamlyContainerElement:t}=yo(),e=Ao();return[t,Pt((t=>{e({type:Co,element:t})}),[e])]},ko=t=>Pt((()=>{To(t)}),[t]),Oo=()=>{const t=Eo();return ko(t)},Io=()=>Mn().appContainerClassNames,Fo=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},No=()=>{const{cobrowsingContainerId:t}=yo();return{id:t,focusContainer:ko(t)}};var jo=n(3476),Ro=n.n(jo);const{createAction:Po,createThunk:Lo,createReducer:Bo,selectState:Uo}=Sn("i18n"),Mo=De(Uo,(t=>t.translations)),zo=De(Uo,(t=>t.initialLocale)),$o=De(Uo,(t=>t.locale)),Ho=Po("setInitialLocale",(t=>({locale:t}))),qo=function(){let t=!1;const e=[],n=async()=>{if(!t)for(;e.length;){const n=e.shift();t=!0,await n().catch((()=>{})),t=!1}};return{next:n,runExclusively:async t=>{const r=new(Ro())(((n,r)=>{e.push((async()=>{try{n(await t())}catch(t){r(t)}}))}));return n(),r}}}(),Vo=Lo("setLocale",(async(t,{getState:e,extra:{api:n}})=>qo.runExclusively((()=>{if(t!==$o(e()))return n.getTranslations(t)}))));function Wo(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 Go(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Wo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wo(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qo(t){return t.reduce((function(t,e){return t.concat(Array.isArray(e)?Qo(e):e)}),[])}function Zo(t){var e={};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.length?r.map((function(t){return null===t?"null":void 0===t?"undefined":"function"==typeof t?t.toString():t instanceof Date?t.toISOString():JSON.stringify(t)})).join("|"):"_(no-args)_";if(Object.prototype.hasOwnProperty.call(e,i))return e[i];var a=t.apply(void 0,r);return e[i]=a,a}}function Xo(t){for(var e=function(t){return/\s/.test(t)},n=[],r={},o=0,i=null,a=!1,s=0;s<t.length;){if(a&&(e(t[s])||"{"===t[s]))a=!1,i=t.slice(o,s),"{"===t[s]&&s--;else if(!a&&!e(t[s])){var u="{"===t[s];if(i&&u){var c=ti(t,s);if(-1===c)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));r[i]=t.slice(s+1,c),s=c,i=null}else i&&(n.push(i),i=null),a=!0,o=s}s++}return a&&(i=t.slice(o)),i&&n.push(i),{args:n,cases:r}}function ti(t,e){for(var n=0,r=e+1;r<t.length;r++){var o=t.charAt(r);if("}"===o){if(0===n)return r;n--}else"{"===o&&n++}return-1}function ei(t){return ni(t.slice(1,-1),",",3)}function ni(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!t)return r;if(1===n)return r.push(t),r;var o=t.indexOf(e);if(-1===o)return r.push(t),r;var i=t.substring(0,o).trim(),a=t.substring(o+e.length+1).trim();return r.push(i),ni(a,e,n-1,r)}var ri;function oi(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 ii(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oi(Object(n),!0).forEach((function(e){Jo(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ai=0,si="other";function ui(t,e){for(var n=0,r="",o=0,i={};n<t.length;){if("#"!==t[n]||o)r+=t[n];else{var a="__hashToken".concat(ai++);r+="{".concat(a,", number}"),i[a]=e}"{"===t[n]?o++:"}"===t[n]&&o--,n++}return{caseBody:r,numberValues:i}}var ci="other";const li=new(function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ko(this,t),Jo(this,"format",Zo((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Qo(n.process(t,e)).join("")}))),this.locale=e,this.typeHandlers=r}var e,n;return e=t,(n=[{key:"process",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];var n=t.indexOf("{");if(-1!==n){var r=ti(t,n);if(-1===r)throw new Error('Unbalanced curly braces in string: "'.concat(t,'"'));var o=t.substring(n,r+1);if(o){var i=[],a=t.substring(0,n);a&&i.push(a);var s=ei(o),u=Go(s,3),c=u[0],l=u[1],p=u[2],f=e[c];null==f&&(f="");var h=l&&this.typeHandlers[l];i.push(h?h(f,p,this.locale,e,this.process.bind(this)):f);var d=t.substring(r+1);return d&&i.push(this.process(d,e)),i}}return[t]}}])&&Yo(e.prototype,n),t}())("en-GB",{plural:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=Xo(e),a=i.args,s=i.cases,u=parseInt(t);a.forEach((function(t){t.startsWith("offset:")&&(u-=parseInt(t.slice("offset:".length)))}));var c=[];if("PluralRules"in Intl){void 0!==ri&&ri.resolvedOptions().locale===n||(ri=new Intl.PluralRules(n));var l=ri.select(u);l!==si&&c.push(l)}1===u&&c.push("one"),c.push("=".concat(u),si);for(var p=0;p<c.length;p++){var f=c[p];if(f in s){var h=ui(s[f],u),d=h.caseBody,v=h.numberValues;return o(d,ii(ii({},r),v))}}return t},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=Xo(e),i=o.cases;return t in i?r(i[t],n):ci in i?r(i.other,n):t}});function pi(){const t=We(Mo),e=We($o),n=We(zo);return{t:Pt(((e,n={})=>{const r=t[e];return r?li.format(r,n):null}),[t]),locale:e,initialLocale:n}}function fi(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function hi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=fi(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=fi(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var di=Bo({[Ho]:(t,{locale:e})=>hi(hi({},t),{},{initialLocale:e}),[Vo.pending]:t=>hi(hi({},t),{},{isLoading:!0}),[Vo.fulfilled]:(t,{payload:e,meta:{arg:n}})=>{var r,o;return hi(hi({},t),{},e?{isLoading:!1,locale:n,translations:en()(r=$n()(o=k()(e)).call(o)).call(r,((t,n)=>hi(hi({},t),{},{[n]:e[n]})),{})}:{isLoading:!1})},[Vo.rejected]:t=>hi(hi({},t),{},{isLoading:!1})},{translations:{"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","errors.seamlyUnavailable.buttonText":"Try again","errors.seamlyUnavailable.message":"The server could not be reached. Try again in a little while.","errors.seamlyUnavailable.srText":"The chat server could not be reached. Try again in a little while.","errors.seamlyUnavailable.title":"Server unavailable"},isLoading:!1,initialLocale:void 0});function vi(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yi(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=vi(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=vi(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const{SET_USER_SELECTED_OPTION:mi,SET_USER_SELECTED_OPTIONS:gi,SHOW_OPTION:bi,HIDE_OPTION:_i}=pr,Ei=()=>{var t,e;const{t:n}=pi(),{options:r}=yo(),{panelActive:o,optionActive:i,userSelectedOptions:a,features:s}=r,{cobrowsing:u,sendTranscript:c}=s,l={cobrowsing:u,sendTranscript:c},p=b()(t=E()(e=k()(l)).call(e,(t=>l[t]))).call(t,(t=>({name:t,title:n(`options.${t}.menuTitle`),available:l[t].enabled}))),f=u||c,h=Ao(),{get:d,set:v}=ge();return{allowOptionSelection:f,userSelectedOptions:a,features:s,menuOptions:p,initUserSelectedOptions:Pt((()=>{const t=d("options")||{};h({type:gi,options:t})}),[d,h]),setUserSelectedOptions:Pt((t=>{h({type:gi,options:t}),v("options",t)}),[v,h]),setUserSelectedOption:Pt(((t,e)=>{const n=d("options")||{};v("options",yi(yi({},n),{},{[t]:e})),h({type:mi,option:t,value:e})}),[h,d,v]),showOption:t=>{h({type:bi,optionName:t})},hideOption:()=>{h({type:_i})},panelActive:o,optionActive:i}},xi=()=>{const{optionsButtonId:t}=yo();return{id:t,focusButton:ko(t)}};var wi=n(62),Di=n.n(wi),Ai=yt({});function Ci(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Ci(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Ci(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const{CLEAR_ALL_UPLOADS:Si}=pr,ki=()=>{const{showFileUpload:t,entryMeta:{options:e,optionsOverride:n},options:{features:{uploads:r}}}=yo(),{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}},Oi=()=>{const{currentUploads:t}=yo(),e=Ao(),n=Lt(Ai);return{uploadFile:Pt((t=>{n(t)}),[n]),clearUploads:Pt((()=>{e({type:Si})}),[e]),currentUploads:t,isUploading:T()(t).call(t,(t=>t.uploading)),isComplete:Di()(t).call(t,(t=>t.complete))}};var Ii=n(5843),Fi=n.n(Ii);const Ni=()=>{const[t]=Ot((()=>En()));return t},ji=t=>{const e=jt();e.current=t;const n="function"==typeof t;return Rt((()=>n?(...t)=>e.current(...t):void 0),[n])},{createAction:Ri,createReducer:Pi,selectState:Li}=Sn("interrupt"),Bi=Ri("set",(t=>({error:t}))),Ui=Ri("clear"),Mi=De(Li,(({error:t})=>t));function zi(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function $i(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=zi(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=zi(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function Hi(){const{t:t}=pi(),e=We(Mi);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 $i($i($i($i({},n?{title:o,message:i,srText:a}:{}),r?{action:r}:{}),r&&n?{buttonText:s}:{}),{},{originalError:e})}),[t,e]),error:e}}var qi=n(1611),Vi=n.n(qi);class Wi extends Error{constructor(t,...e){super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,Vi()(this)),this.originalError=t,null!=t&&t.payload&&(this.originalEvent=t,this.originalError=t.payload.error),null!=t&&t.error&&(this.originalError=t.error)}}class Gi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyGeneralError",this.langKey="errors.general",this.action="reset"}}class Ki extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyConfigurationError",this.langKey="errors.configError"}}class Yi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlySessionExpiredError",this.action="reset"}}class Ji extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyOfflineError",this.langKey="errors.seamlyOffline"}}class Qi extends Wi{constructor(t,...e){super(t,...e),this.name="SeamlyUnauthorizedError",this.langKey="errors.general",this.action="reset"}}class Zi extends Error{constructor(t){super(t),Error.captureStackTrace&&Error.captureStackTrace(this,Zi),this.name="SeamlyUnavailableError",this.langKey="errors.seamlyUnavailable"}}const Xi=[Gi,Ki,Yi,Ji,Qi,Zi];function ta({api:t}){return()=>e=>n=>{const{error:r}=n;if(r){if(!T()(Xi).call(Xi,(t=>r instanceof t)))throw r;"reset"===r.action&&t.disconnect().then((()=>{t.clearStore()}))}return e(n)}}const{createAction:ea,createThunk:na,createReducer:ra,selectState:oa}=Sn("app"),ia=De(oa,(t=>t.userHasResponded)),{createAction:aa,createActions:sa,createThunk:ua,createReducer:ca,selectState:la}=Sn("visibility"),pa=({hasResponded:t,previousVisibility:e,requestedVisibility:n,config:r})=>{const{defaults:o,layoutMode:i,hideOnNoUserResponse:a}=r,{visible:s}=o||{};if("window"===i&&a&&n!==Pn.open)return t?n||e||Pn.open:Pn.hidden;const u="inline"===i?Pn.open:Pn.minimized;return n||e||s||u},fa=De(la,(t=>t.visibility));function ha(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function da(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=ha(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=ha(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const va=aa("setFromStorage",(t=>({visibility:t}))),ya=[Pn.open,Pn.minimized,Pn.hidden],ma=ua("set",((t,{getState:e,extra:{api:n,eventBus:r}})=>{const o=e(),i=fa(o),a=ia(o),s=n.hasConversation(),u=Un(o),{visibilityCallback:c=pa,layoutMode:l}=u,{unreadEvents:p}=vo(o),f=c({hasConversation:s,hasResponded:a,previousVisibility:i,requestedVisibility:t,config:u});if(de()(ya).call(ya,f)){if(i!==f)return n.store.set(Rn,da(da({},n.store.get(Rn)||{}),{},{[l]:t})),t&&r.emit("ui.visible",t,{visibility:t,hasConversation:s,hasResponded:a,unreadMessageCount:p}),f}else console.error('The visibilityCallback function should return "open", "minimized" or "hidden".')})),ga=ua("initialize",(async(t,{dispatch:e,getState:n,extra:{api:r}})=>{var o;const{layoutMode:i}=Un(n()),a=null===(o=r.store.get(Rn))||void 0===o?void 0:o[i];a&&e(va(a)),e(ma(Pn.initialize))})),ba=ea("setHasResponded",(t=>({hasResponded:t}))),_a=na("initialize",(async(t,{dispatch:e,extra:{api:n}})=>{var r;e(Nn(t));let o=null==t||null===(r=t.context)||void 0===r?void 0:r.locale;try{const{features:t,defaultLocale:r}=await n.getConfig();e({type:pr.SET_FEATURES,features:t}),o=o||r,e(Ho(o))}catch(t){throw new Zi}try{if(n.hasConversation()){var i;const t=await n.getConversationIntitialState();e({type:pr.SET_INITIAL_STATE,initialState:t}),o=(null===(i=t.translation)||void 0===i?void 0:i.locale)||o,"userResponded"in t&&e(ba(t.userResponded))}}catch(t){if(t instanceof Yi)throw t;throw new Zi}finally{await e(Vo(o)),e(ga())}})),Ea=ea("reset",(()=>{}));function xa(){return We(ia)}function wa(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Da(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=wa(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=wa(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var Aa=ra({[ba]:(t,{hasResponded:e})=>Da(Da({},t),{},{userHasResponded:e})},{userHasResponded:!1});function Ca(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ta(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Ca(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Ca(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Sa={error:void 0},ka=(t,{error:e})=>Ta(Ta({},t),{},{error:e});var Oa=Pi({[Bi]:ka,[_a.rejected]:ka,[Ui]:()=>Sa,[Ea]:()=>Sa},Sa);const Ia=()=>{const t=Ve(),e=We(fa),n=!!e&&e!==Pn.hidden,{layoutMode:r}=Mn();return{isVisible:n,isOpen:!(!e||!r)&&(e===Pn.open||"inline"===r&&e!==Pn.hidden),visible:e,setVisibility:Pt((e=>t(ma(e))),[t])}};function Fa(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Fa(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Fa(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const ja={visibility:Pn.initialize};var Ra=ca({[va]:(t,{visibility:e})=>Na(Na({},t),{},{visibility:e}),[ma.fulfilled]:(t,{payload:e})=>e?Na(Na({},t),{},{visibility:e}):t},ja);function Pa(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function La(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Pa(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Pa(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const{ADD_EVENT:Ba,SET_IS_LOADING:Ua,SET_HEADER_SUB_TITLE:Ma,SET_INITIAL_STATE:za,SET_FEATURES:$a}=pr;var Ha=()=>{const t=me(),e=Mn(),n=Ao(),r=Lt(ye),o=xa(),i=_e(),{visible:a}=Ia(),s=_o(),u=Pt(((...t)=>{r.emit(...t)}),[r]),c=ji((()=>{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(Ea()),n(Ui()),n({type:Ua,isLoading:!0});const{agentName:r}=e.defaults||{};n({type:Ma,title:r||""});try{const{features:e}=await t.reset();n({type:$a,features:e}),n({type:za,initialState:{}})}catch(t){n(Bi(t))}}),[t,n,e]),p=Pt((t=>({type:t,id:En(),transactionId:En(),participant:oo,fromClient:!0,occurredAt:1e3*_n()(),meta:{}})),[]),f=Pt((t=>La(La({},p("text")),{},{body:{text:t}})),[p]),h=Pt((({body:e,config:r={}})=>{if(""===Fi()(e).call(e))return;const o=La(La({},f(e)),r);t.send("message",o),u("message",o),n({type:Ba,event:{type:"message",payload:o}})}),[t,n,u,f]),d=Pt((t=>{n({type:Ba,event:{type:"message",payload:f(t)}})}),[n,f]),v=Pt(((t,e,r,o,i,a,s)=>{n({type:Ba,event:{type:"message",payload:{type:"upload",id:t,transactionId:e,participant:oo,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:En(),transactionId:En(),type:"divider"};n({type:Ba,event:{type:"info",payload:e}})}),[n]),m=Pt((({type:e,subtype:n})=>{const r={type:e,subtype:n,id:En(),transactionId:En(),participant:oo,fromClient:!0};t.send("info",r)}),[t]),g=Pt((e=>{if(!e)return;t.send("action",e);const{type:n}=e;n!==er&&n!==nr&&u(`action.${n}`,e)}),[t,u]),b=Pt((e=>{t.sendContext(e)}),[t]);return{connect:Pt((()=>t.connected?Ro().reject(new Error("The API is already connected")):t.connect().then((t=>{t&&n({type:za,initialState:t})})).catch((t=>{n(Bi(t))}))),[t,n]),start:c,sendMessage:h,sendInfo:m,sendAction:g,sendContext:b,reset:l,emitEvent:u,addMessageBubble:d,addUploadBubble:v,addDivider:y,apiConfigReady:t.configReady}};const qa=yt(null),Va=()=>{const t=Lt(qa);return{sendPolite:Pt((e=>{t({ariaLive:sr,messageText:e})}),[t]),sendAssertive:Pt((e=>{t({ariaLive:ar,messageText:e})}),[t])}};var Wa=yt(null),Ga=()=>Lt(Wa),Ka=n(1581),Ya=n.n(Ka);function Ja(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}const{SET_BLOCK_AUTO_ENTRY_SWITCH:Qa,SET_ACTIVE_ENTRY_TYPE:Za,SET_USER_ENTRY_TYPE:Xa}=pr,ts=()=>{const{default:t,active:e,userSelected:n,options:r}=yo().entryMeta,o=Ao(),i=n||e||t,a=r[i]||{},s=Pt((t=>{o({type:Qa,value:t})}),[o]),u=Pt((t=>{o({type:Za,entryType:t})}),[o]),c=Pt((t=>{o({type:Xa,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}},{SET_IS_LOADING:es}=pr;var ns=()=>{const{t:t}=pi(),{isOpen:e,isVisible:n,setVisibility:r}=Ia(),o=Ao(),i=go(),a=jt(null),{start:s,connect:u,apiConfigReady:c}=Ha(),l=_e(),p=jt(null),f=jt(null),{sendAssertive:h}=Va(),d=jt(!1),v=i.length>0;return Ft((()=>{n&&fe()((()=>{h(t("window.srTexts.onLoad"))}),500)}),[n,h,t]),Ft((()=>{if(n!==f.current)return p.current=e,void(f.current=n);null!==p.current&&h(t(e?"window.srTexts.onOpen":"window.srTexts.onClose")),p.current=e,f.current=n}),[e,n,h,t]),Ft((()=>{a.current=fe()((()=>{o({type:es,isLoading:!0})}),500)}),[o]),Ft((()=>{v&&(clearTimeout(a.current),o({type:es,isLoading:!1}))}),[v,o]),Ft((()=>{l&&c||(d.current=!1)}),[l,c]),Ft((()=>{(e||l)&&!d.current&&c&&(l&&(clearTimeout(a.current),o({type:es,isLoading:!1})),u().then((()=>{s()})),d.current=!0)}),[e,l,c,s,u,o]),{openChat:()=>{r(Pn.open)},closeChat:()=>{r(Pn.minimized)}}};function rs(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function os(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=rs(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=rs(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const{CLEAR_IDLE_DETACH_COUNTDOWN:is,INIT_IDLE_DETACH_COUNTDOWN:as,DECREMENT_IDLE_DETACH_COUNTDOWN_COUNTER:ss,STOP_IDLE_DETACH_COUNTDOWN_COUNTER:us}=pr;var cs=()=>{const t=Ao(),{idleDetachCountdown:e}=yo(),{isOpen:n}=Ia(),r=jt({});r.current={hasCountdown:e.hasCountdown,isActive:e.isActive,remaining:e.remaining,wasStopped:e.wasStopped,isOpen:n};const{emitEvent:o,sendAction:i}=Ha(),{t:a}=pi(),{sendAssertive:s,sendPolite:u}=Va(),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=un(n);t({type:as,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:rr}),c(a("idleDetachWarning.notifyTransferText"))),u||o("idleTimer.stop"),t({type:is}))}),[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",un(n))}`),t({type:ss})}),[t,c,a]),d=Pt((()=>{const{isActive:e,remaining:n}=r.current;e&&(t({type:us}),n&&(o("idleTimer.stop"),l(a("idleDetachWarning.srCountDownStoppedText"))))}),[t,o,l,a]);return os(os({},e),{},{initCountdown:p,endCountdown:f,decrementCountdown:h,stopCountdown:d})};const{CLEAR_RESUME_CONVERSATION_PROMPT:ls}=pr;var ps=()=>{const t=Ao(),e=yo().resumeConversationPrompt,{sendAction:n}=Ha(),{t:r}=pi(),{sendAssertive:o}=Va();return{continueChat:()=>{n({type:"dismiss",body:{type:"resume_conversation_prompt"}}),t({type:ls})},hasPrompt:e,restartChat:()=>{o(r("resumeConversationPrompt.srNotifyRestartText")),n({type:rr}),t({type:ls})}}};const fs=(t,e)=>{const n=me();Ft((()=>{var r;n.stream&&(e?E()(r=n.stream()).call(r,e).subscribe({next:t}):n.stream().subscribe({next:t}))}),[n,t,e])};var hs=n(6423),ds=n.n(hs);const vs=(...t)=>{var e,n,r,o,i,a;return b()(e=E()(n=ds()(r=b()(o=E()(i=b()(a=ds()(t).call(t)).call(a,(t=>{var e;return"object"==typeof t?b()(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=>[no,t].join("-"))).join(" ")},ys={visible:vs("transition--visible"),in:vs("transition--in"),visuallyHidden:vs("visually-hidden")},ms=A()(ys),gs="notRendered",bs="rendered",_s="visuallyHidden";var Es=({children:t,isActive:e,timeout:n,transitionStartState:r="notRendered",onInTransitionComplete:o,onOutTransitionComplete:i})=>{var a;const s=jt(!1),u=n?le()(n,10):300,c=ji(o),l=ji(i),p=r===_s,[f,h]=Ot((()=>p?[ys.visuallyHidden]:[])),d="notRendered"!==r||f.length>0;return Ft((()=>{let t=null,n=null;return s.current&&!e&&(h([ys.visible]),t=fe()((()=>{h([...p?[ys.visuallyHidden]:[]]),l&&(n=requestAnimationFrame((()=>{l()})))}),u)),!s.current&&e&&(h([ys.visible]),n=requestAnimationFrame((()=>{n=requestAnimationFrame((()=>{h([ys.visible,ys.in]),c&&(t=fe()((()=>{c()}),u))}))}))),s.current=e,()=>{clearTimeout(t),cancelAnimationFrame(n)}}),[e,p,u,c,l]),d&&b()(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),K(t.type,a,r||t.key,o||t.ref,null)}(t,{className:[...E()(e=n.split(" ")).call(e,(t=>!de()(ms).call(ms,t))),...f].join(" ")})}))},xs=({children:t})=>{const{t:e}=pi(),{isModal:n}=Do(),{isOpen:r,setVisibility:o}=Ia(),i=jt(null),a=jt(null);return Ft((()=>{if(!n)return null;let t;return r&&(t=an(),i.current.parentElement.removeAttribute("aria-hidden")),()=>{t&&(t(),t=null)}}),[r,n]),n?Oe(Es,{isActive:r,transitionStartState:bs,onInTransitionComplete:()=>{a.current=ue(i.current),a.current.activate()},onOutTransitionComplete:()=>{a.current&&(a.current.deactivate(),a.current=null)},children:Oe("div",{className:vs("modal-overlay"),role:"dialog","aria-modal":"true","aria-label":e("window.srModalLayoutLabel"),onClick:()=>{o(Pn.minimized)},ref:i,children:t})}):t};const ws={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 Ds=({name:t,size:e="32",className:n,alt:r})=>{const o=`${t}${e}`;return Oe(Y,{children:[Oe("div",{"aria-hidden":"true",className:n||vs("icon"),dangerouslySetInnerHTML:{__html:ws[o]}}),r&&Oe("span",{className:vs("visually-hidden"),children:r})]})};const{createActions:As,createReducer:Cs,selectState:Ts}=Sn("translations"),[Ss,ks]=As("translate",{enable:t=>({locale:t}),disable:()=>({})}),[Os,Is]=As("event",{enable:t=>({payloadId:t}),disable:t=>({payloadId:t})}),Fs=(t,e)=>(n,r)=>r[t]||e,Ns=Ts,js=De(Ns,(t=>t.originalPayloadIds)),Rs=De(js,Fs("payloadId"),((t,e)=>!de()(t).call(t,e)));function Ps(){const{sendAction:t}=Ha(),e=Ve(),n=ji((n=>{t({type:or,body:{enabled:!0,locale:n}}),e(Ss(n))})),r=ji((()=>{t({type:or,body:{enabled:!1}}),e(ks())})),{languages:o,isActive:i,isAvailable:a,currentLocale:s}=We(Ns,[]);return{languages:o,isActive:i,isAvailable:a,currentLocale:s,enableTranslations:n,disableTranslations:r}}function Ls({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(Rs,{payloadId:o},[o]),c=Ve(),l=ji((()=>{c(u?Is(o):Os(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 Bs(){const t=We(Ns,[]).containerId;return{id:t,focusContainer:ko(t)}}function Us(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Us(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Us(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const zs={isActive:!1,currentLocale:void 0,isAvailable:!1,languages:[],originalPayloadIds:[],containerId:En()};var $s=Cs({[pr.SET_FEATURES]:(t,e)=>{var n;const r=null==e||null===(n=e.features)||void 0===n?void 0:n.translation;return r?Ms(Ms({},t),{},{isAvailable:!0===r.enabled,languages:r.languages||[]}):t},[pr.CLEAR_FEATURES]:()=>zs,[Ss]:(t,{locale:e})=>Ms(Ms({},t),{},{isActive:!0,currentLocale:e}),[ks]:t=>Ms(Ms({},t),{},{isActive:!1,currentLocale:void 0}),[Os]:(t,{payloadId:e})=>{var n,r;return de()(n=t.originalPayloadIds).call(n,e)?Ms(Ms({},t),{},{originalPayloadIds:E()(r=t.originalPayloadIds).call(r,(t=>t!==e))}):t},[Is]:(t,{payloadId:e})=>{var n;return de()(n=t.originalPayloadIds).call(n,e)?t:Ms(Ms({},t),{},{originalPayloadIds:[...t.originalPayloadIds,e]})}},zs),Hs=({children:t,onCancel:e,headingText:n,cancelButtonText:r,disableButtonFocusing:o,cancelButtonRef:i,position:a="right"})=>{const s=jt(null),u=Ni(),{hideOption:c}=Ei(),{focusButton:l}=xi();return Ft((()=>{vn(s.current)}),[]),Oe("section",{className:vs("options",{"options--right":"left"!==a,"options--left":"left"===a}),"aria-labelledby":u,tabIndex:"-1",ref:s,children:Oe("div",{className:vs("options__body"),children:[Oe("h2",{id:u,className:vs("options__title"),children:n}),Oe("button",{type:"button",onClick:()=>{e&&e(),c(),o||l()},"aria-describedby":u,className:vs("button","options__close"),ref:t=>{i&&(i.current=t)},children:[Oe(Ds,{name:"close",size:"16"}),Oe("span",{children:r})]}),Oe("div",{className:vs("options__wrapper"),children:t})]})})};const{createActions:qs,createReducer:Vs,selectState:Ws}=Sn("forms"),[Gs,Ks]=qs("form",{register:(t,e)=>({formId:t,persistData:e}),deregister:t=>({formId:t})}),[Ys,Js,Qs,Zs]=qs("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})}),Xs=De(Ws,Fs("formId"),((t,e)=>t[e])),tu=De(Xs,(t=>(null==t?void 0:t.controls)||{})),eu=De(tu,(t=>{var e;const n={};return w()(e=$()(t)).call(e,(([t,{value:e}])=>{n[t]=e})),n})),nu=De(tu,Fs("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.value})),ru=De(tu,Fs("name"),((t,e)=>{var n;return null===(n=t[e])||void 0===n?void 0:n.touched})),ou=yt({});var iu=ou;const{Provider:au,Consumer:su}=ou;function uu(){return Lt(iu)}function cu(t){const e=Ve(),{formId:n,updateControlValue:r,updateControlTouched:o,errors:i}=uu(),a=!!Ge(Xs,{formId:n},[n]),s=jt();s.current=a;const u=Ge(nu,{formId:n,name:t},[n,t]),c=Ge(ru,{formId:n,name:t},[n,t]),l=null==i?void 0:i[t],p=!l;Ft((()=>{s.current&&e(Ys(n,t))}),[a,n,t,e]),Nt((()=>()=>{e(Js(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 lu=["children","formId","persistData","onSubmit","validationSchema"];function pu(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=pu(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=pu(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function hu(t){let{children:n,formId:r,persistData:o,onSubmit:i,validationSchema:a}=t,s=N(t,lu);const u=Ve(),c=Ge(eu,{formId:r},[r]),[l,p]=Ot(!1),[f,h]=Ot({}),{isValid:d,errors:v}=function(t,n){const r=Rt((()=>function(t,n={}){var r;return en()(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===k()(r).length,errors:r}}(c,a),y=Rt((()=>fu(fu({},v),f)),[v,f]);Nt((()=>{u(Gs(r,o))}),[r,o,u]),Ft((()=>()=>{u(Ks(r))}),[r,o,u]);const m=Pt(((t,e)=>{u(Qs(r,t,e))}),[r,u]),g=Pt(((t,e)=>{u(Zs(r,t,e))}),[u,r]),b=Pt(((t,e)=>{h((n=>fu(fu({},n),{},{[t]:e})))}),[h]),_=Pt((t=>{t.preventDefault(),p(!0),d&&i(c,{updateControlValue:m,setError:b})}),[d,i,c,m,b]),E=Rt((()=>({formId:r,values:c,errors:y,isValid:0===k()(y).length,isSubmitted:l,handleSubmit:_,validationSchema:a,updateControlValue:m,updateControlTouched:g})),[r,c,y,l,_,a,m,g]);return r?i?Oe(au,fu(fu({},s),{},{value:E,children:n})):(console.error('"onSubmit" is required.'),null):(console.error('"formId" is required.'),null)}function du(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function vu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=du(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=du(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const yu={controls:{}},mu={value:"",touched:!1};function gu(t,e,n,r){var o;const i=(null===(o=t[e])||void 0===o?void 0:o.controls[n])||mu;return vu(vu({},t),{},{[e]:vu(vu({},t[e]),{},{controls:vu(vu({},t[e].controls),{},{[n]:vu(vu({},i),r)})})})}var bu=Vs({[Gs]:(t,{formId:e,persistData:n})=>{const r=n?t[e]??vu(vu({},yu),{},{persistData:n}):vu(vu({},yu),{},{persistData:n});return vu(vu({},t),{},{[e]:r})},[Ks]:(t,{formId:e})=>{var n;const r=vu({},t);return null!==(n=r[e])&&void 0!==n&&n.persistData||delete r[e],r},[Ys]:(t,{name:e,formId:n})=>gu(t,n,e),[Js]:(t,{formId:e,name:n})=>{const r=t[e];if(!r)return t;if(r.persistData)return t;const o=vu({},r.controls);return delete o[n],vu(vu({},t),{},{[e]:vu(vu({},r),{},{controls:o})})},[Qs]:(t,{formId:e,name:n,value:r})=>gu(t,e,n,{value:r}),[Zs]:(t,{formId:e,name:n,touched:r})=>gu(t,e,n,{touched:r})},{}),_u=n(2088);function Eu(){return(Eu=_u||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 xu(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}var wu=function(t){let e=Eu({},t);const{handleSubmit:n}=function(){const{handleSubmit:t}=uu();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)w()(n=xu(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=xu(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}({onSubmit:n},e))};function Du({id:t,error:e}){const[n,r]=Ot(!1);return Ft((()=>{const t=fe()((()=>r(!0)),300);return()=>clearTimeout(t)}),[]),Oe("div",{"aria-live":"assertive","aria-atomic":"true",children:n&&e&&Oe("span",{id:t,className:vs("error"),children:[Oe(Ds,{name:"error",size:"16"}),e]})})}var Au=({contentHint:t,id:e,labelText:n,labelClass:r=vs("label"),validity:o,errorText:i,children:a})=>Oe(Y,{children:[Oe("label",{htmlFor:e,className:r,children:n}),t&&Oe("span",{id:`${e}-content-hint`,className:vs("input__content-hint"),children:t}),Oe(Du,{id:`${e}-error`,error:!o&&i}),a]});const Cu=["id","name","labelText","labelClass","contentHint","aria-describedby","options"];function Tu(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Su(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Tu(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Tu(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var ku=t=>{let{id:e,name:n,labelText:r,labelClass:o,contentHint:i,"aria-describedby":a,options:s=[]}=t,u=N(t,Cu);const{isSubmitted:c}=uu(),[l,{error:p}]=cu(n),f=c&&p,h=[];return a&&h.push(a),i&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(Au,{id:e,contentHint:i,validity:!f,errorText:p,labelText:r,labelClass:o,children:Oe("select",Su(Su(Su({id:e,name:n,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u),{},{children:b()(s).call(s,(t=>Oe("option",{value:t.value,children:t.label},t.value)))}))})},Ou=function({controlName:t,descriptionId:e}){const{t:n}=pi(),{isActive:r,languages:o,currentLocale:i}=Ps(),{locale:a}=pi(),s=Rt((()=>{var t;return null==o||null===(t=Wn()(o).call(o,(t=>t.locale===i)))||void 0===t?void 0:t.nativeName}),[o,i]),u=Rt((()=>{var t;return[{value:"",label:n("translations.settings.defaultOptionLabel")},...b()(t=E()(o).call(o,(t=>t.locale.toLowerCase()!==String(a).toLowerCase()))).call(t,(t=>({value:t.locale,label:t.nativeName})))]}),[n,o,a]);return Oe(wu,{noValidate:"true",children:[Oe("p",{className:vs("options__description"),id:e,children:n("translations.settings.description")}),r?Oe(Y,{children:[Oe("h3",{children:n("translations.settings.currentTranslationLabel")}),Oe("p",{className:vs("options__active-language"),children:s})]}):Oe(ku,{name:t,type:"text",className:vs("input__select"),"aria-describedby":e,labelClass:vs("label"),labelText:n("translations.settings.inputLabel"),options:u,defaultValue:i||""}),Oe("div",{className:vs("options__actions"),children:Oe("button",{type:"submit",className:vs("button","button--primary","options__submit"),children:n(r?"translations.settings.endButtonText":"translations.settings.startButtonText")})})]})};const{REGISTER_FORM:Iu,DE_REGISTER_FORM:Fu,REGISTER:Nu,DE_REGISTER:ju,SET_VALUE:Ru,SET_VALIDITY:Pu,SET_STATE:Lu,SET_SUBMITTED:Bu,SET_PERSIST_FORM_DATA:Uu}={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"},Mu=(t,e,n=null)=>({fn:t,errorText:e,compareValue:n}),zu=(t,e)=>{let n=!0;for(let r=0;r<t.length;r++)t[r].size>e&&(n=!1);return n},$u=t=>!(null==t||!t.length)>0,Hu=t=>{const e=t&&Fi()(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))},qu=t=>!!t,Vu="translation-settings",Wu="locale";var Gu=function({onClose:t}){const{t:e}=pi(),{isActive:n,enableTranslations:r,disableTranslations:o}=Ps(),i=Ni(),{focusContainer:a}=Bs(),s=jt(0),u=Rt((()=>(s.current+=1,n?{}:{[Wu]:Mu(qu,e("translations.settings.noLocaleText"))})),[n,e]);return Oe(Hs,{onCancel:t,formName:Vu,headingText:e("translations.settings.title"),cancelButtonText:e("translations.settings.cancelButtonText"),position:"left",disableButtonFocusing:!0,children:Oe(hu,{onSubmit:({locale:e})=>{n?o():(r(e),t(),a())},formId:Vu,validationSchema:u,children:Oe(Ou,{controlName:Wu,descriptionId:i})},s.current)})};function Ku(){const{t:t}=pi(),[e,n]=Ot(!1),r=jt(null),o=Ni();return Oe("div",{className:vs("translations__container"),onKeyDown:t=>{e&&dn(t)===hn.Escape&&(n(!1),vn(r.current))},children:[Oe(Es,{transitionStartState:gs,isActive:e,children:Oe("div",{className:vs("options__dialog"),role:"dialog",children:Oe(Gu,{onClose:()=>{n(!1)}})})}),Oe("button",{type:"button",className:vs(["button","button--secondary","app__options__button"]),id:o,onClick:()=>{n((t=>!t))},onKeyDown:t=>{dn(t)===hn.ArrowDown&&(n(!0),t.preventDefault())},ref:r,"aria-haspopup":"dialog","aria-expanded":e.toString(),children:[Oe(Ds,{name:"newTranslation",size:"16"}),Oe("span",{className:vs("button__text"),children:t("translations.settings.openButtonText")})]})]})}function Yu({id:t,label:e,onButtonClick:n,buttonText:r,srButtonText:o,type:i}){const a=Ni();return Oe("section",{className:vs("chat-status",i&&`chat-status--${i}`),id:t,tabIndex:"-1","aria-labelledby":a,children:[Oe("h2",{className:vs("chat-status__title"),id:a,children:e}),Oe("button",{type:"button",className:vs("button","button--tertiary"),onClick:n,children:[Oe("span",{"aria-hidden":o?"true":void 0,children:r}),o&&Oe("span",{className:vs("visually-hidden"),children:o})]})]})}function Ju(){const{t:t}=pi(),{id:e}=Bs(),{hasInterrupt:n}=Hi(),{isActive:r,disableTranslations:o,languages:i,currentLocale:a}=Ps(),s=Oo(),u=Rt((()=>{var t;return null==i||null===(t=Wn()(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(Yu,{type:"translations",id:e,label:t("translations.status.label",{language:u}),onButtonClick:c,buttonText:t("translations.status.stopText"),srButtonText:t("translations.status.srStopText")})}const Qu=["categories"];function Zu(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xu(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Zu(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Zu(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var tc=()=>{const{t:t}=pi(),{sendAction:e,addMessageBubble:n}=Ha(),r=Ni(),o=Oo(),{sendPolite:i}=Va(),{hasInterrupt:a}=Hi(),{hasCountdown:s,endCountdown:u}=cs(),{hasPrompt:c,continueChat:l}=ps(),p=("suggestion",yo().serviceData.suggestion);const[f]=Ls({payload:p}),h=Rt((()=>{const t=p&&!a?f:[];return b()(t).call(t,(t=>{let{categories:e=[]}=t;return Xu(Xu({},N(t,Qu)),{},{categories:e,classNames:["faqs__item",...b()(e).call(e,(t=>`faqs__item--${String(t).toLowerCase().replace(/[^a-z0-9_\\-]/,"")}`))]})}))}),[p,a,f]),d=jt(null),v=jt(!1),{isInline:y}=Do(),m=xa(),g=!y&&m,_=jt(g),E=!!h.length,x=E&&!g,w=jt([]),D=E?h:w.current;w.current=D;const A=jt(null);Ft((()=>{if(d.current!==h&&!g){if(E){const e=v.current?t("faq.srUpdatedText"):t("faq.srAvailableText");fe()((()=>{i(e)}),30)}else v.current&&i(t("faq.srUnavailableText"));d.current=h}!_.current&&g?(yn(A.current,o),i(t("faq.srUnavailableText"))):!E&&v.current&&yn(A.current,o),v.current=E,_.current=g}),[E,h,g,o,i,t]);const C=t("faq.headingText");return Oe(Es,{isActive:x,transitionStartState:gs,children:Oe(C?"section":"div",{className:vs("faqs"),"aria-labelledby":C?r:null,ref:A,children:[C&&Oe("h2",{id:r,className:vs("faqs__heading"),children:C}),!!D.length&&Oe("ul",{className:vs("faqs__list"),children:b()(D).call(D,(t=>Oe("li",{className:vs(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:vs("button","button--secondary"),children:[Oe(Ds,{name:"chevronRight",size:"8"}),t.question]})},t.id.toString())))})]})})},ec=({children:t})=>{const[,e]=So(),{isOpen:n,isVisible:r,setVisibility:o}=Ia(),{zIndex:i,showFaq:a}=Mn(),{isModal:s,isInline:u}=Do(),c=Io(),l=xa(),{locale:p}=pi(),f=Pt((t=>{e(t)}),[e]),h=Rt((()=>{if(p&&document.querySelector("html").getAttribute("lang")!==p)return p}),[p]),d=["app",...c];return n||d.push("app--collapsed"),l&&d.push("app--user-responded"),r&&Oe("section",{className:vs(d),onKeyDown:t=>{(t.code&&"Escape"===t.code||27===t.keyCode)&&!u&&n&&o(Pn.minimized)},onClick:t=>{s&&t.stopPropagation()},lang:h,tabIndex:"-1",ref:f,style:{zIndex:i},"data-nosnippet":!0,children:[Oe("div",{className:vs("app-wrapper"),children:t}),a&&Oe(tc,{})]})},nc=()=>{const{t:t}=pi(),{setUserSelectedOption:e}=Ei(),n=Oo(),{id:r}=No();return Oe(Yu,{type:"cobrowsing",id:r,label:t("options.cobrowsing.cobrowsingActiveText"),onButtonClick:()=>{e(cr,!1),n()},buttonText:t("options.cobrowsing.stopCobrowsingText"),srButtonText:t("options.cobrowsing.srStopCobrowsingText")})},rc=()=>{const{t:t}=pi(),{userSelectedOptions:e}=Ei(),{hasInterrupt:n}=Hi(),{cobrowsing:r}=e,o=jt(r),{sendPolite:i}=Va();return Ft((()=>{!r&&o.current&&fe()((()=>{i(t("options.cobrowsing.srStoppedCobrowsingText"))}),300),o.current=r}),[r,t,i]),r&&!n&&Oe(nc,{})},oc=n(6419),ic=n.n(oc),ac=n(2462),sc=n.n(ac);const uc=["id","name","type","labelText","labelClass","contentHint","aria-describedby"];function cc(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=cc(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=cc(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var pc=function(t){let{id:e,name:n,type:r,labelText:o,labelClass:i,contentHint:a,"aria-describedby":s}=t,u=N(t,uc);const{isSubmitted:c}=uu(),[l,{error:p}]=cu(n),f=c&&p,h=[];return s&&h.push(s),a&&h.push(`${e}-content-hint`),f&&h.push(`${e}-error`),Oe(Au,{id:e,contentHint:a,validity:!f,errorText:p,labelText:o,labelClass:i,children:Oe("input",lc(lc({id:e,name:n,type:r,"aria-invalid":f?"true":"false","aria-describedby":h.join(" ")||null},l),u))})};function fc({controlName:t,describedById:e}){const{t:n}=pi();return Oe(wu,{noValidate:"true",children:[Oe(pc,{name:t,type:"email",className:vs("transcript__input"),"aria-describedby":e,labelClass:vs("label"),labelText:n("options.sendTranscript.label")}),Oe("div",{className:vs("options__actions"),children:Oe("button",{type:"submit",className:vs("button","button--primary","options__submit"),children:n("options.sendTranscript.sendButtonText")})})]})}const hc="email",dc={cobrowsing:()=>{const{t:t}=pi(),e=Ni(),{userSelectedOptions:n,features:r,setUserSelectedOption:o,hideOption:i}=Ei(),{enabled:a}=r.cobrowsing||{},s=jt(null),[u,c]=Ot(a),{focusButton:l}=xi(),{focusContainer:p}=No(),{sendAssertive:f}=Va(),h=jt(null),d=jt(null);Ft((()=>{a||!0!==s.current||(f(t("options.cobrowsing.cobrowsingUnavailable")),o(cr,!1),yn(d.current,(()=>{vn(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(Hs,{headingText:t("options.cobrowsing.title"),cancelButtonText:t("options.cancelButtonText"),onCancel:()=>{v(!0)},disableButtonFocusing:!0,cancelButtonRef:h,children:[Oe("p",{className:vs("options__description"),id:e,children:t("options.cobrowsing.description")}),!u&&Oe("p",{className:vs("notification"),children:t("options.cobrowsing.cobrowsingUnavailable")}),u&&Oe("button",{type:"button",className:vs(["button","button--primary"]),onClick:()=>{i(),v(),o(cr,!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}=Ei(),{focusButton:e}=xi(),{t:n}=pi(),r=Ni(),{sendAction:o}=Ha(),i=Rt((()=>({[hc]:[Mu(qu,n("options.sendTranscript.noEmailText")),Mu(Hu,n("options.sendTranscript.invalidEmailText"))]})),[n]),a=Pt((n=>{var r;const i=Fi()(r=n.email).call(r);o({type:"send_transcript",body:{emailAddress:i}}),t(),e()}),[o,t,e]);return Oe(Hs,{headingText:n("options.sendTranscript.title"),cancelButtonText:n("options.cancelButtonText"),children:[Oe("p",{className:vs("options__description"),id:r,children:n("options.sendTranscript.description")}),Oe(hu,{formId:"sendTranscript",onSubmit:a,validationSchema:i,children:Oe(fc,{controlName:hc,describedById:r})})]})}};var vc=()=>{const{optionActive:t}=Ei(),e=jt(null),n=dc[t||e.current];return t&&(e.current=t),Oe(n,{})},yc=()=>{const{t:t}=pi(),{menuOptions:e,showOption:n,panelActive:r,hideOption:o}=Ei(),{id:i}=xi(),a=jt(null),[s,u]=Ot(!1),c=jt(null),l=e.length,p=jt(ic()({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:Fi()(t).call(t).replace(/\s+/g,"")}),[d]);return Ft((()=>()=>{clearTimeout(a.current)}),[]),Ft((()=>{s&&!f.current&&requestAnimationFrame((()=>{requestAnimationFrame((()=>{const t=sc()(e).call(e,(t=>t.available)),n=-1===t?0:t;vn(p.current[n])}))})),f.current=s}),[s,e]),l?Oe("div",{className:vs("options__container"),onKeyDown:t=>{s&&(dn(t)===hn.Escape&&(u(!1),vn(c.current)),dn(t)===hn.Home&&(vn(p.current[0]),t.preventDefault()),dn(t)===hn.End&&(vn(p.current[l-1]),t.preventDefault()))},onfocusout:()=>{h&&(a.current=fe()((()=>{u(!1)}),200))},onfocusin:()=>{clearTimeout(a.current)},children:[Oe(Es,{transitionStartState:gs,isActive:r,children:Oe("div",{className:vs("options__dialog"),children:Oe(vc,{})})}),h&&Oe(Es,{isActive:s,transitionStartState:gs,children:Oe("ul",{className:vs(["options__menu"]),role:"menu",tabIndex:"-1","aria-labelledby":i,children:b()(e).call(e,(({name:r,title:o,available:i},a)=>Oe("li",{className:vs("options__menu__item"),role:"menuitem","data-testid":r,children:Oe("button",{type:"button",ref:t=>{p.current[a]=t},className:vs(["button","button--secondary",...i?[]:["button--disabled"]]),onKeyDown:t=>((t,e)=>{if(dn(t)===hn.ArrowDown){const n=Math.min(l-1,e+1);vn(p.current[e===n?0:n]),t.preventDefault()}if(dn(t)===hn.ArrowUp){const n=Math.max(0,e-1);vn(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;w()(e).call(e,((t,e)=>{e>n&&t.title.charAt(0).toLowerCase()===r.toLowerCase()&&-1===o&&(o=e)})),-1!==o&&vn(p.current[o])})(t,a),onClick:()=>((t,e)=>{e&&(u(!1),n(t))})(r,i),"aria-disabled":i?null:"true",children:[Oe("span",{className:vs("button__text"),children:[o,!i&&" "]}),!i&&Oe("span",{className:vs("button__state"),children:t("options.unavailableText")})]})},r)))})}),Oe("button",{type:"button",className:vs(["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=>{dn(t)===hn.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(Ds,{name:"options",size:"32"}),Oe("span",{className:vs("button__text"),children:h?t("options.openButtonText"):`${d.title}${d.available?"":" "}`}),!h&&!d.available&&Oe("span",{className:vs("button__state"),children:t("options.unavailableText")})]})]}):null};function mc(){const{menuOptions:t,allowOptionSelection:e}=Ei(),{isAvailable:n}=Ps();return n||e&&t.length?Oe("div",{className:vs("app__options"),children:[n&&Oe("div",{className:vs("app__options-item","app__options-item--left"),children:Oe(Ku,{})}),e&&Oe("div",{className:vs("app__options-item","app__options-item--right"),children:Oe(yc,{})})]}):null}function gc(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}var bc=function({children:t,interruptComponent:e}){const{hasInterrupt:n,meta:r}=Hi(),{isOpen:o}=Ia();return Oe(Y,{children:[Oe(rc,{}),Oe(Ju,{}),Oe("div",{className:vs("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)w()(n=gc(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=gc(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}({},r)):null:t}),Oe(mc,{})]})},_c=({onOpenChat:t})=>{const{t:e}=pi(),n=Ni(),{isOpen:r}=Ia(),o=jt(null),i=jt(null),a=jt(),s=Oo(),u=(()=>{const t=jt(null),[e]=So();return t.current=e,Pt((e=>{yn(t.current,(()=>{To(e)}))}),[])})(),c=wo(),l=bo().subTitle,{hasInterrupt:p}=Hi(),{headerCollapseButtonId:f}=yo(),h=c&&!p;return Nt((()=>{!1===r&&!0===o.current&&u(i.current),o.current=r}),[r,u]),Oe("div",{className:vs("toggle-button"),children:[Oe("div",{id:n,children:[Oe("p",{className:vs("toggle-button__title"),children:e(h?"toggleButton.resumeTitle":"toggleButton.title")}),Oe("p",{className:vs("toggle-button__subtitle"),children:h?l:e("toggleButton.subtitle")})]}),Oe("button",{type:"button","aria-labelledby":n,className:vs("toggle-button__button"),ref:i,onMouseUp:()=>{a.current="mouse"},onKeyUp:()=>{a.current="key"},onClick:()=>{t(),"mouse"===a.current?s():"key"===a.current&&u(f)}})]})},Ec=()=>{const{t:t}=pi(),{title:e,subTitle:n}=bo(),r=_o(),{isOpen:o}=Ia(),i=wo(),{hasInterrupt:a}=Hi(),{defaults:s}=Mn(),{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:vs("agent-info"),children:[Oe("div",{className:vs("agent-info__graphic"),children:[c||u?Oe("img",{className:vs(c?"avatar":"icon"),src:c||u,alt:""}):Oe(Ds,{name:"avatar",size:"32"}),Oe("span",{className:vs(p),"aria-hidden":"true",children:r})]}),Oe("div",{className:vs("agent-info__body"),children:[Oe("p",{className:vs("agent-info__heading"),children:e??t("header.title")}),Oe("p",{className:vs("agent-info__text"),children:l})]})]})},xc=({children:t,onCloseChat:e})=>{const{headerCollapseButtonId:n}=yo(),r=jt(null),{t:o}=pi();return Oe("header",{className:vs("app__header"),children:[t,Oe("div",{className:vs("header-controls"),children:Oe("button",{type:"button",className:vs("button","header-controls__collapse"),onClick:e,ref:r,id:n,children:Oe(Ds,{name:"chevronDown",size:"32",alt:o("header.collapseApp")})})})]})},wc=yt({});function Dc(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Dc(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Dc(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function Cc({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:vs("divider",u&&`divider--type-${u}`,n),children:[c&&Oe("span",{className:vs("divider__graphic"),children:i?Oe(Ds,{name:i,size:a,className:s}):Oe("img",{src:r,className:vs({icon:"icon"===o,avatar:"avatar"===o},s)})}),Oe("div",Ac({className:vs("divider__body")},l))]})}const Tc={month:"long",day:"numeric",year:"numeric"},Sc={hour:"numeric",minute:"numeric"};var kc=({event:t})=>{const e=(()=>{const[t,e]=It((t=>t+1),0);return Pt((()=>{fe()((()=>{e()}))}),[])})(),{date:n,time:r,timeUntilMidnight:o,srText:i}=(t=>{var e;const{t:n}=pi(),r=Mn(),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,Sc).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,Tc).format(i)}return{date:p,srText:n("dateTime.srText",{date:p,time:l}),time:l,fullDateTime:c,timeUntilMidnight:u}})(sn(t.timeIndicator));return Ft((()=>{const t=fe()((()=>{e()}),o);return()=>{clearTimeout(t)}}),[e,o]),Oe(Cc,{dividerType:"time-indicator",children:[Oe("p",{className:vs("divider__time"),"aria-hidden":"true",children:[Oe("span",{children:n}),Oe("span",{children:r})]}),Oe("p",{className:vs("visually-hidden"),children:i})]})},Oc=({event:t,newParticipant:e})=>{const[n,r]=(t=>{const e=Lt(wc);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:vs(o),children:[t.timeIndicator&&Oe(kc,{event:t}),Oe(n,{event:t,children:Oe(r,{event:t})})]})},Ic=({eventPayload:t})=>{const{fromClient:e,participant:n}=t,r=(t=>yo().participantInfo.participants[t])(n)||{},{messages:o,defaults:i}=Mn(),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:vs("message__avatar"),children:Oe("img",{src:r.avatar,className:vs("avatar"),alt:""})}));const p=e&&c||a;return u&&p&&l.push(Oe("span",{className:vs("message__author-name"),children:p})),l.length>0&&Oe("div",{className:vs("message__author"),children:l})},Fc=()=>{const{id:t}=wo()||{};return Oe("li",{className:vs("conversation__item","conversation__item--source-agent"),children:Oe("div",{className:vs("message","message--source-agent","message--type-loading"),children:[Oe(Ic,{eventPayload:{fromClient:!1,participant:t}}),Oe("div",{className:vs("message__body"),children:Oe("span",{className:vs("loader"),children:[Oe("span",{className:vs("loader__part","one")}),Oe("span",{className:vs("loader__part","two")}),Oe("span",{className:vs("loader__part","three")}),Oe("span",{className:vs("loader__part","four")})]})})]})})};const Nc=["showParticipant","showTranslationToggle","event","type","modifiers","children","bodyProps","info"];function jc(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rc(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=jc(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=jc(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var Pc=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,Nc);const l=Fo(r),{t:p}=pi(),[,{hasTranslation:f,isTranslated:h,toggleTranslation:d,locale:v}]=Ls(r);var y;(o&&l.push("message--type-"+o),i)&&("string"==typeof i&&(i=E()(y=i.split(" ")).call(y,(t=>t.length))),w()(i).call(i,(t=>{l.push("message--"+t)})));return h&&l.push("message--is-translated"),f&&l.push("message--has-translation"),h&&(s=Rc(Rc({},s),{},{lang:v})),Oe(Y,{children:Oe("div",Rc(Rc({className:vs(l)},c),{},{children:[e&&Oe(Ic,{eventPayload:r.payload}),Oe("div",Rc(Rc({className:vs("message__body")},s),{},{children:a})),u&&Oe("div",{"aria-hidden":"true",className:vs("message__info"),children:u}),n&&f&&Oe("div",{className:vs("message__translation-info"),children:Oe("button",{className:vs("message__translation-toggle","button","button--secondary"),onClick:d,children:p(h?"translations.toggle.hideButtonText":"translations.toggle.showButtonText")})})]}))})};const Lc=["event","children"];function Bc(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Bc(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Bc(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Mc=t=>{const{payload:e}=t,[n,r]=Ot(!1),{sendAction:o,addMessageBubble:i,addDivider:a}=Ha(),{activeServiceSessionId:s}=yo().serviceInfo,u=We(xo),[c]=Ls(t),{service:l}=e,p=Rt((()=>{var e;return Uc(Uc({},t),{},{payload:Uc(Uc({},t.payload),{},{body:null===(e=t.payload.body)||void 0===e?void 0:e.prompt,translatedBody:t.payload.translatedBody&&Uc(Uc({},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 zc=n(9853),$c=n.n(zc),Hc=t=>{try{return $c()(t)}catch(e){return console.log("Could not parse message",t,e),""}},qc=t=>{const{sendAction:e}=Ha();return n=>{n.target&&n.target.dataset.linkId&&e({type:"navigate",originMessage:t,link:{id:n.target.dataset.linkId,url:n.target.getAttribute("href")}})}},Vc=Object.prototype.toString,Wc=Array.isArray||function(t){return"[object Array]"===Vc.call(t)};function Gc(t){return"function"==typeof t}function Kc(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Yc(t,e){return null!=t&&"object"==typeof t&&e in t}var Jc=RegExp.prototype.test,Qc=/\S/;var Zc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},Xc=/\s*/,tl=/\s+/,el=/\s*=/,nl=/\s*\}/,rl=/#|\^|\/|>|\{|&|=|!/;function ol(t){this.string=t,this.tail=t,this.pos=0}function il(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function al(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}ol.prototype.eos=function(){return""===this.tail},ol.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},ol.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},il.prototype.push=function(t){return new il(t,this)},il.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=Yc(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=Yc(u.view,t);if(c){e=i;break}u=u.parent}o[t]=e}return Gc(e)&&(e=e.call(this.view)),e},al.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},al.prototype.parse=function(t,e){var n=this.templateCache,r=t+":"+(e||sl.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(tl,2)),!Wc(t)||2!==t.length)throw new Error("Invalid tags: "+t);n=new RegExp(Kc(t[0])+"\\s*"),r=new RegExp("\\s*"+Kc(t[1])),o=new RegExp("\\s*"+Kc("}"+t[1]))}v(e||sl.tags);for(var y,m,g,b,_,E,x=new ol(t);!x.eos();){if(y=x.pos,g=x.scanUntil(n))for(var w=0,D=g.length;w<D;++w)i=b=g.charAt(w),function(t,e){return Jc.call(t,e)}(Qc,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,m=x.scan(rl)||"name",x.scan(Xc),"="===m?(g=x.scanUntil(el),x.scan(el),x.scanUntil(r)):"{"===m?(g=x.scanUntil(o),x.scan(nl),x.scanUntil(r),m="&"):g=x.scanUntil(r),!x.scan(r))throw new Error("Unclosed tag at "+x.pos);if(_=">"==m?[m,g,y,x.pos,f,h,a]:[m,g,y,x.pos],h++,u.push(_),"#"===m||"^"===m)s.push(_);else if("/"===m){if(!(E=s.pop()))throw new Error('Unopened section "'+g+'" at '+y);if(E[1]!==g)throw new Error('Unclosed section "'+E[1]+'" at '+y)}else"name"===m||"{"===m||"&"===m?p=!0:"="===m&&v(g)}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},al.prototype.render=function(t,e,n,r){var o=this.getConfigTags(r),i=this.parse(t,o),a=e instanceof il?e:new il(e,void 0);return this.renderTokens(i,a,n,t,r)},al.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},al.prototype.renderSection=function(t,e,n,r,o){var i=this,a="",s=e.lookup(t[1]);if(s){if(Wc(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(Gc(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}},al.prototype.renderInverted=function(t,e,n,r,o){var i=e.lookup(t[1]);if(!i||Wc(i)&&0===i.length)return this.renderTokens(t[4],e,n,r,o)},al.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")},al.prototype.renderPartial=function(t,e,n,r){if(n){var o=this.getConfigTags(r),i=Gc(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)}}},al.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},al.prototype.escapedValue=function(t,e,n){var r=this.getConfigEscape(n)||sl.escape,o=e.lookup(t[1]);if(null!=o)return"number"==typeof o&&r===sl.escape?String(o):r(o)},al.prototype.rawValue=function(t){return t[1]},al.prototype.getConfigTags=function(t){return Wc(t)?t:t&&"object"==typeof t?t.tags:void 0},al.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!Wc(t)?t.escape:void 0};var sl={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){ul.templateCache=t},get templateCache(){return ul.templateCache}},ul=new al;sl.clearCache=function(){return ul.clearCache()},sl.parse=function(t,e){return ul.parse(t,e)},sl.render=function(t,e,n,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(Wc(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)');var o;return ul.render(t,e,n,r)},sl.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return Zc[t]}))},sl.Scanner=ol,sl.Context=il,sl.Writer=al;var cl=sl;function ll(t,e={}){var n;const r={};w()(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=cl.escape;cl.escape=function(t){return t};const i=cl.render(t,r);return cl.escape=o,i}cl.escape=function(t){return t};const pl=["event"];function fl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=fl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=fl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var dl=t=>{let{event:e}=t,n=N(t,pl);const[r]=Ls(e),o=qc(e.payload.id),i=Rt((()=>e.payload.fromClient?{children:Oe("p",{children:r.text})}:{bodyProps:{dangerouslySetInnerHTML:{__html:ll(Hc(r.text),r.variables)}}}),[r,e]);return Oe(Pc,hl(hl({type:"text",event:e,onClick:o},n),i))};function vl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function yl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=vl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=vl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var ml=({children:t,onClose:e,"aria-label":n,"aria-labelledby":r,fallBackFocusRef:o})=>{var i;const a=Ni(),s=jt(null),u=jt(null),[c,l]=Ot(!1);return Ft((()=>(c&&(u.current=ue(s.current,{initialFocus:o&&o.current?o.current:null}),u.current.activate()),()=>{u.current&&u.current.deactivate()})),[c,o]),Ft((()=>{const t=an();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(b()(i=rt(t)).call(i,(t=>(t.props=yl(yl({},t.props),{},{onClose:e}),t))),s.current)},gl=({url:t,description:e,onClose:n})=>{const{zIndex:r}=Mn(),o=Ga(),i=Io(),a=jt(null),{t:s}=pi(),u=["modal",...i],c=t=>{t.stopPropagation()},l=()=>{n()},p=r?{zIndex:r+1}:void 0;return Oe(ml,{onClose:n,"aria-label":s("lightbox.heading"),fallBackFocusRef:a,children:({onClose:n,modalRenderFn:r})=>r((n=>Oe("div",{className:vs(u),onClick:l,style:p,children:Oe("div",{className:vs("modal__float"),tabIndex:"-1",onMouseDown:o,onKeyDown:o,onTouchStart:o,onMouseMove:o,onWheel:o,onPointerDown:o,onPointerMove:o,ref:a,children:[Oe("div",{className:vs("modal__inner"),onClick:c,children:Oe("img",{className:vs("modal__image"),src:t,alt:e})}),Oe("button",{type:"button",className:vs("modal__close"),onClick:n,children:[Oe(Ds,{name:"close",size:"16"}),s("lightbox.closeLabel")]})]})}))(n))})},bl=({description:t,url:e})=>{const{t:n}=pi(),[r,o]=Ot(!1);return Oe(Y,{children:[Oe("button",{type:"button",className:vs("modal__enlarge"),onClick:()=>{o(!0)},children:[n("message.image.srTextEnlargeButtonLabel",{description:t}),Oe(Ds,{name:"enlarge",size:"32"})]}),r&&Oe(gl,{url:e,description:t,onClose:()=>{o(!1)}})]})};const _l=["event","descriptorId"];function El(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function xl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=El(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=El(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const wl=["event","descriptorId"];function Dl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=Dl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Dl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Cl={[ur.new_topic]:"newtopic"},Tl=["event"];function Sl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}const kl={default:({event:t})=>{const{t:e}=pi(),{subtype:n}=t.payload.body;return Oe(Cc,{dividerType:Cl[ur[n]],iconName:ur[n],children:Oe("p",{children:e(`dividerKeys.${ur[n]}`)})})},[ur.new_translation]:({event:t})=>{const{t:e}=pi(),{translationEnabled:n,translationLocale:r,text:o}=t.payload.body,{enableTranslations:i,languages:a}=Ps(),s=Rt((()=>{var t;return null==a||null===(t=Wn()(a).call(a,(t=>t.locale===r)))||void 0===t?void 0:t.nativeName}),[a,r]);return Oe(Cc,{iconName:"newTranslation",dividerType:"newtranslation",children:[Oe("p",{className:vs("divider__title"),children:e(n?"translations.divider.startText":"translations.divider.stopText",{language:s})}),n?Oe("p",{children:o}):Oe("button",{className:vs("button","button--secondary"),onClick:()=>{i(r)},children:e("translations.divider.restartButtonText")})]})}};const Ol=["event"];function Il(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Il(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Il(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Nl=["event"];function jl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=jl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=jl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Pl=({children:t,url:e,target:n})=>e?Oe("a",{href:e,download:!0,target:n||void 0,children:t}):Oe("span",{children:t});var Ll=n(4494),Bl=n.n(Ll);function Ul({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:vs("carousel-pagination__wrapper"),role:"group",children:Oe("ul",{className:vs("carousel-pagination"),children:b()(t).call(t,((t,n)=>{const i=e===n;return Oe("li",{className:vs("carousel-pagination__item",i?"is-active":void 0),children:Oe("button",{className:vs("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 Ml({items:t,currentIndex:e,onChange:n,children:r}){const{t:o}=pi(),i=t.length;return Oe("div",{className:vs("carousel-controls"),children:[Oe("button",{className:vs("button","button--previous"),"aria-label":o("carousel.controls.previous"),onClick:()=>{n((e-1+i)%i)},children:Oe(Ds,{name:"arrowLeft",size:"16"})}),r,Oe("button",{className:vs("button","button--next"),"aria-label":o("carousel.controls.next"),onClick:()=>{n((e+1)%i)},children:Oe(Ds,{name:"arrowRight",size:"16"})})]})}function zl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function $l(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=zl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=zl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var Hl=({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}=Ha(),f=Ni(),h=jt(),d=e.type===fr?"a":"button",v=Pt((()=>p("action.click_card",{type:ir,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]),m=Rt((()=>e.type===fr?{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:vs("card__wrapper"),id:t,tabIndex:"-1",ref:u,children:[Oe("img",{className:vs("card__image"),src:i,alt:""}),Oe("div",{className:vs("card__content"),id:t,children:[a&&Oe("h2",{className:vs("card__title"),children:a}),r&&Oe("div",{className:vs("card__description"),dangerouslySetInnerHTML:{__html:Hc(r)}}),Oe(d,$l($l({tabIndex:s&&!o?"-1":void 0,className:vs("button","button--primary"),"aria-describedby":f},m),{},{children:n}))]})]})};function ql(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vl(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=ql(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=ql(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function Wl({item:t,items:e,index:n,isActive:r}){const{t:o}=pi();return Oe("div",{className:vs("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(Hl,Vl(Vl({},t),{},{isCarouselItem:!0,hasFocus:r}))})}const Gl=(t,e,n)=>`${n}${e}`,Kl=t=>t.label,Yl=({target:t})=>{t.scrollLeft=0};function Jl({currentIndex:t,onChange:e,getItemKey:n=Gl,getItemLabel:r=Kl,items:o}){const i=Ni(),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 b()(t=Bl()(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:vs("carousel"),role:"group","aria-roledescription":"carousel",children:[Oe("div",{className:vs("carousel__slides-wrapper"),onScroll:Yl,children:Oe("div",{id:i,className:vs("carousel__slides"),style:{width:100*a+"%",left:-100*s+"%"},"aria-live":"polite","aria-atomic":"false",children:b()(o).call(o,((t,e)=>{const r=s===e;return Oe("div",{ref:c.current[e],className:vs("carousel__slide",r?"is-active":void 0),"aria-hidden":r?void 0:"true",children:Oe(Wl,{item:t,items:o,currentIndex:s,index:e,isActive:r})},n(t,e,"item-"))}))})}),Oe("div",{className:vs("carousel__controls"),children:Oe(Ml,{currentIndex:s,items:o,onChange:u,controlId:i,children:Oe("div",{className:vs("carousel__pagination"),children:Oe(Ul,{currentIndex:s,items:o,onChange:u,getItemKey:n,getItemLabel:r})})})})]})}const Ql=(t,e,n="")=>`${n}${t.title}:${e}`,Zl=t=>t.title;function Xl(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function tp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Xl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Xl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function ep(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=ep(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=ep(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const rp={message:{choice_prompt:t=>{var e,n;let{event:r,children:o}=t,i=N(t,Lc);const{t:a}=pi(),s=Ni(),{body:u,subEvent:c,showOptions:l,chooseAgain:p,onChoiceClickHandler:f,onChooseAgainClickHandler:h}=Mc(r);return Oe(Y,{children:[b()(e=rt(o)).call(e,(t=>(t.props=Uc(Uc({},t.props),{},{event:c,descriptorId:s,showTranslationToggle:!1}),t))),p&&Oe("button",{type:"button",className:vs("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(Ds,{name:"chevronDown",size:"8"})]}),l&&Oe(Pc,Uc(Uc({type:"choice-prompt",showParticipant:!1,event:r},i),{},{children:Oe("ul",{className:vs("choice-prompt","choice-prompt--many"),children:b()(n=u.choices).call(n,(t=>Oe("li",{className:vs("choice-prompt__item",{[`choice-prompt__item--${t.category}`]:t.category}),children:Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{f(t)},children:t.text})},t.id)))})}))]})},text:dl,image:t=>{let{event:e,descriptorId:n}=t,r=N(t,_l);const[o]=Ls(e),{description:i,url:a,isZoomable:s}=o,[u,c]=Ot(!1);return Oe(Pc,xl(xl({event:e,type:"image"},r),{},{children:[Oe("img",{src:a,id:n,alt:i,onLoad:()=>{c(!0)}}),s&&u&&Oe(bl,{description:i,url:a})]}))},video:t=>{let{event:e,descriptorId:n}=t,r=N(t,wl);const[o]=Ls(e),{description:i,url:a}=o;return Fo(e).push("message--type-video"),Oe(Pc,Al(Al({event:e,type:"video"},r),{},{children:[Oe("div",{id:n,className:vs("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,Nl);const{t:r}=pi(),[o]=Ls(e),{fromClient:i}=e.payload,{filename:a,url:s}=o,u=Rt((()=>r(s?"fileUpload.srFileDownloadText":"fileUpload.srFileUploadedText",{fileName:a})),[s,a,r]);return Oe(Pc,Rl(Rl({event:e,type:"upload"},n),{},{children:Oe("div",{className:vs("download"),children:[Oe(Ds,{name:"download",size:"16"}),Oe(Pl,{url:s,target:i?void 0:"_blank",children:[Oe("span",{"aria-hidden":"true",className:vs("file-download"),children:a}),Oe("span",{className:vs("visually-hidden"),children:u})]})]})}))},cta:({event:t})=>{const[e]=Ls(t),n=qc(t.payload.id),{emitEvent:r}=Ha(),o=Ni(),i=Pt((()=>r("action.click_cta",{type:ir,originMessage:t.payload.id,link:{url:e.buttonLink}})),[r,e,t]);return Oe(Pc,{type:"cta",event:t,children:[Oe("div",{className:vs("cta__content"),id:o,dangerouslySetInnerHTML:{__html:Hc(e.description)},onClick:n}),Oe("a",{className:vs("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]=Ls(t),n=e.cards;return Oe(Pc,{event:t,modifiers:"type-carousel",children:Oe(Jl,{items:n,ItemComponent:Wl,getItemKey:Ql,getItemLabel:Zl})})},card:({event:t})=>{const[e]=Ls(t),n=Ni();return Oe(Pc,{type:"card",event:t,children:Oe(Hl,tp({id:n},e))})}},info:{text:dl,divider:t=>{let{event:e}=t,n=N(t,Tl);return Oe(kl[ur[e.payload.body.subtype]]||kl.default,function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Sl(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Sl(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}({event:e},n))},translation:t=>{let{event:e}=t,n=N(t,Ol);const{t:r}=pi(),[o]=Ls(e);return Oe(Pc,Fl(Fl({type:"text",event:e},n),{},{children:r(o.key.join("."),o.variables)}))},timeIndicator:kc},participant:{participant:({event:t})=>{const{agentIcon:e}=Mn().defaults||{},{participant:n}=t.payload,[r]=Ls(t),o=Rt((()=>r?cl.render(Hc(r),n):void 0),[r,n]);if(!o)return null;const i=n.avatar||e;return Oe(Cc,{graphicSrc:i,graphicType:n.avatar?"avatar":void 0,iconName:i?void 0:"balloon",childrenHTML:o,dividerType:"participant"})}}};var op=({children:t})=>{const{customComponents:e}=Mn(),n=Rt((()=>{var t;return en()(t=k()(rp)).call(t,((t,n)=>np(np({},t),{},{[n]:np(np({},rp[n]),e?e[n]:{})})),{fallback:dl})}),[e]);return Oe(wc.Provider,{value:n,children:t})},ip=()=>{const{t:t}=pi(),{showDisclaimer:e}=Mn();return e&&Oe("div",{className:vs("disclaimer"),tabIndex:"0",children:[Oe("h2",{className:vs("disclaimer__title"),children:t("disclaimer.title")}),Oe("div",{className:vs("disclaimer__message"),dangerouslySetInnerHTML:{__html:t("disclaimer.content")}})]})},ap=()=>{const{t:t}=pi(),e=jt(null),n=go(),r=yo().isLoading,{isOpen:o}=Ia(),i=Eo(),a=Oo();return Ft((()=>{window.requestAnimationFrame((()=>{e.current&&(e.current.scrollTop=e.current.scrollHeight)}))}),[n,r,o]),Oe(Y,{children:[o&&Oe("a",{className:vs("skip-link"),href:`#${i}`,onClick:t=>{t.preventDefault(),a()},children:t("skiplinkText")}),Oe("div",{className:vs("app__body"),ref:e,children:Oe("div",{className:vs("conversation__container"),children:[Oe(ip,{}),Oe("ol",{className:vs("conversation"),children:[Oe(op,{children:(()=>{let t=null;return b()(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(Oc,{event:e,newParticipant:a},e.payload.id)}))})()}),r&&Oe(Fc,{})]})]})})]})},sp=({baseClassName:t,children:e,title:n})=>{const r=Eo(),o=Ni();return Oe("section",{id:r,className:vs(t),"aria-describedby":o,tabIndex:"-1",children:[Oe("h2",{className:vs(`${t}__title`),id:o,children:n}),e]})},up=()=>{const{t:t}=pi(),e=Oo(),n=Ga(),{emitEvent:r}=Ha(),{isActive:o,remaining:i,timer:a,endCountdown:s}=cs(),u=i>0,c=t(u?"idleDetachWarning.countdownTitle":"idleDetachWarning.notifyTransferText");return Oe(sp,{baseClassName:"idle",title:c,children:u&&Oe(Y,{children:[Oe("div",{className:vs("idle__count-container"),children:o&&Oe(Y,{children:[Oe("span",{className:vs("idle__count-text"),children:t("idleDetachWarning.countdownText")}),Oe("span",{className:vs("idle__count-timer"),children:t("idleDetachWarning.countdownTimer",a)})]})}),Oe("div",{className:vs("idle__options"),children:[Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{n(),s(!0),e(),r("idleTimer.selectContinue")},children:t("idleDetachWarning.continueButton")}),Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{s(),e(),r("idleTimer.selectEnd")},children:t("idleDetachWarning.detachButton")})]})]})})},cp=()=>{const{t:t}=pi(),e=Ga(),{name:n}=wo()||{},{continueChat:r,restartChat:o}=ps();return Oe(sp,{baseClassName:"prompt",title:t("resumeConversationPrompt.title",{name:n}),children:Oe("div",{className:vs("prompt__options"),children:[Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{e(),r()},children:t("resumeConversationPrompt.continueButton")}),Oe("button",{type:"button",className:vs("button","button--primary"),onClick:o,children:t("resumeConversationPrompt.detachButton")})]})})};function lp({controlName:t,skipLinkId:e}){const{t:n}=pi(),{sendAssertive:r}=Va(),{emitEvent:o}=Ha(),i=(()=>{const{sendAction:t}=Ha(),{features:e}=Ei(),{typingPeekahead:n}=e||{},r=jt(null),o=jt(null),i=jt(!1),a=jt(null);Ft((()=>()=>{clearInterval(a.current),clearTimeout(r.current),clearTimeout(o.current)}),[]);const s=(e,r)=>{t(function(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Ja(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Ja(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}({type:er,state:e},n&&n.enabled?{body:{currentMessage:r}}:{}))};return t=>{t.code&&"Enter"===t.code||13===t.keyCode||(i.current=!0,a.current||(s(!0,t.target.value),a.current=Ya()((()=>{i.current?n&&n.enabled&&s(!0,t.target.value):(clearInterval(a.current),a.current=null)}),2e3)),clearTimeout(r.current),clearTimeout(o.current),r.current=fe()((()=>{i.current=!1}),300),o.current=fe()((()=>{s(!1,t.target.value)}),2e3))}})(),{setBlockAutoEntrySwitch:a}=ts(),{hasCharacterLimit:s,characterLimit:u,reachedCharacterWarning:l,reachedCharacterLimit:f,remainingChars:d}=function(t){const{t:e}=pi(),{sendAssertive:n}=Va(),{hasLimit:r,limit:o}=(()=>{const{entryMeta:{options:{text:t}}}=yo(),{limit:e}=t||{};return{hasLimit:null!=e,limit:null!=e?e:null}})(),i=Rt((()=>on(n,300)),[n]),a=Rt((()=>on(((t,n)=>{t&&i(e("input.srCharacterLimitText",{limit:n}))}),300)),[i,e]),[{value:s}]=cu(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:y}]=cu(t),g=!!y,b=Pt((()=>{l&&r(n("input.srCharacterLimitText",{limit:d})),o("ui.inputFocus")}),[n,r,l,d,o]),_=Rt((()=>n("input.inputPlaceholder",{hasLimit:s,limit:s?u:null})),[n,s,u]),E=Rt((()=>n("input.inputLabel",{hasLimit:s,limit:s?u:null})),[n,s,u]);return Nt((()=>(a(g),()=>{a(!1)})),[a,g]),Oe(wu,{className:vs("input","input--text"),noValidate:"true",children:[Oe("div",{className:vs(["input--text__container",...l&&!f?["character-warning"]:[],...f?["character-exceeded"]:[]]),children:[Oe(pc,{id:e,type:"text",name:t,className:vs("input__text"),autocomplete:"off",placeholder:_,labelText:E,labelClass:vs("visually-hidden"),"aria-invalid":s?f:null,onKeyUp:i,onFocus:b}),Oe("div",{className:vs("character-count"),children:l&&Oe("span",{children:d})})]}),Oe("button",{className:vs("button","input__submit"),type:"submit",disabled:!g||f,children:Oe(Ds,{name:"send",size:"32",alt:n("input.sendMessage")})})]})}function pp(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function fp(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=pp(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=pp(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const hp="userText";function dp(t){let e=Eu({},t);const n=Eo(),r=Oo(),{sendMessage:o}=Ha(),i=Pt(((t,{updateControlValue:e})=>{o({body:t.userText}),e(hp,""),r()}),[o,r]);return Oe(hu,fp(fp({},e),{},{formId:"textEntry",persistData:!0,onSubmit:i,children:Oe(lp,{controlName:hp,skipLinkId:n})}))}var vp=()=>{const{t:t}=pi(),{showFileUpload:e,serviceAllowsUploads:n}=ki(),[r,o]=Ot(n),i=Oo(),a=jt(null),{setUserEntryType:s,activeEntry:u}=ts(),c=jt(null),{sendPolite:l}=Va(),p=!!wo();return Ft((()=>{yn(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!==Zn&&Oe(Es,{isActive:r,transitionStartState:bs,children:Oe("div",{className:vs("upload-toggle-wrapper"),children:Oe(Es,{isActive:r,transitionStartState:_s,children:Oe("button",{className:vs(["button","button--secondary","upload-toggle"]),ref:c,disabled:r?null:"true",type:"button",onClick:()=>{s(Zn),i()},children:Oe(Ds,{name:"file",size:"32",alt:t("fileUpload.toggleButtonText")})})})})})},yp=()=>{const{t:t}=pi(),{currentUploads:e}=Oi();return Oe("div",{className:vs("progress"),children:b()(e).call(e,(({id:e,name:n,progress:r,uploading:o,error:i})=>Oe("div",{className:vs("progress_container"),children:[Oe("div",{className:vs("progress__text"),children:[Oe("span",{className:vs("progress__text--file-name"),children:n}),Oe("span",{className:vs("progress__text--percentage"),children:`${r}%`})]}),Oe(Du,{error:i}),Oe("progress",{className:vs("progress__bar"),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-label":t("fileUpload.srProgressLabel",{fileName:n}),max:"100","aria-valuenow":r,value:r,"aria-busy":o,children:`${r}%`})]},e)))})};function mp({id:t,name:e,labelText:n,contentHint:r,outputText:o,accept:i}){const{isSubmitted:a}=uu(),[s,u]=Ot(!1),[{onInput:c,onBlur:l},{error:p}]=cu(e),f=Ni(),h=Ni(),d=Ni(),v=a&&p,y=[d];r&&y.push(h),v&&y.push(f);const m=Pt((()=>{u(!0)}),[u]),g=Pt((()=>{u(!1),l()}),[u,l]),b=Pt((t=>{const e={target:{value:t.target.files}};c(e)}),[c]);return Oe("div",{className:vs("upload__container"),children:[r&&Oe("span",{className:vs("upload__content-hint"),id:h,children:r}),Oe(Du,{id:f,error:v&&p}),Oe("div",{className:vs(["file-upload",...s?["focus-within"]:[]]),children:Oe("label",{htmlFor:t,className:vs("upload__label"),children:[Oe(Ds,{name:"upload",size:"32"}),Oe("div",{children:[Oe("span",{className:vs(["upload__label--text"]),children:n}),Oe("input",{id:t,className:vs("upload__input"),type:"file",name:e,onChange:b,"aria-invalid":v?"true":"false","aria-describedby":y.join(" "),accept:i||null,onFocus:m,onBlur:g}),Oe("span",{className:vs("upload__output"),"aria-hidden":"true",id:d,children:o})]})]})})]})}function gp({skiplinkId:t,controlName:e,accept:n,contentHint:r,isUploading:o,isComplete:i,onClickCancel:a}){const{t:s}=pi(),[{value:u}]=cu(e),c=u&&u.length>0,l=c?u[0].name:"";return Oe(wu,{className:vs("input","input--file"),children:[Oe(mp,{name:e,id:t,accept:n,labelText:s("fileUpload.labelText"),outputText:s("fileUpload.selectedText",{hasFile:c,filename:l}),contentHint:r}),Oe("div",{className:vs("upload__button-container"),children:[Oe("button",{id:o||!i?t:void 0,type:"button",onClick:a,className:vs("button","button--secondary","upload__cancel"),children:s("fileUpload.cancelButtonText")}),Oe("button",{className:vs("button","button--primary"),type:"submit",children:s("fileUpload.uploadButtonText")})]})]})}const bp="fileListForm",_p="fileList";var Ep=()=>{const{t:t}=pi(),{sendPolite:e,sendAssertive:n}=Va(),r=Eo(),o=Oo(),{serviceAllowsUploads:i,allowedMimeTypes:a,maxSize:s}=ki(),u=jt(null),c=jt(i),{cancelEntrySelection:l}=ts(),{uploadFile:p,clearUploads:f,isUploading:h,isComplete:d}=Oi(),{hasFile:v,selectedFileName:y,uploadHandle:m,hasServerError:g,progress:b}=((t,e)=>{const n=Ge(nu,{formId:t,name:e},[t,e]),{currentUploads:r}=Oi(),o=n&&n.length>0;let i=null,a=!1,s=0;if(r&&r.length>0){const t=r[0];i=t.uploadHandle,a=!!t.error,s=t.progress}return{hasFile:o,selectedFileName:o?n[0].name:"",uploadHandle:i,hasServerError:a,progress:s}})(bp,_p),_=Ni(),E=jt(!0),x=t("fileUpload.contentHint",{size:cn(s)}),w=jt(""),D=jt(null);Ft((()=>{w.current&&D.current.contains(document.activeElement)&&"INPUT"===document.activeElement.tagName&&n(x),w.current=x}),[x,n]),Ft((()=>{if(b>0)switch(b){case 1:e(t("fileUpload.srStartedText"));break;default:e(`${b}%`)}}),[b,e,t]),Ft((()=>{E.current||h||!d||(f(),l(),o(),fe()((()=>{e(t("fileUpload.srCompleteText"))}),300)),E.current=d}),[h,d,f,l,o,e,t]);const A=Pt((({fileList:t})=>{p(t[0]),o()}),[p,!1,o]),C=Pt((()=>{m&&m.abort(),f(),l(),o()}),[m,f,l,o]),T=Rt((()=>({[_p]:[Mu((()=>i),t("fileUpload.errors.unavailable")),Mu($u,t("fileUpload.errors.noFile")),Mu(zu,t("fileUpload.errors.tooLarge"),s)]})),[s,i,t]);return Oe("div",{className:vs(["upload",...g?["upload--error"]:[]]),ref:D,children:Oe(hu,{formId:bp,persistData:!0,onSubmit:A,validationSchema:T,children:[(h||!d)&&Oe(Y,{children:[Oe(yp,{}),Oe("div",{className:vs("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:C,ref:u,className:vs("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]}),!h&&d&&Oe(gp,{controlName:_p,skiplinkId:r,accept:a.join(", "),contentHint:x,isComplete:d,isUploading:h,outputText:t("fileUpload.selectedText",{hasFile:v,filename:y}),onClickCancel:C}),!c.current&&Oe(Y,{children:[Oe("span",{className:vs("notification"),id:_,children:t("fileUpload.unavailableText")}),Oe("div",{className:vs("upload__button-container"),children:Oe("button",{id:h||!d?r:void 0,type:"button",onClick:C,className:vs("button","button--secondary","upload__cancel"),children:t("fileUpload.cancelButtonText")})})]})]})})};function xp(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(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)w()(n=xp(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=xp(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var Dp=()=>{const t=jt(null),{hasCountdown:e}=cs(),[n,r]=Ot(e),{hasPrompt:o}=ps(),[i,a]=Ot(o),s=Oo(),u=jt(!1),{activeEntry:c}=ts(),[l,p]=Ot({text:dp,upload:Ep}),[f,h]=Ot((()=>c)),d=Mn(),{accountAllowsUploads:v}=ki(),y=Pt((()=>{yn(t.current,(()=>{s()}))}),[s]);Ft((()=>{const{customComponents:t}=d,{entry:e}=t||{};e&&p((t=>wp(wp({},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 m=l[f];return Oe("div",{className:vs("app__entry"),ref:t,children:[n&&Oe(up,{}),i&&Oe(cp,{}),Oe("div",{className:vs(["entry__body",...e||o?["entry__body--hidden"]:[]]),children:[f!==Zn&&v&&Oe(vp,{}),Oe(m,{})]})]})},Ap=({originalError:t,title:e,message:n,buttonText:r,action:o,srText:i})=>{const a=Ha(),s=Ni(),{sendPolite:u}=Va(),c=Oo(),l=t instanceof Yi;return Ft((()=>{l&&a[o]()}),[o,a,l]),Ft((()=>{!l&&i&&fe()((()=>{u(i)}),200)}),[u,i,l]),!l&&Oe("section",{className:vs("interrupt"),"aria-labelledby":s,children:Oe("div",{className:vs("interrupt__body"),children:[Oe("h2",{id:s,className:vs("interrupt__title"),children:e}),Oe("p",{className:vs("interrupt__message"),children:n}),r&&o&&Oe("div",{className:vs("interrupt__actions"),children:Oe("button",{type:"button",className:vs("button","button--primary"),onClick:()=>{a[o](),c()},children:r})})]})})},Cp=()=>{const{isVisible:t}=Ia(),{openChat:e,closeChat:n}=ns(),{isModal:r}=Do();return t&&Oe(xs,{children:Oe(ec,{children:[!r&&Oe(_c,{onOpenChat:e}),Oe(xc,{onCloseChat:n,children:Oe(Ec,{})}),Oe(bc,{interruptComponent:Ap,children:[Oe(ap,{}),Oe(Dp,{})]})]})})};function Tp(t,e,n=[]){const r=Lt(ye),o=jt();o.current=e,Ft((()=>{if(!Di()(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 Sp=()=>{const t=Mn(),{sendMessage:e,sendContext:n,sendAction:r}=Ha(),{setVisibility:o,visible:i}=Ia(),a=jt(i),s=Lt(ye),u=me(),c=_o(),l=jt(null),p=jt(null),{isInline:f,isResolving:h}=Do(),{hasInterrupt:d}=Hi(),v=be(),y=jt(null),m=Ga(),{enableTranslations:g,disableTranslations:b}=Ps();return Ft((()=>{a.current=i}),[i]),Tp("askText",(t=>{e({body: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;de()(n=A()(Pn)).call(n,e)?(m(),"inline"===t.layoutMode&&e===Pn.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]),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?g(e):b()}),[u.send]),Ft((()=>{h||d||(y.current&&y.current!==v&&s.emit("unreadMessageCount",c),i===Pn.open&&i!==p.current&&0!==l.current&&s.emit("unreadMessageCount",0),i!==Pn.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:kp}=pr;var Op=()=>{const{t:t}=pi(),e=go(),n=Ao(),{isOpen:r,isVisible:o}=Ia(),{sendAction:i}=Ha(),a=_o(),{sendPolite:s}=Va(),u=Rt((()=>on(s,2e3)),[s]),c=jt(null),l=jt(null);return Ft((()=>{var t;if(!r)return;const o=b()(t=E()(e).call(e,(t=>Qr(t)&&t.payload.messageStatus===Xn))).call(t,(t=>t.payload.id));o.length>0&&(n({type:kp,ids:o}),i({type:nr,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},Ip=()=>{const{t:t}=pi(),e=go(),n=jt(0),r=jt(0),o=yo().historyLoaded,{sendPolite:i}=Va(),{isOpen:a}=Ia(),s=jt(null),u=jt(null),c=Rt((()=>on((e=>{const n=E()(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,t]);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&&fe()((()=>{i(t("window.srTexts.onHistoryLoad"))}),500)}),[o,t,i]),null},Fp=({children:t})=>{const e=Lt(ye),[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=fe()((()=>{i({}),clearTimeout(t)}),500)),()=>{clearTimeout(t)}}),[n,i]),Ft((()=>()=>{o.current=!1}),[]);const{ariaLive:a,messageText:s}=n;return Oe(qa.Provider,{value:i,children:[t,Oe("div",{className:vs("app__live-container"),children:[Oe("div",{"aria-live":"assertive","aria-atomic":"true",className:vs("visually-hidden"),children:a===ar?s:null}),Oe("div",{"aria-live":"polite","aria-atomic":"true",className:vs("visually-hidden"),children:a===sr?s:null})]})]})},Np=()=>{const{hasCountdown:t,isActive:e,remaining:n,decrementCountdown:r}=cs();return((t,e)=>{const n=jt(t);Ft((()=>{n.current=t}),[t]),Ft((()=>{if(null!==e){const t=Ya()((function(){n.current()}),e);return()=>clearInterval(t)}}),[e])})((()=>{r()}),t&&e&&n>0?1e3:null),null},jp=({children:t})=>{const e=jt(0),{sendAction:n}=Ha(),{hasCountdown:r,isActive:o,stopCountdown:i}=cs(),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:vs("activity-monitor"),tabIndex:"-1",onMouseDown:a,onKeyUp:a,onTouchStart:a,onMouseMove:a,onWheel:a,onPointerDown:a,onPointerMove:a,children:Oe(Wa.Provider,{value:a,children:t})})},Rp=()=>{const{initUserSelectedOptions:t}=Ei(),e=jt(!1),n=Mn();return Ft((()=>{n.api&&!e.current&&(e.current=!0,t())}),[t,n]),null};const Pp=["serviceSettings"],{ADD_EVENT:Lp,ACK_EVENT:Bp,SET_IS_LOADING:Up,SET_PARTICIPANT:Mp,SET_HEADER_SUB_TITLE:zp,SET_ACTIVE_SERVICE:$p,INIT_RESUME_CONVERSATION_PROMPT:Hp,CLEAR_EVENTS:qp,SET_SERVICE_DATA_ITEM:Vp,SET_FEATURE_ENABLED_STATE:Wp,SET_SERVICE_ENTRY_METADATA:Gp,SET_HISTORY:Kp}=pr,Yp=["text","choice_prompt","image","video"];var Jp=({eventBus:t})=>{const{t:e}=pi(),n=me(),r=Ao(),o=go(),i=jt(null),{setUserSelectedOption:a}=Ei(),{initCountdown:s,endCountdown:u}=cs(),{emitEvent:c}=Ha();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:zp,title:o.name}),r({type:Mp,participant:o,fromClient:n}),o.introduction&&r({type:Lp,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:Up,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:Hp});break;case"user_first_response":r(ba(!0)),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:$p,activeServiceSessionId:i.service.serviceSessionId}),r({type:Lp,event:e})}break;case"participant":o(e);break;case"service_data":i.persist&&r({type:Vp,payload:i});break;case"ack":r({type:Bp,event:e});break;case"system":if("service_changed"===i.type){const{serviceSettings:t}=i,e=N(i,Pp),{cobrowsing:n,uploads:o,entry:s}=t;r({type:Wp,key:cr,enabled:!(!n||!n.enabled)}),r({type:Wp,key:lr,enabled:!(!o||!o.enabled)}),a(cr,!1),r({type:Gp,entryMeta:s}),r({type:$p,activeServiceSessionId:i.serviceSessionId}),c("system.serviceChanged",e)}break;case"info":"divider"!==i.type&&"text"!==i.type&&"translation"!==i.type||r({type:Lp,event:e});break;case"error":switch(i.type){case"find_conversation_erred":r(Bi(new Yi(e)));break;case"seamly_offline":r(Bi(new Ji(e))),r({type:qp});break;default:r(Bi(new Gi(e)))}break;case"socket_opened":r(Ui())}}}),E()(e=n.stream()).call(e,(t=>"message"===t.type&&de()(Yp).call(Yp,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=E()(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:Kp,history:t})})).catch((t=>{r(Bi(t))}))}});return()=>{e.unsubscribe()}}var t;return()=>{}}),[n,o,r]),null};const{REGISTER_UPLOAD:Qp,SET_UPLOAD_PROGRESS:Zp,SET_UPLOAD_ERROR:Xp,SET_UPLOAD_COMPLETE:tf}=pr;var ef=({children:t})=>{const{t:e}=pi(),n=Ao(),r=me(),{addUploadBubble:o}=Ha();return Oe(Ai.Provider,{value:t=>{const i=En(),a=r.uploadFile(t,(t=>{n({type:Zp,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:tf,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:Xp,fileId:i,errorText:r})}));n({type:Qp,fileId:i,fileName:t.name,uploadHandle:a})},children:t})};const{createAction:nf}=Sn("errors"),rf=nf("catch-error",(t=>({error:t})));function of({api:t}){return({getState:e})=>{const n=n=>{const{errorCallback:r,namespace:o,api:i,layoutMode:a}=Un(e());null==r||r(n.error,{namespace:o,api:i,layoutMode:a,conversationUrl:t.getConversationUrl(),action:n.type?n:void 0})};return t=>e=>{try{return e.error&&n(e),t(e)}catch(t){throw n({error:t}),t}}}}var af=({store:t,children:e,config:n,eventBus:r,api:o})=>(function(e){var n=kt(mt++,10),r=Ot();n.__=e=>t.dispatch(rf(e)),gt.componentDidCatch||(gt.componentDidCatch=function(t){n.__&&n.__(t),r[1](t)}),r[0]}(),Oe(Ie,{store:t,children:Oe(ye.Provider,{value:r,children:Oe(ve.Provider,{value:o,children:Oe(Fp,{children:[Oe(Rp,{config:n}),Oe(Jp,{eventBus:r}),Oe(Op,{}),Oe(Ip,{}),Oe(Np,{}),Oe(jp,{children:[Oe(Sp,{}),Oe(ef,{children:e})]})]})})})}));function sf(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function uf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=sf(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=sf(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var cf=t=>Oe(af,uf(uf({},t),{},{children:Oe(Cp,{})})),lf=n(3813),pf=n.n(lf),ff=n(8158),hf=n.n(ff);n(8604);var df=n(9340),vf=n.n(df),yf=t=>"function"==typeof t?t:function(){return t},mf="undefined"!=typeof self?self:null,gf="undefined"!=typeof window?window:null,bf=mf||gf||void 0,_f="closed",Ef="errored",xf="joined",wf="joining",Df="leaving",Af="phx_close",Cf="phx_error",Tf="phx_reply",Sf="phx_leave",kf=class{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;w()(r=E()(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=fe()((()=>{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})}},Of=class{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=fe()((()=>{this.tries=this.tries+1,this.callback()}),this.timerCalc(this.tries+1))}},If=class{static request(t,e,n,r,o,i,a){if(bf.XDomainRequest){let n=new bf.XDomainRequest;this.xdomainRequest(n,t,e,r,o,i,a)}else{let s=new bf.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(4===t.readyState&&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(!Object.prototype.hasOwnProperty.call(t,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===k()(e).length)return t;let n=t.match(/\?/)?"&":"?";return`${t}${n}${this.serialize(e)}`}},Ff=class{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 If.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||If.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 e=0;switch(e){case 200:w()(r).call(r,(t=>{fe()((()=>{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;If.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()}},Nf={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(vf()(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),ic()(e,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(n,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(o,(t=>u.setUint8(c++,t.charCodeAt(0)))),ic()(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:Tf,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)}}};function jf(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=jf(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=jf(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}var Pf=n(1905),Lf=n.n(Pf);function Bf(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Bf(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Bf(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Mf=Lf()("seamly");class zf{constructor(t,e,n){this.url=t,this.accessToken=n,this.channelName=e,this.connect(),this.socket.onError((t=>{Mf("[SOCKET][ERROR]",t),this.emit({type:"error",payload:{type:"seamly_offline",error:t}})})),this.socket.onOpen((()=>{Mf("[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((()=>{Mf("[SOCKET]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onClose((()=>{Mf("[CHANNEL]CLOSE"),this.emit({type:"connection",connected:!1,ready:!1})})),this.channel.onError((t=>{Mf("[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)=>Uf(Uf({},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",(()=>{Mf("[CHANNEL][JOIN] OK"),this.emit({type:"connection",connected:!0,ready:!1})})).receive("error",(t=>{Mf("[CHANNEL][JOIN] ERROR",t),this.emit({type:"error",payload:{type:"join_channel_erred",error:t}}),this.emit({type:"connection",connected:!1,ready:!1}),this.channel.socket.disconnect()})).receive("timeout",(()=>{Mf("[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 Rf(Rf({},t),{},{[n]:decodeURIComponent(r)})}),{})}})(this.url);this.socket=new class{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||bf.WebSocket||Ff,this.establishedConnections=0,this.defaultEncoder=i()(n=Nf.encode).call(n,Nf),this.defaultDecoder=i()(r=Nf.decode).call(r,Nf),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Ff?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let o=null;gf&&gf.addEventListener&&(gf.addEventListener("pagehide",(t=>{this.conn&&(this.disconnect(),o=this.connectClock)})),gf.addEventListener("pageshow",(t=>{o===this.connectClock&&(o=null,this.connect())}))),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=t=>e.rejoinAfterMs?e.rejoinAfterMs(t):[1e3,2e3,5e3][t-1]||1e4,this.reconnectAfterMs=t=>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=yf(e.params||{}),this.endPoint=`${t}/websocket`,this.vsn=e.vsn||"2.0.0",this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Of((()=>{this.teardown((()=>this.connect()))}),this.reconnectAfterMs)}replaceTransport(t){this.disconnect(),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=If.appendParams(If.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.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,n)}connect(t){this.connectClock++,t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=yf(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.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),w()(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),fe()((()=>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?fe()((()=>{this.waitForBufferDone(t,e+1)}),150*e):t()}waitForSocketClosed(t,e=1){5!==e&&this.conn&&3!==this.conn.readyState?fe()((()=>{this.waitForSocketClosed(t,e+1)}),150*e):t()}onConnClose(t){var e;let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),clearTimeout(this.heartbeatTimer),this.closeWasClean||1e3===n||this.reconnectTimer.scheduleTimeout(),w()(e=this.stateChangeCallbacks.close).call(e,(([,e])=>e(t)))}onConnError(t){var e;this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;w()(e=this.stateChangeCallbacks.error).call(e,(([,e])=>{e(t,n,r)})),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){var t;w()(t=this.channels).call(t,(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Cf)}))}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=E()(e=this.channels).call(e,(e=>e.joinRef()!==t.joinRef()))}off(t){for(let n in this.stateChangeCallbacks){var e;this.stateChangeCallbacks[n]=E()(e=this.stateChangeCallbacks[n]).call(e,(([e])=>-1===Xe()(t).call(t,e)))}}channel(t,e={}){let n=new class{constructor(t,e,n){this.state=_f,this.topic=t,this.params=yf(e||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new kf(this,"phx_join",this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Of((()=>{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=xf,this.rejoinTimer.reset(),w()(t=this.pushBuffer).call(t,(t=>t.send())),this.pushBuffer=[]})),this.joinPush.receive("error",(()=>{this.state=Ef,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=_f,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=Ef,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 kf(this,Sf,yf({}),this.timeout).send(),this.state=Ef,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()})),this.on(Tf,((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(Af,t)}onError(t){return this.on(Cf,(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=E()(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 kf(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=Df;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Af,"leave")},n=new kf(this,Sf,yf({}),t);return n.receive("ok",(()=>e())).receive("timeout",(()=>e())),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(t,e,n){return e}isMember(t,e,n,r){return!(this.topic!==t||r&&r!==this.joinRef()&&(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=wf,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=E()(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===_f}isErrored(){return this.state===Ef}isJoined(){return this.state===xf}isJoining(){return this.state===wf}isLeaving(){return this.state===Df}}(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=fe()((()=>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&&(w()(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,fe()((()=>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=Wn()(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())}}(t,{params:Uf(Uf({},e),{},{v:ro})}),this.socket.connect(),this.channel=this.socket.channel(this.channelName,{authorization:`Bearer ${this.accessToken}`})}disconnect(){return new(Ro())((t=>{this.socket.disconnect(t)}))}listenTo(t,e=null){this.channel.on(t,(n=>{Mf("[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 $f(t){const e="cvco."+t;return{get(){var t;const n=[e,Qe()(t=e.split(".")).call(t,0,-1).join(".")];let r;do{r=sessionStorage.getItem(n[0])}while(n.shift()&&!r);return JSON.parse(r)},set(t){t&&sessionStorage.setItem(e,vf()(t))}}}class Hf{constructor(t){this.name=t}emit(t){this.listener&&this.listener.next(t)}start(t){this.listener=t}stop(){this.listener=null}}function qf(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=qf(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=qf(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const Wf=Lf()("seamly");function Gf(){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 Kf{constructor({namespace:t,config:e={},locale:n}){var r;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${n?"."+n:""}`,e.storageProvider||$f),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 Hf("API"),this.internal$=pf().create(this.internalProducer).flatten(),this.connection$=E()(r=this.internal$).call(r,(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)}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=E()(n=$()(t)).call(n,(([t])=>"self"!==t))).call(e,((t,[e,{href:n}])=>Vf(Vf({},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=hf().post(`${this.getUrlPrefix("http")}${this.URLS.conversations}`).set("Content-Type","application/json").query({v:ro}).withCredentials().send({externalId:this.externalId||void 0}),{body:e}=await t,{conversation:n}=e,r=Vf({},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 Gi(t);throw t}}async getConversation(){if(!this.hasConversation())return null;try{const{body:t}=await hf().get(`${this.getUrlPrefix("http")}${this.URLS.history}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:ro});this.updateUrls(t);const{messages:e,participants:n,activeServiceSessionId:r,activeServiceSettings:o,serviceData:i,ui:a,translation:s}=t.history;return{events:b()(e).call(e,(([t,e])=>({type:t,payload:Vf(Vf({},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 Qi(t);if(404===t.status)throw new Yi(t);if(t.status>=500)throw new Gi(t);throw t}}async connect(){this.connected=!1;let t=null;return this.hasConversation()||(t=await this.createConversation()),this.conversationProducer=new zf(`${this.getUrlPrefix("ws")}${this.URLS.socket}`,this.getChannelName(),this.getAccessToken()),this.internalProducer.emit(pf().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:Gf()}:this.sendEnvironment},!1),t}uploadFile(t,e,n,r){const o=new FormData;o.append("upload",t);const i=hf().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 hf().post(`${this.getUrlPrefix("http")}/client/${this.connectionInfo.apiKey}/configs`).set("Content-Type","application/json").query({v:ro}).then((({body:t})=>(this.updateUrls(t),t.config))).catch((t=>{if(404===t.status)throw new Ki(t);if(t.status>=500)throw new Gi(t);throw t}))}getConversationIntitialState(){return hf().get(`${this.getUrlPrefix("http")}${this.getConversationUrl()}`).set("Authorization",`Bearer ${this.getAccessToken()}`).query({v:ro}).then((({body:t})=>(this.updateUrls(t),((t,e)=>{var n;return en()(n=k()(t)).call(n,((n,r)=>(de()(e).call(e,r)||(n[r]=t[r]),n)),{})})(t.conversation,["accessToken","channelName"])))).catch((t=>{if(401===t.status)throw new Qi(t);if(404===t.status)throw new Yi(t);if(t.status>=500)throw new Gi(t);throw t}))}async getConfig(){const t=await this.getAccountConfig();return this.configReady=!0,t}async getTranslations(t){try{const e=`${this.getUrlPrefix("http")}${this.URLS.translations}`.replace("{version}",String(1)).replace("{locale}",t),n=hf().get(e),{body:r}=await n;return r.translations}catch(t){if(t.status>=500)throw new Gi(t);throw t}}send(t,e,n=!0){var r;!this.connected||n&&!this.ready?E()(r=this.connection$).call(r,(t=>n?t.connected&&t.ready:t.connected)).take(1).subscribe({next:()=>this.send(t,e,n)}):(Wf("[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=En()),{type:n,body:r,transactionId:o}}(t,e),1e4))}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===k()(r).length&&r.constructor===Object||this.send("context",r,!1)}stream(){var t;return E()(t=this.internal$).call(t,(t=>"connection"!==t.type))}}function Yf(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 Jf=Yf();Jf.withExtraArgument=Yf;var Qf=Jf;function Zf(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xf(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=Zf(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=Zf(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}function th({api:t}){return({dispatch:e})=>n=>r=>{const o=n(r);switch(r.type){case String(Bi):r.error instanceof Ji||e({type:pr.SET_USER_SELECTED_OPTION,option:cr,value:!1});break;case pr.SET_USER_SELECTED_OPTIONS:t.store.set("options",r.options);break;case pr.SET_USER_SELECTED_OPTION:t.store.set("options",Xf(Xf({},t.store.get("options")||{}),{},{[r.option]:r.value}))}return o}}function eh(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function nh(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=eh(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=eh(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const rh={events:[],initialState:{},unreadEvents:0,isLoading:!1,idleDetachCountdown:{hasCountdown:!1,isActive:!1},resumeConversationPrompt:!1,serviceInfo:{activeServiceSessionId:""},participantInfo:{participants:{},currentAgent:""},headerTitles:{title:null,subTitle:""},historyLoaded:!1,skiplinkTargetId:En(),optionsButtonId:En(),cobrowsingContainerId:En(),headerCollapseButtonId:En(),serviceData:{},options:{features:{},panelActive:!1,optionActive:"",userSelectedOptions:{}},showFileUpload:!1,currentUploads:[],entryMeta:{default:Qn,active:Qn,userSelected:null,blockAutoEntrySwitch:!1,options:{},optionsOverride:{}},seamlyContainerElement:null};function oh(t=rh,e){if(e.type===String(Ea)){const{visible:e}=t;return nh(nh({},rh),{},{visible:e})}return((t,e)=>{var n,r,o,i,a,s,u,c,l,p;switch(e.type){case hr:const{type:f,payload:h}=e.event,d=t.options.features.hasOwnProperty(lr),v=eo(t.entryMeta,h);let y=Kn({},t.options);if(d&&(f===Yn.message||f===Yn.participant)&&!h.fromClient){const{type:t}=h.entry||{};y=Kn(Kn({},y),{},{features:Kn(Kn({},y.features),{},{uploads:Kn(Kn({},y.features.uploads),{},{enabledFromEntry:t===Zn})})})}const m=Qr(e.event);return Wn()(n=t.events).call(n,(t=>t.payload.id===h.id))?t:Kn(Kn({},t),{},{entryMeta:d||v.active!==Zn?v:Kn({},t.entryMeta),options:y,unreadEvents:m?t.unreadEvents+1:t.unreadEvents,events:[...t.events,Kn(Kn({},e.event),{},{payload:Kn(Kn({},m&&{messageStatus:h.fromClient?tr:Xn}),h)})]});case mr:if(!e.event.payload.transactionId)return console.warn("ACK received without transaction ID."),t;const g=Wn()(r=t.events).call(r,(t=>t.payload.transactionId===e.event.payload.transactionId)),{id:_,occurredAt:x}=e.event.payload;return g?Kn(Kn({},t),{},{events:Zr(b()(o=t.events).call(o,(t=>t.payload.id===g.payload.id?Kn(Kn({},t),{},{payload:Kn(Kn({},t.payload),{},{id:_,occurredAt:x})}):t)))}):t;case dr:return Kn(Kn({},t),{},{unreadEvents:0,events:[]});case yr:return Kn(Kn({},t),{},{unreadEvents:0,events:b()(i=t.events).call(i,(t=>{var n;return-1!==Xe()(n=e.ids).call(n,t.payload.id)?Kn(Kn({},t),{},{payload:Kn(Kn({},t.payload),t.payload.messageStatus===Xn&&{messageStatus:tr})}):t}))});case vr:const{events:w,participants:D,activeServiceSessionId:A,activeServiceSettings:C={},serviceData:T,resumeConversationPrompt:S}=e.history,k=((t,e)=>{var n;const r=qn()(n=E()(e).call(e,(e=>!(Wn()(t).call(t,(t=>t.payload.id===e.payload.id))||"participant"===e.type&&!e.payload.participant.introduction)))).call(n);return Zr([...r,...t])})(t.events,w),O=Kn(Kn({},t.participantInfo.participants),D),I=Wn()(a=qn()(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}=C,P=eo(Kn(Kn(Kn({},t.entryMeta),j),{},{active:j.default||Jn,options:Kn({},j&&j.options?j.options:{})}),k[k.length-1].payload);let L=Kn({},t.options.features);L.hasOwnProperty(cr)&&(L=Kn(Kn({},L),{},{cobrowsing:{enabled:!(!N||!N.enabled)}}));const B=L.hasOwnProperty(lr);if(B){const{payload:t}=I,{type:e}=t.entry||{};L=Kn(Kn({},L),{},{uploads:{enabled:!(!R||!R.enabled),enabledFromEntry:e===Zn}})}const U=Kn(Kn({},t),{},{unreadEvents:E()(k).call(k,(t=>"message"===t.type&&t.payload.messageStatus===Xn)).length,events:E()(k).call(k,(t=>"participant"!==t.type||!!t.payload.participant.introduction)),participantInfo:Kn(Kn(Kn({},t.participantInfo),F?Xr(t.participantInfo,{type:_r,participant:O[F]}):{}),{},{participants:O}),historyLoaded:!0,serviceInfo:Kn(Kn({},t.serviceInfo),{},{activeServiceSessionId:A}),serviceData:T||{},options:Kn(Kn({},t.options),{},{features:L}),entryMeta:B||P.active!==Zn?P:Kn({},t.entryMeta),resumeConversationPrompt:S||!1});return F&&(U.headerTitles=to(t.headerTitles,{type:xr,title:O[F].name})),U;case wr:return Kn(Kn({},t),{},{historyLoaded:!1});case gr:return Kn(Kn({},t),{},{isLoading:e.isLoading});case Ar:const{delaySeconds:M,delayTime:z}=e;return Kn(Kn({},t),{},{idleDetachCountdown:{hasCountdown:!0,isActive:!0,wasStopped:!1,count:M,remaining:M,timer:z}});case Cr:const{idleDetachCountdown:$}=t,{remaining:H}=$,q=H-1;return Kn(Kn({},t),{},{idleDetachCountdown:Kn(Kn({},t.idleDetachCountdown),{},{remaining:q,timer:un(q)})});case Tr:return Kn(Kn({},t),{},{idleDetachCountdown:Kn(Kn({},t.idleDetachCountdown),{},{isActive:!1,wasStopped:!0})});case Sr:return Kn(Kn({},t),{},{idleDetachCountdown:{hasCountdown:!1,isActive:!1}});case kr:return Kn(Kn({},t),{},{resumeConversationPrompt:!0});case Or:return Kn(Kn({},t),{},{resumeConversationPrompt:!1});case _r:case br:return Kn(Kn({},t),{},{participantInfo:Xr(t.participantInfo,e)});case Dr:return t.serviceInfo.activeServiceSessionId!==e.activeServiceSessionId?Kn(Kn({},t),{},{serviceInfo:Kn(Kn({},t.serviceInfo),{},{activeServiceSessionId:e.activeServiceSessionId})}):t;case Er:case xr:return Kn(Kn({},t),{},{headerTitles:to(t.headerTitles,e)});case Rr:return Kn(Kn({},t),{},{initialState:e.initialState});case Ir:return Kn(Kn({},t),{},{serviceData:Kn(Kn({},t.serviceData),{},{[e.payload.type]:e.payload})});case Fr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:e.features})});case Nr:return t.options.features.hasOwnProperty(e.key)?Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:Kn(Kn({},t.options.features),{},{[e.key]:Kn(Kn({},t.options.features[e.key]||{}),{},{enabled:e.enabled})})})}):t;case jr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{features:{}})});case Br:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{panelActive:!0,optionActive:e.optionName})});case Ur:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{panelActive:!1,optionActive:""})});case Lr:return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{userSelectedOptions:e.options})});case Pr:const{option:V,value:W}=e;return Kn(Kn({},t),{},{options:Kn(Kn({},t.options),{},{userSelectedOptions:Kn(Kn({},t.options.userSelectedOptions),{},{[V]:W})})});case Mr:const{value:G}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{blockAutoEntrySwitch:G})});case Hr:const{entryMeta:K}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn(Kn({},t.entryMeta),K),{},{active:K.default,options:Kn({},K.options||{}),overrideOptions:{}})});case $r:const{entryType:Y}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{active:Y})});case zr:const{entryType:J}=e;return Kn(Kn({},t),{},{entryMeta:Kn(Kn({},t.entryMeta),{},{userSelected:J})});case qr:return Kn(Kn({},t),{},{currentUploads:[...t.currentUploads,{id:e.fileId,name:e.fileName,progress:1,uploading:!0,complete:!1,error:"",uploadHandle:e.uploadHandle}]});case Vr:return Kn(Kn({},t),{},{currentUploads:b()(u=t.currentUploads).call(u,(t=>t.id===e.fileId?Kn(Kn({},t),{},{progress:e.progress,uploading:100!==e.progress,uploadHandle:100===e.progress?null:t.uploadHandle}):t))});case Gr:return Kn(Kn({},t),{},{currentUploads:b()(c=t.currentUploads).call(c,(t=>t.id===e.fileId?Kn(Kn({},t),{},{error:e.errorText,progress:0,uploading:!1,uploadHandle:null}):t))});case Wr:return Kn(Kn({},t),{},{currentUploads:b()(l=t.currentUploads).call(l,(t=>t.id===e.fileId?Kn(Kn({},t),{},{complete:!0}):t))});case Kr:return Kn(Kn({},t),{},{currentUploads:E()(p=t.currentUploads).call(p,(t=>t.id!==e.fileId))});case Yr:return Kn(Kn({},t),{},{currentUploads:[]});case Jr:return Kn(Kn({},t),{},{seamlyContainerElement:e.element});default:return t}})(t,e)}const ih=["namespace","parentElement","showFaq"],ah=["view"];function sh(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function uh(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=sh(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=sh(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}class ch{constructor(t,e){var n;const{namespace:r="",parentElement:o,showFaq:i}=t,a=N(t,ih);this.config=uh(uh({},a),{},{showFaq:!1!==i,namespace:r}),this.namespace=r,this.parentElement=o,this.externalApi=e,this.api=new Kf({namespace:t.namespace,config:t.api,locale:null==t||null===(n=t.context)||void 0===n?void 0:n.locale}),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,ah),r=uh(uh({},this.config),{},{customComponents:k()(n).length?n:void 0}),o=function({initialState:t,api:e,eventBus:n}={}){return He({reducers:{state:oh,[String(Aa)]:Aa,[String(po)]:po,[String(bu)]:bu,[String($s)]:$s,[String(di)]:di,[String(Oa)]:Oa,[String(Ra)]:Ra},initialState:t,middlewares:[of({api:e}),Qf.withExtraArgument({api:e,eventBus:n}),({dispatch:t})=>e=>n=>{var r,o;const i=e(n);switch(n.type){case String(Nn):case String(jn):var a,s;null!=n&&null!==(r=n.config)&&void 0!==r&&null!==(o=r.defaults)&&void 0!==o&&o.agentName&&t({type:pr.SET_HEADER_SUB_TITLE,title:null==n||null===(a=n.config)||void 0===a||null===(s=a.defaults)||void 0===s?void 0:s.agentName})}return i},ta({api:e}),th({api:e}),({dispatch:t,getState:e})=>n=>r=>{var o,i,a,s,u,c,l;const p=n(r);switch(r.type){case String(pr.SET_HISTORY):null!==(o=r.history)&&void 0!==o&&null!==(i=o.translation)&&void 0!==i&&i.enabled&&t(Ss(r.history.translation.locale));break;case String(pr.SET_INITIAL_STATE):null!==(a=r.initialState)&&void 0!==a&&null!==(s=a.translation)&&void 0!==s&&s.enabled&&(t(Ss(r.initialState.translation.locale)),t(Vo(r.locale)));break;case String(pr.ADD_EVENT):"info"===r.event.type&&"new_translation"===(null===(u=r.event)||void 0===u||null===(c=u.payload)||void 0===c||null===(l=c.body)||void 0===l?void 0:l.subtype)&&r.event.payload.body.translationEnabled&&t(Vo(r.event.payload.body.translationLocale));break;case String(ks):const n=zo(e());t(Vo(n))}return p}]})}({api:this.api,eventBus:this.eventBus});await o.dispatch(_a(r)),vt(e?Oe(af,{config:r,eventBus:this.eventBus,store:o,api:this.api,children:Oe(e,{})}):Oe(cf,{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;w()(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]=E()(n).call(n,(t=>t!==e)))}execFunction(t,...e){const n=this.functions[t];return!(!n||!n.length||(w()(n).call(n,(n=>{try{n(...e)}catch(e){console.error(`Action(${t}) failed: `,e)}})),0))}}function lh(t,e){var n=k()(t);if(s()){var r=s()(t);e&&(r=E()(r).call(r,(function(e){return c()(t,e).enumerable}))),n.push.apply(n,r)}return n}function ph(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)w()(n=lh(Object(r),!0)).call(n,(function(e){m(t,e,r[e])}));else if(p())h()(t,p()(r));else{var o;w()(o=lh(Object(r))).call(o,(function(e){v()(t,e,c()(r,e))}))}}return t}const fh=t=>"object"==typeof t&&"action"in t,hh=t=>ph(ph({},t),{},{args:e()(t.args)?t.args:[t.args]});var dh=class{constructor(t){this._waitingActions=[],this._instances={},this.appConfig=t}push(...t){var e;(t=b()(e=E()(t).call(t,fh)).call(e,hh)).length&&(this._waitingActions.push(...t),this.handleActions())}handleActions(){const t=this._waitingActions;this._waitingActions=[],w()(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;w()(e=A()(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):w()(e=A()(this._instances)).call(e,(t=>{this.destroy(t)}))}handleAction(t){const{action:e,instance:n,args:r}=t,o=A()(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=b()(o).call(o,(t=>(!n||t.namespace===n)&&t.execFunction(e,...r)));return T()(i).call(i,Boolean)}createInstance(t){return new ch(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){if("function"==typeof this.appConfig)return this.appConfig(t);const e=ph(ph({},this.appConfig.defaults),t.defaults);return ph(ph(ph({},this.appConfig),t),{},{api:ph(ph({},this.appConfig.api),t.api),defaults:k()(e).length?e:void 0})}},vh=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 dh(t);window.seamly={push:i()(n=o.push).call(n,o)},o.push(...r)}}(),r}()}));