From 042b6ed0326db99f33898fe787c4b9bb9e667785 Mon Sep 17 00:00:00 2001 From: xiajon <108155953+xiajon@users.noreply.github.com> Date: Mon, 6 Jan 2025 09:53:13 -0800 Subject: [PATCH] add authenticate customer event handlers and UI (#278) * add authenticate customer event handlers and UI * fix github actions build * fix github actions build --- .../amazon-connect-chat-interface.js | 2 +- package-lock.json | 1663 +++-------------- package.json | 10 +- src/components/Chat/ChatContainer.js | 14 +- src/components/Chat/ChatContainer.test.js | 6 + src/components/Chat/ChatEvents.js | 11 + src/components/Chat/ChatEvents.test.js | 5 + src/components/Chat/ChatSession.js | 114 +- src/components/Chat/ChatSession.test.js | 113 +- .../ChatMessages/AuthenticationMessage.js | 113 ++ .../AuthenticationMessage.test.js | 120 ++ .../ChatMessages/ChatMessage.js | 7 +- .../ChatMessages/SystemMessage.js | 17 +- .../ChatMessages/SystemMessage.test.js | 28 +- src/components/Chat/constants.js | 3 + src/components/Chat/datamodel/Model.js | 7 + 16 files changed, 840 insertions(+), 1393 deletions(-) create mode 100644 src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.js create mode 100644 src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.test.js diff --git a/local-testing/amazon-connect-chat-interface.js b/local-testing/amazon-connect-chat-interface.js index b3904b2..8f2fa06 100644 --- a/local-testing/amazon-connect-chat-interface.js +++ b/local-testing/amazon-connect-chat-interface.js @@ -1,2 +1,2 @@ /*! For license information please see amazon-connect-chat-interface.js.LICENSE.txt */ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/amazon-connect/amazon-connect-chat-interface/",n(n.s=357)}([function(e,t,n){"use strict";e.exports=n(548)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Xe}));var i=n(207),r=n.n(i),a=n(345),o=n.n(a),s=n(0),l=n.n(s),c=n(346),u=n(151),f=n(208),h=n(354),d=n(355),p=function(e,t){for(var n=[e[0]],i=0,r=t.length;i1?i-1:0),a=1;a0?" Additional arguments: "+r.join(", "):"")));return y(o)}return b(t,e),t}(Error),R=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,M=function(e){var t=""+(e||""),n=[];return t.replace(R,(function(e,t,i){return n.push({componentId:t,matchIndex:i}),e})),n.map((function(e,i){var r=e.componentId,a=e.matchIndex,o=n[i+1];return{componentId:r,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}}))},P=/^\s*\/\/.*$/gm,N=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),j=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),B=[],L=function(e){if(-2===e){var t=B;return B=[],t}},q=o()((function(e){B.push(e)})),H=void 0,z=void 0,U=void 0,K=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(z)&&n.slice(t-z.length,t)!==z?"."+H:e};j.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(z)>0&&(n[0]=n[0].replace(U,K))},q,L]),N.use([q,L]);var W=function(e){return N("",e)};function G(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",r=e.join("").replace(P,""),a=t&&n?n+" "+t+" { "+r+" }":r;return H=i,z=t,U=new RegExp("\\"+z+"\\b","g"),j(n||!t?"":t,a)}var V=function(){return n.nc},Y=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},$=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},J=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},ie=function(e,t){return function(){var n,i=((n={})[T]=J(t),n[D]="4.4.1",n),r=V();return r&&(i.nonce=r),l.a.createElement("style",F({},i,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(ee(t))},oe=function e(t,n){var i=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,a=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=ee(t)+n)}return e},s={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=F({},e[n]);return t}(i),n=Object.create(null);for(var a in r)n[a]=[r[a][0]];return e(t,n)},css:o,getIds:re(r),hasNameForId:$(i),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),Y(i,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",X(i,e))},sealed:!1,styleTag:null,toElement:ie(o,i),toHTML:ne(o,i)};return s},se=function(e,t,n,i,r){if(A&&!n){var a=function(e,t,n){var i=document;e?i=e.ownerDocument:t&&(i=t.ownerDocument);var r=i.createElement("style");r.setAttribute(T,""),r.setAttribute(D,"4.4.1");var a=V();if(a&&r.setAttribute("nonce",a),r.appendChild(i.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,i);return O?function(e,t){var n=Object.create(null),i=Object.create(null),r=void 0!==t,a=!1,o=function(t){var r=i[t];return void 0!==r?r:(i[t]=ae(e.ownerDocument,t),e.appendChild(i[t]),n[t]=Object.create(null),i[t])},s=function(){var e="";for(var t in i)e+=i[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:re(i),hasNameForId:$(n),insertMarker:o,insertRules:function(e,i,s){for(var l=o(e),c=[],u=i.length,f=0;f0&&(a=!0,t().insertRules(e+"-import",c))},removeRules:function(o){var s=i[o];if(void 0!==s){var l=ae(e.ownerDocument,o);e.replaceChild(l,s),i[o]=l,X(n,o),r&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ie(s,n),toHTML:ne(s,n)}}(a,r):function(e,t){var n=Object.create(null),i=Object.create(null),r=[],a=void 0!==t,o=!1,s=function(e){var t=i[e];return void 0!==t?t:(i[e]=r.length,r.push(0),X(n,e),i[e])},l=function(){var t=Q(e).cssRules,n="";for(var a in i){n+=ee(a);for(var o=i[a],s=te(r,o),l=s-r[o];l0&&(o=!0,t().insertRules(i+"-import",p)),r[u]+=d,Y(n,i,c)},removeRules:function(s){var l=i[s];if(void 0!==l&&!1!==e.isConnected){var c=r[l];!function(e,t,n){for(var i=t-n,r=t;r>i;r-=1)e.deleteRule(r)}(Q(e),te(r,l)-1,c),r[l]=0,X(n,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(l,n),toHTML:ne(l,n)}}(a,r)}return oe()},le=/\s+/,ce=void 0;ce=A?O?40:1e3:-1;var ue=0,fe=void 0,he=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=i,this.target=i?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],n=!1,i=document.querySelectorAll("style["+T+"]["+D+'="4.4.1"]'),r=i.length;if(!r)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),i=e.clone(),r=0;r1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(u.isValidElementType)(t))throw new I(1,String(t));var i=function(){return e(t,n,ye.apply(void 0,arguments))};return i.withConfig=function(i){return ve(e,t,F({},n,i))},i.attrs=function(i){return ve(e,t,F({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}function ke(e){for(var t,n=0|e.length,i=0|n,r=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:i^=(255&e.charCodeAt(r+2))<<16;case 2:i^=(255&e.charCodeAt(r+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(r)))+((1540483477*(i>>>16)&65535)<<16)}return((i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16))^i>>>15)>>>0}var Ee=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t="",n=void 0;for(n=e;n>Ee;n=Math.floor(n/Ee))t=we(n%Ee)+t;return we(n%Ee)+t}function xe(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,i=!!n&&e.theme===n.theme;return e.theme&&!i?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Re(e){return e.replace(Oe,"-").replace(Ie,"")}function Me(e){return"string"===typeof e&&!0}var Pe={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ne={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},je=((Te={})[u.ForwardRef]={$$typeof:!0,render:!0},Te),Be=Object.defineProperty,Le=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,He=void 0===qe?function(){return[]}:qe,ze=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,Ke=Object.prototype,We=Array.prototype;function Ge(e,t,n){if("string"!==typeof t){var i=Ue(t);i&&i!==Ke&&Ge(e,i,n);for(var r=We.concat(Le(t),He(t)),a=je[e.$$typeof]||Pe,o=je[t.$$typeof]||Pe,s=r.length,l=void 0,c=void 0;s--;)if(c=r[s],!Ne[c]&&(!n||!n[c])&&(!o||!o[c])&&(!a||!a[c])&&(l=ze(t,c)))try{Be(e,c,l)}catch(u){}return e}return e}var Ve=Object(s.createContext)(),Ye=Ve.Consumer,Xe=function(e){function t(n){m(this,t);var i=y(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext.bind(i)),i.renderInner=i.renderInner.bind(i),i}return b(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(w(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new I(8);return F({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),$e=(function(){function e(){m(this,e),this.masterSheet=he.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return l.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)}}(),Object(s.createContext)()),Je=$e.Consumer,Qe=function(e){function t(n){m(this,t);var i=y(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext),i}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new he(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,i=e.target;return l.a.createElement($e.Provider,{value:this.getContext(n,i)},t)},t}(s.Component),Ze={};var et=function(e){function t(){m(this,t);var n=y(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return l.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ye,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,i=t.defaultProps,r=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,o=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):this.generateAndInjectStyles(Ae(this.props,e,i)||E,this.props);var c=this.props.as||this.attrs.as||o,u=Me(c),f={},d=F({},this.props,this.attrs),p=void 0;for(p in d)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=d[p]:"forwardedAs"===p?f.as=d[p]:u&&!Object(h.a)(p)||(f[p]=d[p]));return this.props.style&&this.attrs.style&&(f.style=F({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(r,a,l!==a?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var i=this,r=F({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,a=!1,o=void 0,s=void 0;for(s in w(n)&&(n=n(r),a=!0),n)o=n[s],a||!w(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||x(o)||(o=o(r)),i.attrs[s]=o,r[s]=o})),r):r},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,i=n.attrs,r=n.componentStyle;n.warnTooManyClasses;return r.isStatic&&!i.length?r.generateAndInjectStyles(E,this.styleSheet):r.generateAndInjectStyles(this.buildExecutionContext(e,t,i),this.styleSheet)},t}(s.Component);function tt(e,t,n){var i=x(e),r=!Me(e),a=t.displayName,o=void 0===a?function(e){return Me(e)?"styled."+e:"Styled("+C(e)+")"}(e):a,s=t.componentId,c=void 0===s?function(e,t,n){var i="string"!==typeof t?"sc":Re(t),r=(Ze[i]||0)+1;Ze[i]=r;var a=i+"-"+e.generateName(i+r);return n?n+"-"+a:a}(Se,t.displayName,t.parentComponentId):s,u=t.ParentComponent,f=void 0===u?et:u,h=t.attrs,p=void 0===h?k:h,g=t.displayName&&t.componentId?Re(t.displayName)+"-"+t.componentId:t.componentId||c,m=i&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,_=new Se(i?e.componentStyle.rules.concat(n):n,m,g),b=void 0,y=function(e,t){return l.a.createElement(f,F({},e,{forwardedComponent:b,forwardedRef:t}))};return y.displayName=o,(b=l.a.forwardRef(y)).displayName=o,b.attrs=m,b.componentStyle=_,b.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,b.styledComponentId=g,b.target=i?e.target:e,b.withComponent=function(e){var i=t.componentId,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["componentId"]),a=i&&i+"-"+(Me(e)?e:Re(C(e)));return tt(e,F({},r,{attrs:m,componentId:a,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Object(d.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},r&&Ge(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var nt=function(e){return ve(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nt[e]=nt(e)}));!function(){function e(t,n){m(this,e),this.rules=t,this.componentId=n,this.isStatic=xe(t,k),he.master.hasId(n)||he.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=G(be(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();A&&(window.scCGSHMRCache={});t.b=nt}).call(this,n(93))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function D(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return I(e,t,0)}function O(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,M=1,P=2,N="function"===typeof Symbol&&Symbol.iterator,j="@@iterator",B=N||j;function L(e){this.next=e}function q(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function H(){return{value:void 0,done:!0}}function z(e){return!!W(e)}function U(e){return e&&"function"===typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(N&&e[N]||e[j]);if("function"===typeof t)return t}function G(e){return e&&"number"===typeof e.length}function V(e){return null===e||void 0===e?oe():o(e)?e.toSeq():ce(e)}function Y(e){return null===e||void 0===e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=R,L.VALUES=M,L.ENTRIES=P,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[B]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},V.prototype.__iterator=function(e,t){return he(this,e,t,!0)},t(Y,V),Y.prototype.toKeyedSeq=function(){return this},t(X,V),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},X.prototype.__iterator=function(e,t){return he(this,e,t,!1)},t($,V),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=Y,V.Set=$,V.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():z(e)?new ie(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return G(e)?new te(e):U(e)?new re(e):z(e)?new ie(e):void 0}function fe(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function he(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new L((function(){var e=r[n?a-o:o];return o++>a?H():q(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?pe(t,e,"",{"":e}):ge(e)}function pe(e,t,n,i){return Array.isArray(t)?e.call(i,n,X(t).map((function(n,i){return pe(e,n,i,t)}))):me(t)?e.call(i,n,Y(t).map((function(n,i){return pe(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?X(e).map(ge).toList():me(e)?Y(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function _e(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function Fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&_e(r[1],e)&&(n||_e(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var f=!0,h=t.__iterate((function(t,i){if(n?!e.has(t):r?!_e(t,e.get(i,b)):!_e(e.get(i,b),t))return f=!1,!1}));return f&&e.size===h}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function ye(e,t){if(!e)throw new Error(t)}function ve(e,t,n){if(!(this instanceof ve))return new ve(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),ti?H():q(e,r,n[t?i-r++:r++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new L((function(){var o=i[t?r-a:a];return a++>r?H():q(e,o,n[o])}))},ne.prototype[p]=!0,t(ie,X),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),i=0;if(U(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(n))return new L(H);var i=0;return new L((function(){var t=n.next();return t.done?t:q(e,i++,t.value)}))},t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return q(e,r,i[r++])}))},t(be,X),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return _e(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new be(this._value,O(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return _e(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return _e(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ve.prototype.get=function(e,t){return this.has(e)?this._start+T(this,e)*this._step:t},ve.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?H():q(e,a++,o)}))},ve.prototype.equals=function(e){return e instanceof ve?this._start===e._start&&this._end===e._end&&this._step===e._step:Fe(this,e)},t(ke,n),t(Ee,ke),t(we,ke),t(Ce,ke),ke.Keyed=Ee,ke.Indexed=we,ke.Set=Ce;var xe="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function Te(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Te(n)}if("string"===t)return e.length>Le?Se(e):Ae(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Oe(e);if("function"===typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=ze[e];return void 0===t&&(t=Ae(e),He===qe&&(He=0,ze={}),He++,ze[e]=t),t}function Ae(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Pe,Ne="function"===typeof WeakMap;Ne&&(Pe=new WeakMap);var je=0,Be="__immutablehash__";"function"===typeof Symbol&&(Be=Symbol(Be));var Le=16,qe=255,He=0,ze={};function Ue(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null===e||void 0===e?rt():We(e)&&!u(e)?e:rt().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[Ve])}t(Ke,Ee),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return at(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return at(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=mt(this,kn(e),t,n);return i===b?void 0:i},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},Ke.prototype.merge=function(){return ht(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return ht(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return ht(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ht(this,pt(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return zt(fn(this,e))},Ke.prototype.sortBy=function(e,t){return zt(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var Ge,Ve="@@__IMMUTABLE_MAP__@@",Ye=Ke.prototype;function Xe(e,t){this.ownerID=e,this.entries=t}function $e(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return q(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ye);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return Ge||(Ge=it(0))}function at(e,t,n){var i,r;if(e._root){var a=k(y),o=k(v);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Xe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(E(s),E(o),new Ze(t,i,[r,a]))}function st(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,i,r){if(e.keyHash===i)return new Qe(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&F,s=(0===n?i:i>>>n)&F;return new $e(t,1<>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Je(e,a+1,o)}function ht(e,t,n){for(var r=[],a=0;a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ft(e,t,n,i){var r=i?e:C(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s=vt)return ct(e,l,i,r);var h=e&&e===this.ownerID,d=h?l:C(l);return f?s?c===u-1?d.pop():d[c]=d.pop():d[c]=[i,r]:d.push([i,r]),h?(this.entries=d,this):new Xe(e,d)}},$e.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&F),a=this.bitmap;return 0===(a&r)?i:this.nodes[_t(a&r-1)].get(e+m,t,n,i)},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&F,l=1<=kt)return ft(e,h,c,s,p);if(u&&!p&&2===h.length&&st(h[1^f]))return h[1^f];if(u&&p&&1===h.length&&st(p))return p;var g=e&&e===this.ownerID,_=u?p?c:c^l:c|l,y=u?p?Ft(h,f,p,g):yt(h,f,g):bt(h,f,p,g);return g?(this.bitmap=_,this.nodes=y,this):new $e(e,_,y)},Je.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&F,a=this.nodes[r];return a?a.get(e+m,t,n,i):i},Je.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&F,l=r===b,c=this.nodes,u=c[s];if(l&&!u)return this;var f=ot(u,e,t+m,n,i,r,a,o);if(f===u)return this;var h=this.count;if(u){if(!f&&--h0&&i<_?Rt(0,i,m,null,new Dt(n.toArray())):t.withMutations((function(e){e.setSize(i),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ct(e){return!(!e||!e[xt])}t(wt,we),wt.of=function(){return this(arguments)},wt.prototype.toString=function(){return this.__toString("List [","]")},wt.prototype.get=function(e,t){if((e=T(this,e))>=0&&e>>t&F;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-m,n))===o&&a)return this}if(a&&!r)return this;var s=jt(this,e);if(!a)for(var l=0;l>>t&F;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-m,n))===a&&r===this.array.length-1)return this}var o=jt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var St,At,Ot={};function It(e,t){var n=e._origin,i=e._capacity,r=Ht(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,c=i-o;return c>_&&(c=_),function(){if(l===c)return Ot;var e=t?--c:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,c=a>n?0:n-a>>r,u=1+(i-a>>r);return u>_&&(u=_),function(){for(;;){if(s){var e=s();if(e!==Ot)return e;s=null}if(c===u)return Ot;var n=t?--u:c++;s=o(l&&l[n],r-m,a+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Lt(e,t).set(0,n):Lt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=k(v);return t>=Ht(e._capacity)?i=Nt(i,e.__ownerID,0,t,n,a):r=Nt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):Rt(e._origin,e._capacity,e._level,r,i):e}function Nt(e,t,n,i,r,a){var o,s=i>>>n&F,l=e&&s0){var c=e&&e.array[s],u=Nt(c,t,n-m,i,r,a);return u===c?e:((o=jt(e,t)).array[s]=u,o)}return l&&e.array[s]===r?e:(E(a),o=jt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function jt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>i&F],i-=m;return n}}function Lt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new w,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,c=e._root,u=0;o+u<0;)c=new Dt(c&&c.array.length?[void 0,c]:[],i),u+=1<<(l+=m);u&&(o+=u,r+=u,s+=u,a+=u);for(var f=Ht(a),h=Ht(s);h>=1<f?new Dt([],i):d;if(d&&h>f&&om;_-=m){var b=f>>>_&F;g=g.array[b]=jt(g.array[b],i)}g.array[f>>>m&F]=d}if(s=h)o-=h,s-=h,l=m,c=null,p=p&&p.removeBefore(i,0,o);else if(o>r||h>>l&F;if(y!==h>>>l&F)break;y&&(u+=(1<r&&(c=c.removeBefore(i,l,o-u)),c&&ha&&(a=c.size),o(l)||(c=c.map((function(e){return de(e)}))),i.push(c)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Ht(e){return e<_?0:e-1>>>m<=_&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Kt(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Jt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===P){var i=e.__iterator(t,n);return new L((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===M?R:M,n)},t}function Qt(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(P,r);return new L((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return q(i,s,t.call(n,o[1],s,e),r)}))},i}function Zt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(P,a),s=0;return new L((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return q(r,i?c:s++,u,a)}}))},r}function tn(e,t,n){var i=Ke().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(u(e)?zt():Ke()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=Fn(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,r))return e;var a=A(t,r),o=O(n,r);if(a!==a||o!==o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l===l&&(s=l<0?0:l);var c=bn(e);return c.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(c.get=function(t,n){return(t=T(this,t))>=0&&ts)return H();var e=r.next();return i||t===M?e:q(t,l-1,t===R?void 0:e.value[1],e)}))},c}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(P,r),s=!0;return new L((function(){if(!s)return H();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],c=r[1];return t.call(n,c,l,a)?i===P?e:q(i,l,c,e):(s=!1,H())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(P,a),l=!0,c=0;return new L((function(){var e,a,u;do{if((e=s.next()).done)return i||r===M?e:q(r,c++,r===R?void 0:e.value[1],e);var f=e.value;a=f[0],u=f[1],l&&(l=t.call(n,u,a,o))}while(l);return r===P?e:q(r,a,u,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var c=new te(r);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,c){var u=this;e.__iterate((function(e,r){return(!t||c0}function pn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(M,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),K(r?e.reverse():e)})),o=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():q(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function _n(e){return Ue(e.size),x(e)}function Fn(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?Y:l(e)?X:$).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function vn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xn()},Un.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=A(e,this.size);if(O(t,this.size)!==this.size)return we.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yn(i,r)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new L((function(){if(i){var t=i.value;return i=i.next,q(e,n++,t)}return H()}))},Un.isStack=Kn;var Wn,Gn="@@__IMMUTABLE_STACK__@@",Vn=Un.prototype;function Yn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Xn(){return Wn||(Wn=Yn(0))}function $n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Gn]=!0,Vn.withMutations=Ye.withMutations,Vn.asMutable=Ye.asMutable,Vn.asImmutable=Ye.asImmutable,Vn.wasAltered=Ye.wasAltered,n.Iterator=L,$n(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return zt(this.toKeyedSeq())},toOrderedSet:function(){return jn(s(this)?this.valueSeq():this)},toSet:function(){return Sn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Xt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return wt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return _e(t,e)}))},entries:function(){return this.__iterator(P)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!==i&&void 0!==i?i.toString():""})),t},keys:function(){return this.__iterator(R)},map:function(e,t){return gn(this,Qt(this,e,t))},reduce:function(e,t,n){var i,r;return Ue(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Zt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(M)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return _e(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=kn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return hn(this,e)},maxBy:function(e,t){return hn(this,t,e)},min:function(e){return hn(this,e?ni(e):ai)},minBy:function(e,t){return hn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Jn=n.prototype;Jn[f]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=ii,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn,this.size}}})}catch(e){}}(),$n(i,{flip:function(){return gn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return _e(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return _e(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var Qn=i.prototype;function Zn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"===typeof e?JSON.stringify(e):e}function ri(){return C(arguments)}function ai(e,t){return et?-1:0}function oi(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=xe(t,3432918353),t=xe(t<<15|t>>>-15,461845907),t=xe(t<<13|t>>>-13,5),t=xe((t=t+3864292196^e)^t>>>16,2246822507),t=Te((t=xe(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return Qn[h]=!0,Qn[B]=Jn.entries,Qn.__toJS=Jn.toObject,Qn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},$n(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Zt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=T(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=T(this,e))>=0&&(void 0!==this.size?this.size===1/0||e2?n-2:0),a=2;a0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i0)return r.getInlineStyleAt(i-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return _(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),_(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new l({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),c=e.getUndoStack(),u=n;o!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,i)?(c=c.push(l),u=u.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(u=u.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(i)&&(f=null);var d={currentContent:u,directionMap:a,undoStack:c,redoStack:h(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function _(e,t,n){return m.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function F(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=m},function(e,t,n){"use strict";var i=n(11);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var i=n(729),r=n(112),a=n(43),o=n(745),s=n(80),l=n(196),c=n(198),u=n(312),f=n(746),h=n(328),d=n(141),p=n(30),g=n(310),m=n(13),_=n(204),F=n(811),b=n(339),y=n(142),v=n(812),k=n(815),E=n(56),w=n(340),C=n(821),x={Editor:f,EditorBlock:h,EditorState:m,CompositeDecorator:o,Entity:d,EntityInstance:g,BlockMapBuilder:r,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:F,SelectionState:y,AtomicBlockUtils:i,KeyBindingUtil:_,Modifier:p,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(337),convertFromRaw:k,convertToRaw:v,genKey:E,getDefaultKeyBinding:w,getVisibleSelectionRect:C};e.exports=x},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(258),t),r(n(557),t),r(n(558),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return D})),n.d(t,"withEmotionCache",(function(){return A})),n.d(t,"css",(function(){return G})),n.d(t,"ClassNames",(function(){return Z})),n.d(t,"Global",(function(){return Y})),n.d(t,"createElement",(function(){return V})),n.d(t,"jsx",(function(){return V})),n.d(t,"keyframes",(function(){return $}));var i=n(0);var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;td)&&(L=(z=z.replace(" ",":")).length),0i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F=function(e){return 45===e.charCodeAt(1)},b=function(e){return null!=e&&"boolean"!==typeof e},y=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return F(e)?e:e.replace(m,"-$&").toLowerCase()})),v=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(_,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===g[e]||F(e)||"number"!==typeof t||0===t?t:t+"px"};function k(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return E={name:n.name,styles:n.styles,next:E},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)E={name:r.name,styles:r.styles,next:E},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},N={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var j=/[A-Z]|^ms/g,B=/_EMO_([^_]+?)_([^]*?)_EMO_/g,L=function(e){return 45===e.charCodeAt(1)},q=function(e){return null!=e&&"boolean"!==typeof e},H=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return L(e)?e:e.replace(j,"-$&").toLowerCase()})),z=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(B,(function(e,t,n){return K={name:t,styles:n,next:K},t}))}return 1===N[e]||L(e)||"number"!==typeof t||0===t?t:t+"px"};function U(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return K={name:n.name,styles:n.styles,next:K},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)K={name:r.name,styles:r.styles,next:K},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=d(e,t),a=p(r,t);return c(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),s=e.getBlockForKey(r);var l=t.getStartOffset(),c=t.getEndOffset(),u=a.getEntityAt(l),f=s.getEntityAt(c-1);if(i===r&&u&&u===f){var h=o(e.getEntityMap(),a,s,t,n);return p(e,h)}var g=d(e,t);return p(g,t)},splitBlock:function(e,t){var n=d(e,t),i=p(n,t);return g(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return r.add(e,t,n)},removeInlineStyle:function(e,t,n){return r.remove(e,t,n)},setBlockType:function(e,t,n){return h(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return h(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return h(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=d(e,t);return a(i,t,n)}};e.exports=_},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var i=n(749),r=n(752),a=n(753),o=n(754);function s(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=i?i(a):a,r.contains(a,t))}function l(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return s(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(i.browserArchitecture,null,e)},isDevice:function(e){return s(i.deviceName,null,e)},isEngine:function(e){return s(i.engineName,i.engineVersion,e)},isPlatform:function(e){return s(i.platformName,i.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(i.platformArchitecture,null,e)}};e.exports=a(c,o)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var i=n(51),r=Object;e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},function(e,t,n){"use strict";var i=n(15),r=n(215),a=n(214),o=n(9),s=n(157),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var i=u(e,t);i&&i[d]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:f in n?n[f]:i[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var i=n(38).has;e.exports=function(e){return i(e),e}},function(e,t,n){"use strict";var i=n(4),r=Map.prototype;e.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(e,t,n){"use strict";var i=n(11),r=n(36),a=n(222),o=n(155);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(i(n)&&a(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";var i=n(57),r=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},function(e,t,n){"use strict";var i=n(4),r=n(69),a=n(27),o=a.Set,s=a.proto,l=i(s.forEach),c=i(s.keys),u=c(new o).next;e.exports=function(e,t,n){return n?r({iterator:c(e),next:u},t):l(e,t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!==n&&void 0!==n&&(i.value=String(n));return i}},function(e,t,n){"use strict";var i=n(8),r=i.Map,a=i.OrderedSet,o=i.Record,s=a(),l={style:s,entity:null},c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return u;var t=r({style:s,entity:null}).merge(e),n=f.get(t);if(n)return n;var a=new i(t);return f=f.set(t,a),a},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},i}(o(l)),u=new c,f=r([[r(l),u]]);c.EMPTY=u,e.exports=c},function(e,t,n){"use strict";var i=n(43),r=n(113),a=n(8),o=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,f=l(),h={parent:null,characterList:o(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:o(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(u(i.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){r(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){r(this.getCharacterList(),p,e,t)},a}(c(h));e.exports=g},function(e,t,n){"use strict";var i=n(88);e.exports=function(e){return i(e.length)}},function(e,t,n){"use strict";var i=n(15),r=n(36),a=n(65);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i=n(222),r=n(36);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(9),o=n(99),s=n(173),l=n(45),c=n(74),u=n(103),f=n(104),h=n(125),d=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,_,F,b,y,v,k,E=n&&n.that,w=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),x=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),D=i(t,E),S=function(e){return m&&h(m,"normal",e),new p(!0,e)},A=function(e){return w?(a(e),T?D(e[0],e[1],S):D(e[0],e[1])):T?D(e,S):D(e)};if(C)m=e.iterator;else if(x)m=e;else{if(!(_=f(e)))throw new d(o(e)+" is not iterable");if(s(_)){for(F=0,b=l(e);b>F;F++)if((y=A(e[F]))&&c(g,y))return y;return new p(!1)}m=u(e,_)}for(v=C?e.next:m.next;!(k=r(v,m)).done;){try{y=A(k.value)}catch(O){h(m,"throw",O)}if("object"==typeof y&&y&&c(g,y))return y}return new p(!1)}},function(e,t,n){"use strict";var i=n(4),r=n(69),a=n(38),o=a.Map,s=a.proto,l=i(s.forEach),c=i(s.entries),u=c(new o).next;e.exports=function(e,t,n){return n?r({iterator:c(e),next:u},(function(e){return t(e[1],e[0])})):l(e,t)}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var i=n(35),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i,r=n(9),a=n(359),o=n(160),s=n(121),l=n(220),c=n(120),u=n(161),f="prototype",h="script",d=u("IE_PROTO"),p=function(){},g=function(e){return"<"+h+">"+e+""},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?m(i):function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():m(i);for(var e=o.length;e--;)delete _[f][o[e]];return _()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[f]=r(e),n=new p,p[f]=null,n[d]=e):n=_(),void 0===t?n:a.f(n,t)}},function(e,t,n){"use strict";var i=n(4),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},function(e,t,n){"use strict";var i=n(362);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},function(e,t,n){"use strict";var i=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},a=t.SPECIAL_ELEMENTS=Object.create(null);a[i.HTML]=Object.create(null),a[i.HTML][r.ADDRESS]=!0,a[i.HTML][r.APPLET]=!0,a[i.HTML][r.AREA]=!0,a[i.HTML][r.ARTICLE]=!0,a[i.HTML][r.ASIDE]=!0,a[i.HTML][r.BASE]=!0,a[i.HTML][r.BASEFONT]=!0,a[i.HTML][r.BGSOUND]=!0,a[i.HTML][r.BLOCKQUOTE]=!0,a[i.HTML][r.BODY]=!0,a[i.HTML][r.BR]=!0,a[i.HTML][r.BUTTON]=!0,a[i.HTML][r.CAPTION]=!0,a[i.HTML][r.CENTER]=!0,a[i.HTML][r.COL]=!0,a[i.HTML][r.COLGROUP]=!0,a[i.HTML][r.DD]=!0,a[i.HTML][r.DETAILS]=!0,a[i.HTML][r.DIR]=!0,a[i.HTML][r.DIV]=!0,a[i.HTML][r.DL]=!0,a[i.HTML][r.DT]=!0,a[i.HTML][r.EMBED]=!0,a[i.HTML][r.FIELDSET]=!0,a[i.HTML][r.FIGCAPTION]=!0,a[i.HTML][r.FIGURE]=!0,a[i.HTML][r.FOOTER]=!0,a[i.HTML][r.FORM]=!0,a[i.HTML][r.FRAME]=!0,a[i.HTML][r.FRAMESET]=!0,a[i.HTML][r.H1]=!0,a[i.HTML][r.H2]=!0,a[i.HTML][r.H3]=!0,a[i.HTML][r.H4]=!0,a[i.HTML][r.H5]=!0,a[i.HTML][r.H6]=!0,a[i.HTML][r.HEAD]=!0,a[i.HTML][r.HEADER]=!0,a[i.HTML][r.HGROUP]=!0,a[i.HTML][r.HR]=!0,a[i.HTML][r.HTML]=!0,a[i.HTML][r.IFRAME]=!0,a[i.HTML][r.IMG]=!0,a[i.HTML][r.INPUT]=!0,a[i.HTML][r.LI]=!0,a[i.HTML][r.LINK]=!0,a[i.HTML][r.LISTING]=!0,a[i.HTML][r.MAIN]=!0,a[i.HTML][r.MARQUEE]=!0,a[i.HTML][r.MENU]=!0,a[i.HTML][r.META]=!0,a[i.HTML][r.NAV]=!0,a[i.HTML][r.NOEMBED]=!0,a[i.HTML][r.NOFRAMES]=!0,a[i.HTML][r.NOSCRIPT]=!0,a[i.HTML][r.OBJECT]=!0,a[i.HTML][r.OL]=!0,a[i.HTML][r.P]=!0,a[i.HTML][r.PARAM]=!0,a[i.HTML][r.PLAINTEXT]=!0,a[i.HTML][r.PRE]=!0,a[i.HTML][r.SCRIPT]=!0,a[i.HTML][r.SECTION]=!0,a[i.HTML][r.SELECT]=!0,a[i.HTML][r.SOURCE]=!0,a[i.HTML][r.STYLE]=!0,a[i.HTML][r.SUMMARY]=!0,a[i.HTML][r.TABLE]=!0,a[i.HTML][r.TBODY]=!0,a[i.HTML][r.TD]=!0,a[i.HTML][r.TEMPLATE]=!0,a[i.HTML][r.TEXTAREA]=!0,a[i.HTML][r.TFOOT]=!0,a[i.HTML][r.TH]=!0,a[i.HTML][r.THEAD]=!0,a[i.HTML][r.TITLE]=!0,a[i.HTML][r.TR]=!0,a[i.HTML][r.TRACK]=!0,a[i.HTML][r.UL]=!0,a[i.HTML][r.WBR]=!0,a[i.HTML][r.XMP]=!0,a[i.MATHML]=Object.create(null),a[i.MATHML][r.MI]=!0,a[i.MATHML][r.MO]=!0,a[i.MATHML][r.MN]=!0,a[i.MATHML][r.MS]=!0,a[i.MATHML][r.MTEXT]=!0,a[i.MATHML][r.ANNOTATION_XML]=!0,a[i.SVG]=Object.create(null),a[i.SVG][r.TITLE]=!0,a[i.SVG][r.FOREIGN_OBJECT]=!0,a[i.SVG][r.DESC]=!0},function(e,t,n){"use strict";var i={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||i.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return i[e]=!0,e}},function(e,t,n){"use strict";var i=n(366),r=n(11),a=n(53),o=n(12)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"===(i=a(t))&&r(t.callee)?"Arguments":i}},function(e,t,n){"use strict";var i=n(3),r=n(5),a=n(6),o=n(15),s=n(169),l=n(66),c=n(379),u=n(68),f=n(65),h=n(46),d=n(383),p=n(88),g=n(232),m=n(235),_=n(385),F=n(157),b=n(21),y=n(57),v=n(14),k=n(158),E=n(52),w=n(74),C=n(89),x=n(123).f,T=n(236),D=n(238).forEach,S=n(174),A=n(47),O=n(36),I=n(122),R=n(390),M=n(25),P=n(171),N=M.get,j=M.set,B=M.enforce,L=O.f,q=I.f,H=r.RangeError,z=c.ArrayBuffer,U=z.prototype,K=c.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,V=l.TypedArray,Y=l.TypedArrayPrototype,X=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){A(e,t,{configurable:!0,get:function(){return N(this)[t]}})},Z=function(e){var t;return w(U,e)||"ArrayBuffer"===(t=y(e))||"SharedArrayBuffer"===t},ee=function(e,t){return X(e)&&!k(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=F(t),ee(e,t)?f(2,e[t]):q(e,t)},ne=function(e,t,n){return t=F(t),!(ee(e,t)&&v(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?L(e,t,n):(e[t]=n.value,e)};o?(W||(I.f=te,O.f=ne,Q(Y,"buffer"),Q(Y,"byteOffset"),Q(Y,"byteLength"),Q(Y,"length")),i({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var o=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,d=r[l],F=d,b=F&&F.prototype,y={},k=function(e,t){L(e,t,{get:function(){return function(e,t){var n=N(e);return n.view[c](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=N(e);r.view[f](t*o+r.byteOffset,n?_(i):i,!0)}(this,t,e)},enumerable:!0})};W?s&&(F=t((function(e,t,n,i){return u(e,b),P(v(t)?Z(t)?void 0!==i?new d(t,m(n,o),i):void 0!==n?new d(t,m(n,o)):new d(t):X(t)?R(F,t):a(T,F,t):new d(g(t)),e,F)})),C&&C(F,V),D(x(d),(function(e){e in F||h(F,e,d[e])})),F.prototype=b):(F=t((function(e,t,n,i){u(e,b);var r,s,l,c=0,f=0;if(v(t)){if(!Z(t))return X(t)?R(F,t):a(T,F,t);r=t,f=m(n,o);var h=t.byteLength;if(void 0===i){if(h%o)throw new H(J);if((s=h-f)<0)throw new H(J)}else if((s=p(i)*o)+f>h)throw new H(J);l=s/o}else l=g(t),r=new z(s=l*o);for(j(e,{buffer:r,byteOffset:f,byteLength:s,length:l,view:new K(r)});c=a)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),l=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),F(i.showHidden)&&(i.showHidden=!1),F(i.depth)&&(i.depth=2),F(i.colors)&&(i.colors=!1),F(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),u(i,e,i.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,i){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return _(r)||(r=u(e,r,i)),r}var a=function(e,t){if(F(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(E(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var c,y="",w=!1,C=["{","}"];(d(n)&&(w=!0,C=["[","]"]),E(n))&&(y=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(y=" "+RegExp.prototype.toString.call(n)),v(n)&&(y=" "+Date.prototype.toUTCString.call(n)),k(n)&&(y=" "+f(n)),0!==o.length||w&&0!=n.length?i<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,i,r){for(var a=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,y,C)):C[0]+y+C[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),T(i,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),F(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function d(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function g(e){return null===e}function m(e){return"number"===typeof e}function _(e){return"string"===typeof e}function F(e){return void 0===e}function b(e){return y(e)&&"[object RegExp]"===w(e)}function y(e){return"object"===typeof e&&null!==e}function v(e){return y(e)&&"[object Date]"===w(e)}function k(e){return y(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(F(a)&&(a=Object({NODE_ENV:"production",PUBLIC_URL:"/amazon-connect/amazon-connect-chat-interface"}).NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else o[n]=function(){};return o[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=_,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=F,t.isRegExp=b,t.isObject=y,t.isDate=v,t.isError=k,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(587);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){(function(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");[e.getDate(),x[e.getMonth()],t].join(" ")})(),t.format.apply(t,arguments)},t.inherits=n(588),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!==typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],a=0;ao?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),i.apply(e,a);else for(n&&i.apply(e,[t,n]);si||n<=0)return"";var r=0;if(t>0){for(;t>0&&r=i)return""}else if(t<0){for(r=i;t<0&&00&&a0?r(t,9007199254740991):0}},function(e,t,n){"use strict";var i=n(231),r=n(14),a=n(51),o=n(377);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return a(n),o(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},function(e,t,n){"use strict";var i=n(39);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(4);e.exports=i([].slice)},function(e,t,n){"use strict";e.exports={}},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,c=[],u=!1,f=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f1)for(var n=1;n=o.DIGIT_0&&e<=o.DIGIT_9}function ke(e){return e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_Z}function Ee(e){return e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_Z}function we(e){return Ee(e)||ke(e)}function Ce(e,t){return ve(e)||t&&(e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_F||e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_F)}function xe(e){return e+32}function Te(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function De(e){return String.fromCharCode(xe(e))}function Se(e,t){for(var n=a[++e],i=++e,r=i+n-1;i<=r;){var o=i+r>>>1,s=a[o];if(st))return a[o+n];r=o-1}}return-1}var Ae=e.exports=function(){this.preprocessor=new i,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};Ae.CHARACTER_TOKEN="CHARACTER_TOKEN",Ae.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ae.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ae.START_TAG_TOKEN="START_TAG_TOKEN",Ae.END_TAG_TOKEN="END_TAG_TOKEN",Ae.COMMENT_TOKEN="COMMENT_TOKEN",Ae.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ae.EOF_TOKEN="EOF_TOKEN",Ae.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ae.MODE={DATA:c,RCDATA:f,RAWTEXT:d,SCRIPT_DATA:p,PLAINTEXT:g},Ae.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},Ae.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},Ae.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},Ae.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},Ae.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},Ae.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ae.HIBERNATION_TOKEN}),!0}return!1},Ae.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},Ae.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},Ae.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},Ae.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},Ae.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var i=0,r=!0,a=e.length,s=0,l=t,c=void 0;s0&&(l=this._consume(),i++),l===o.EOF){r=!1;break}if(l!==(c=e[s])&&(n||l!==xe(c))){r=!1;break}}return r||this._unconsumeSeveral(i),r},Ae.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},Ae.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==s.SCRIPT_STRING.length)return!1;for(var e=0;e=55296&&i<=57343||i>1114111?o.REPLACEMENT_CHARACTER:r)},Ae.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,i=null,r=0,s=!1,l=0;l>-1;){var c=a[l],u=c<7;if(u&&1&c&&(t=2&c?[a[++l],a[++l]]:[a[++l]],n=r,i===o.SEMICOLON)){s=!0;break}if(r++,(i=this._consume())===o.EOF)break;l=u?4&c?Se(l,i):-1:i===c?++l:-1}if(t){if(!s&&(this._unconsumeSeveral(r-n),e)){var f=this._lookahead();if(f===o.EQUALS_SIGN||function(e){return we(e)||ve(e)}(f))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(r),null},Ae.prototype._consumeCharacterReference=function(e,t){if(ye(e)||e===o.GREATER_THAN_SIGN||e===o.AMPERSAND||e===this.additionalAllowedCp||e===o.EOF)return this._unconsume(),null;if(e===o.NUMBER_SIGN){var n=!1,i=this._lookahead();return i!==o.LATIN_SMALL_X&&i!==o.LATIN_CAPITAL_X||(this._consume(),n=!0),(i=this._lookahead())!==o.EOF&&Ce(i,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var Oe=Ae.prototype;Oe[c]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=u:e===o.LESS_THAN_SIGN?this.state=m:e===o.NULL?this._emitCodePoint(e):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[u]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=c)},Oe[f]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=h:e===o.LESS_THAN_SIGN?this.state=b:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[h]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=f)},Oe[d]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=k:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[p]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=C:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[g]=function(e){this.preprocessor.dropParsedChunk(),e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[m]=function(e){e===o.EXCLAMATION_MARK?this.state=ee:e===o.SOLIDUS?this.state=_:we(e)?(this._createStartTagToken(),this._reconsumeInState(F)):e===o.QUESTION_MARK?this._reconsumeInState(Q):(this._emitChar("<"),this._reconsumeInState(c))},Oe[_]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(F)):e===o.GREATER_THAN_SIGN?this.state=c:e===o.EOF?(this._reconsumeInState(c),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState(Q)},Oe[F]=function(e){ye(e)?this.state=z:e===o.SOLIDUS?this.state=J:e===o.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):ke(e)?this.currentToken.tagName+=De(e):e===o.NULL?this.currentToken.tagName+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentToken.tagName+=Te(e)},Oe[b]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=y):(this._emitChar("<"),this._reconsumeInState(f))},Oe[y]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(v)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(f))},Oe[v]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=z);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}},Oe[k]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=E):(this._emitChar("<"),this._reconsumeInState(d))},Oe[E]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(d))},Oe[w]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=z);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(d)}},Oe[C]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=x):e===o.EXCLAMATION_MARK?(this.state=D,this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState(p))},Oe[x]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(T)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(p))},Oe[T]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=z);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}},Oe[D]=function(e){e===o.HYPHEN_MINUS?(this.state=S,this._emitChar("-")):this._reconsumeInState(p)},Oe[S]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):this._reconsumeInState(p)},Oe[A]=function(e){e===o.HYPHEN_MINUS?(this.state=O,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=R:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(c):this._emitCodePoint(e)},Oe[O]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=R:e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=A,this._emitCodePoint(e))},Oe[I]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?this.state=R:e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=A,this._emitCodePoint(e))},Oe[R]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=M):we(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState(N)):(this._emitChar("<"),this._reconsumeInState(A))},Oe[M]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(P)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(A))},Oe[P]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=Te(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=z);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(A)}},Oe[N]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?j:A,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(xe(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(A)},Oe[j]=function(e){e===o.HYPHEN_MINUS?(this.state=B,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(c):this._emitCodePoint(e)},Oe[B]=function(e){e===o.HYPHEN_MINUS?(this.state=L,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?(this.state=j,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=j,this._emitCodePoint(e))},Oe[L]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=j,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=j,this._emitCodePoint(e))},Oe[q]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChar("/")):this._reconsumeInState(j)},Oe[H]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?A:j,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(xe(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(j)},Oe[z]=function(e){ye(e)||(e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?this._reconsumeInState(K):e===o.EQUALS_SIGN?(this._createAttr("="),this.state=U):(this._createAttr(""),this._reconsumeInState(U)))},Oe[U]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?(this._leaveAttrName(K),this._unconsume()):e===o.EQUALS_SIGN?this._leaveAttrName(W):ke(e)?this.currentAttr.name+=De(e):e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN?this.currentAttr.name+=Te(e):e===o.NULL?this.currentAttr.name+=r.REPLACEMENT_CHARACTER:this.currentAttr.name+=Te(e)},Oe[K]=function(e){ye(e)||(e===o.SOLIDUS?this.state=J:e===o.EQUALS_SIGN?this.state=W:e===o.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===o.EOF?this._reconsumeInState(c):(this._createAttr(""),this._reconsumeInState(U)))},Oe[W]=function(e){ye(e)||(e===o.QUOTATION_MARK?this.state=G:e===o.APOSTROPHE?this.state=V:this._reconsumeInState(Y))},Oe[G]=function(e){e===o.QUOTATION_MARK?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.QUOTATION_MARK,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=Te(e)},Oe[V]=function(e){e===o.APOSTROPHE?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.APOSTROPHE,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=Te(e)},Oe[Y]=function(e){ye(e)?this._leaveAttrValue(z):e===o.AMPERSAND?(this.additionalAllowedCp=o.GREATER_THAN_SIGN,this.returnState=this.state,this.state=X):e===o.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN||e===o.EQUALS_SIGN||e===o.GRAVE_ACCENT?this.currentAttr.value+=Te(e):e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=Te(e)},Oe[X]=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=d?e?"":void 0:(i=l(f,h))<55296||i>56319||h+1===d||(u=l(f,h+1))<56320||u>57343?e?s(f,h):i:e?c(f,h,h+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},function(e,t,n){"use strict";var i=n(6),r=n(24),a=n(9),o=n(99),s=n(104),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw new l(o(e)+" is not iterable")}},function(e,t,n){"use strict";var i=n(57),r=n(64),a=n(35),o=n(92),s=n(12)("iterator");e.exports=function(e){if(!a(e))return r(e,s)||r(e,"@@iterator")||o[i(e)]}},function(e,t,n){"use strict";var i=n(244).IteratorPrototype,r=n(52),a=n(65),o=n(75),s=n(92),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(i,{next:a(+!c,n)}),o(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var i=n(231),r=n(27);e.exports=i(r.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var i=n(4),r=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:i(r.add),has:i(r.has),remove:i(r.delete)}},function(e,t,n){"use strict";t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}},function(e,t,n){function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(185).Buffer.isBuffer},function(e,t,n){"use strict";var i=Object.assign;e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],r=-1,a=e.length;t&&n.push(i("text","\n"));for(;++r0&&n.push(i("text","\n"));return n};var i=n(42)},function(e,t,n){"use strict";var i=n(8).OrderedMap,r={createFromArray:function(e){return i(e.map((function(e){return[e.getKey(),e]})))}};e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var i=n(30),r=n(73)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),o=e.getCurrentContent(),s=a,l=a.getAnchorKey(),c=a.getFocusKey(),u=o.getBlockForKey(l);if(r&&"forward"===n&&l!==c)return o;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(r)if(a.getAnchorOffset()===o.getBlockForKey(l).getLength()){var f=o.getBlockForKey(u.nextSibling);if(!f||0===f.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((s=t(e))===a)return o}return i.removeRange(o,s,n)}},function(e,t,n){"use strict";function i(e,t){return!(!t||!r(e))||(n=e,"[object String]"===Object.prototype.toString.call(n)&&(e=e.replace(/\s/g,"").replace(/\n|\r/,""),/^\{(.*?)\}$/.test(e)?/"(.*?)":(.*?)/g.test(e):!!/^\[(.*?)\]$/.test(e)&&e.replace(/^\[/,"").replace(/\]$/,"").replace(/},{/g,"}\n{").split(/\n/).map((function(e){return i(e)})).reduce((function(e,t){return!!t}))));var n}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}e.exports=i,i.strict=function(e){if(r(e))return!0;try{return JSON.parse(e)&&!0}catch(t){return!1}}},function(e,t,n){"use strict";var i=n(154);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";var i=n(4),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},function(e,t,n){"use strict";var i=n(5),r=n(14),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var i=n(15),r=n(6),a=n(221),o=n(65),s=n(87),l=n(157),c=n(21),u=n(215),f=Object.getOwnPropertyDescriptor;t.f=i?f:function(e,t){if(e=s(e),t=l(t),u)try{return f(e,t)}catch(n){}if(c(e,t))return o(!r(a.f,e,t),e[t])}},function(e,t,n){"use strict";var i=n(218),r=n(160).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";var i=n(24),r=TypeError,a=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){"use strict";var i=n(6),r=n(9),a=n(64);e.exports=function(e,t,n){var o,s;r(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=i(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return r(o),n}},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(121),o=n(14),s=n(21),l=n(36).f,c=n(123),u=n(419),f=n(420),h=n(119),d=n(243),p=!1,g=h("meta"),m=0,_=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},F=e.exports={enable:function(){F.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),r=0,a=i.length;r1?arguments[1]:void 0,f=void 0!==u,h=f?i(u,c>2?arguments[2]:void 0):void 0,d=new e,p=0;return o(l,(function(e){var i=f?h(e,p++):e;n?t(d,r(i)[0],i[1]):t(d,i)})),d}}},function(e,t,n){"use strict";var i=n(9);e.exports=function(e,t,n){return function(){for(var r=new e,a=arguments.length,o=0;o=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[a]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var i=0;function r(){return Math.pow(2,++i)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},function(e,t,n){"use strict";var i=n(304),r=n(305);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=r(e,t).getBlockMap(),c=l.keySeq(),u=c.indexOf(n),f=c.indexOf(o)+1;return i(l.slice(u,f).map((function(e,t){var i=e.getText(),r=e.getCharacterList();return n===o?e.merge({text:i.slice(a,s),characterList:r.slice(a,s)}):t===n?e.merge({text:i.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:i.slice(0,s),characterList:r.slice(0,s)}):e})))}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(310),a=n(8),o=n(10),s=n(741),l=(0,a.Map)(),c=s();var u={getLastCreatedEntityKey:function(){return u.__getLastCreatedEntityKey()},create:function(e,t,n){return u.__create(e,t,n)},add:function(e){return u.__add(e)},get:function(e){return u.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,c=s()},mergeData:function(e,t){return u.__mergeData(e,t)},replaceData:function(e,t){return u.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return c},__create:function(e,t,n){return u.__add(new r({type:e,mutability:t,data:n||{}}))},__add:function(e){return c=s(),l=l.set(c,e),c},__get:function(e){var t=l.get(e);return t||o(!1),t},__mergeData:function(e,t){var n=u.__get(e),r=function(e){for(var t=1;t=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,n(8).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},function(e,t,n){"use strict";var i=n(10),r="LTR",a="RTL",o=null;function s(e){return e===r||e===a}function l(e){return s(e)||i(!1),e===r?"ltr":"rtl"}function c(e){o=e}var u={NEUTRAL:"NEUTRAL",LTR:r,RTL:a,isStrong:s,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return s(e)||i(!1),s(t)||i(!1),e===t?null:l(e)},setGlobalDir:c,initGlobalDir:function(){c(r)},getGlobalDir:function(){return o||this.initGlobalDir(),o||i(!1),o}};e.exports=u},function(e,t,n){"use strict";var i=n(145),r=n(313);e.exports=function(e){for(var t=e;t&&t!==i(e).documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function i(e,t){var n=r.get(e,t);return"auto"===n||"scroll"===n}var r={get:n(764),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(i(e,"overflow")||i(e,"overflowY")||i(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=r},function(e,t,n){"use strict";var i=n(768),r=n(769);e.exports=function(e){var t=i(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=r(e),a=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";e.exports=n(552)},function(e,t,n){"use strict";var i=n(581),r=n(0),a=n(611),o=n(612);function s(e,t){if("#text"===e.nodeName)return e.value;if("#comment"===e.nodeName)return e.value;var n=e.attrs.reduce((function(e,t){var n=a(t.name);return e[n]="style"===n?o(t.value):t.value,e}),{key:t});if(0===e.childNodes.length)return r.createElement(e.tagName,n);if("script"===e.nodeName)return n.dangerouslySetInnerHTML={__html:e.childNodes[0].value},r.createElement("script",n);var i=e.childNodes.map(s);return r.createElement(e.tagName,n,i)}e.exports=function(e){var t=i.parseFragment(e);if(0===t.childNodes.length)return null;var n=t.childNodes.map(s);return 1===n.length?n[0]:n}},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t,n){"use strict";var i=n(50),r=n(5),a=n(155),o="__core-js_shared__",s=e.exports=r[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.36.1",mode:i?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var i=n(5),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},function(e,t,n){"use strict";var i,r,a=n(5),o=n(86),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},function(e,t,n){"use strict";var i=n(216),r=n(158);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},function(e,t,n){"use strict";var i=n(28),r=n(11),a=n(74),o=n(213),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&a(t.prototype,s(e))}},function(e,t,n){"use strict";var i=n(4),r=n(7),a=n(53),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var i=n(117),r=n(119),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,n){"use strict";var i=n(15),r=n(21),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,n){"use strict";var i=n(4),r=n(11),a=n(154),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},function(e,t,n){"use strict";var i=n(21),r=n(365),a=n(122),o=n(36);e.exports=function(e,t,n){for(var s=r(t),l=o.f,c=a.f,u=0;u0&&(!E.multiline||E.multiline&&"\n"!==m(C,E.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,O++),n=new RegExp("^(?:"+A+")",S)),k&&(n=new RegExp("^"+A+"$(?!\\s)",S)),y&&(r=E.lastIndex),s=i(p,D?n:E,I),D?s?(s.input=b(s.input,O),s[0]=b(s[0],O),s.index=E.lastIndex,E.lastIndex+=s[0].length):E.lastIndex=0:y&&s&&(E.lastIndex=E.global?s.index+s[0].length:r),k&&s&&s.length>1&&i(d,s[0],n,(function(){for(l=1;l-1)return i.QUIRKS;var c=null===n?a:r;if(u(t,c))return i.QUIRKS;if(u(t,c=null===n?s:l))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var i="!DOCTYPE ";return e&&(i+=e),null!==t?i+=" PUBLIC "+c(t):null!==n&&(i+=" SYSTEM"),null!==n&&(i+=" "+c(n)),i}},function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,a=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,a),i(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}_(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&_(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var r,a,o;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=u(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=h.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var c=l.length,u=m(l,c);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(t=e.exports=n(265)).Stream=t,t.Readable=t,t.Writable=n(186),t.Duplex=n(79),t.Transform=n(270),t.PassThrough=n(601)},function(e,t,n){var i=n(185),r=i.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),a(r,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";(function(e){var i=n(592),r=n(593),a=n(594);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:F(e,t,n,i,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):F(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,h=0;hr&&(i=r):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(i,r),u=e.slice(t,n),f=0;fr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function D(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function M(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function P(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function N(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,a){return a||N(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,a){return a||N(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function z(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(33))},function(e,t,n){"use strict";(function(t,i,r){var a=n(133);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=F;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;F.WritableState=_;var c=Object.create(n(109));c.inherits=n(95);var u={deprecate:n(599)},f=n(266),h=n(184).Buffer,d=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var p,g=n(267);function m(){}function _(e,t){s=s||n(79),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(a.nextTick(r,i),a.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,t))}(e,n,i,t,r);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),i?l(y,e,n,o,r):y(e,n,o,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function F(e){if(s=s||n(79),!p.call(F,this)&&!(this instanceof s))return new F(e);this._writableState=new _(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,i,r,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function y(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,r=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,b(e,t,!0,t.length,r,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(F,f),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===F&&(e&&e._writableState instanceof _)}})):p=function(e){return e instanceof this},F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},F.prototype.write=function(e,t,n){var i,r=this._writableState,o=!1,s=!r.objectMode&&(i=e,h.isBuffer(i)||i instanceof d);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=m),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(i,o),r=!1),r}(this,r,e,n))&&(r.pendingcb++,o=function(e,t,n,i,r,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),F.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(F.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),F.prototype.destroy=g.destroy,F.prototype._undestroy=g.undestroy,F.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(93),n(598).setImmediate,n(33))},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},function(e,t,n){var i=n(624),r=n(625),a=n(626);e.exports=function(e){return i(e)||r(e)||a()}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},function(e,t,n){"use strict";var i=n(70);e.exports=function(e,t){return e.length?(i(e,e.length,0,t),e):t}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var i,r=[],a=-1;++a-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(n){return 40===n?e.attempt(p,t,r?t:c)(n):91===n?e.attempt(g,t,r?e.attempt(m,t,c):c)(n):r?t(n):c(n)}function c(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){var n,i,o,c,u,f,h,d=e.length,p=0;for(;d--;)if(c=e[d][1],u){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[d][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(f){if("enter"===e[d][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(u=d,"labelLink"!==c.type)){p=2;break}}else"labelEnd"===c.type&&(f=d);return n={type:"labelLink"===e[u][1].type?"link":"image",start:l(e[u][1].start),end:l(e[e.length-1][1].end)},i={type:"label",start:l(e[u][1].start),end:l(e[f][1].end)},o={type:"labelText",start:l(e[u+p+2][1].end),end:l(e[f-2][1].start)},h=r(h=[["enter",n,t],["enter",i,t]],e.slice(u+1,u+p+3)),h=r(h,[["enter",o,t]]),h=r(h,s(t.parser.constructs.insideSpan.null,e.slice(u+p+4,f-3),t)),h=r(h,[["exit",o,t],e[f-2],e[f-1],["exit",i,t]]),h=r(h,e.slice(f+1)),h=r(h,[["exit",n,t]]),a(e,u,e.length,h),e},resolveAll:function(e){var t,n=-1;for(;++n1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return c.__create(e,t,n),this},s.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},s.addEntity=function(e){return c.__add(e),this},s.getEntity=function(e){return c.__get(e)},s.getAllEntities=function(){return c.__getAll()},s.loadWithEntities=function(e){return c.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=a.createFromArray(n),o=i.isEmpty()?new u:u.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||c,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new k({key:f(),text:e,type:"unstyled",characterList:m(F(o.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(i({},e,{blockMap:y(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new k(i({},e,{data:b(e.data),characterList:null!=t?m((Array.isArray(t)?t:h(t)).map((function(e){return o.fromJS(e)}))):void 0}))},r}(v);e.exports=E},function(e,t,n){"use strict";var i=n(143),r=n(10),a="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",o="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",s=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\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\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\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\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+a+o+"]"),l=new RegExp("["+a+o+"]");function c(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?i.NEUTRAL:l.exec(t)?i.RTL:i.LTR}function f(e,t){if(t=t||i.NEUTRAL,!e.length)return t;var n=u(e);return n===i.NEUTRAL?t:n}function h(e,t){return t||(t=i.getGlobalDir()),i.isStrong(t)||r(!1),f(e,t)}var d={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:f,getDirection:h,isDirectionLTR:function(e,t){return h(e,t)===i.LTR},isDirectionRTL:function(e,t){return h(e,t)===i.RTL}};e.exports=d},function(e,t,n){"use strict";var i=n(0),r=n(81),a=(0,n(8).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:r("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:r("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:r("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},function(e,t,n){"use strict";var i=n(321).notEmptyKey;function r(e,t){return i(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:r(e.getEntityMap(),n):null}var o=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(o);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var i=n(762);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!i(t)&&(i(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function i(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";n(203);e.exports=function(e,t){var n=e.getSelection(),i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var i=n(330);e.exports=i},function(e,t,n){"use strict";var i=n(32),r=n(789),a=i.isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)},isSoftNewlineEvent:r};e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(549)},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,h=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,m=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,F=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,y=/\s{2,}/g,v=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,S="-webkit-",A="-moz-",O="-ms-",I=59,R=125,M=123,P=40,N=41,j=91,B=93,L=10,q=13,H=9,z=64,U=32,K=38,W=45,G=95,V=42,Y=44,X=58,$=39,J=34,Q=47,Z=62,ee=43,te=126,ne=0,ie=12,re=11,ae=107,oe=109,se=115,le=112,ce=111,ue=105,fe=99,he=100,de=112,pe=1,ge=1,me=0,_e=1,Fe=1,be=1,ye=0,ve=0,ke=0,Ee=[],we=[],Ce=0,xe=null,Te=-2,De=-1,Se=0,Ae=1,Oe=2,Ie=3,Re=0,Me=1,Pe="",Ne="",je="";function Be(e,t,r,a,o){for(var s,l,u=0,f=0,h=0,d=0,_=0,F=0,b=0,y=0,k=0,w=0,C=0,x=0,T=0,D=0,G=0,ye=0,we=0,xe=0,Te=0,De=r.length,qe=De-1,Ge="",Ve="",Ye="",Xe="",$e="",Je="";G0&&(Ve=Ve.replace(i,"")),Ve.trim().length>0)){switch(b){case U:case H:case I:case q:case L:break;default:Ve+=r.charAt(G)}b=I}if(1===we)switch(b){case M:case R:case I:case J:case $:case P:case N:case Y:we=0;case H:case q:case L:case U:break;default:for(we=0,Te=G,_=b,G--,b=I;Te0&&(++G,b=_);case M:Te=De}}switch(b){case M:for(_=(Ve=Ve.trim()).charCodeAt(0),C=1,Te=++G;G0&&(Ve=Ve.replace(i,"")),F=Ve.charCodeAt(1)){case he:case oe:case se:case W:s=t;break;default:s=Ee}if(Te=(Ye=Be(t,s,Ye,F,o+1)).length,ke>0&&0===Te&&(Te=Ve.length),Ce>0&&(s=Le(Ee,Ve,xe),l=Ke(Ie,Ye,s,t,ge,pe,Te,F,o,a),Ve=s.join(""),void 0!==l&&0===(Te=(Ye=l.trim()).length)&&(F=0,Ye="")),Te>0)switch(F){case se:Ve=Ve.replace(E,Ue);case he:case oe:case W:Ye=Ve+"{"+Ye+"}";break;case ae:Ye=(Ve=Ve.replace(p,"$1 $2"+(Me>0?Pe:"")))+"{"+Ye+"}",Ye=1===Fe||2===Fe&&ze("@"+Ye,3)?"@"+S+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ve+Ye,a===de&&(Xe+=Ye,Ye="")}else Ye=""}else Ye=Be(t,Le(t,Ve,xe),Ye,a,o+1);$e+=Ye,x=0,we=0,D=0,ye=0,xe=0,T=0,Ve="",Ye="",b=r.charCodeAt(++G);break;case R:case I:if((Te=(Ve=(ye>0?Ve.replace(i,""):Ve).trim()).length)>1)switch(0===D&&((_=Ve.charCodeAt(0))===W||_>96&&_<123)&&(Te=(Ve=Ve.replace(" ",":")).length),Ce>0&&void 0!==(l=Ke(Ae,Ve,t,e,ge,pe,Xe.length,a,o,a))&&0===(Te=(Ve=l.trim()).length)&&(Ve="\0\0"),_=Ve.charCodeAt(0),F=Ve.charCodeAt(1),_){case ne:break;case z:if(F===ue||F===fe){Je+=Ve+r.charAt(G);break}default:if(Ve.charCodeAt(Te-1)===X)break;Xe+=He(Ve,_,F,Ve.charCodeAt(2))}x=0,we=0,D=0,ye=0,xe=0,Ve="",b=r.charCodeAt(++G)}}switch(b){case q:case L:if(f+d+h+u+ve===0)switch(w){case N:case $:case J:case z:case te:case Z:case V:case ee:case Q:case W:case X:case Y:case I:case M:case R:break;default:D>0&&(we=1)}f===Q?f=0:_e+x===0&&a!==ae&&Ve.length>0&&(ye=1,Ve+="\0"),Ce*Re>0&&Ke(Se,Ve,t,e,ge,pe,Xe.length,a,o,a),pe=1,ge++;break;case I:case R:if(f+d+h+u===0){pe++;break}default:switch(pe++,Ge=r.charAt(G),b){case H:case U:if(d+u+f===0)switch(y){case Y:case X:case H:case U:Ge="";break;default:b!==U&&(Ge=" ")}break;case ne:Ge="\\0";break;case ie:Ge="\\f";break;case re:Ge="\\v";break;case K:d+f+u===0&&_e>0&&(xe=1,ye=1,Ge="\f"+Ge);break;case 108:if(d+f+u+me===0&&D>0)switch(G-D){case 2:y===le&&r.charCodeAt(G-3)===X&&(me=y);case 8:k===ce&&(me=k)}break;case X:d+f+u===0&&(D=G);break;case Y:f+h+d+u===0&&(ye=1,Ge+="\r");break;case J:case $:0===f&&(d=d===b?0:0===d?b:d);break;case j:d+f+h===0&&u++;break;case B:d+f+h===0&&u--;break;case N:d+f+u===0&&h--;break;case P:d+f+u===0&&(0===x&&(2*y+3*k===533||(C=0,x=1)),h++);break;case z:f+h+d+u+D+T===0&&(T=1);break;case V:case Q:if(d+u+h>0)break;switch(f){case 0:switch(2*b+3*r.charCodeAt(G+1)){case 235:f=Q;break;case 220:Te=G,f=V}break;case V:b===Q&&y===V&&Te+2!==G&&(33===r.charCodeAt(Te+2)&&(Xe+=r.substring(Te,G+1)),Ge="",f=0)}}if(0===f){if(_e+d+u+T===0&&a!==ae&&b!==I)switch(b){case Y:case te:case Z:case ee:case N:case P:if(0===x){switch(y){case H:case U:case L:case q:Ge+="\0";break;default:Ge="\0"+Ge+(b===Y?"":"\0")}ye=1}else switch(b){case P:D+7===G&&108===y&&(D=0),x=++C;break;case N:0==(x=--C)&&(ye=1,Ge+="\0")}break;case H:case U:switch(y){case ne:case M:case R:case I:case Y:case ie:case H:case U:case L:case q:break;default:0===x&&(ye=1,Ge+="\0")}}Ve+=Ge,b!==U&&b!==H&&(w=b)}}k=y,y=b,G++}if(Te=Xe.length,ke>0&&0===Te&&0===$e.length&&0===t[0].length==0&&(a!==oe||1===t.length&&(_e>0?Ne:je)===t[0])&&(Te=t.join(",").length+2),Te>0){if(s=0===_e&&a!==ae?function(e){for(var t,n,r=0,a=e.length,o=Array(a);r1)){if(h=l.charCodeAt(l.length-1),d=n.charCodeAt(0),t="",0!==u)switch(h){case V:case te:case Z:case ee:case U:case P:break;default:t=" "}switch(d){case K:n=t+Ne;case te:case Z:case ee:case U:case N:case P:break;case j:n=t+n+Ne;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,f-1);break}default:(u<1||s[u-1].length<1)&&(n=t+Ne+n)}break;case Y:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(v,"$1"+Ne+"$2"):t+n+Ne}l+=n}o[r]=l.replace(i,"").trim()}return o}(t):t,Ce>0&&void 0!==(l=Ke(Oe,Xe,s,e,ge,pe,Te,a,o,a))&&0===(Xe=l).length)return Je+Xe+$e;if(Xe=s.join(",")+"{"+Xe+"}",Fe*me!=0){switch(2!==Fe||ze(Xe,2)||(me=0),me){case ce:Xe=Xe.replace(m,":"+A+"$1")+Xe;break;case le:Xe=Xe.replace(g,"::"+S+"input-$1")+Xe.replace(g,"::"+A+"$1")+Xe.replace(g,":"+O+"input-$1")+Xe}me=0}}return Je+Xe+$e}function Le(e,t,n){var i=t.trim().split(u),r=i,a=i.length,o=e.length;switch(o){case 0:case 1:for(var s=0,l=0===o?"":e[0]+" ";s0&&_e>0)return r.replace(h,"$1").replace(f,"$1"+je);default:if(n*_e>0&&r.indexOf("\f")>0)return r.replace(f,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function He(e,t,n,i){var c,u=0,f=e+";",h=2*t+3*n+4*i;if(944===h)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Me){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:var a=r.split((r="",s)),o=0;for(n=0,t=a.length;oz&&f<90||f>96&&f<123||f===G||f===W&&c.charCodeAt(1)!==W)&&isNaN(parseFloat(c))+(-1!==c.indexOf("("))===1)switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Pe}u[n++]=c}r+=(0===o?"":",")+u.join(" ")}}return r=i+r+";",1===Fe||2===Fe&&ze(r,1)?S+r+r:r}(f);if(0===Fe||2===Fe&&!ze(f,1))return f;switch(h){case 1015:return 97===f.charCodeAt(10)?S+f+f:f;case 951:return 116===f.charCodeAt(3)?S+f+f:f;case 963:return 110===f.charCodeAt(5)?S+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return S+f+f;case 978:return S+f+A+f+f;case 1019:case 983:return S+f+A+f+O+f+f;case 883:return f.charCodeAt(8)===W?S+f+f:f.indexOf("image-set(",11)>0?f.replace(D,"$1"+S+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return S+"box-"+f.replace("-grow","")+S+f+O+f.replace("grow","positive")+f;case 115:return S+f+O+f.replace("shrink","negative")+f;case 98:return S+f+O+f.replace("basis","preferred-size")+f}return S+f+O+f+f;case 964:return S+f+O+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),S+"box-pack"+c+S+f+O+"flex-pack"+c+f;case 1005:return a.test(f)?f.replace(r,":"+S)+f.replace(r,":"+A)+f:f;case 1e3:switch(u=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=f.replace(k,"tb");break;case 232:c=f.replace(k,"tb-rl");break;case 220:c=f.replace(k,"lr");break;default:return f}return S+f+O+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(u=(f=e).length-10,h=(c=(33===f.charCodeAt(u)?f.substring(0,u):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,S+c)+";"+f;break;case 207:case 102:f=f.replace(c,S+(h>102?"inline-":"")+"box")+";"+f.replace(c,S+c)+";"+f.replace(c,O+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),S+f+S+"box-"+c+O+"flex-"+c+f;case 115:return S+f+O+"flex-item-"+f.replace(C,"")+f;default:return S+f+O+"flex-line-pack"+f.replace("align-content","").replace(C,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?He(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):f.replace(c,S+c)+f.replace(c,A+c.replace("fill-",""))+f;break;case 962:if(f=S+f+(102===f.charCodeAt(5)?O+f:"")+f,n+i===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(o,"$1"+S+"$2")+f}return f}function ze(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return xe(2!==t?i:i.replace(x,"$1"),r,t)}function Ue(e,t){var n=He(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function Ke(e,t,n,i,r,a,o,s,l,c){for(var u,f=0,h=t;f0&&(Pe=r.replace(d,a===j?"":"-")),a=1,1===_e?je=r:Ne=r;var o,s=[je];Ce>0&&void 0!==(o=Ke(De,n,s,s,ge,pe,0,0,0,0))&&"string"==typeof o&&(n=o);var l=Be(Ee,s,n,0,0);return Ce>0&&void 0!==(o=Ke(Te,l,s,s,ge,pe,l.length,0,0,0))&&"string"!=typeof(l=o)&&(a=0),Pe="",je="",Ne="",me=0,ge=1,pe=1,ye*a==0?l:l.replace(i,"").replace(_,"").replace(F,"$1").replace(b,"$1").replace(y," ")}return Ve.use=function e(t){switch(t){case void 0:case null:Ce=we.length=0;break;default:if("function"==typeof t)we[Ce++]=t;else if("object"==typeof t)for(var n=0,i=t.length;nc;)r(i,n=t[c++])&&(~o(u,n)||l(u,n));return u}},function(e,t,n){"use strict";var i=n(54),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},function(e,t,n){"use strict";var i=n(28);e.exports=i("document","documentElement")},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){"use strict";var i=n(4),r=n(7),a=n(11),o=n(21),s=n(15),l=n(162).CONFIGURABLE,c=n(163),u=n(25),f=u.enforce,h=u.get,d=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),_=i([].join),F=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===g(d(t),0,7)&&(t="["+m(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),F&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=f(e);return o(i,"source")||(i.source=_(b,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return a(this)&&h(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var i=n(5),r=n(11),a=i.WeakMap;e.exports=r(a)&&/native code/.test(String(a))},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var i=n(9),r=n(226),a=n(35),o=n(12)("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||a(n=i(s)[o])?t:r(n)}},function(e,t,n){"use strict";var i=n(100),r=n(99),a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not a constructor")}},function(e,t,n){"use strict";var i=n(102).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){"use strict";var i=n(4),r=n(34),a=Math.floor,o=i("".charAt),s=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,f,h){var d=n+e.length,p=i.length,g=u;return void 0!==f&&(f=r(f),g=c),s(h,g,(function(r,s){var c;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":c=f[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>p){var h=a(u/10);return 0===h?r:h<=p?void 0===i[h-1]?o(s,1):i[h-1]+o(s,1):r}c=i[u-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var i=n(6),r=n(9),a=n(11),o=n(53),s=n(168),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var c=i(n,e,t);return null!==c&&r(c),c}if("RegExp"===o(e))return i(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var i=n(4),r=n(24);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},function(e,t,n){"use strict";var i=n(54),r=n(88),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw new a("Wrong length or index");return n}},function(e,t,n){"use strict";var i=n(380);e.exports=Math.fround||function(e){return i(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";var i=n(34),r=n(219),a=n(45);e.exports=function(e){for(var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var i=n(384),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw new r("Wrong offset");return n}},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(226),o=n(34),s=n(45),l=n(103),c=n(104),u=n(173),f=n(386),h=n(66).aTypedArrayConstructor,d=n(237);e.exports=function(e){var t,n,p,g,m,_,F,b,y=a(this),v=o(e),k=arguments.length,E=k>1?arguments[1]:void 0,w=void 0!==E,C=c(v);if(C&&!u(C))for(b=(F=l(v,C)).next,v=[];!(_=r(b,F)).done;)v.push(_.value);for(w&&k>2&&(E=i(E,arguments[2])),n=s(v),p=new(h(y))(n),g=f(p),t=0;n>t;t++)m=w?E(v[t],t):v[t],p[t]=g?d(m):+m;return p}},function(e,t,n){"use strict";var i=n(216),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw new r("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var i=n(20),r=n(4),a=n(159),o=n(34),s=n(45),l=n(387),c=r([].push),u=function(e){var t=1===e,n=2===e,r=3===e,u=4===e,f=6===e,h=7===e,d=5===e||f;return function(p,g,m,_){for(var F,b,y=o(p),v=a(y),k=s(v),E=i(g,m),w=0,C=_||l,x=t?C(p,k):n||h?C(p,0):void 0;k>w;w++)if((d||w in v)&&(b=E(F=v[w],w,y),e))if(t)x[w]=b;else if(b)switch(e){case 3:return!0;case 5:return F;case 6:return w;case 2:c(x,F)}else switch(e){case 4:return!1;case 7:c(x,F)}return f?-1:r||u?u:x}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t,n){"use strict";var i=n(91),r=Math.floor;e.exports=function e(t,n){var a=t.length;if(a<8)for(var o,s,l=1;l0;)t[s]=t[--s];s!==l++&&(t[s]=o)}else for(var c=r(a/2),u=e(i(t,0,c),n),f=e(i(t,c),n),h=u.length,d=f.length,p=0,g=0;p=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var g=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!u&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(m){}},function(e,t,n){"use strict";var i,r,a,o,s=n(5),l=n(101),c=n(20),u=n(11),f=n(21),h=n(7),d=n(220),p=n(91),g=n(120),m=n(130),_=n(533),F=n(249),b=s.setImmediate,y=s.clearImmediate,v=s.process,k=s.Dispatch,E=s.Function,w=s.MessageChannel,C=s.String,x=0,T={},D="onreadystatechange";h((function(){i=s.location}));var S=function(e){if(f(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){S(e)}},O=function(e){S(e.data)},I=function(e){s.postMessage(C(e),i.protocol+"//"+i.host)};b&&y||(b=function(e){m(arguments.length,1);var t=u(e)?e:E(e),n=p(arguments,1);return T[++x]=function(){l(t,void 0,n)},r(x),x},y=function(e){delete T[e]},F?r=function(e){v.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:w&&!_?(o=(a=new w).port2,a.port1.onmessage=O,r=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!h(I)?(r=I,s.addEventListener("message",O,!1)):r=D in g("script")?function(e){d.appendChild(g("script"))[D]=function(){d.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:y}},function(e,t,n){"use strict";var i=n(7),r=n(12),a=n(15),o=n(50),s=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),n.delete("a",2),n.delete("b",void 0),o&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(o||!a)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";n(253);var i=n(3),r=n(5),a=n(545),o=n(6),s=n(4),l=n(15),c=n(255),u=n(39),f=n(47),h=n(90),d=n(75),p=n(105),g=n(25),m=n(68),_=n(11),F=n(21),b=n(20),y=n(57),v=n(9),k=n(14),E=n(40),w=n(52),C=n(65),x=n(103),T=n(104),D=n(76),S=n(130),A=n(12),O=n(239),I=A("iterator"),R="URLSearchParams",M=R+"Iterator",P=g.set,N=g.getterFor(R),j=g.getterFor(M),B=a("fetch"),L=a("Request"),q=a("Headers"),H=L&&L.prototype,z=q&&q.prototype,U=r.RegExp,K=r.TypeError,W=r.decodeURIComponent,G=r.encodeURIComponent,V=s("".charAt),Y=s([].join),X=s([].push),$=s("".replace),J=s([].shift),Q=s([].splice),Z=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),ie=function(e){return ne[e-1]||(ne[e-1]=U("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return W(e)}catch(t){return e}},ae=function(e){var t=$(e,te," "),n=4;try{return W(t)}catch(i){for(;n;)t=$(t,ie(n--),re);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ce=function(e){return $(G(e),oe,le)},ue=p((function(e,t){P(this,{type:M,target:N(e).entries,index:0,kind:t})}),R,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,D(void 0,!0);var i=t[n];switch(e.kind){case"keys":return D(i.key,!1);case"values":return D(i.value,!1)}return D([i.key,i.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:R,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,c=this.entries,u=T(e);if(u)for(n=(t=x(e,u)).next;!(i=o(n,t)).done;){if(a=(r=x(v(i.value))).next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw new K("Expected sequence with length 2");X(c,{key:E(s.value),value:E(l.value)})}else for(var f in e)F(e,f)&&X(c,{key:f,value:E(e[f])})},parseQuery:function(e){if(e)for(var t,n,i=this.entries,r=Z(e,"&"),a=0;a0?arguments[0]:void 0));l||(this.size=e.entries.length)},de=he.prototype;if(h(de,{append:function(e,t){var n=N(this);S(arguments.length,2),X(n.entries,{key:E(e),value:E(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=N(this),n=S(arguments.length,1),i=t.entries,r=E(e),a=n<2?void 0:arguments[1],o=void 0===a?a:E(a),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=N(this).entries,i=b(e,arguments.length>1?arguments[1]:void 0),r=0;r1?me(arguments[1]):{})}}),_(L)){var _e=function(e){return m(this,H),new L(e,arguments.length>1?me(arguments[1]):{})};H.constructor=_e,_e.prototype=H,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:_e})}}e.exports={URLSearchParams:he,getState:N}},function(e,t,n){e.exports=n.p+"static/media/ico_logo_dk.a8aea59e.svg"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heightWidthRadiusDefaults=t.heightWidthDefaults=t.sizeMarginDefaults=t.sizeDefaults=void 0;var i={loading:!0,color:"#000000",css:""};function r(e){return Object.assign({},i,{size:e})}function a(e,t){return Object.assign({},i,{height:e,width:t})}t.sizeDefaults=r,t.sizeMarginDefaults=function(e){return Object.assign({},r(e),{margin:2})},t.heightWidthDefaults=a,t.heightWidthRadiusDefaults=function(e,t,n){return void 0===n&&(n=2),Object.assign({},a(e,t),{radius:n,margin:2})}},function(e,t,n){"use strict";var i=n(94),r=n(584),a=n(585),o=n(586),s=n(179),l=n(180),c=n(181),u=n(262),f=n(108),h=n(55),d=h.TAG_NAMES,p=h.NAMESPACES,g=h.ATTRS,m={locationInfo:!1,treeAdapter:s},_="hidden",F=8,b=3,y="INITIAL_MODE",v="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",E="IN_HEAD_MODE",w="AFTER_HEAD_MODE",C="IN_BODY_MODE",x="TEXT_MODE",T="IN_TABLE_MODE",D="IN_TABLE_TEXT_MODE",S="IN_CAPTION_MODE",A="IN_COLUMN_GROUP_MODE",O="IN_TABLE_BODY_MODE",I="IN_ROW_MODE",R="IN_CELL_MODE",M="IN_SELECT_MODE",P="IN_SELECT_IN_TABLE_MODE",N="IN_TEMPLATE_MODE",j="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",L="AFTER_FRAMESET_MODE",q="AFTER_AFTER_BODY_MODE",H="AFTER_AFTER_FRAMESET_MODE",z=Object.create(null);z[d.TR]=I,z[d.TBODY]=z[d.THEAD]=z[d.TFOOT]=O,z[d.CAPTION]=S,z[d.COLGROUP]=A,z[d.TABLE]=T,z[d.BODY]=C,z[d.FRAMESET]=B;var U=Object.create(null);U[d.CAPTION]=U[d.COLGROUP]=U[d.TBODY]=U[d.TFOOT]=U[d.THEAD]=T,U[d.COL]=A,U[d.TR]=O,U[d.TD]=U[d.TH]=I;var K=Object.create(null);K[y]=Object.create(null),K[y][i.CHARACTER_TOKEN]=K[y][i.NULL_CHARACTER_TOKEN]=re,K[y][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[y][i.COMMENT_TOKEN]=ee,K[y][i.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?h.DOCUMENT_MODE.QUIRKS:c.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v},K[y][i.START_TAG_TOKEN]=K[y][i.END_TAG_TOKEN]=K[y][i.EOF_TOKEN]=re,K[v]=Object.create(null),K[v][i.CHARACTER_TOKEN]=K[v][i.NULL_CHARACTER_TOKEN]=ae,K[v][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[v][i.COMMENT_TOKEN]=ee,K[v][i.DOCTYPE_TOKEN]=Z,K[v][i.START_TAG_TOKEN]=function(e,t){t.tagName===d.HTML?(e._insertElement(t,p.HTML),e.insertionMode=k):ae(e,t)},K[v][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==d.HTML&&n!==d.HEAD&&n!==d.BODY&&n!==d.BR||ae(e,t)},K[v][i.EOF_TOKEN]=ae,K[k]=Object.create(null),K[k][i.CHARACTER_TOKEN]=K[k][i.NULL_CHARACTER_TOKEN]=oe,K[k][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[k][i.COMMENT_TOKEN]=ee,K[k][i.DOCTYPE_TOKEN]=Z,K[k][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===d.HTML?Ee(e,t):n===d.HEAD?(e._insertElement(t,p.HTML),e.headElement=e.openElements.current,e.insertionMode=E):oe(e,t)},K[k][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==d.HEAD&&n!==d.BODY&&n!==d.HTML&&n!==d.BR||oe(e,t)},K[k][i.EOF_TOKEN]=oe,K[E]=Object.create(null),K[E][i.CHARACTER_TOKEN]=K[E][i.NULL_CHARACTER_TOKEN]=ce,K[E][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[E][i.COMMENT_TOKEN]=ee,K[E][i.DOCTYPE_TOKEN]=Z,K[E][i.START_TAG_TOKEN]=se,K[E][i.END_TAG_TOKEN]=le,K[E][i.EOF_TOKEN]=ce,K[w]=Object.create(null),K[w][i.CHARACTER_TOKEN]=K[w][i.NULL_CHARACTER_TOKEN]=ue,K[w][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[w][i.COMMENT_TOKEN]=ee,K[w][i.DOCTYPE_TOKEN]=Z,K[w][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===d.HTML?Ee(e,t):n===d.BODY?(e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=C):n===d.FRAMESET?(e._insertElement(t,p.HTML),e.insertionMode=B):n===d.BASE||n===d.BASEFONT||n===d.BGSOUND||n===d.LINK||n===d.META||n===d.NOFRAMES||n===d.SCRIPT||n===d.STYLE||n===d.TEMPLATE||n===d.TITLE?(e.openElements.push(e.headElement),se(e,t),e.openElements.remove(e.headElement)):n!==d.HEAD&&ue(e,t)},K[w][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===d.BODY||n===d.HTML||n===d.BR?ue(e,t):n===d.TEMPLATE&&le(e,t)},K[w][i.EOF_TOKEN]=ue,K[C]=Object.create(null),K[C][i.CHARACTER_TOKEN]=he,K[C][i.NULL_CHARACTER_TOKEN]=Z,K[C][i.WHITESPACE_CHARACTER_TOKEN]=fe,K[C][i.COMMENT_TOKEN]=ee,K[C][i.DOCTYPE_TOKEN]=Z,K[C][i.START_TAG_TOKEN]=Ee,K[C][i.END_TAG_TOKEN]=Te,K[C][i.EOF_TOKEN]=De,K[x]=Object.create(null),K[x][i.CHARACTER_TOKEN]=K[x][i.NULL_CHARACTER_TOKEN]=K[x][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[x][i.COMMENT_TOKEN]=K[x][i.DOCTYPE_TOKEN]=K[x][i.START_TAG_TOKEN]=Z,K[x][i.END_TAG_TOKEN]=function(e,t){t.tagName===d.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},K[x][i.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)},K[T]=Object.create(null),K[T][i.CHARACTER_TOKEN]=K[T][i.NULL_CHARACTER_TOKEN]=K[T][i.WHITESPACE_CHARACTER_TOKEN]=Se,K[T][i.COMMENT_TOKEN]=ee,K[T][i.DOCTYPE_TOKEN]=Z,K[T][i.START_TAG_TOKEN]=Ae,K[T][i.END_TAG_TOKEN]=Oe,K[T][i.EOF_TOKEN]=De,K[D]=Object.create(null),K[D][i.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},K[D][i.NULL_CHARACTER_TOKEN]=Z,K[D][i.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t)},K[D][i.COMMENT_TOKEN]=K[D][i.DOCTYPE_TOKEN]=K[D][i.START_TAG_TOKEN]=K[D][i.END_TAG_TOKEN]=K[D][i.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n=0;i--){var r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){for(var i=t,r=e.openElements.getCommonAncestor(t),a=0,o=r;o!==n;a++,o=r){r=e.openElements.getCommonAncestor(o);var s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=b;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=X(e,s),i===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function X(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function $(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var i=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);i===d.TEMPLATE&&r===p.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J(e,t,n){var i=e.treeAdapter.getNamespaceURI(n.element),r=n.token,a=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Q(e,t){for(var n,i=0;i0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function ce(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function ue(e,t){e._insertFakeElement(d.BODY),e.insertionMode=C,e._processToken(t)}function fe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function de(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function pe(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),e.framesetOk=!1}function Fe(e,t){e._appendElement(t,p.HTML)}function be(e,t){e._switchToTextParsing(t,i.MODE.RAWTEXT)}function ye(e,t){e.openElements.currentTagName===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function ve(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===d.I||n===d.S||n===d.B||n===d.U?ge(e,t):n===d.P?de(e,t):n===d.A?function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(d.A);n&&(Q(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===d.DL||n===d.OL||n===d.UL?de(e,t):n===d.H1||n===d.H2||n===d.H3||n===d.H4||n===d.H5||n===d.H6?function(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==d.H1&&n!==d.H2&&n!==d.H3&&n!==d.H4&&n!==d.H5&&n!==d.H6||e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n===d.LI||n===d.DD||n===d.DT?function(e,t){e.framesetOk=!1;for(var n=t.tagName,i=e.openElements.stackTop;i>=0;i--){var r=e.openElements.items[i],a=e.treeAdapter.getTagName(r),o=null;if(n===d.LI&&a===d.LI?o=d.LI:n!==d.DD&&n!==d.DT||a!==d.DD&&a!==d.DT||(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML)}(e,t):n===d.EM||n===d.TT?ge(e,t):n===d.BR?_e(e,t):n===d.HR?function(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagName===d.MENUITEM&&e.openElements.pop(),e._appendElement(t,p.HTML),e.framesetOk=!1}(e,t):n===d.RB?ve(e,t):n===d.RT||n===d.RP?function(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,p.HTML)}(e,t):n!==d.TH&&n!==d.TD&&n!==d.TR&&ke(e,t);break;case 3:n===d.DIV||n===d.DIR||n===d.NAV?de(e,t):n===d.PRE?pe(e,t):n===d.BIG?ge(e,t):n===d.IMG||n===d.WBR?_e(e,t):n===d.XMP?function(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===d.SVG?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenSVGAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.SVG):e._insertElement(t,p.SVG)}(e,t):n===d.RTC?ve(e,t):n!==d.COL&&ke(e,t);break;case 4:n===d.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===d.BASE||n===d.LINK||n===d.META?se(e,t):n===d.BODY?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===d.MAIN?de(e,t):n===d.FORM?function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===d.CODE||n===d.FONT?ge(e,t):n===d.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Q(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===d.AREA?_e(e,t):n===d.MATH?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenMathMLAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.MATHML):e._insertElement(t,p.MATHML)}(e,t):n===d.MENU?function(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagName===d.MENUITEM&&e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n!==d.HEAD&&ke(e,t);break;case 5:n===d.STYLE||n===d.TITLE?se(e,t):n===d.ASIDE?de(e,t):n===d.SMALL?ge(e,t):n===d.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==h.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=T}(e,t):n===d.EMBED?_e(e,t):n===d.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML);var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===_||(e.framesetOk=!1)}(e,t):n===d.PARAM||n===d.TRACK?Fe(e,t):n===d.IMAGE?function(e,t){t.tagName=d.IMG,_e(e,t)}(e,t):n!==d.FRAME&&n!==d.TBODY&&n!==d.TFOOT&&n!==d.THEAD&&ke(e,t);break;case 6:n===d.SCRIPT?se(e,t):n===d.CENTER||n===d.FIGURE||n===d.FOOTER||n===d.HEADER||n===d.HGROUP?de(e,t):n===d.BUTTON?function(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1}(e,t):n===d.STRIKE||n===d.STRONG?ge(e,t):n===d.APPLET||n===d.OBJECT?me(e,t):n===d.KEYGEN?_e(e,t):n===d.SOURCE?Fe(e,t):n===d.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===d.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode===T||e.insertionMode===S||e.insertionMode===O||e.insertionMode===I||e.insertionMode===R?e.insertionMode=P:e.insertionMode=M}(e,t):n===d.OPTION?ye(e,t):ke(e,t);break;case 7:n===d.BGSOUND?se(e,t):n===d.DETAILS||n===d.ADDRESS||n===d.ARTICLE||n===d.SECTION||n===d.SUMMARY?de(e,t):n===d.LISTING?pe(e,t):n===d.MARQUEE?me(e,t):n===d.NOEMBED?be(e,t):n!==d.CAPTION&&ke(e,t);break;case 8:n===d.BASEFONT?se(e,t):n===d.MENUITEM?function(e,t){e.openElements.currentTagName===d.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}(e,t):n===d.FRAMESET?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.HTML),e.insertionMode=B)}(e,t):n===d.FIELDSET?de(e,t):n===d.TEXTAREA?function(e,t){e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.tokenizer.state=i.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=x}(e,t):n===d.TEMPLATE?se(e,t):n===d.NOSCRIPT?be(e,t):n===d.OPTGROUP?ye(e,t):n!==d.COLGROUP&&ke(e,t);break;case 9:n===d.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.tokenizer.state=i.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===d.BLOCKQUOTE||n===d.FIGCAPTION?de(e,t):ke(e,t);break;default:ke(e,t)}}function we(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ce(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function xe(e,t){for(var n=t.tagName,i=e.openElements.stackTop;i>0;i--){var r=e.openElements.items[i];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function Te(e,t){var n=t.tagName;switch(n.length){case 1:n===d.A||n===d.B||n===d.I||n===d.S||n===d.U?Q(e,t):n===d.P?function(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(d.P),e._closePElement()}(e):xe(e,t);break;case 2:n===d.DL||n===d.UL||n===d.OL?we(e,t):n===d.LI?function(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}(e):n===d.DD||n===d.DT?function(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===d.H1||n===d.H2||n===d.H3||n===d.H4||n===d.H5||n===d.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===d.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(d.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===d.EM||n===d.TT?Q(e,t):xe(e,t);break;case 3:n===d.BIG?Q(e,t):n===d.DIR||n===d.DIV||n===d.NAV?we(e,t):xe(e,t);break;case 4:n===d.BODY?function(e){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=j)}(e):n===d.HTML?function(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=j,e._processToken(t))}(e,t):n===d.FORM?function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):e.openElements.remove(n))}(e):n===d.CODE||n===d.FONT||n===d.NOBR?Q(e,t):n===d.MAIN||n===d.MENU?we(e,t):xe(e,t);break;case 5:n===d.ASIDE?we(e,t):n===d.SMALL?Q(e,t):xe(e,t);break;case 6:n===d.CENTER||n===d.FIGURE||n===d.FOOTER||n===d.HEADER||n===d.HGROUP?we(e,t):n===d.APPLET||n===d.OBJECT?Ce(e,t):n===d.STRIKE||n===d.STRONG?Q(e,t):xe(e,t);break;case 7:n===d.ADDRESS||n===d.ARTICLE||n===d.DETAILS||n===d.SECTION||n===d.SUMMARY?we(e,t):n===d.MARQUEE?Ce(e,t):xe(e,t);break;case 8:n===d.FIELDSET?we(e,t):n===d.TEMPLATE?le(e,t):xe(e,t);break;case 10:n===d.BLOCKQUOTE||n===d.FIGCAPTION?we(e,t):xe(e,t);break;default:xe(e,t)}}function De(e,t){e.tmplInsertionModeStackTop>-1?Ne(e,t):e.stopped=!0}function Se(e,t){var n=e.openElements.currentTagName;n===d.TABLE||n===d.TBODY||n===d.TFOOT||n===d.THEAD||n===d.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D,e._processToken(t)):Ie(e,t)}function Ae(e,t){var n=t.tagName;switch(n.length){case 2:n===d.TD||n===d.TH||n===d.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(d.TBODY),e.insertionMode=O,e._processToken(t)}(e,t):Ie(e,t);break;case 3:n===d.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(d.COLGROUP),e.insertionMode=A,e._processToken(t)}(e,t):Ie(e,t);break;case 4:n===d.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,p.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ie(e,t);break;case 5:n===d.TABLE?function(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===d.STYLE?se(e,t):n===d.TBODY||n===d.TFOOT||n===d.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=O}(e,t):n===d.INPUT?function(e,t){var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===_?e._appendElement(t,p.HTML):Ie(e,t)}(e,t):Ie(e,t);break;case 6:n===d.SCRIPT?se(e,t):Ie(e,t);break;case 7:n===d.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.HTML),e.insertionMode=S}(e,t):Ie(e,t);break;case 8:n===d.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=A}(e,t):n===d.TEMPLATE?se(e,t):Ie(e,t);break;default:Ie(e,t)}}function Oe(e,t){var n=t.tagName;n===d.TABLE?e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode()):n===d.TEMPLATE?le(e,t):n!==d.BODY&&n!==d.CAPTION&&n!==d.COL&&n!==d.COLGROUP&&n!==d.HTML&&n!==d.TBODY&&n!==d.TD&&n!==d.TFOOT&&n!==d.TH&&n!==d.THEAD&&n!==d.TR&&Ie(e,t)}function Ie(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Re(e,t){e.openElements.currentTagName===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=T,e._processToken(t))}function Me(e,t){var n=t.tagName;n===d.HTML?Ee(e,t):n===d.OPTION?(e.openElements.currentTagName===d.OPTION&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===d.OPTGROUP?(e.openElements.currentTagName===d.OPTION&&e.openElements.pop(),e.openElements.currentTagName===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===d.INPUT||n===d.KEYGEN||n===d.TEXTAREA||n===d.SELECT?e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),n!==d.SELECT&&e._processToken(t)):n!==d.SCRIPT&&n!==d.TEMPLATE||se(e,t)}function Pe(e,t){var n=t.tagName;if(n===d.OPTGROUP){var i=e.openElements.items[e.openElements.stackTop-1],r=i&&e.treeAdapter.getTagName(i);e.openElements.currentTagName===d.OPTION&&r===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===d.OPTGROUP&&e.openElements.pop()}else n===d.OPTION?e.openElements.currentTagName===d.OPTION&&e.openElements.pop():n===d.SELECT&&e.openElements.hasInSelectScope(d.SELECT)?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode()):n===d.TEMPLATE&&le(e,t)}function Ne(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function je(e,t){e.insertionMode=C,e._processToken(t)}function Be(e,t){e.insertionMode=C,e._processToken(t)}W.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},W.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(d.TEMPLATE,p.HTML,[]));var n=this.treeAdapter.createElement("documentmock",p.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===d.TEMPLATE&&this._pushTmplInsertionMode(N),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var i=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,r),r},W.prototype._bootstrap=function(e,t){this.tokenizer=new i(this.options),this.stopped=!1,this.insertionMode=y,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},W.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===i.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===i.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},W.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},W.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==p.HTML&&!this._isIntegrationPoint(e)},W.prototype._switchToTextParsing=function(e,t){this._insertElement(e,p.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=x},W.prototype.switchToPlaintextParsing=function(){this.insertionMode=x,this.originalInsertionMode=C,this.tokenizer.state=i.MODE.PLAINTEXT},W.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},W.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===d.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},W.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===d.TITLE||e===d.TEXTAREA?this.tokenizer.state=i.MODE.RCDATA:e===d.STYLE||e===d.XMP||e===d.IFRAME||e===d.NOEMBED||e===d.NOFRAMES||e===d.NOSCRIPT?this.tokenizer.state=i.MODE.RAWTEXT:e===d.SCRIPT?this.tokenizer.state=i.MODE.SCRIPT_DATA:e===d.PLAINTEXT&&(this.tokenizer.state=i.MODE.PLAINTEXT)}},W.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},W.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},W.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},W.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},W.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,p.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,p.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},W.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(d.HTML,p.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},W.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},W.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},W.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},W.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===p.HTML)return!1;if(this.treeAdapter.getTagName(t)===d.ANNOTATION_XML&&n===p.MATHML&&e.type===i.START_TAG_TOKEN&&e.tagName===d.SVG)return!1;var r=e.type===i.CHARACTER_TOKEN||e.type===i.NULL_CHARACTER_TOKEN||e.type===i.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===i.START_TAG_TOKEN&&e.tagName!==d.MGLYPH&&e.tagName!==d.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,p.MATHML))&&((e.type!==i.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,p.HTML))&&e.type!==i.EOF_TOKEN)},W.prototype._processToken=function(e){K[this.insertionMode][e.type](this,e)},W.prototype._processTokenInBodyMode=function(e){K[C][e.type](this,e)},W.prototype._processTokenInForeignContent=function(e){e.type===i.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===i.NULL_CHARACTER_TOKEN?function(e,t){t.chars=f.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===i.WHITESPACE_CHARACTER_TOKEN?ne(this,e):e.type===i.COMMENT_TOKEN?ee(this,e):e.type===i.START_TAG_TOKEN?function(e,t){if(u.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===p.MATHML?u.adjustTokenMathMLAttrs(t):i===p.SVG&&(u.adjustTokenSVGTagName(t),u.adjustTokenSVGAttrs(t)),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i)}}(this,e):e.type===i.END_TAG_TOKEN&&function(e,t){for(var n=e.openElements.stackTop;n>0;n--){var i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===p.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(i).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(i);break}}}(this,e)},W.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},W.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return u.isIntegrationPoint(n,i,r,t)},W.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var i=t;i=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var i=this.treeAdapter.getTagName(n),r=z[i];if(r){this.insertionMode=r;break}if(!(t||i!==d.TD&&i!==d.TH)){this.insertionMode=R;break}if(!t&&i===d.HEAD){this.insertionMode=E;break}if(i===d.SELECT){this._resetInsertionModeForSelect(e);break}if(i===d.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(i===d.HTML){this.insertionMode=this.headElement?w:k;break}if(t){this.insertionMode=C;break}}},W.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n);if(i===d.TEMPLATE)break;if(i===d.TABLE)return void(this.insertionMode=P)}this.insertionMode=M},W.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},W.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},W.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===d.TABLE||t===d.TBODY||t===d.TFOOT||t===d.THEAD||t===d.TR},W.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},W.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(i===d.TEMPLATE&&r===p.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(i===d.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},W.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},W.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},W.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return h.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";var i=n(131),r=n(94),a=n(261),o=n(61).inherits,s=e.exports=function(e){i.call(this,e),this.tokenizer=e,this.posTracker=new a(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};o(s,i),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,i){t._createCharacterToken.call(this,n,i),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach((function(i){var a=r.MODE[i];n[a]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[a].call(this,n)}})),n}},function(e,t,n){"use strict";var i=n(131),r=n(61).inherits,a=n(108).CODE_POINTS,o=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,i.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};r(o,i),Object.defineProperty(o.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),o.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===a.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var i=n(94),r=n(55),a=r.TAG_NAMES,o=r.NAMESPACES,s=r.ATTRS,l="text/html",c="application/xhtml+xml",u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},f={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},d=Object.create(null);d[a.B]=!0,d[a.BIG]=!0,d[a.BLOCKQUOTE]=!0,d[a.BODY]=!0,d[a.BR]=!0,d[a.CENTER]=!0,d[a.CODE]=!0,d[a.DD]=!0,d[a.DIV]=!0,d[a.DL]=!0,d[a.DT]=!0,d[a.EM]=!0,d[a.EMBED]=!0,d[a.H1]=!0,d[a.H2]=!0,d[a.H3]=!0,d[a.H4]=!0,d[a.H5]=!0,d[a.H6]=!0,d[a.HEAD]=!0,d[a.HR]=!0,d[a.I]=!0,d[a.IMG]=!0,d[a.LI]=!0,d[a.LISTING]=!0,d[a.MENU]=!0,d[a.META]=!0,d[a.NOBR]=!0,d[a.OL]=!0,d[a.P]=!0,d[a.PRE]=!0,d[a.RUBY]=!0,d[a.S]=!0,d[a.SMALL]=!0,d[a.SPAN]=!0,d[a.STRONG]=!0,d[a.STRIKE]=!0,d[a.SUB]=!0,d[a.SUP]=!0,d[a.TABLE]=!0,d[a.TT]=!0,d[a.U]=!0,d[a.UL]=!0,d[a.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!!(t===a.FONT&&(null!==i.getTokenAttr(e,s.COLOR)||null!==i.getTokenAttr(e,s.SIZE)||null!==i.getTokenAttr(e,s.FACE)))||d[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t/g,g=e.exports=function(e,t){this.options=r(c,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e};g.escapeString=function(e,t){return e=e.replace(u,"&").replace(f," "),e=t?e.replace(h,"""):e.replace(d,"<").replace(p,">")},g.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},g.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,i=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var i=t===s.TEMPLATE&&n===l.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(i),this.html+=""}},g.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,i=t.length;n"}},function(e,t,n){"use strict";var i=n(132).Writable,r=n(61).inherits,a=n(259),o=e.exports=function(e){i.call(this),this.parser=new a(e),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};r(o,i),o.prototype._write=function(e,t,n){this.writeCallback=n,this.parser.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},o.prototype.end=function(e,t,n){this.lastChunkWritten=!0,i.prototype.end.call(this,e||"",t,n)},o.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},o.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var e=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(e)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},o.prototype._documentWrite=function(e){this.parser.stopped||this.pendingHtmlInsertions.push(e)},o.prototype._scriptHandler=function(e){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",e,this._documentWrite,this._resume)):this._runParsingLoop()}},function(e,t,n){"use strict";(function(t,i){var r=n(133);e.exports=b;var a,o=n(591);b.ReadableState=F;n(182).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(266),c=n(184).Buffer,u=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(109));f.inherits=n(95);var h=n(595),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,g=n(596),m=n(267);f.inherits(b,l);var _=["error","close","destroy","pause","resume"];function F(e,t){e=e||{};var i=t instanceof(a=a||n(79));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(269).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(79),!(this instanceof b))return new b(e);this._readableState=new F(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function y(e,t,n,i,r){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}(e,o)):(r||(a=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof u||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?v(e,o,t,!1):x(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(C,e):C(e))}function C(e){d("emit readable"),e.emit("readable"),A(e)}function x(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;ea.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var i,r=t.needReadable;return d("need readable",r),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==i&&this.emit("data",i),i},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?u:b;function c(t,i){d("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",_),e.removeListener("finish",F),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",g),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){d("onend"),e.end()}a.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var h=!1;var p=!1;function g(t){d("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==M(a.pipes,e))&&!h&&(d("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",F),b()}function F(){d("onfinish"),e.removeListener("close",_),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",_),e.once("finish",F),e.emit("pipe",n),a.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return r>0&&(e.lastNeed=r-1),r;if(--i=0)return r>0&&(e.lastNeed=r-2),r;if(--i=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var i=n(79),r=Object.create(n(109));function a(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.lengthh?n(a):(e.consume(a),_):41===a?d--?(e.consume(a),_):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(o),t(a)):null===a||r(a)?d?n(a):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(o),t(a)):i(a)?n(a):(e.consume(a),92===a?F:_)}function F(t){return 40===t||41===t||92===t?(e.consume(t),_):_(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62);e.exports=function(e,t,n,a,o,s){var l,c=this,u=0;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),e.enter(s),f};function f(r){return null===r||91===r||93===r&&!l||94===r&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs||u>999?n(r):93===r?(e.exit(s),e.enter(o),e.consume(r),e.exit(o),e.exit(a),t):i(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return null===t||91===t||93===t||i(t)||u++>999?(e.exit("chunkString"),f(t)):(e.consume(t),l=l||!r(t),92===t?d:h)}function d(t){return 91===t||92===t||93===t?(e.consume(t),u++,h):h(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62),a=n(23);e.exports=function(e,t){var n;return function o(s){if(i(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,o;if(r(s))return a(e,o,n?"linePrefix":"lineSuffix")(s);return t(s)}}},function(e,t,n){"use strict";var i=n(22),r=n(23);e.exports=function(e,t,n,a,o,s){var l;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,c};function c(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),t):(e.enter(s),u(n))}function u(t){return t===l?(e.exit(s),c(l)):null===t?n(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===l||null===t||i(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?h:f)}function h(t){return t===l||92===t?(e.consume(t),f):f(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62),a=n(23),o={name:"thematicBreak",tokenize:function(e,t,n){var o,s=0;return function(t){return e.enter("thematicBreak"),o=t,l(t)};function l(u){return u===o?(e.enter("thematicBreakSequence"),c(u)):r(u)?a(e,l,"whitespace")(u):s<3||null!==u&&!i(u)?n(u):(e.exit("thematicBreak"),t(u))}function c(t){return t===o?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=o},function(e,t,n){"use strict";var i=o("start"),r=o("end");function a(e){return{start:i(e),end:r(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=a,a.start=i,a.end=r},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");i=a.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.indexOf(r)>-1?s:e.unknownHandler;return("function"===typeof i?i:o)(e,t,n)};var i=n(42),r=n(29),a={}.hasOwnProperty;function o(e,t){return function(e){var t=e.data||{};if(a.call(t,"hName")||a.call(t,"hProperties")||a.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,i("text",t.value)):e(t,"div",r(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=r(e,t),n):t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o={},s=t.ordered?"ol":"ul",l=-1;"number"===typeof t.start&&1!==t.start&&(o.start=t.start);n=r(e,t),a=n.length;for(;++l0?o.get(n-1):void 0,l=n=n&&(i={start:e,end:t})})),"object"!==typeof i&&a(!1),i}(o,u,n),d=h.start,p=h.end;d0&&(n=a.childNodes.length));if(0===n){var f=null;if(null!=c)f=c;else{var h=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||r(e.firstChild));)e=e.firstChild;return e}(a);f=l(r(h))}return{key:f,offset:0}}var d=a.childNodes[n-1],p=null,g=null;if(r(d)){var m=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||r(e.lastChild));)e=e.lastChild;return e}(d);p=l(r(m)),g=u(m)}else p=l(c),g=u(d);return{key:p,offset:g}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,r,o,s){var u=n.nodeType===Node.TEXT_NODE,f=o.nodeType===Node.TEXT_NODE;if(u&&f)return{selectionState:a(e,l(i(n)),r,l(i(o)),s),needsRecovery:!1};var h=null,d=null,p=!0;return u?(h={key:l(i(n)),offset:r},d=c(t,o,s)):f?(d={key:l(i(o)),offset:s},h=c(t,n,r)):(h=c(t,n,r),d=c(t,o,s),n===o&&r===s&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,h.key,h.offset,d.key,d.offset),needsRecovery:p}}},function(e,t,n){"use strict";var i=n(63),r=n(31);e.exports=function(e,t,n,a,o){var s=r(e.getSelection());if(!t||!a)return s;var l=i.decode(t),c=l.blockKey,u=e.getBlockTree(c),f=u&&u.getIn([l.decoratorKey,"leaves",l.leafKey]),h=i.decode(a),d=h.blockKey,p=e.getBlockTree(d),g=p&&p.getIn([h.decoratorKey,"leaves",h.leafKey]);if(!f||!g)return s;var m=f.get("start"),_=g.get("start"),F=f?m+n:null,b=g?_+o:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===F&&s.getFocusKey()===d&&s.getFocusOffset()===b)return s;var y=!1;if(c===d){var v=f.get("end"),k=g.get("end");y=_===m&&k===v?o0&&window.scrollTo(a.x,a.y+i+10)}else{_(n)||m(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&l.setTop(r,l.getTop(r)+i+10)}}}}},y._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),l=this.props.tree.size-1,c=b(this.props.selection,n);return this.props.tree.map((function(h,d){var p=h.get("leaves");if(0===p.size)return null;var g=p.size-1,m=p.map((function(r,u){var f=o.encode(n,d,u),h=r.get("start"),p=r.get("end");return s.createElement(a,{key:f,offsetKey:f,block:t,start:h,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(h,p),styleSet:t.getInlineStyleAt(h),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===l&&u===g})})).toArray(),_=h.get("decoratorKey");if(null==_)return m;if(!e.props.decorator)return m;var b=F(e.props.decorator),y=b.getComponentForKey(_);if(!y)return m;var v=b.getPropsForKey(_),k=o.encode(n,d,0),E=p.first().get("start"),w=p.last().get("end"),C=i.slice(E,w),x=t.getEntityAt(h.get("start")),T=f.getHTMLDirIfDifferent(u.getDirection(C),e.props.direction),D={contentState:e.props.contentState,decoratedText:C,dir:T,start:E,end:w,blockKey:n,entityKey:x,offsetKey:k};return s.createElement(y,r({},v,D,{key:k}),m)})).toArray()},y.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(s.Component);e.exports=y},function(e,t,n){"use strict";var i=n(773),r=n(774),a=n(330),o=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(o,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";(function(t){var i=n(10),r=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var o=0,s=[];e.forEach((function(l){!function(e,n){if(!t.FileReader||e.type&&!(e.type in a))return void n("");if(""===e.type){var o="";return r.test(e.name)&&(o=e.name.replace(r,"")),void n(o)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!==typeof e&&i(!1),n(e)},s.onerror=function(){n("")},s.readAsText(e)}(l,(function(t){o++,t&&s.push(t.slice(0,5e3)),o==e.length&&n(s.join("\r"))}))}))}}).call(this,n(33))},function(e,t,n){"use strict";var i=n(140);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:i(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var i=n(13),r=n(83),a=n(202),o=n(115);e.exports=function(e){var t=o(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(i).getText()[o-1];return a(e,s?r.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return i.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var i=n(32),r=n(10);var a=i.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(i)}r(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},function(e,t,n){"use strict";var i="['\u2018\u2019]",r="\\s|(?![_])"+n(794).getPunctuation(),a=new RegExp("^(?:"+r+")*(?:"+i+"|(?!"+r+").)*(?:(?!"+r+").)"),o=new RegExp("(?:(?!"+r+").)(?:"+i+"|(?!"+r+").)*(?:"+r+")*$");function s(e,t){var n=t?o.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},function(e,t,n){"use strict";n(203);e.exports=function(e,t){var n,i=e.getSelection(),r=i.getStartKey(),a=i.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),n=0):n=a+t,i.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var i;function r(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(P).some((function(n){e.classList.contains(n)&&(t=P[n])})),t},L=function(e){if(!y(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},q=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},H=function(e,t){if(!k(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){O.indexOf(i)>=0?e.add("BOLD"):I.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},z=function(e){return"ul"===e||"ol"===e},U=function(){function e(e,t){a(this,"characterList",_()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",u),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=_(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:_(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=_(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=_()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(T,"")).replace(x," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var n=e,i={};M.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(y(e)){var i=e,r={};R.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new f(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var a=e[i];a.parent=t,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i2&&void 0!==arguments[2]?arguments[2]:c,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:p)(e=e.trim().replace(C,"").replace(D," ").replace(S,"").replace(A,""));if(!n)return null;var i=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),F(t)}(t);return new U(i,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},function(e,t,n){"use strict";var i=n(32),r=n(10),a=i.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||r(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var i=n(30),r=n(13),a=n(807),o=n(31),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=r.push(e,t,"insert-characters");return r.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockBefore(i);if(a&&"atomic"===a.getType()){var o=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:o,selectionAfter:t});if(l!==n)return r.push(e,l,"remove-range")}var c=s.tryToRemoveBlockStyle(e);return c?r.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),o=n.getBlockForKey(a).getLength();if(t.getStartOffset()o&&i.push(e.substring(o,a.index));var l={href:a.url,key:"parse"+n.parseCounter+"match"+s};for(var c in n.props.properties){var u=n.props.properties[c];u===t.MATCH&&(u=a.url),l[c]=u}i.push(r.default.createElement(n.props.component,l,a.text)),o=a.lastIndex})),o=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:F;t&&t(e,null);for(var a=i.length;a--;){var o=i[a];if("string"===typeof o){var s=r(o);s!==o&&(n(i)||(i[a]=s),o=s)}e[o]=!0}return e}function O(e){for(var t=0;t/gm),V=u(/\${[\w\W]*}/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]/),X=u(/^aria-[\-\w]+$/),$=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),ee=u(/^[a-z][.\w]*(-[.\w]+)+$/i),te=Object.freeze({__proto__:null,MUSTACHE_EXPR:W,ERB_EXPR:G,TMPLIT_EXPR:V,DATA_ATTR:Y,ARIA_ATTR:X,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:Q,DOCTYPE_NAME:Z,CUSTOM_ELEMENT:ee}),ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ie=function(){return"undefined"===typeof window?null:window},re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),n=function(e){return ae(e)};if(n.version="3.1.3",n.removed=[],!t||!t.document||t.document.nodeType!==ne.document)return n.isSupported=!1,n;var i,r=t.document,o=r,s=o.currentScript,l=t.DocumentFragment,u=t.HTMLTemplateElement,h=t.Node,d=t.Element,p=t.NodeFilter,D=t.NamedNodeMap,S=void 0===D?t.NamedNodeMap||t.MozNamedAttrMap:D,O=t.HTMLFormElement,W=t.DOMParser,G=t.trustedTypes,V=d.prototype,Y=R(V,"cloneNode"),X=R(V,"nextSibling"),J=R(V,"childNodes"),Q=R(V,"parentNode");if("function"===typeof u){var ee=r.createElement("template");ee.content&&ee.content.ownerDocument&&(r=ee.content.ownerDocument)}var oe="",se=r,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,fe=se.getElementsByTagName,he=o.importNode,de={};n.isSupported="function"===typeof e&&"function"===typeof Q&&le&&void 0!==le.createHTMLDocument;var pe=te.MUSTACHE_EXPR,ge=te.ERB_EXPR,me=te.TMPLIT_EXPR,_e=te.DATA_ATTR,Fe=te.ARIA_ATTR,be=te.IS_SCRIPT_OR_DATA,ye=te.ATTR_WHITESPACE,ve=te.CUSTOM_ELEMENT,ke=te.IS_ALLOWED_URI,Ee=null,we=A({},[].concat(a(M),a(P),a(N),a(B),a(q))),Ce=null,xe=A({},[].concat(a(H),a(z),a(U),a(K))),Te=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Se=null,Ae=!0,Oe=!0,Ie=!1,Re=!0,Me=!1,Pe=!0,Ne=!1,je=!1,Be=!1,Le=!1,qe=!1,He=!1,ze=!0,Ue=!1,Ke="user-content-",We=!0,Ge=!1,Ve={},Ye=null,Xe=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Je=A({},["audio","video","img","source","image","track"]),Qe=null,Ze=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",it=nt,rt=!1,at=null,ot=A({},[et,tt,nt],b),st=null,lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,ft=null,ht=255,dt=r.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=I(e),st=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?ct:e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===st?b:F,Ee=w(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,ut):we,Ce=w(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,ut):xe,at=w(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,b):ot,Qe=w(e,"ADD_URI_SAFE_ATTR")?A(I(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,$e=w(e,"ADD_DATA_URI_TAGS")?A(I(Je),e.ADD_DATA_URI_TAGS,ut):Je,Ye=w(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,ut):Xe,De=w(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,ut):{},Se=w(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,ut):{},Ve=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Pe=!1!==e.SAFE_FOR_XML,Ne=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||$,it=e.NAMESPACE||nt,Te=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Oe=!1),qe&&(Le=!0),Ve&&(Ee=A({},q),Ce=[],!0===Ve.html&&(A(Ee,M),A(Ce,H)),!0===Ve.svg&&(A(Ee,P),A(Ce,z),A(Ce,K)),!0===Ve.svgFilters&&(A(Ee,N),A(Ce,z),A(Ce,K)),!0===Ve.mathMl&&(A(Ee,B),A(Ce,U),A(Ce,K))),e.ADD_TAGS&&(Ee===we&&(Ee=I(Ee)),A(Ee,e.ADD_TAGS,ut)),e.ADD_ATTR&&(Ce===xe&&(Ce=I(Ce)),A(Ce,e.ADD_ATTR,ut)),e.ADD_URI_SAFE_ATTR&&A(Qe,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Ye===Xe&&(Ye=I(Ye)),A(Ye,e.FORBID_CONTENTS,ut)),We&&(Ee["#text"]=!0),Ne&&A(Ee,["html","head","body"]),Ee.table&&(A(Ee,["tbody"]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');i=e.TRUSTED_TYPES_POLICY,oe=i.createHTML("")}else void 0===i&&(i=re(G,s)),null!==i&&"string"===typeof oe&&(oe=i.createHTML(""));c&&c(e),ft=e}},mt=A({},["mi","mo","mn","ms","mtext"]),_t=A({},["foreignobject","annotation-xml"]),Ft=A({},["title","style","font","a","script"]),bt=A({},[].concat(a(P),a(N),a(j))),yt=A({},[].concat(a(B),a(L))),vt=function(e){var t=Q(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=F(e.tagName),i=F(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(bt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&_t[i]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!_t[i])&&!(t.namespaceURI===et&&!mt[i])&&!yt[n]&&(Ft[n]||!bt[n]):!("application/xhtml+xml"!==st||!at[e.namespaceURI]))},kt=function(e){_(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Et=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(i){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ce[e])if(Le||qe)try{kt(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},wt=function(e){var t=null,n=null;if(Be)e=""+e;else{var a=y(e,/^[\r\n\t ]+/);n=a&&a[0]}"application/xhtml+xml"===st&&it===nt&&(e=''+e+"");var o=i?i.createHTML(e):e;if(it===nt)try{t=(new W).parseFromString(o,st)}catch(l){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?oe:o}catch(l){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),it===nt?fe.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:s},Ct=function(e){return ce.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},xt=function(e){return e instanceof O&&("undefined"!==typeof e.__depth&&"number"!==typeof e.__depth||"undefined"!==typeof e.__removalCount&&"number"!==typeof e.__removalCount||"string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof S)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Tt=function(e){return"function"===typeof h&&e instanceof h},Dt=function(e,t,i){de[e]&&g(de[e],(function(e){e.call(n,t,i,ft)}))},St=function(e){var t=null;if(Dt("beforeSanitizeElements",e,null),xt(e))return kt(e),!0;var i=ut(e.nodeName);if(Dt("uponSanitizeElement",e,{tagName:i,allowedTags:Ee}),e.hasChildNodes()&&!Tt(e.firstElementChild)&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return kt(e),!0;if(e.nodeType===ne.progressingInstruction)return kt(e),!0;if(Pe&&e.nodeType===ne.comment&&C(/<[/\w]/g,e.data))return kt(e),!0;if(!Ee[i]||De[i]){if(!De[i]&&Ot(i)){if(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,i))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(i))return!1}if(We&&!Ye[i]){var r=Q(e)||e.parentNode,a=J(e)||e.childNodes;if(a&&r)for(var o=a.length-1;o>=0;--o){var s=Y(a[o],!0);s.__removalCount=(e.__removalCount||0)+1,r.insertBefore(s,X(e))}}return kt(e),!0}return e instanceof d&&!vt(e)?(kt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===ne.text&&(t=e.textContent,g([pe,ge,me],(function(e){t=v(t,e," ")})),e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Dt("afterSanitizeElements",e,null),!1):(kt(e),!0)},At=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in r||n in dt||"__depth"===n||"__removalCount"===n))return!1;if(Oe&&!Se[t]&&C(_e,t));else if(Ae&&C(Fe,t));else if(!Ce[t]||Se[t]){if(!(Ot(e)&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&C(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Qe[t]);else if(C(ke,v(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!$e[e])if(Ie&&!C(be,v(n,ye,"")));else if(n)return!1;return!0},Ot=function(e){return"annotation-xml"!==e&&y(e,ve)},It=function(e){Dt("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce},a=t.length,o=function(){var o=t[a],s=o.name,l=o.namespaceURI,c=o.value,u=ut(s),f="value"===s?c:E(c);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Dt("uponSanitizeAttribute",e,r),f=r.attrValue,r.forceKeepAttr)return 0;if(Et(s,e),!r.keepAttr)return 0;if(!Re&&C(/\/>/i,f))return Et(s,e),0;if(Pe&&C(/((--!?|])>)|<\/(style|title)/i,f))return Et(s,e),0;Me&&g([pe,ge,me],(function(e){f=v(f,e," ")}));var h=ut(e.nodeName);if(!At(h,u,f))return 0;if(!Ue||"id"!==u&&"name"!==u||(Et(s,e),f=Ke+f),i&&"object"===typeof G&&"function"===typeof G.getAttributeType)if(l);else switch(G.getAttributeType(h,u)){case"TrustedHTML":f=i.createHTML(f);break;case"TrustedScriptURL":f=i.createScriptURL(f)}try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),xt(e)?kt(e):m(n.removed)}catch(d){}};a--;)o();Dt("afterSanitizeAttributes",e,null)}},Rt=function e(t){var n=null,i=Ct(t);for(Dt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)if(Dt("uponSanitizeShadowNode",n,null),!St(n)){var r=Q(n);n.nodeType===ne.element&&(r&&r.__depth?n.__depth=(n.__removalCount||0)+r.__depth+1:n.__depth=1),(n.__depth>=ht||n.__depth<0||T(n.__depth))&&kt(n),n.content instanceof l&&(n.content.__depth=n.__depth,e(n.content)),It(n)}Dt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if((rt=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Tt(e)){if("function"!==typeof e.toString)throw x("toString is not a function");if("string"!==typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||gt(t),n.removed=[],"string"===typeof e&&(Ge=!1),Ge){if(e.nodeName){var u=ut(e.nodeName);if(!Ee[u]||De[u])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof h)(a=(r=wt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ne.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Le&&!Me&&!Ne&&-1===e.indexOf("<"))return i&&He?i.createHTML(e):e;if(!(r=wt(e)))return Le?null:He?oe:""}r&&Be&&kt(r.firstChild);for(var f=Ct(Ge?e:r);s=f.nextNode();)if(!St(s)){var d=Q(s);s.nodeType===ne.element&&(d&&d.__depth?s.__depth=(s.__removalCount||0)+d.__depth+1:s.__depth=1),(s.__depth>=ht||s.__depth<0||T(s.__depth))&&kt(s),s.content instanceof l&&(s.content.__depth=s.__depth,Rt(s.content)),It(s)}if(Ge)return e;if(Le){if(qe)for(c=ue.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ce.shadowroot||Ce.shadowrootmode)&&(c=he.call(o,c,!0)),c}var p=Ne?r.outerHTML:r.innerHTML;return Ne&&Ee["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(Z,r.ownerDocument.doctype.name)&&(p="\n"+p),Me&&g([pe,ge,me],(function(e){p=v(p,e," ")})),i&&He?i.createHTML(p):p},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){ft=null,je=!1},n.isValidAttribute=function(e,t,n){ft||gt({});var i=ut(e),r=ut(t);return At(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(de[e]=de[e]||[],_(de[e],t))},n.removeHook=function(e){if(de[e])return m(de[e])},n.removeHooks=function(e){de[e]&&(de[e]=[])},n.removeAllHooks=function(){de={}},n}return ae()}()},function(e,t,n){"use strict";var i=n(0),r=n(272),a=n(632),o=n(638),s=n(684),l=n(19),c=n(713),u=n(716),f=n(717),h=n(718).hastChildrenToReact;e.exports=m;var d={}.hasOwnProperty,p="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",g={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function m(e){for(var t in g)if(d.call(g,t)&&d.call(e,t)){var n=g[t];"[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat(p,"#").concat(n.id,"> for more info)"),delete g[t]}var l,f=a().use(o).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(u,e);"string"===typeof e.children?l=r(e.children):(void 0!==e.children&&null!==e.children&&"[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"),l=r());var m=f.runSync(f.parse(l),l);if("root"!==m.type)throw new TypeError("Expected a `root` node");var _=i.createElement(i.Fragment,{},h({options:e,schema:c,listDepth:0},m));return e.className&&(_=i.createElement("div",{className:e.className},_)),_}m.defaultProps={transformLinkUri:f},m.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},m.uriTransformer=f},function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},s={error:null},l=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;ru;)a.f(e,n=r[u++],i[n]);return e}},function(e,t,n){"use strict";var i=n(6),r=n(11),a=n(14),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!a(s=i(n,e)))return s;if(r(n=e.valueOf)&&!a(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!a(s=i(n,e)))return s;throw new o("Can't convert object to primitive value")}},function(e,t,n){"use strict";var i=n(87),r=n(219),a=n(45),o=function(e){return function(t,n,o){var s=i(t),l=a(s);if(0===l)return!e&&-1;var c,u=r(o,l);if(e&&n!==n){for(;l>u;)if((c=s[u++])!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){"use strict";var i=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:i)(t)}},function(e,t,n){"use strict";n(98)("flatMap")},function(e,t,n){"use strict";var i=n(3),r=n(50),a=n(166),o=n(7),s=n(28),l=n(11),c=n(225),u=n(367),f=n(39),h=a&&a.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var d=s("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},function(e,t,n){"use strict";var i=n(28),r=n(4),a=n(123),o=n(224),s=n(9),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var i={};i[n(12)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t,n){"use strict";var i=n(9),r=n(14),a=n(124);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(5),r=n(15),a=n(47),o=n(167),s=n(7),l=i.RegExp,c=l.prototype;r&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)r(o,a[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==i||n!==i}))&&a(c,"flags",{configurable:!0,get:o})},function(e,t,n){"use strict";var i=n(101),r=n(6),a=n(4),o=n(370),s=n(7),l=n(9),c=n(11),u=n(35),f=n(54),h=n(88),d=n(40),p=n(51),g=n(227),m=n(64),_=n(228),F=n(229),b=n(12)("replace"),y=Math.max,v=Math.min,k=a([].concat),E=a([].push),w=a("".indexOf),C=a("".slice),x="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(e,t,n){var a=T?"$":"$0";return[function(e,n){var i=p(this),a=u(e)?void 0:m(e,b);return a?r(a,e,i,n):r(t,d(i),e,n)},function(e,r){var o=l(this),s=d(e);if("string"==typeof r&&-1===w(r,a)&&-1===w(r,"$<")){var u=n(t,o,s,r);if(u.done)return u.value}var p=c(r);p||(r=d(r));var m,b=o.global;b&&(m=o.unicode,o.lastIndex=0);for(var x,T=[];null!==(x=F(o,s))&&(E(T,x),b);){""===d(x[0])&&(o.lastIndex=g(s,h(o.lastIndex),m))}for(var D,S="",A=0,O=0;O=A&&(S+=C(s,A,M)+I,A=M+R.length)}return S+C(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!x||T)},function(e,t,n){"use strict";n(371);var i=n(6),r=n(39),a=n(168),o=n(7),s=n(12),l=n(46),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,f){var h=s(e),d=!o((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),p=d&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!d||!p||n){var g=/./[h],m=t(h,""[e],(function(e,t,n,r,o){var s=t.exec;return s===a||s===u.exec?d&&!o?{done:!0,value:i(g,t,n,r)}:{done:!0,value:i(e,n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(u,h,m[1])}f&&l(u[h],"sham",!0)}},function(e,t,n){"use strict";var i=n(3),r=n(168);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp,a=i((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=a||i((function(){return!r("a","y").sticky})),s=a||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp;e.exports=i((function(){var e=r("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},function(e,t,n){"use strict";n(58)("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var i=n(378),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a("Can't set "+r(e)+" as a prototype")}},function(e,t,n){"use strict";var i=n(14);e.exports=function(e){return i(e)||null===e}},function(e,t,n){"use strict";var i=n(5),r=n(4),a=n(15),o=n(230),s=n(162),l=n(46),c=n(47),u=n(90),f=n(7),h=n(68),d=n(54),p=n(88),g=n(232),m=n(233),_=n(382),F=n(67),b=n(89),y=n(234),v=n(91),k=n(171),E=n(164),w=n(75),C=n(25),x=s.PROPER,T=s.CONFIGURABLE,D="ArrayBuffer",S="DataView",A="prototype",O="Wrong index",I=C.getterFor(D),R=C.getterFor(S),M=C.set,P=i[D],N=P,j=N&&N[A],B=i[S],L=B&&B[A],q=Object.prototype,H=i.Array,z=i.RangeError,U=r(y),K=r([].reverse),W=_.pack,G=_.unpack,V=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},$=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return W(m(e),23,4)},Q=function(e){return W(e,52,8)},Z=function(e,t,n){c(e[A],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,i){var r=R(e),a=g(n),o=!!i;if(a+t>r.byteLength)throw new z(O);var s=r.bytes,l=a+r.byteOffset,c=v(s,l,l+t);return o?c:K(c)},te=function(e,t,n,i,r,a){var o=R(e),s=g(n),l=i(+r),c=!!a;if(s+t>o.byteLength)throw new z(O);for(var u=o.bytes,f=s+o.byteOffset,h=0;h>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else j=(N=function(e){h(this,j);var t=g(e);M(this,{type:D,bytes:U(H(t),0),byteLength:t}),a||(this.byteLength=t,this.detached=!1)})[A],L=(B=function(e,t,n){h(this,L),h(e,j);var i=I(e),r=i.byteLength,o=d(t);if(o<0||o>r)throw new z("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw new z("Wrong length");M(this,{type:S,buffer:e,byteLength:n,byteOffset:o,bytes:i.bytes}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)})[A],a&&(Z(N,"byteLength",I),Z(B,"buffer",R),Z(B,"byteLength",R),Z(B,"byteOffset",R)),u(L,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,V,t)},setUint8:function(e,t){te(this,1,e,V,t)},setInt16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,Q,t,arguments.length>2&&arguments[2])}});w(N,D),w(B,S),e.exports={ArrayBuffer:N,DataView:B}},function(e,t,n){"use strict";var i=n(381),r=Math.abs,a=2220446049250313e-31,o=1/a;e.exports=function(e,t,n,s){var l=+e,c=r(l),u=i(l);if(cn||h!==h?u*(1/0):u*h}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},function(e,t,n){"use strict";var i=Array,r=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,l=Math.LN2;e.exports={pack:function(e,t,n){var c,u,f,h=i(n),d=8*n-t-1,p=(1<>1,m=23===t?a(2,-24)-a(2,-77):0,_=e<0||0===e&&1/e<0?1:0,F=0;for((e=r(e))!==e||e===1/0?(u=e!==e?1:0,c=p):(c=o(s(e)/l),e*(f=a(2,-c))<1&&(c--,f*=2),(e+=c+g>=1?m/f:m*a(2,1-g))*f>=2&&(c++,f/=2),c+g>=p?(u=0,c=p):c+g>=1?(u=(e*f-1)*a(2,t),c+=g):(u=e*a(2,g-1)*a(2,t),c=0));t>=8;)h[F++]=255&u,u/=256,t-=8;for(c=c<0;)h[F++]=255&c,c/=256,d-=8;return h[--F]|=128*_,h},unpack:function(e,t){var n,i=e.length,r=8*i-t-1,o=(1<>1,l=r-7,c=i-1,u=e[c--],f=127&u;for(u>>=7;l>0;)f=256*f+e[c--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:u?-1/0:1/0;n+=a(2,t),f-=s}return(u?-1:1)*n*a(2,f-t)}}},function(e,t,n){"use strict";var i=n(14),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var i=n(54),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw new r("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var i=Math.round;e.exports=function(e){var t=i(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var i=n(57);e.exports=function(e){var t=i(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var i=n(388);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},function(e,t,n){"use strict";var i=n(389),r=n(100),a=n(14),o=n(12)("species"),s=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(r(t)&&(t===s||i(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){"use strict";var i=n(53);e.exports=Array.isArray||function(e){return"Array"===i(e)}},function(e,t,n){"use strict";var i=n(45);e.exports=function(e,t,n){for(var r=0,a=arguments.length>2?n:i(t),o=new e(a);a>r;)o[r]=t[r++];return o}},function(e,t,n){"use strict";n(58)("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){"use strict";n(58)("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(66),r=n(234),a=n(237),o=n(57),s=n(6),l=n(4),c=n(7),u=i.aTypedArray,f=i.exportTypedArrayMethod,h=l("".slice);f("fill",(function(e){var t=arguments.length;u(this);var n="Big"===h(o(this),0,3)?a(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var i=n(169);(0,n(66).exportTypedArrayStaticMethod)("from",n(236),i)},function(e,t,n){"use strict";var i=n(66),r=n(169),a=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var i=n(5),r=n(6),a=n(66),o=n(45),s=n(235),l=n(34),c=n(7),u=i.RangeError,f=i.Int8Array,h=f&&f.prototype,d=h&&h.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,m=!c((function(){var e=new Uint8ClampedArray(2);return r(d,e,{length:1,0:3},1),3!==e[1]})),_=m&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return r(d,this,n,t);var i=this.length,a=o(n),c=0;if(a+t>i)throw new u("Wrong length");for(;c0&&1/n<0?1:-1:t>n}}(e))}),!F||_)},function(e,t,n){"use strict";var i=n(86).match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},function(e,t,n){"use strict";var i=n(86);e.exports=/MSIE|Trident/.test(i)},function(e,t,n){"use strict";var i=n(86).match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},function(e,t,n){"use strict";n(408)},function(e,t,n){"use strict";n(409)},function(e,t,n){"use strict";var i=n(3),r=n(74),a=n(67),o=n(89),s=n(164),l=n(52),c=n(46),u=n(65),f=n(410),h=n(411),d=n(48),p=n(414),g=n(12)("toStringTag"),m=Error,_=[].push,F=function(e,t){var n,i=r(b,this);o?n=o(new m,i?a(this):b):(n=i?this:l(b),c(n,g,"Error")),void 0!==t&&c(n,"message",p(t)),h(n,F,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return d(e,_,{that:s}),c(n,"errors",s),n};o?o(F,m):s(F,m,{name:!0});var b=F.prototype=l(m.prototype,{constructor:u(1,F),message:u(1,""),name:u(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},function(e,t,n){"use strict";var i=n(14),r=n(46);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},function(e,t,n){"use strict";var i=n(46),r=n(412),a=n(413),o=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(o?o(e,t):i(e,"stack",r(n,s)))}},function(e,t,n){"use strict";var i=n(4),r=Error,a=i("".replace),o=String(new r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},function(e,t,n){"use strict";var i=n(7),r=n(65);e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},function(e,t,n){"use strict";var i=n(40);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},function(e,t,n){"use strict";var i=n(15),r=n(98),a=n(34),o=n(45),s=n(47);i&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0===t?0:t-1}}),r("lastIndex"))},function(e,t,n){"use strict";var i=n(15),r=n(98),a=n(34),o=n(45),s=n(47);i&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0===t?void 0:e[t-1]},set:function(e){var t=a(this),n=o(t);return t[0===n?0:n-1]=e}}),r("lastItem"))},function(e,t,n){"use strict";var i=n(3),r=n(101),a=n(240),o=n(28),s=n(52),l=Object,c=function(){var e=o("Object","freeze");return e?e(s(null)):s(null)};i({global:!0,forced:!0},{compositeKey:function(){return r(a,l,arguments).get("object",c)}})},function(e,t,n){"use strict";n(242)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(422))},function(e,t,n){"use strict";var i=n(53),r=n(87),a=n(123).f,o=n(91),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===i(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(r(e))}},function(e,t,n){"use strict";var i=n(7),r=n(14),a=n(53),o=n(421),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!==a(e))&&(!s||s(e)))}:s},function(e,t,n){"use strict";var i=n(7);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var i=n(52),r=n(47),a=n(90),o=n(20),s=n(68),l=n(35),c=n(48),u=n(175),f=n(76),h=n(174),d=n(15),p=n(126).fastKey,g=n(25),m=g.set,_=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var f=e((function(e,r){s(e,h),m(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),l(r)||c(r,e[u],{that:e,AS_ENTRIES:n})})),h=f.prototype,g=_(t),F=function(e,t,n){var i,r,a=g(e),o=b(e,t);return o?o.value=n:(a.last=o={index:r=p(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),d?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},b=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===t)return n};return a(h,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=i(null),d?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),i=b(t,e);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first===i&&(n.first=r),n.last===i&&(n.last=a),d?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),a(h,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return F(this,0===e?0:e,t)}}:{add:function(e){return F(this,e=0===e?0:e,e)}}),d&&r(h,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var i=t+" Iterator",r=_(t),a=_(i);u(e,t,(function(e,t){m(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var i,r=n(243),a=n(5),o=n(4),s=n(90),l=n(126),c=n(242),u=n(424),f=n(14),h=n(25).enforce,d=n(7),p=n(223),g=Object,m=Array.isArray,_=g.isExtensible,F=g.isFrozen,b=g.isSealed,y=g.freeze,v=g.seal,k=!a.ActiveXObject&&"ActiveXObject"in a,E=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},w=c("WeakMap",E,u),C=w.prototype,x=o(C.set);if(p)if(k){i=u.getConstructor(E,"WeakMap",!0),l.enable();var T=o(C.delete),D=o(C.has),S=o(C.get);s(C,{delete:function(e){if(f(e)&&!_(e)){var t=h(this);return t.frozen||(t.frozen=new i),T(this,e)||t.frozen.delete(e)}return T(this,e)},has:function(e){if(f(e)&&!_(e)){var t=h(this);return t.frozen||(t.frozen=new i),D(this,e)||t.frozen.has(e)}return D(this,e)},get:function(e){if(f(e)&&!_(e)){var t=h(this);return t.frozen||(t.frozen=new i),D(this,e)?S(this,e):t.frozen.get(e)}return S(this,e)},set:function(e,t){if(f(e)&&!_(e)){var n=h(this);n.frozen||(n.frozen=new i),D(this,e)?x(this,e,t):n.frozen.set(e,t)}else x(this,e,t);return this}})}else r&&d((function(){var e=y([]);return x(new w,e,1),!F(e)}))&&s(C,{set:function(e,t){var n;return m(e)&&(F(e)?n=y:b(e)&&(n=v)),x(this,e,t),n&&n(e),this}})},function(e,t,n){"use strict";var i=n(4),r=n(90),a=n(126).getWeakData,o=n(68),s=n(9),l=n(35),c=n(14),u=n(48),f=n(238),h=n(21),d=n(25),p=d.set,g=d.getterFor,m=f.find,_=f.findIndex,F=i([].splice),b=0,y=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},k=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=_(this.entries,(function(t){return t[0]===e}));return~t&&F(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var f=e((function(e,r){o(e,d),p(e,{type:t,id:b++,frozen:void 0}),l(r)||u(r,e[i],{that:e,AS_ENTRIES:n})})),d=f.prototype,m=g(t),_=function(e,t,n){var i=m(e),r=a(s(t),!0);return!0===r?y(i).set(t,n):r[i.id]=n,e};return r(d,{delete:function(e){var t=m(this);if(!c(e))return!1;var n=a(e);return!0===n?y(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!c(e))return!1;var n=a(e);return!0===n?y(t).has(e):n&&h(n,t.id)}}),r(d,n?{get:function(e){var t=m(this);if(c(e)){var n=a(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return _(this,e,t)}}:{add:function(e){return _(this,e,!0)}}),f}}},function(e,t,n){"use strict";var i=n(3),r=n(240),a=n(28),o=n(101);i({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?a("Symbol").for(arguments[0]):o(r,null,arguments).get("symbol",a("Symbol"))}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(38).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=r(this),n=!0,i=0,o=arguments.length;i1?arguments[1]:void 0);return!1!==o(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){n(e,r,t)&&c(i,r,e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}})},function(e,t,n){"use strict";var i=n(3),r=n(38);i({target:"Map",stat:!0,forced:!0},{from:n(127)(r.Map,r.set,!0)})},function(e,t,n){"use strict";n(433)},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(24),o=n(51),s=n(48),l=n(38),c=n(50),u=l.Map,f=l.has,h=l.get,d=l.set,p=r([].push);i({target:"Map",stat:!0,forced:c},{groupBy:function(e,t){o(e),a(t);var n=new u,i=0;return s(e,(function(e){var r=t(e,i++);f(n,r)?p(h(n,r),e):d(n,r,[e])})),n}})},function(e,t,n){"use strict";var i=n(3),r=n(435),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===o(a(this),(function(t){if(r(t,e))return!0}),!0)}})},function(e,t,n){"use strict";e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(48),o=n(11),s=n(24),l=n(38).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(o(this)?this:l);s(t);var i=s(n.set);return a(e,(function(e){r(i,n,t(e),e)})),n}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=a(r(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){c(i,n(e,r,t),e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){c(i,r,n(e,r,t))})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(48),o=n(38).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=r(this),n=arguments.length,i=0;i1?arguments[1]:void 0);return!0===o(t,(function(e,i){if(n(e,i,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(24),a=n(37),o=n(38),s=TypeError,l=o.get,c=o.has,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=a(this),i=arguments.length;r(t);var o=c(n,e);if(!o&&i<3)throw new s("Updating absent value");var f=o?l(n,e):r(i>2?arguments[2]:void 0)(e,n);return u(n,e,t(f,e,n)),n}})},function(e,t,n){"use strict";var i=n(3),r=Math.min,a=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return r(n,a(t,e))}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){"use strict";var i=n(3),r=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*r}})},function(e,t,n){"use strict";var i=n(3),r=n(246),a=n(233);i({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>16,l=r>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>16)+((a*l>>>0)+(c&n)>>16)}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|(r^~a)&r-a>>>0)>>>31)|0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){"use strict";var i=n(3),r=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*r}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{scale:n(246)})},function(e,t,n){"use strict";var i=n(3),r=n(9),a=n(456),o=n(105),s=n(76),l=n(25),c="Seeded Random",u=c+" Generator",f=l.set,h=l.getterFor(u),d=TypeError,p=o((function(e){f(this,{type:u,seed:e%2147483647})}),c,(function(){var e=h(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=r(e).seed;if(!a(t))throw new d('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new p(t)}})},function(e,t,n){"use strict";var i=n(5).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t===t&&0===t?1/t===-1/0:t<0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>>16,l=r>>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>>16)+((a*l>>>0)+(c&n)>>>16)}})},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(54),o="Invalid number representation",s=RangeError,l=SyntaxError,c=TypeError,u=parseInt,f=Math.pow,h=/^[\d.a-z]+$/,d=r("".charAt),p=r(h.exec),g=r(1..toString),m=r("".slice),_=r("".split);i({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new c(o);if(!e.length)throw new l(o);if("-"===d(e,0)&&(n=-1,!(e=m(e,1)).length))throw new l(o);var i=void 0===t?10:a(t);if(i<2||i>36)throw new s("Invalid radix");if(!p(h,e))throw new l(o);var r=_(e,"."),F=u(r[0],i);if(r.length>1&&(F+=u(r[1],i)/f(i,r[1].length)),10===i&&g(F,i)!==e)throw new l(o);return n*F}})},function(e,t,n){"use strict";n(461),n(463),n(464)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(15),o=n(174),s=n(24),l=n(9),c=n(68),u=n(11),f=n(35),h=n(14),d=n(64),p=n(39),g=n(90),m=n(47),_=n(462),F=n(12),b=n(25),y=F("observable"),v="Observable",k="Subscription",E="SubscriptionObserver",w=b.getterFor,C=b.set,x=w(v),T=w(k),D=w(E),S=function(e){this.observer=l(e),this.cleanup=void 0,this.subscriptionObserver=void 0};S.prototype={type:k,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){_(t)}}},close:function(){if(!a){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var A=function(e,t){var n,i=C(this,new S(e));a||(this.closed=!1);try{(n=d(e,"start"))&&r(n,e,this)}catch(h){_(h)}if(!i.isClosed()){var o=i.subscriptionObserver=new O(i);try{var l=t(o),c=l;f(l)||(i.cleanup=u(l.unsubscribe)?function(){c.unsubscribe()}:s(l))}catch(h){return void o.error(h)}i.isClosed()&&i.clean()}};A.prototype=g({},{unsubscribe:function(){var e=T(this);e.isClosed()||(e.close(),e.clean())}}),a&&m(A.prototype,"closed",{configurable:!0,get:function(){return T(this).isClosed()}});var O=function(e){C(this,{type:E,subscriptionState:e}),a||(this.closed=!1)};O.prototype=g({},{next:function(e){var t=D(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var i=d(n,"next");i&&r(i,n,e)}catch(a){_(a)}}},error:function(e){var t=D(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var i=d(n,"error");i?r(i,n,e):_(e)}catch(a){_(a)}t.clean()}},complete:function(){var e=D(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=d(t,"complete");n&&r(n,t)}catch(i){_(i)}e.clean()}}}),a&&m(O.prototype,"closed",{configurable:!0,get:function(){return D(this).subscriptionState.isClosed()}});var I=function(e){c(this,R),C(this,{type:v,subscriber:s(e)})},R=I.prototype;g(R,{subscribe:function(e){var t=arguments.length;return new A(u(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:h(e)?e:{},x(this).subscriber)}}),p(R,y,(function(){return this})),i({global:!0,constructor:!0,forced:!0},{Observable:I}),o(v)},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},function(e,t,n){"use strict";var i=n(3),r=n(28),a=n(6),o=n(9),s=n(100),l=n(103),c=n(64),u=n(48),f=n(12)("observable");i({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=s(this)?this:r("Observable"),n=c(o(e),f);if(n){var i=o(a(n,e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}var h=l(e);return new t((function(e){u(h,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var i=n(3),r=n(28),a=n(100),o=r("Array");i({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=a(this)?this:r("Observable"),t=arguments.length,n=o(t),i=0;i1?arguments[1]:void 0);return!1!==o(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(27),s=n(41),l=o.Set,c=o.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e){n(e,e,t)&&c(i,e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(41);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(3),r=n(27);i({target:"Set",stat:!0,forced:!0},{from:n(127)(r.Set,r.add,!1)})},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(493);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27),a=n(106),o=n(78),s=n(41),l=n(69),c=r.Set,u=r.add,f=r.has;e.exports=function(e){var t=i(this),n=o(e),r=new c;return a(t)>n.size?l(n.getIterator(),(function(e){f(t,e)&&u(r,e)})):s(t,(function(e){n.includes(e)&&u(r,e)})),r}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(495);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).has,a=n(106),o=n(78),s=n(41),l=n(69),c=n(125);e.exports=function(e){var t=i(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(r(t,e))return c(u,"normal",!1)}))}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(497);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(106),a=n(41),o=n(78);e.exports=function(e){var t=i(this),n=o(e);return!(r(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(499);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).has,a=n(106),o=n(78),s=n(69),l=n(125);e.exports=function(e){var t=i(this),n=o(e);if(a(t)1?arguments[1]:void 0),i=new l;return s(t,(function(e){c(i,n(e,e,t))})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(27);i({target:"Set",stat:!0,forced:!0},{of:n(128)(r.Set,r.add,!1)})},function(e,t,n){"use strict";var i=n(3),r=n(24),a=n(26),o=n(41),s=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,i=n?void 0:arguments[1];if(r(e),o(t,(function(r){n?(n=!1,i=r):i=e(i,r,r,t)})),n)throw new s("Reduce of empty set with no initial value");return i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(41);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0);return!0===o(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(506);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27),a=n(177),o=n(78),s=n(69),l=r.add,c=r.has,u=r.remove;e.exports=function(e){var t=i(this),n=o(e).getIterator(),r=a(t);return s(n,(function(e){c(t,e)?u(r,e):l(r,e)})),r}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(77),o=n(508);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).add,a=n(177),o=n(78),s=n(69);e.exports=function(e){var t=i(this),n=o(e).getIterator(),l=a(t);return s(n,(function(e){r(l,e)})),l}},function(e,t,n){"use strict";var i=n(3),r=n(102).charAt,a=n(51),o=n(54),s=n(40);i({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(a(this)),n=t.length,i=o(e),l=i>=0?i:n+i;return l<0||l>=n?void 0:r(t,l)}})},function(e,t,n){"use strict";var i=n(3),r=n(105),a=n(76),o=n(51),s=n(40),l=n(25),c=n(102),u=c.codeAt,f=c.charAt,h="String Iterator",d=l.set,p=l.getterFor(h),g=r((function(e){d(this,{type:h,string:e,index:0})}),"String",(function(){var e,t=p(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=f(n,i),t.index+=e.length,a({codePoint:u(e,0),position:i},!1))}));i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new g(s(o(this)))}})},function(e,t,n){"use strict";n(512)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(172),o=n(105),s=n(76),l=n(51),c=n(88),u=n(40),f=n(9),h=n(35),d=n(53),p=n(250),g=n(251),m=n(64),_=n(39),F=n(7),b=n(12),y=n(225),v=n(227),k=n(229),E=n(25),w=n(50),C=b("matchAll"),x="RegExp String",T=x+" Iterator",D=E.set,S=E.getterFor(T),A=RegExp.prototype,O=TypeError,I=a("".indexOf),R=a("".matchAll),M=!!R&&!F((function(){R("a",/./)})),P=o((function(e,t,n,i){D(this,{type:T,regexp:e,string:t,global:n,unicode:i,done:!1})}),x,(function(){var e=S(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,i=k(t,n);return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===u(i[0])&&(t.lastIndex=v(n,c(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),N=function(e){var t,n,i,r=f(this),a=u(e),o=y(r,RegExp),s=u(g(r));return t=new o(o===RegExp?r.source:r,s),n=!!~I(s,"g"),i=!!~I(s,"u"),t.lastIndex=c(r.lastIndex),new P(t,a,n,i)};i({target:"String",proto:!0,forced:M},{matchAll:function(e){var t,n,i,a,o=l(this);if(h(e)){if(M)return R(o,e)}else{if(p(e)&&(t=u(l(g(e))),!~I(t,"g")))throw new O("`.matchAll` does not allow non-global regexes");if(M)return R(o,e);if(void 0===(i=m(e,C))&&w&&"RegExp"===d(e)&&(i=N),i)return r(i,e,o)}return n=u(o),a=new RegExp(e,"g"),w?r(N,a,n):a[C](n)}}),w||C in A||_(A,C,N)},function(e,t,n){"use strict";n(514)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(4),o=n(51),s=n(11),l=n(35),c=n(250),u=n(40),f=n(64),h=n(251),d=n(228),p=n(12),g=n(50),m=p("replace"),_=TypeError,F=a("".indexOf),b=a("".replace),y=a("".slice),v=Math.max;i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,a,p,k,E,w,C,x,T=o(this),D=0,S=0,A="";if(!l(e)){if((n=c(e))&&(i=u(o(h(e))),!~F(i,"g")))throw new _("`.replaceAll` does not allow non-global regexes");if(a=f(e,m))return r(a,e,T,t);if(g&&n)return b(u(T),e,t)}for(p=u(T),k=u(e),(E=s(t))||(t=u(t)),w=k.length,C=v(1,w),D=F(p,k);-1!==D;)x=E?u(t(k,D,p)):d(k,p,D,[],void 0,t),A+=y(p,S,D)+x,S=D+w,D=D+C>p.length?-1:F(p,k,D+C);return Sn,f=a(i)?i:u(i),h=s?l(arguments,n):[],d=s?function(){r(f,this,h)}:f;return t?e(d,o):e(d)}:e}},function(e,t,n){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){"use strict";n(538)},function(e,t,n){"use strict";n(539);var i,r=n(3),a=n(15),o=n(255),s=n(5),l=n(20),c=n(4),u=n(39),f=n(47),h=n(68),d=n(21),p=n(540),g=n(541),m=n(91),_=n(102).codeAt,F=n(544),b=n(40),y=n(75),v=n(130),k=n(256),E=n(25),w=E.set,C=E.getterFor("URL"),x=k.URLSearchParams,T=k.getState,D=s.URL,S=s.TypeError,A=s.parseInt,O=Math.floor,I=Math.pow,R=c("".charAt),M=c(/./.exec),P=c([].join),N=c(1..toString),j=c([].pop),B=c([].push),L=c("".replace),q=c([].shift),H=c("".split),z=c("".slice),U=c("".toLowerCase),K=c([].unshift),W="Invalid scheme",G="Invalid host",V="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,$=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,re=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)K(t,e%256),e=O(e/256);return P(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=p({},le,{"#":1,"?":1,"{":1,"}":1}),ue=p({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=_(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},he={ftp:21,file:null,http:80,https:443,ws:80,wss:443},de=function(e,t){var n;return 2===e.length&&M(Y,R(e,0))&&(":"===(n=R(e,1))||!t&&"|"===n)},pe=function(e){var t;return e.length>1&&de(z(e,0,2))&&(2===e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===U(e)},me={},_e={},Fe={},be={},ye={},ve={},ke={},Ee={},we={},Ce={},xe={},Te={},De={},Se={},Ae={},Oe={},Ie={},Re={},Me={},Pe={},Ne={},je=function e(t,n,i){var r,a,o,s=b(t);if(n){if(a=this.parse(s))throw new S(a);this.searchParams=null}else{if(void 0!==i&&(r=new e(i,!0)),a=this.parse(s,null,r))throw new S(a);(o=T(new x)).bindURL(this),this.searchParams=o}};je.prototype={type:"URL",parse:function(e,t,n){var r,a,o,s,l,c=this,u=t||me,f=0,h="",p=!1,_=!1,F=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=L(e,ie,""),e=L(e,re,"$1")),e=L(e,ae,""),r=g(e);f<=r.length;){switch(a=r[f],u){case me:if(!a||!M(Y,a)){if(t)return W;u=Fe;continue}h+=U(a),u=_e;break;case _e:if(a&&(M(X,a)||"+"===a||"-"===a||"."===a))h+=U(a);else{if(":"!==a){if(t)return W;h="",u=Fe,f=0;continue}if(t&&(c.isSpecial()!==d(he,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,t)return void(c.isSpecial()&&he[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?u=Se:c.isSpecial()&&n&&n.scheme===c.scheme?u=be:c.isSpecial()?u=Ee:"/"===r[f+1]?(u=ye,f++):(c.cannotBeABaseURL=!0,B(c.path,""),u=Me)}break;case Fe:if(!n||n.cannotBeABaseURL&&"#"!==a)return W;if(n.cannotBeABaseURL&&"#"===a){c.scheme=n.scheme,c.path=m(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Ne;break}u="file"===n.scheme?Se:ve;continue;case be:if("/"!==a||"/"!==r[f+1]){u=ve;continue}u=we,f++;break;case ye:if("/"===a){u=Ce;break}u=Re;continue;case ve:if(c.scheme=n.scheme,a===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query;else if("/"===a||"\\"===a&&c.isSpecial())u=ke;else if("?"===a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query="",u=Pe;else{if("#"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.path.length--,u=Re;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query,c.fragment="",u=Ne}break;case ke:if(!c.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Re;continue}u=Ce}else u=we;break;case Ee:if(u=we,"/"!==a||"/"!==R(h,f+1))continue;f++;break;case we:if("/"!==a&&"\\"!==a){u=Ce;continue}break;case Ce:if("@"===a){p&&(h="%40"+h),p=!0,o=g(h);for(var y=0;y65535)return V;c.port=c.isSpecial()&&E===he[c.scheme]?null:E,h=""}if(t)return;u=Ie;continue}return V}h+=a;break;case Se:if(c.scheme="file","/"===a||"\\"===a)u=Ae;else{if(!n||"file"!==n.scheme){u=Re;continue}switch(a){case i:c.host=n.host,c.path=m(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=m(n.path),c.query="",u=Pe;break;case"#":c.host=n.host,c.path=m(n.path),c.query=n.query,c.fragment="",u=Ne;break;default:pe(P(m(r,f),""))||(c.host=n.host,c.path=m(n.path),c.shortenPath()),u=Re;continue}}break;case Ae:if("/"===a||"\\"===a){u=Oe;break}n&&"file"===n.scheme&&!pe(P(m(r,f),""))&&(de(n.path[0],!0)?B(c.path,n.path[0]):c.host=n.host),u=Re;continue;case Oe:if(a===i||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&de(h))u=Re;else if(""===h){if(c.host="",t)return;u=Ie}else{if(s=c.parseHost(h))return s;if("localhost"===c.host&&(c.host=""),t)return;h="",u=Ie}continue}h+=a;break;case Ie:if(c.isSpecial()){if(u=Re,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==i&&(u=Re,"/"!==a))continue}else c.fragment="",u=Ne;else c.query="",u=Pe;break;case Re:if(a===i||"/"===a||"\\"===a&&c.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(l=U(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===a||"\\"===a&&c.isSpecial()||B(c.path,"")):ge(h)?"/"===a||"\\"===a&&c.isSpecial()||B(c.path,""):("file"===c.scheme&&!c.path.length&&de(h)&&(c.host&&(c.host=""),h=R(h,0)+":"),B(c.path,h)),h="","file"===c.scheme&&(a===i||"?"===a||"#"===a))for(;c.path.length>1&&""===c.path[0];)q(c.path);"?"===a?(c.query="",u=Pe):"#"===a&&(c.fragment="",u=Ne)}else h+=fe(a,ce);break;case Me:"?"===a?(c.query="",u=Pe):"#"===a?(c.fragment="",u=Ne):a!==i&&(c.path[0]+=fe(a,se));break;case Pe:t||"#"!==a?a!==i&&("'"===a&&c.isSpecial()?c.query+="%27":c.query+="#"===a?"%23":fe(a,se)):(c.fragment="",u=Ne);break;case Ne:a!==i&&(c.fragment+=fe(a,le))}f++}},parseHost:function(e){var t,n,i;if("["===R(e,0)){if("]"!==R(e,e.length-1))return G;if(t=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,h=function(){return R(e,f)};if(":"===h()){if(":"!==R(e,1))return;f+=2,u=++c}for(;h();){if(8===c)return;if(":"!==h()){for(t=n=0;n<4&&M(ee,h());)t=16*t+A(h(),16),f++,n++;if("."===h()){if(0===n)return;if(f-=n,c>6)return;for(i=0;h();){if(r=null,i>0){if(!("."===h()&&i<4))return;f++}if(!M($,h()))return;for(;M($,h());){if(a=A(h(),10),null===r)r=a;else{if(0===r)return;r=10*r+a}if(r>255)return;f++}l[c]=256*l[c]+r,2!==++i&&4!==i||c++}if(4!==i)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(o=c-u,c=7;0!==c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!==c)return;return l}(z(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=F(e),M(te,e))return G;if(t=function(e){var t,n,i,r,a,o,s,l=H(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i1&&"0"===R(r,0)&&(a=M(J,r)?16:8,r=z(r,8===a?1:2)),""===r)o=0;else{if(!M(10===a?Z:8===a?Q:ee,r))return e;o=A(r,a)}B(n,o)}for(i=0;i=I(256,5-t))return null}else if(o>255)return null;for(s=j(n),i=0;i1?arguments[1]:void 0,i=w(t,new je(e,!1,n));a||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Le=Be.prototype,qe=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(f(Le,"href",qe("serialize","setHref")),f(Le,"origin",qe("getOrigin")),f(Le,"protocol",qe("getProtocol","setProtocol")),f(Le,"username",qe("getUsername","setUsername")),f(Le,"password",qe("getPassword","setPassword")),f(Le,"host",qe("getHost","setHost")),f(Le,"hostname",qe("getHostname","setHostname")),f(Le,"port",qe("getPort","setPort")),f(Le,"pathname",qe("getPathname","setPathname")),f(Le,"search",qe("getSearch","setSearch")),f(Le,"searchParams",qe("getSearchParams")),f(Le,"hash",qe("getHash","setHash"))),u(Le,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Le,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),D){var He=D.createObjectURL,ze=D.revokeObjectURL;He&&u(Be,"createObjectURL",l(He,D)),ze&&u(Be,"revokeObjectURL",l(ze,D))}y(Be,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Be})},function(e,t,n){"use strict";var i=n(102).charAt,r=n(40),a=n(25),o=n(175),s=n(76),l="String Iterator",c=a.set,u=a.getterFor(l);o(String,"String",(function(e){c(this,{type:l,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var i=n(15),r=n(4),a=n(6),o=n(7),s=n(217),l=n(224),c=n(221),u=n(34),f=n(159),h=Object.assign,d=Object.defineProperty,p=r([].concat);e.exports=!h||o((function(){if(i&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==r}))?function(e,t){for(var n=u(e),r=arguments.length,o=1,h=l.f,d=c.f;r>o;)for(var g,m=f(arguments[o++]),_=h?p(s(m),h(m)):s(m),F=_.length,b=0;F>b;)g=_[b++],i&&!a(d,m,g)||(n[g]=m[g]);return n}:h},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(34),o=n(542),s=n(173),l=n(100),c=n(45),u=n(543),f=n(103),h=n(104),d=Array;e.exports=function(e){var t=a(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=i(g,p>2?arguments[2]:void 0));var _,F,b,y,v,k,E=h(t),w=0;if(!E||this===d&&s(E))for(_=c(t),F=n?new this(_):d(_);_>w;w++)k=m?g(t[w],w):t[w],u(F,w,k);else for(F=n?new this:[],v=(y=f(t,E)).next;!(b=r(v,y)).done;w++)k=m?o(y,g,[b.value,w],!0):b.value,u(F,w,k);return F.length=w,F}},function(e,t,n){"use strict";var i=n(9),r=n(125);e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},function(e,t,n){"use strict";var i=n(15),r=n(36),a=n(65);e.exports=function(e,t,n){i?r.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){"use strict";var i=n(4),r=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=i(o.exec),u=Math.floor,f=String.fromCharCode,h=i("".charCodeAt),d=i([].join),p=i([].push),g=i("".replace),m=i("".split),_=i("".toLowerCase),F=function(e){return e+22+75*(e<26)},b=function(e,t,n){var i=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),i+=36;return u(i+36*e/(e+38))},y=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n=55296&&r<=56319&&n=o&&iu((r-c)/v))throw new l(s);for(c+=(y-o)*v,o=y,n=0;nr)throw new l(s);if(i===o){for(var k=c,E=36;;){var w=E<=g?1:E>=g+26?26:E-g;if(kA.length&&A.push(e)}function R(e,t,n,i){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(i,e,""===t?"."+P(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l, only round last child */\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}));function uf(e){var t=e.element,n=e.handleButtonClick,i=t.title,r=t.type,o=t.url,s=Wi(i,bi.PANEL,"elementTitleCharLimit");return r===yi.HYPERLINK&&o?a.a.createElement(ph,t):a.a.createElement(cf,{value:s,onClick:n},a.a.createElement(ch,null,s))}function ff(e){var t=e.content,n=e.addMessage,i=e.templateType,o=e.isCarouselElem,s=e.templateIdentifier,l=t.title,c=t.subtitle,u=t.elements,f=t.imageData,h=t.imageDescription,d=t.preIndex,p=t.nextIndex,g=t.listId,m=t.referenceId,_=Wi(l,bi.PANEL,"titleCharLimit"),F=Wi(c,bi.PANEL,"subtitleCharLimit"),b=hi(Object(r.useState)(!1),2),y=b[0],v=b[1];return a.a.createElement(a.a.Fragment,null,f&&a.a.createElement(lf,{showImage:y,isCarouselElem:o},a.a.createElement(fh,{imageSrc:f,imageDescription:h,onImageLoad:function(){v(!0)}})),a.a.createElement(hh,{title:_,subtitle:F}),a.a.createElement(sh,{isCarouselElem:o},a.a.createElement("div",null,u.map((function(e,t){return a.a.createElement(uf,{key:"element-"+t,handleButtonClick:function(){!function(e){var t=Ui(u[e],d,p,g,i,m,o,_,s);n(t)}(t)},element:e})})))))}var hf=3,df=Q.b.div(Xu||(Xu=q(["\n background-color: white;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: ",";\n \n span {\n padding: 0 5px;\n flex-grow: 2;\n }\n"])),(function(e){return e.theme.globals.basePadding})),pf=Object(Q.b)(Re)($u||($u=q(["\n border: ",";\n padding: 0;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n \n &[disabled] {\n opacity: 0.3 !important;\n }\n \n &>div {\n display: flex;\n }\n"])),(function(e){return e.theme.globals.baseBorder}));df.PrevDateButton=Object(Q.b)(pf)(Ju||(Ju=q(["\n align-self: flex-start;\n"]))),df.NextDateButton=Object(Q.b)(pf)(Qu||(Qu=q(["\n align-self: flex-end;\n"])));var gf,mf,_f=Q.b.div(Zu||(Zu=q(["\n font-size: 0;\n transform: rotate(","deg);\n \n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"})),Ff=Q.b.div(ef||(ef=q(["\n padding: 0 ",";\n \n button {\n margin-top: ",";\n width: 100%;\n max-width: none;\n border-radius: ",";\n white-space: pre-line;\n \n &[data-selected='true'] { \n box-shadow: none;\n border: 1px solid ",";\n }\n }\n"])),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.color.highlightColor})),bf=Q.b.div(tf||(tf=q(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: "," ",";\n \n button{\n border-radius: ",";\n\t padding: ",";\n\t \n\t &[disabled] {\n\t opacity: 0.3 !important;\n\t }\n }\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.basePadding})),yf=Q.b.button(nf||(nf=q(["\n background-color: #fff;\n align-self: flex-start;\n"]))),vf=Q.b.button(rf||(rf=q(["\n background-color: #fff;\n align-self: flex-end;\n"]))),kf=Q.b.button(af||(af=q(["\n background-color: #3F5773;\n color: #fff !important;\n"]))),Ef=Object(Q.b)(kf)(of||(of=q(["\n flex-grow: 2;\n"]))),wf=Object(Q.b)(kf)(sf||(sf=q(["\n font-size: 0;\n margin-right: ",";\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.fontsSize.small}),(function(e){return e.theme.fontsSize.small}));function Cf(){return(navigator.languages&&navigator.languages.length>0?navigator.languages[0]:navigator.language)||"en-US"}function xf(e){var t=e.timeslot,n=e.onClick,i=e.onKeyPress,r=e.selected,o=t.date,s=new Date(o).toLocaleTimeString("".concat(Cf()),{hour:"numeric",minute:"numeric",timeZoneName:"short"});return a.a.createElement(Re,{selected:r,value:o,onKeyPress:i,onClick:n},"".concat(s))}function Tf(e){var t=e.direction;return a.a.createElement(_f,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("title",null,"Path"),a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function Df(e){var t=e.content,n=e.addMessage,i=t.title,o=t.subtitle,s=t.timeZoneOffset,l=t.timeslots,c=Wi(i,bi.TIME_PICKER,"titleCharLimit"),u=Wi(o,bi.TIME_PICKER,"subtitleCharLimit"),f=function(e,t){var n=e.map((function(e){return ui({},e,{date:Sf(e.date,t)})}));return n}(l,s),h=function(e){return e.sort((function(e,t){return e.date.localeCompare(t.date)})),e.reduce((function(e,t){var n=new Date(t.date).setHours(0,0,0,0),i=new Date(n).toDateString();return e[i]||(e[i]=[]),e[i].push(t),e}),{})}(f),d=Object.keys(h),p=hi(Object(r.useState)(0),2),g=p[0],m=p[1],_=d[g],F=h[_],b=hi(Object(r.useState)(null),2),y=b[0],v=b[1],k=hi(Object(r.useState)(0),2),E=k[0],w=k[1],C=E*hf,x=C+hf,T=F.slice(C,Math.min(F.length,x));function D(){S(g-1)}function S(e){m(e),w(0),v(null)}function A(e){v(e.currentTarget.value)}var O=new Date(_).toLocaleDateString(Cf(),{weekday:"long",month:"long",day:"numeric"}),I=d.length>0,R=null==y&&F.length>hf;return a.a.createElement(a.a.Fragment,null,a.a.createElement(hh,{title:c,subtitle:u}),a.a.createElement(sh,null,a.a.createElement(df,null,I&&a.a.createElement(df.PrevDateButton,{disabled:0===g,onKeyPress:D,onClick:D,"data-testid":"time-picker-prev-date-button"},a.a.createElement(Tf,{direction:"left"})),a.a.createElement("span",null,O),I&&a.a.createElement(df.NextDateButton,{disabled:g===d.length-1,onClick:function(){S(g+1)},"data-testid":"time-picker-next-date-button"},a.a.createElement(Tf,{direction:"right"}))),a.a.createElement(Ff,null,T.map((function(e){var t=new Date(y).getTime()===new Date(e.date).getTime();return a.a.createElement(xf,{selected:t,key:"timeslot".concat(e.date),timeslot:e,onKeypress:A,onClick:A})}))),a.a.createElement(bf,null,null!=y&&a.a.createElement(a.a.Fragment,null,a.a.createElement(wf,{onClick:function(){v(null)},"data-testid":"time-picker-reset-selection-button"},a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"}))),a.a.createElement(Ef,{disabled:null==y,onClick:function(){n({text:y})},"data-testid":"time-picker-confirm-selection-button"},"Confirm")),R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(yf,{disabled:0===E,onClick:function(){w(E-1)}},"Earlier"),a.a.createElement(vf,{disabled:x>=F.length,onClick:function(){w(E+1)}},"Later")))))}function Sf(e,t){if(t){var n=new Date(e).getTime();return new Date(n+6e4*t).toISOString().slice(0,-2)+"+00:00"}return e}var Af="#077398",Of="#FFFFFF",If=Q.b.div(gf||(gf=q(["\n padding: "," 0;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n gap: ",";\n justify-content: flex-end;\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),Rf=Object(Q.b)(Re)(mf||(mf=q(["\n padding: 4px ",";\n text-align: left;\n cursor: pointer;\n border: 2px solid ",";\n border-radius: 2px;\n white-space: pre-wrap;\n font-weight: bold;\n font-size: ",";\n line-height: 22px;\n font-weight: 600;\n font-style: normal;\n color: ",";\n background: ",";\n text-shadow: none;\n box-shadow: none;\n\n :hover, :focus {\n background: ",";\n color: ",";\n border: 2px solid "," !important;\n }\n"])),(function(e){return e.theme.spacing.base}),Af,(function(e){return e.theme.fontsSize.regular}),Af,Of,Af,Of,Af);function Mf(e){var t=e.element,n=e.handleSelection,i=Wi(t.title,bi.QUICK_REPLY,"replyOptionCharLimit");return a.a.createElement(Rf,{onClick:function(){return n({text:t.title})}},i)}function Pf(e){var t=e.content,n=e.addMessage,i=t.title,r=t.elements,o=Wi(i,bi.QUICK_REPLY,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(nh,{addChildBackgroundStyles:!0,"data-testid":"interactive-quickreply-message-title",applySpeechBubbleCaret:!0},a.a.createElement(vs,{content:o})),a.a.createElement(If,{"data-testid":"interactive-quickreply-response-section"},r.map((function(e,t){return a.a.createElement(Mf,{element:e,handleSelection:n,key:t})}))))}var Nf,jf,Bf,Lf=n(116),qf=n.n(Lf),Hf=200;var zf,Uf,Kf,Wf,Gf,Vf,Yf,Xf,$f=Q.b.div(Nf||(Nf=q(["\n padding: ",";\n margin: 0 ",";\n display: flex;\n gap: 2%;\n overflow-x: scroll;\n position: relative;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n scroll-snap-type: x proximity;\n\n /* Hide scrollbar */\n ::-webkit-scrollbar {\n display: none; /* Chrome, Safari and Opera */\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),Jf=Object(Q.b)(Re)(jf||(jf=q(["\n cursor: pointer;\n position: absolute;\n top: 50%;\n display: block;\n --offset-x: 0;\n z-index: 99;\n ","\n\n width: 32px;\n height: 32px;\n border: 2px solid #fff;\n border-radius: 50%;\n\n background-size: 14px auto;\n background: white;\n -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n"])),(function(e){return"right"===e.direction?"right: 0;":""})),Qf=Q.b.div(Bf||(Bf=q(["\n font-size: 0;\n transform: rotate(","deg);\n\n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"}));function Zf(e){var t=e.elements,n=e.addMessage;return a.a.createElement(a.a.Fragment,null,t.map((function(e,t){return a.a.createElement(uh,{key:t,content:e.data.content,templateType:e.templateType,addMessage:n,templateIdentifier:e.templateIdentifier,isCarouselElem:!0})})))}function eh(e){var t=e.direction;return a.a.createElement(Qf,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function th(e){var t=e.content,n=e.addMessage,i=t.title,o=t.elements,s=Object(r.useRef)(null),l=function(){s.current.scrollLeft+=-1*Hf},c=function(){s.current.scrollLeft+=Hf},u=Wi(i,bi.CAROUSEL,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(nh,{addChildBackgroundStyles:!0,"data-testid":"interactive-carousel-message-title",applySpeechBubbleCaret:!0},a.a.createElement(vs,{content:u})),a.a.createElement(Jf,{onKeyPress:l,onClick:l,"data-testid":"interactive-carousel-scroll-left-btn",direction:"left"},a.a.createElement(eh,{direction:"left"})),a.a.createElement($f,{ref:s,"data-testid":"interactive-carousel-response-section"},a.a.createElement(Zf,{elements:o,addMessage:n})),a.a.createElement(Jf,{onKeyPress:c,onClick:c,"data-testid":"interactive-carousel-scroll-right-btn",direction:"right"},a.a.createElement(eh,{direction:"right"})))}var nh=Q.b.div(zf||(zf=q(["\n border: ",";\n border-radius: ",";\n\n ","\n\n ","\n\n ","\n\n button {\n cursor: pointer;\n border: ",";\n \n &:hover:enabled {\n color: #fff;\n background: ",";\n }\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.spacing.mini}),(function(e){return e.addChildBackgroundStyles?"\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n padding: 14px;\n "):""}),(function(e){return e.isCarouselElem?"\n position: relative;\n max-width: 350px;\n min-width: 225px;\n scroll-snap-align: start;\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n display: flex;\n flex-direction: column;\n "):""}),(function(e){return e.applySpeechBubbleCaret?'\n position: relative;\n\n &:after {\n display: block;\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";\n }\n "):""}),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary})),ih=Object(Q.b)(xe)(Uf||(Uf=q(["\n font-weight: bold !important;\n"]))),rh=Object(Q.b)(xe)(Kf||(Kf=q(["\n color: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor})),ah=Q.b.img(Wf||(Wf=q(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),oh=Q.b.div(Gf||(Gf=q(["\n padding: ",";\n text-align: left;\n\n ","\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""})),sh=Q.b.div(Vf||(Vf=q(["\n position: relative;\n white-space: pre-line;\n border-radius: ",";\n\n ","\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.isCarouselElem?"\n margin-top: auto;\n flex: none;\n ":""})),lh=Q.b.div(Yf||(Yf=q(["\n display: flex;\n justify-content: center;\n width: 100%;\n max-width: none;\n border: ",";\n background: ",";\n white-space: pre-line;\n padding-right: ",";\n padding-left: ",";\n padding-top: ",";\n padding-bottom: ",";\n font-size: ",";\n line-height: 1.465;\n text-decoration: none;\n\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n\n a: {\n text-decoration: none !important;\n font-weight: bold !important;\n }\n\n svg: {\n color: ",";\n margin: 0 ",";\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.palette.white}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.fontSize}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.micro})),ch=Object(Q.b)(xe)(Xf||(Xf=q(["\n font-weight: bold;\n\n a {\n text-decoration: none;\n }\n\n ","\n"])),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""}));function uh(e){var t=e.content,n=e.templateType,i=e.addMessage,o=e.textInputRef,s=e.isCarouselElem,l=e.templateIdentifier,c=hi(Object(r.useState)(!1),2),u=c[0],f=c[1],h=Object(r.useRef)();function d(e){i(e),f(!0)}return Object(r.useEffect)((function(){if(h.current){var e=h.current;e.setAttribute("view",JSON.stringify(t)),e.addEventListener("onAction",(function(e){var t=e.detail,r={action:t.Action,data:t.Output||{},templateType:n,version:"1.0"},a=JSON.stringify(r);i({text:a,type:_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE}),f(!0)}))}}),[h]),Object(r.useLayoutEffect)((function(){o&&o.current&&o.current.focus&&o.current.focus()}),[u,o]),n===bi.QUICK_REPLY?a.a.createElement(Pf,{content:t,addMessage:d}):n===bi.CAROUSEL?a.a.createElement(th,{content:t,addMessage:d}):n===bi.VIEW_RESOURCE?a.a.createElement("connect-view-renderer",{"data-testid":"connect-view-renderer",ref:h}):a.a.createElement(nh,{"data-testid":l,isCarouselElem:s},n===bi.LIST_PICKER?a.a.createElement(Yu,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===bi.PANEL?a.a.createElement(ff,{content:t,addMessage:d,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===bi.TIME_PICKER?a.a.createElement(Df,{content:t,addMessage:d}):void 0)}function fh(e){var t=e.imageSrc,n=e.imageDescription,i=e.onImageLoad;return a.a.createElement(ah,{src:t,alt:n,onLoad:i,onError:function(e){return console.log("Failed to load image:",e)}})}function hh(e){var t=e.title,n=e.subtitle;return a.a.createElement(oh,null,a.a.createElement(vs,{content:t,styledWrapper:ih}),n&&a.a.createElement(vs,{content:n,styledWrapper:rh}))}function dh(){return a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",stroke:"none"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}function ph(e){var t=e.url,n=e.title,i=e.target,r=e.testId;return a.a.createElement(lh,{"data-testid":r},a.a.createElement(ch,{hasNestedSVG:!0},a.a.createElement("a",{href:t,target:i||"_blank"},n),a.a.createElement(dh,null)))}function gh(){return gh=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((function(e){e(a,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},_h.set(t,n)}return n}(n),o=a.id,s=a.observer,l=a.elements,c=l.get(e)||[];return l.has(e)||l.set(e,c),c.push(t),s.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),_h.delete(o))}}var Eh=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function wh(e){return"function"!==typeof e.children}var Ch,xh,Th,Dh,Sh,Ah,Oh,Ih,Rh,Mh,Ph,Nh,jh=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),wh(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,mh(t,n);var a=i.prototype;return a.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,i=e.rootMargin,r=e.trackVisibility,a=e.delay,o=e.fallbackInView;this._unobserveCb=kh(this.node,this.handleChange,{threshold:t,root:n,rootMargin:i,trackVisibility:r,delay:a},o)}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!wh(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,a=i.children,o=i.as,s=i.tag,l=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(i,Eh);return r.createElement(o||s||"div",gh({ref:this.handleNode},l),a)},i}(r.Component);jh.displayName="InView",jh.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var Bh=Q.b.div(Ch||(Ch=q(["\n padding: "," ",";\n word-break: break-word;\n white-space: pre-line;\n overflow: auto;\n text-align: ",";\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.base}),(function(e){return e.textAlign})),Lh=Q.b.div(xh||(xh=q(["\n overflow: auto;\n"])));Lh.Sender=Q.b.div(Th||(Th=q(["\n float: left;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),Lh.Status=Q.b.div(Dh||(Dh=q(["\n float: right;\n"])));var qh=Q.b.div(Sh||(Sh=q(["\n overflow: auto;\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini}));qh.MessageReceipt=Q.b.div(Ah||(Ah=q(["\n float: right;\n"])));var Hh=Q.b.div(Oh||(Oh=q(["\n ",";\n\n ",";\n\n ","\n\n padding: ",";\n margin-top: ",";\n border-radius: 5px;\n position: relative;\n &:after {\n display: ",";\n ","\n }\n"])),(function(e){return e.direction===xi?e.theme.chatTranscriptor.outgoingMsg:e.theme.chatTranscriptor.incomingMsg}),(function(e){return e.messageStyle?e.messageStyle:""}),(function(e){return e.childWillAddBackground?"background: none":""}),(function(e){return e.removePadding?0:e.theme.spacing.base}),(function(e){return e.theme.spacing.mini}),(function(e){return e.hideDirectionArrow?"none":"block"}),(function(e){return e.direction===xi?'\n content: " ";\n position: absolute;\n right: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 12px solid transparent;\n border-right: 10px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.outgoingMsgBg,";\n "):'\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";")})),zh=Q.b.div(Ih||(Ih=q(["\n color: ",";\n display: flex;\n > img {\n margin-right: ",";\n }\n"])),(function(e){return e.theme.palette.red}),(function(e){return e.theme.spacing.mini})),Uh=Q.b.span(Rh||(Rh=q(["\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini})),Kh=Q.b.div(Mh||(Mh=q(["\n margin-left: ",";\n padding: "," "," ",";\n\n span {\n color: ",";\n }\n"])),(function(e){return e.theme.chatTranscriptor.msgStatusWidth}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.micro}),(function(e){return e.theme.palette.red}));Kh.RetryButton=Q.b.a(Ph||(Ph=q(["\n margin-left: ",";\n"])),(function(e){return e.theme.spacing.micro}));var Wh,Gh,Vh=function(e){e.error;var t=e.resetErrorBoundary,n=e.InteractiveMessageType+"_ERROR";return window.connect&&window.connect.csmService&&window.connect.csmService.addCountAndErrorMetric(n,ci,!1),a.a.createElement("div",{role:"alert"},a.a.createElement("p",null,"Something went wrong"),a.a.createElement("button",{onClick:t},"Reload Editor"))},Yh=function(e){function t(e){var n;return H(this,t),(n=V(this,Y(t).call(this,e))).state={inView:!1,isVisible:!1},n.csmService=void 0,window.connect&&window.connect.csmService&&(n.csmService=window.connect.csmService),n}return $(t,e),U(t,[{key:"timestampToDisplayable",value:function(e){var t=new Date(0);t.setUTCSeconds(e);var n={hour:"numeric",minute:"numeric"};return(new Date).toDateString()===new Date(1e3*e).toDateString()?t.toLocaleTimeString([],n):t.toLocaleTimeString([],ui({},n,{weekday:"short",month:"short",day:"numeric"}))}},{key:"renderHeader",value:function(){var e=this.props.messageDetails.transportDetails.direction===xi,t=this.props.messageDetails.displayName||(e?"Customer":"Agent"),n=this.props.messageDetails.transportDetails,i="connect-chat-transport-status-",r=a.a.createElement(a.a.Fragment,null);switch(n.status){case vi:r=a.a.createElement(a.a.Fragment,null,a.a.createElement(Uh,null,a.a.createElement("span",null,a.a.createElement(Xn,{id:i+"sending",defaultMessage:"Sending"}))));break;case ki:r=a.a.createElement(a.a.Fragment,null,this.timestampToDisplayable(n.sentTime,e));break;case Ei:r=a.a.createElement(zh,null,a.a.createElement(Je,null),a.a.createElement("span",null,a.a.createElement(Xn,{id:i+"sendFailed",defaultMessage:"Failed to send! "})));break;default:r=a.a.createElement(a.a.Fragment,null)}return a.a.createElement(a.a.Fragment,null,a.a.createElement(Lh.Sender,null,a.a.createElement(Xn,{id:t||"DISPLAY_NAME_MISSING",defaultMessage:t})),a.a.createElement(Lh.Status,null,r))}},{key:"renderMessageReceipts",value:function(){var e=this.props.messageDetails,t=e.lastReadReceipt,n=void 0!==t&&t,i=e.lastDeliveredReceipt,r=void 0!==i&&i,o=e.transportDetails,s=void 0===o?{}:o,l=s.messageReceiptType;return s.direction===xi&&l?a.a.createElement(a.a.Fragment,null,a.a.createElement(qh.MessageReceipt,null,n&&a.a.createElement(Xn,{id:"connect-chat-read-receipt",defaultMessage:"Read","aria-live":"polite"}),r&&a.a.createElement(Xn,{id:"connect-chat-delivered-receipt",defaultMessage:"Delivered","aria-live":"polite"}))):null}},{key:"visibilityChangeListener",value:function(){var e="visible"===document.visibilityState;this.setState({isVisible:e})}},{key:"componentDidUpdate",value:function(){var e=this.props.messageDetails,t=e.transportDetails.direction,n=e.type,i=e.id,r=e.participantRole;this.state.inView&&this.state.isVisible&&Ri.isTypeMessageOrAttachment(n)&&Ri.isParticipantAgentOrCustomer(r)&&t===Ti&&this.props.sendReadReceipt(i,n===pi?{disableThrottle:!0}:{})}},{key:"componentDidMount",value:function(){this.visibilityChangeListener(),document.addEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"render",value:function(){var e,t,n=this,i=this.props.messageDetails.transportDetails,r=i.direction,o=i.error,s=r===xi?this.props.outgoingMsgStyle:this.props.incomingMsgStyle,l={};if(this.props.isLatestMessage&&this.props.messageDetails.content&&this.props.messageDetails.content.type===_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){l.hideDirectionArrow=!0,l.removePadding=!0;var c=JSON.parse(this.props.messageDetails.content.data).templateType;c!==bi.VIEW_RESOURCE&&c!==bi.QUICK_REPLY&&c!==bi.CAROUSEL||(l.childWillAddBackground=!0)}if(this.props.messageDetails.type===pi)this.props.messageDetails.Attachments&&this.props.messageDetails.Attachments.length>0?(e=this.props.messageDetails.Attachments[0],t=e.ContentType,e.Status===Ci&&void 0===o&&(o={message:"Attachment was rejected."})):(e={AttachmentName:this.props.messageDetails.content.name},t=this.props.messageDetails.content.type);else if(e=this.props.messageDetails.content.data,!function(e){var t=!1;for(var n in _i.MESSAGE_CONTENT_TYPE)_i.MESSAGE_CONTENT_TYPE[n]===e&&(t=!0);return t}(t=this.props.messageDetails.content.type))return null;return a.a.createElement("div",{"data-testid":"main-message"},a.a.createElement(Lh,{"data-testid":"message-header"},this.renderHeader()),a.a.createElement(jh,{onChange:function(e){return n.setState({inView:e})}},(function(i){var o=i.ref;return a.a.createElement(Hh,Object.assign({"data-testid":"message-body",direction:r,messageStyle:s},l,{ref:n.props.isLatestMessage?o:null}),n.renderContent(e,t))})),a.a.createElement(qh,null,this.renderMessageReceipts()),o&&this.renderTransportError(o))}},{key:"triggerCountMetric",value:function(e){this.csmService&&this.csmService.addCountMetric(e,ci)}},{key:"renderContent",value:function(e,t){if(this.props.messageDetails.type===pi)return a.a.createElement(Qh,{content:e,downloadAttachment:this.props.mediaOperations.downloadAttachment});if(t===_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){var n=JSON.parse(e),i=n.data,r=n.templateType;return this.props.isLatestMessage?(this.triggerCountMetric(r+oi),a.a.createElement(Bi.ErrorBoundary,{fallback:a.a.createElement(Vh,{InteractiveMessageType:r})},a.a.createElement(uh,{content:i.content,templateType:r,addMessage:this.props.mediaOperations.addMessage,textInputRef:this.props.textInputRef}))):(this.triggerCountMetric(si),a.a.createElement(vs,{content:i.content.title}))}if(t===_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE&&JSON.parse(e).templateType===bi.VIEW_RESOURCE){var o=JSON.parse(e),s=o.action,l=o.data;return!s.trim()&&l&&(s=l.content),a.a.createElement(Xh,{content:s})}if(t===_i.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN)return this.triggerCountMetric(si),a.a.createElement(vs,{content:e});if(this.triggerCountMetric(li),function(e){if(qf()(e)){var t=JSON.parse(e);return["listTitle","selectionText","templateIdentifier"].every((function(e){return e in t&&"string"===typeof t[e]}))}return!1}(e)){var c=function(e){var t=JSON.parse(e),n=t.listTitle,i=t.selectionText,r=":"===n.slice(-1)?"":" -";return"".concat(n).concat(r," ").concat(i)}(e);return a.a.createElement(Xh,{content:c})}return a.a.createElement(Xh,{content:e})}},{key:"renderTransportError",value:function(e){return e&&e.message?a.a.createElement(Kh,null,a.a.createElement("span",null,e.message),e.retry&&this.renderRetryButton(e.retry)):null}},{key:"renderRetryButton",value:function(e){var t=function(t){t.preventDefault(),e()};return a.a.createElement(Kh.RetryButton,{href:"Retry",tabIndex:0,onClick:t,onKeyPress:t},"Retry")}}]),t}(r.PureComponent),Xh=function(e){function t(){return H(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),U(t,[{key:"render",value:function(){return a.a.createElement(ji.a,{properties:{target:"_blank"}},this.props.content)}}]),t}(r.PureComponent),$h=Object(Q.b)(Bh)(Nh||(Nh=q(["\n > ","{\n display: inline-block;\n float: ","\n"])),Hh,(function(e){return e.direction===xi?"right":"left"})),Jh=function(e){function t(){return H(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),U(t,[{key:"render",value:function(){return a.a.createElement($h,{direction:this.props.direction},a.a.createElement(Hh,{direction:this.props.direction},a.a.createElement(et,{color:this.props.direction===xi?"#fff":"#000"})))}}]),t}(r.PureComponent),Qh=function(e){function t(){var e,n;H(this,t);for(var i=arguments.length,r=new Array(i),a=0;al.current.clientHeight&&l.current.scrollTop<=0&&!h&&(d(!0),i().then((function(){d(!1)})))},className:o},h&&a.a.createElement(rd,null,a.a.createElement(Ze,{size:20,color:de.color.primary}),a.a.createElement(xe,null,a.a.createElement("span",null,a.a.createElement(Xn,{id:"connect-chat-transcriptor-loading-msg",defaultMessage:"Loading previous messages..."})))),s)}ad.defaultProps={loadPreviousTranscript:function(){return Promise.resolve()},lastSentMessageId:""};var od=Q.b.div(td||(td=q(["\n margin: 0 auto;\n"]))),sd=Object(Q.b)(ad)(nd||(nd=q(["\n background: ",";\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n flex: 12 1 auto;\n"])),(function(e){return e.theme.chatTranscriptor.background})),ld={participantMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(Yh,t)}},attachmentMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(Yh,t)}},systemMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(Zh,t)}}},cd=function(e){function t(){var e,n;H(this,t);for(var i=arguments.length,r=new Array(i),o=0;o=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var f=void 0!==u.value,h=Object(r.useRef)(null),d=gd(h,t),p=Object(r.useRef)(0),g=Object(r.useRef)(),m=function(){var e=h.current,t=n&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,i=(n=t,vd.reduce((function(e,t){return e[t]=n[t],e}),{})),r=i.boxSizing;return""===r?null:(kd&&"border-box"===r&&(i.width=parseFloat(i.width)+parseFloat(i.borderRightWidth)+parseFloat(i.borderLeftWidth)+parseFloat(i.paddingRight)+parseFloat(i.paddingLeft)+"px"),{sizingStyle:i,paddingSize:parseFloat(i.paddingBottom)+parseFloat(i.paddingTop),borderSize:parseFloat(i.borderBottomWidth)+parseFloat(i.borderTopWidth)})}(e);if(t){g.current=t;var r=function(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=1/0),Fd||((Fd=document.createElement("textarea")).setAttribute("tabindex","-1"),Fd.setAttribute("aria-hidden","true"),_d(Fd)),null===Fd.parentNode&&document.body.appendChild(Fd);var r=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;Fd.style[t]=o[t]})),_d(Fd),Fd.value=t;var l=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(Fd,e);Fd.value="x";var c=Fd.scrollHeight-r,u=c*n;"border-box"===s&&(u=u+r+a),l=Math.max(u,l);var f=c*i;return"border-box"===s&&(f=f+r+a),[l=Math.min(f,l),c]}(t,e.value||e.placeholder||"x",a,i),o=r[0],s=r[1];p.current!==o&&(p.current=o,e.style.setProperty("height",o+"px","important"),c(o,{rowHeight:s}))}};return Object(r.useLayoutEffect)(m),Ed(m),Object(r.createElement)("textarea",hd({},u,{onChange:function(e){f||m(),s(e)},ref:d}))},Cd=Object(r.forwardRef)(wd),xd=de.palette.secondaryBlack,Td=de.palette.whisper,Dd=Q.b.div(bd||(bd=q(["\n cursor: ",";\n\n &>svg {\n fill: ",";\n }\n"])),(function(e){return e.isActive?"pointer":"default"}),(function(e){return e.isActive?xd:Td}));var Sd,Ad,Od,Id,Rd,Md,Pd,Nd,jd,Bd,Ld,qd,Hd,zd=function(e){var t=e.isActive,n=e.sendMessage;return a.a.createElement(Dd,{isActive:t,onClick:n,"data-testid":"customer-chat-send-message-button","aria-label":"Send Message",tabIndex:0,onKeyDown:function(e){e.key!==ii&&e.key!==ni||n(e)}},a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})))},Ud=Q.b.div(Sd||(Sd=q(["\n margin: 0;\n padding: 0;\n"]))),Kd=Q.b.div(Ad||(Ad=q(["\n position: relative;\n display: flex;\n background: ",";\n border: 0.5px solid ",";\n border-left: 0;\n border-right: 0;\n"])),(function(e){return e.theme.palette.white}),(function(e){return e.theme.palette.lightGray})),Wd=Q.b.div(Od||(Od=q(["\n position: absolute;\n padding: ",";\n padding-right: ",";\n top: 0;\n right: 0;\n z-index: 2;\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.base})),Gd=Q.b.div(Id||(Id=q(["\n cursor: pointer;\n height: auto;\n vertical-align: top;\n\n button {\n height: 100%;\n width: 100%;\n }\n\n label {\n align-items: center;\n display: flex;\n cursor: pointer;\n font-size: 0;\n height: 100%;\n padding-left: ",";\n padding-right: ",';\n margin-bottom: 0;\n }\n\n input {\n display: none;\n }\n\n & + [role="textbox"] {\n padding-left: 0;\n }\n'])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini})),Vd=Q.b.button(Rd||(Rd=q(["\n background-color: transparent;\n border: 1px solid transparent;\n position: relative;\n padding: 0;\n margin: 0;\n"]))),Yd=Q.b.div(Md||(Md=q(["\n display: flex;\n background-color: ",";\n border-radius: 5px;\n margin: 5px;\n padding: ",";\n min-width: 0;\n\n & > div {\n width: 100%;\n\n span {\n overflow-wrap: break-word;\n }\n\n button {\n align-items: center;\n display: inline-flex;\n cursor: pointer;\n margin-left: 5px;\n }\n }\n\n & + div {\n padding-left: 0;\n }\n"])),(function(e){return e.theme.chatTranscriptor.outgoingMsgBg}),(function(e){return e.theme.spacing.mini})),Xd=Object(Q.b)(Cd)(Pd||(Pd=q(["\n flex: 1;\n outline: none;\n user-select: text;\n word-break: break-word;\n font-family: inherit;\n font-size: 1rem !important;\n padding: ",";\n padding-left: 0;\n padding-right: ",";\n margin-left: ",";\n max-height: 80px;\n line-height: 1.5rem;\n overflow: auto;\n min-height: 39px;\n z-index: 2;\n resize: none;\n letter-spacing: ",";\n font-size: ",";\n border: none;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus::placeholder {\n color: transparent;\n }\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.xxlarge}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.globals.letterSpacing}),(function(e){return e.theme.fontsSize.regular||"1rem"}),(function(e){return e.theme.palette.mediumGray})),$d=Q.b.div(Nd||(Nd=q(["\n display: flex;\n font-size: 0;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"]))),Jd=Q.b.div(jd||(jd=q(["\n display: flex;\n font-size: 0;\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.fontsSize.mini}),(function(e){return e.theme.fontsSize.mini}));function Qd(e){var t,n,i=e.addMessage,o=e.addAttachment,s=e.onTyping,l=e.contactId,c=e.contactStatus,u=e.onTypingValidityTime,f=e.textInputRef,h=e.composerConfig;window.connect&&window.connect.LogManager&&(t=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatComposer"}));var d=hi(Object(r.useState)(""),2),p=d[0],g=d[1],m=hi(Object(r.useState)(null),2),_=m[0],F=m[1],b=Object(r.useRef)(null);function y(e){return e.shiftKey||e.key!==ni?(function(e){return e.target.innerText===p}(e)||k(),g(e.target.value),e.key!==ai&&e.key!==ri||!_||""!==p?void 0:(e.preventDefault(),void E())):(e.preventDefault(),v(),!1)}function v(){var e;k.cancel(),(e=p).trim()&&i(l,{text:e}),g(""),_&&(o(l,_),E())}Object(r.useEffect)((function(){t&&t.info("Component mounted.")}),[t]),Object(r.useLayoutEffect)((function(){f&&f.current&&f.current.focus&&f.current.focus()}),[_,f]);var k=Object(r.useMemo)((function(){return fd()((function(){s().then((function(){}))}),u,{trailing:!1,leading:!0})}),[s,u,{trailing:!1,leading:!0}]);function E(){F(null),b.current.value=null,t&&t.info("File is removed.")}var w=Gn().formatMessage({id:"chatComposer.placeholder",defaultMessage:"Type a message"}),C=null==_?w:"",x=a.a.createElement(yc,{allowedFileContentTypes:Fi,attachmentsEnabled:h&&h.attachmentsEnabled,sendMessage:function(e){k.cancel(),e.trim()&&i(l,{text:e,type:_i.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN})},sendAttachment:function(e){o(l,e)},placeholder:C,onTyping:k}),T=a.a.createElement(Kd,null,h&&h.attachmentsEnabled&&a.a.createElement(Gd,{tabIndex:0,"data-testid":"customer-chat-attachment-icon",onKeyDown:function(e){e.key!==ii&&e.key!==ni||(e.preventDefault(),document.getElementById("customer-chat-file-select-".concat(l)).click())}},a.a.createElement(Vd,{"aria-label":"Attach a file"},a.a.createElement("label",{htmlFor:"customer-chat-file-select-".concat(l)},a.a.createElement($d,null,a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))),a.a.createElement("input",{ref:b,type:"file",id:"customer-chat-file-select-".concat(l),"data-testid":"customer-chat-file-select",accept:Fi.join(","),onChange:function(e){var n=e.target.files[0];F(n),t&&t.info("File added.")},"aria-label":"Attach a file",tabIndex:-1})))),null!=_&&a.a.createElement(Yd,null,a.a.createElement("div",null,a.a.createElement("span",null,_.name),a.a.createElement(Vd,{onClick:E,"aria-label":"Remove attachment"},a.a.createElement(Jd,null,a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"})))))),a.a.createElement(Xd,{"data-testid":"customer-chat-text-input",ref:f,value:p,onInput:y,onKeyPress:y,onKeyDown:y,onFocus:function(){if(!n&&function(){var e=window.navigator&&window.navigator.userAgent;return e&&-1!==e.search(/iPhone/i)}()){n=!0;var e=document.createElement("input"),t=document.querySelector('[data-testid="amazon-connect-chat-wrapper"] div');t&&(t.appendChild(e),e.focus()),setTimeout((function(){f&&f.current&&f.current.focus(),e.remove(),n=!1}),300)}},"aria-label":w,placeholder:C,tabIndex:"0",spellCheck:"true"}),a.a.createElement(Wd,null,a.a.createElement(zd,{isActive:!!p||_,sendMessage:v.bind(this)})));return a.a.createElement(Ud,null,c===Jn&&(h&&h.richMessagingEnabled?x:T))}Qd.defaultProps={onTypingValidityTime:1e4};var Zd=Q.b.div(Bd||(Bd=q(["\n background: ",";\n height: ",";\n"])),(function(e){return e.theme.palette.dustyGray}),"85px"),ep=Q.b.div(Ld||(Ld=q(["\n order: 3;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n }\n"]))),tp=Q.b.div(qd||(qd=q(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n height: 100%;\n align-items: center;\n > button {\n min-width: 85px;\n margin: ",";\n font-weight: bold;\n }\n"])),(function(e){return e.theme.spacing.mini})),np=Object(Q.b)(Re)(Hd||(Hd=q(["\n margin: ",";\n width: ",";\n \n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.col?100/e.col-7+"%":""}));function ip(e){return{__html:e}}var rp,ap,op,sp,lp,cp=function(e){function t(){var e;return H(this,t),e=V(this,Y(t).call(this)),window.connect&&window.connect.LogManager&&(e.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatActionBar"})),e}return $(t,e),U(t,[{key:"componentDidMount",value:function(){this.logger&&this.logger.info("Component mounted.")}},{key:"render",value:function(){var e=this.props,t=e.contactStatus,n=e.onEndChat,i=e.onClose,a=e.footerConfig;if(a.render){var o=a.render(this.props);return a.isHTML?r.createElement(ep,{dangerouslySetInnerHTML:ip(o)}):r.createElement(ep,null,o)}return r.createElement(ep,null,r.createElement(Zd,null,r.createElement(tp,null,(t===Jn||t===ei)&&r.createElement(r.Fragment,null,r.createElement(np,{col:"2",type:"default",onClick:n},r.createElement("span",null,r.createElement(Xn,{id:"Chat.EndChat",defaultMessage:"End chat"})))),t===ti&&r.createElement(r.Fragment,null,r.createElement(np,{col:"2",type:"default",onClick:i},r.createElement("span",null,r.createElement(Xn,{id:"Chat.Close",defaultMessage:"Close"})))))))}}]),t}(r.Component);J(cp,"defaultProps",{onEndChat:function(){},onClose:function(){},footerConfig:{}});var up=Q.b.div(rp||(rp=q(["\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n @media (max-width:640px) {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n"]))),fp=Q.b.div(ap||(ap=q(["\n margin: 0;\n padding: 0;\n order: 1;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n }\n"]))),hp=Q.b.div(op||(op=q(["\n order: 2;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 340px;\n @media (max-width:640px) {\n position: absolute;\n left: 0;\n bottom: 85px;\n right: 0;\n top: ","px;\n min-height: auto;\n }\n"])),(function(e){return e.parentHeaderWrapperHeight})),dp=Q.b.div(sp||(sp=q(["\n background: #3F5773;\n text-align: center;\n padding: 16px;\n color: #fff;\n border-radius: 3px;\n flex-shrink: 0;\n"]))),pp=Object(Q.b)(xe)(lp||(lp=q(["\n padding-bottom: 10px;\n"]))),gp={isHTML:!1,render:function(){return a.a.createElement(dp,null,a.a.createElement(pp,{type:"h2"},a.a.createElement(Xn,{id:"header.headerText",defaultMessage:"Hi there! "})),a.a.createElement(xe,{type:"p"},"This is an example of how customers experience chat on your website"))}};function mp(e){var t=e.headerConfig,n=Object.assign({},gp,t);return n.isHTML?Pi()(n.render()):n.render()}mp.defaultProps={headerConfig:{}};var _p=a.a.createRef(),Fp=function(e){function t(e){var n;return H(this,t),(n=V(this,Y(t).call(this,e))).state={transcript:[],typingParticipants:[],contactStatus:Zn,parentHeaderWrapperHeight:115},n.parentHeaderRef=a.a.createRef(),n.updateTranscript=function(e){return n.setState({transcript:tt(e)})},n.updateTypingParticipants=function(e){return n.setState({typingParticipants:e})},n.updateContactStatus=function(e){return n.setState({contactStatus:e})},window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-Chat"})),n}return $(t,e),U(t,[{key:"resetChatHeight",value:function(){this.setState({parentHeaderWrapperHeight:this.parentHeaderRef&&this.parentHeaderRef.current?this.parentHeaderRef.current.clientHeight:115})}},{key:"componentDidMount",value:function(){this.init(this.props.chatSession),this.resetChatHeight(),"function"===typeof this.props.changeLanguage&&this.props.changeLanguage(this.props.language),this.logger&&this.logger.info("Component mounted.")}},{key:"componentDidUpdate",value:function(e){e.chatSession!==this.props.chatSession&&(this.cleanUp(e.chatSession),this.init(this.props.chatSession)),e.language!==this.props.language&&"function"===typeof this.props.changeLanguage&&this.props.changeLanguage(this.props.language)}},{key:"componentWillUnmount",value:function(){this.cleanUp(this.props.chatSession)}},{key:"init",value:function(e){this.setState({contactStatus:e.contactStatus}),e.on("transcript-changed",this.updateTranscript),e.on("typing-participants-changed",this.updateTypingParticipants),e.on("contact-status-changed",this.updateContactStatus)}},{key:"cleanUp",value:function(e){e.off("transcript-changed",this.updateTranscript),e.off("typing-participants-changed",this.updateTypingParticipants),e.off("contact-status-changed",this.updateContactStatus)}},{key:"endChat",value:function(){this.props.chatSession.endChat(),this.props.onEnded()}},{key:"closeChat",value:function(){this.props.chatSession.closeChat(),this.props.onEnded()}},{key:"render",value:function(){var e=this,t=this.props,n=t.chatSession,i=t.headerConfig,r=t.transcriptConfig,o=t.composerConfig,s=t.footerConfig;return this.state.transcript,a.a.createElement(up,{"data-testid":"amazon-connect-chat-wrapper"},(this.state.contactStatus===Jn||this.state.contactStatus===ei||this.state.contactStatus===ti)&&a.a.createElement(fp,{ref:this.parentHeaderRef},a.a.createElement(mp,{headerConfig:i})),a.a.createElement(hp,{parentHeaderWrapperHeight:this.state.parentHeaderWrapperHeight},a.a.createElement(cd,{loadPreviousTranscript:function(){return n.loadPreviousTranscript()},addMessage:function(e){return n.addOutgoingMessage(e)},downloadAttachment:function(e){return n.downloadAttachment(e)},transcript:this.state.transcript,typingParticipants:this.state.typingParticipants,contactStatus:this.state.contactStatus,contactId:n.contactId,transcriptConfig:r,textInputRef:_p,sendReadReceipt:function(){return n.sendReadReceipt.apply(n,arguments)}}),a.a.createElement(Qd,{contactStatus:this.state.contactStatus,contactId:n.contactId,addMessage:function(e,t){return n.addOutgoingMessage(t)},addAttachment:function(e,t){return n.addOutgoingAttachment(t)},onTyping:function(){return n.sendTypingEvent()},composerConfig:o,textInputRef:_p})),a.a.createElement(cp,{onEndChat:function(){return e.endChat()},onClose:function(){return e.closeChat()},contactStatus:this.state.contactStatus,footerConfig:s}))}}]),t}(r.Component);J(Fp,"defaultProps",{onEnded:function(){}});n(834);function bp(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yp(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}var xp=Object.values(_i.EVENT_CONTENT_TYPE),Tp="Amazon-Connect-ChatInterface-ChatSession",Dp=function(){function e(t,n,i){H(this,e),J(this,"session",null),this.session=connect.ChatSession.create({chatDetails:t.startChatResult,type:"CUSTOMER",options:{region:n}})}return U(e,[{key:"connect",value:function(){return this.session.connect()}},{key:"disconnect",value:function(){return this.session.disconnectParticipant()}},{key:"onParticipantReturned",value:function(e){return this.session.onParticipantReturned(e)}},{key:"onAutoDisconnection",value:function(e){return this.session.onAutoDisconnection(e)}},{key:"onParticipantIdle",value:function(e){return this.session.onParticipantIdle(e)}},{key:"onChatRehydrated",value:function(e){return this.session.onChatRehydrated(e)}},{key:"onTyping",value:function(e){return this.session.onTyping(e)}},{key:"onReadReceipt",value:function(e){return this.session.onReadReceipt(e)}},{key:"onDeliveredReceipt",value:function(e){return this.session.onDeliveredReceipt(e)}},{key:"onEnded",value:function(e){return this.session.onEnded(e)}},{key:"onMessage",value:function(e){return this.session.onMessage(e)}},{key:"onConnectionEstablished",value:function(e){return this.session.onConnectionEstablished(e)}},{key:"onConnectionBroken",value:function(e){return this.session.onConnectionBroken(e)}},{key:"getContactId",value:function(){return this.session.controller.contactId}},{key:"getParticipantId",value:function(){return this.session.getChatDetails().participantId}},{key:"getTranscript",value:function(e){return this.session.getTranscript(e)}},{key:"sendTypingEvent",value:function(){return this.session.sendEvent({contentType:_i.EVENT_CONTENT_TYPE.TYPING})}},{key:"sendReadReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:_i.EVENT_CONTENT_TYPE.READ_RECEIPT,content:JSON.stringify(ui({messageId:e},t))})}},{key:"sendDeliveredReceipt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.session.sendEvent({contentType:_i.EVENT_CONTENT_TYPE.DELIVERED_RECEIPT,content:JSON.stringify(ui({messageId:e},t))})}},{key:"sendMessage",value:function(e){return this.session.sendMessage({message:e.data,contentType:e.type})}},{key:"sendAttachment",value:function(e){return this.session.sendAttachment({attachment:e})}},{key:"downloadAttachment",value:function(e){return this.session.downloadAttachment({attachmentId:e})}},{key:"describeView",value:function(e){return this.session.describeView(e)}}]),e}(),Sp=function(){function e(t,n,i,r){H(this,e),J(this,"transcript",[]),J(this,"typingParticipants",[]),J(this,"thisParticipant",null),J(this,"client",null),J(this,"contactId",null),J(this,"contactStatus",Zn),J(this,"nextToken",null),J(this,"isOutgoingMessageInFlight",!1),J(this,"_eventHandlers",{"transcript-changed":[],"typing-participants-changed":[],"contact-status-changed":[],"incoming-message":[],"outgoing-message":[],"chat-disconnected":[],"chat-closed":[]}),this.client=new Dp(t,i,r),this.contactId=this.client.getContactId(),this.thisParticipant={participantId:this.client.getParticipantId(),displayName:n},window.connect&&(window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:Tp})),window.connect.csmService&&(this.csmService=window.connect.csmService)),window.connect&&window.connect.LogManager&&(this.logger=window.connect.LogManager.getLogger({prefix:Tp}))}return U(e,[{key:"onChatDisconnected",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onChatClose",value:function(e){this.on("chat-closed",(function(){e.apply(void 0,arguments)}))}},{key:"onIncoming",value:function(e){this.on("incoming-message",(function(){e.apply(void 0,arguments)}))}},{key:"onOutgoing",value:function(e){this.on("outgoing-message",(function(){e.apply(void 0,arguments)}))}},{key:"incomingItemDecorator",value:function(e){return e}},{key:"outgoingItemDecorator",value:function(e){return e}},{key:"openChatSession",value:function(){var e=this;return this._addEventListeners(),this._updateContactStatus(ei),this.client.connect().then((function(t){return e._updateContactStatus(Jn),t}),(function(t){return e._updateContactStatus(Zn),Promise.reject(t)}))}},{key:"endChat",value:function(){var e=me(Cp().mark((function e(){return Cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.disconnect();case 2:this._updateContactStatus(Zn),this._triggerEvent("chat-disconnected"),this._triggerEvent("chat-closed");case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"closeChat",value:function(){this._triggerEvent("chat-closed")}},{key:"sendTypingEvent",value:function(){return this.logger&&this.logger.info("Calling SendEvent API for Typing"),this.client.sendTypingEvent()}},{key:"sendReadReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for ReadReceipt",e,t),this.client.sendReadReceipt(e,t)}},{key:"sendDeliveredReceipt",value:function(e,t){return this.logger&&this.logger.info("Calling SendEvent API for DeliveredReceipt",e,t),this.client.sendDeliveredReceipt(e,t)}},{key:"alterOutgoingMessageForViewsIfRequired",value:function(e){var t=this._findLastMessageInTranscript(Ti,this.transcript);if(t>=0){var n=this.transcript[t];try{if(JSON.parse(n.content.data).templateType===bi.VIEW_RESOURCE&&e.type!==_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE){var i={action:" ",data:{content:"".concat(e.text)},templateType:bi.VIEW_RESOURCE,version:"1.0"};e={text:i=JSON.stringify(i),type:_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE}}}catch(r){}}return Ri.createOutgoingTranscriptItem(di,{data:e.text,type:e.type||_i.MESSAGE_CONTENT_TYPE.TEXT_PLAIN},this.thisParticipant)}},{key:"addOutgoingMessage",value:function(e){var t=this,n=this.alterOutgoingMessageForViewsIfRequired(e);this.logger&&this.logger.info("Adding outgoing message. ContactId: ".concat(this.contactId)),this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n]),this.isOutgoingMessageInFlight=!0,this.client.sendMessage(n.content).then((function(e){return t._shouldAddToTranscript(n)&&t._replaceItemInTranscript(n,Ri.createTranscriptItemFromSuccessResponse(n,e)),t.isOutgoingMessageInFlight=!1,e})).catch((function(e){t.isOutgoingMessageInFlight=!1,t._failMessage(n)}))}},{key:"addOutgoingAttachment",value:function(e){var t=Ri.createOutgoingTranscriptItem(pi,e,this.thisParticipant);return this._addItemsToTranscript([t]),this.logger&&this.logger.info("Sending File. ContactId: ".concat(this.contactId,".")),this.sendAttachment(t)}},{key:"sendAttachment",value:function(e){var t=this,n=this.thisParticipant,i=n.participantId,r=n.displayName;return this.client.sendAttachment(e.content).then((function(n){return t.transcript.splice(t.transcript.indexOf(e),1),n})).catch((function(n){e.transportDetails.error={type:n.type,message:n.message},n.type!==Di&&(n.type===Si?e.transportDetails.error.message="Attachment failed to send. The maximum number of attachments allowed, has been reached":(e.transportDetails.error.message="Attachment failed to send",e.transportDetails.error.retry=function(){var n=Ri.createOutgoingTranscriptItem(pi,e.content,{displayName:r,participantId:i});n.id=e.id,t._replaceItemInTranscript(e,n),t.sendAttachment(n)})),t._failMessage(e)}))}},{key:"downloadAttachment",value:function(e){return this.client.downloadAttachment(e)}},{key:"describeView",value:function(e){return this.client.describeView(e)}},{key:"loadPreviousTranscript",value:function(){var e={scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15};return this._loadTranscript(e)}},{key:"on",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is on!")),-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"off",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is off!"));var n=this._eventHandlers[e].indexOf(t);n>-1&&this._eventHandlers[e].splice(n,1)}},{key:"_triggerEvent",value:function(e,t){this.logger&&this.logger.info("Event [".concat(e,"] is triggered!")),this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"_updateTranscript",value:function(e){this.transcript=e,this._triggerEvent("transcript-changed",e)}},{key:"_updateTypingParticipants",value:function(e){this.typingParticipants=e,this._triggerEvent("typing-participants-changed",e)}},{key:"_updateContactStatus",value:function(e){this.contactStatus=e,this._triggerEvent("contact-status-changed",e)}},{key:"_addEventListeners",value:function(){var e=this;this.client.onMessage((function(t){e._handleIncomingData(t)})),this.client.onTyping((function(t){e._handleTypingEvent(t)})),this.client.onAutoDisconnection((function(t){e._handleIdleEvent(t)})),this.client.onParticipantReturned((function(t){e._handleIdleEvent(t)})),this.client.onParticipantIdle((function(t){e._handleIdleEvent(t)})),this.client.onChatRehydrated(function(){var t=me(Cp().mark((function t(n){return Cp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._handleChatRehydrated(n);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.client.onReadReceipt((function(t){e._handleMessageReceipt("read",t)})),this.client.onDeliveredReceipt((function(t){e._handleMessageReceipt("delivered",t)})),this.client.onEnded((function(t){e._handleEndedEvent(t)})),this.client.onConnectionEstablished(me(Cp().mark((function t(){return Cp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._loadLatestTranscript();case 2:case"end":return t.stop()}}),t)}))))}},{key:"_handleIdleEvent",value:function(e){var t=e.data,n=Ri.createItemFromIncoming(t);n&&this._shouldAddToTranscript(n)&&this._addItemsToTranscript([n])}},{key:"_handleChatRehydrated",value:function(){var e=me(Cp().mark((function e(t){return Cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:return e.prev=2,e.next=5,this.loadPreviousTranscript({maxResults:30});case 5:if(!this.nextToken){e.next=8;break}return e.next=8,this.loadPreviousTranscript({maxResults:30});case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0;case 13:case"end":return e.stop()}}),e,this,[[2,10]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_loadLatestTranscript",value:function(){return this._loadTranscript({scanDirection:"BACKWARD",sortOrder:"ASCENDING",maxResults:15})}},{key:"_loadTranscript",value:function(e){var t=this;return this.nextToken&&(e.nextToken=this.nextToken),this.client.getTranscript(e).then(function(){var e=me(Cp().mark((function e(n){var i,r,a;return Cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.data.Transcript,t.nextToken=n.data.NextToken,r=i.map((function(e){return Ri.createItemFromIncoming(e,t.thisParticipant)})),a=r.pop(),!Ri.isViewMessage(a)||a.content.type!==_i.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){e.next=7;break}return e.next=7,t._describeAndProcessView(a);case 7:r.push(a),t._addItemsToTranscript(r);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){}))}},{key:"_handleIncomingData",value:function(e){var t=this,n=e.data,i=Ri.createItemFromIncoming(n,this.thisParticipant);if(i){this._isRoundtripMessage(n)||this._updateTypingParticipantsUsingIncoming(i);var r=i.transportDetails,a=i.type,o=i.participantRole;if(r.direction===Ti){if(this._triggerEvent("incoming-message",n),Ri.isTypeMessageOrAttachment(a)&&Ri.isParticipantAgentOrCustomer(o)&&this.sendDeliveredReceipt(i.id,a===pi?{disableThrottle:!0}:{}),Ri.isViewMessage(i))return this._describeAndProcessView(i).then((function(){t._addItemsToTranscript([i])}))}else this._triggerEvent("outgoing-message",n);!0===this.isOutgoingMessageInFlight&&i.participantRole===mi||this._shouldAddToTranscript(i)&&this._addItemsToTranscript([i])}}},{key:"_describeAndProcessView",value:function(){var e=me(Cp().mark((function e(t){var n,i,r,a,o,s,l;return Cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=JSON.parse(t.content.data)).templateType===bi.VIEW_RESOURCE){e.next=3;break}return e.abrupt("return");case 3:return i={},r=Ri.createViewMessageData(n.data),e.prev=5,e.next=8,this.describeView({viewToken:r.viewToken});case 8:a=e.sent,o=a?a.data.View:{},s=JSON.parse(o.Content.Template),l=JSON.parse(o.Content.InputSchema),i=ui({},o,{Content:{Actions:o.Content.Actions,Template:s,InputSchema:l},InputData:r.viewInputData}),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(5),i={Content:{InputSchema:{},Template:{}},ErrorType:"INVALID_VIEW_ID",InputData:r.viewInputData},this.logger&&this.logger.warn("ERROR",e.t0,r.viewId,r.viewInputData);case 19:n.data.content=i,t.content.data=JSON.stringify(n);case 21:case"end":return e.stop()}}),e,this,[[5,15]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_handleMessageReceipt",value:function(e,t){var n=t.data,i=n.MessageMetadata.MessageId,r=this._findItemInTranscriptUsingMessageId(i);if(-1!==r){var a=r.transportDetails.sentTime;this._handleMessageReceiptLatencyMetric(e,t,a);var o=Ri.createIncomingTranscriptReceiptItem(this.thisParticipant,r,n,e);this._replaceItemInTranscript(r,o,e)}else this.logger&&this.logger.debug("Message with messageId:".concat(i," not found in transcript"))}},{key:"_handleMessageReceiptLatencyMetric",value:function(e,t,n){var i=t.chatDetails.participantId,r=t.data.MessageMetadata.Receipts;if(r.length>0){var a=this._findReceipt(r,i);if(a){var o=a.DeliveredTimestamp,s=a.ReadTimestamp,l="read"===e?zi(s)-1e3*n:zi(o)-1e3*n;this.logger&&this.logger.info(e,l)}}}},{key:"_findReceipt",value:function(e,t){return e.find((function(e){return e.RecipientParticipantId!==t}))}},{key:"_failMessage",value:function(e){var t=this.transcript.length>0?this.transcript[this.transcript.length-1].transportDetails.sentTime+.001:0;this._replaceItemInTranscript(e,Ri.createFailedItem(e,t))}},{key:"_isRoundTripSystemEvent",value:function(e){return-1!==xp.indexOf(e.contentType)&&this.thisParticipant.participantId===e.participantId}},{key:"_addItemsToTranscript",value:function(e){var t,n=this,i=this;if(0!==e.length){var r=(e=e.filter((function(e){return!n._isRoundTripSystemEvent(e)}))).reduce((function(e,t){return ui({},e,J({},t.id,t))}),{}),a=this.transcript.filter((function(e){return void 0===r[e.id]}));i._removePreviousInteractiveMessage(a,e),(t=a).push.apply(t,tt(e)),a.sort((function(e,t){var n=e.transportDetails.status===vi,i=t.transportDetails.status===vi;return n&&!i||!n&&i?n?1:-1:e.transportDetails.sentTime-t.transportDetails.sentTime})),a.forEach((function(e){(e=e.transportDetails.direction===Ti?i.incomingItemDecorator(e):i.outgoingItemDecorator(e)).lastReadReceipt=!1,e.lastDeliveredReceipt=!1}));var o=this._findLastMessageReceiptInTranscript("read",a),s=this._findLastMessageReceiptInTranscript("delivered",a),l=this._findLastMessageInTranscript(Ti,a),c=this._findLastMessageInTranscript(xi,a);if(-1!==l&&c>l){var u=a[l],f=u.type,h=u.id;this.sendReadReceipt(h,f===pi?{disableThrottle:!0}:{})}-1!==o&&(a[o].lastReadReceipt=!0),-1!==s&&o-1&&this.transcript.splice(n,1),this._addItemsToTranscript([t])}},{key:"_findItemInTranscriptUsingMessageId",value:function(e){var t=this.transcript.findIndex((function(t){return t.id===e}));return-1!==t?this.transcript[t]:-1}},{key:"_findLastMessageReceiptInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===xi&&r.messageReceiptType===e){n=i;break}}return n}},{key:"_findLastMessageInTranscript",value:function(e,t){for(var n=-1,i=t.length-1;i>=0;i--){var r=t[i].transportDetails;if(r&&r.direction===e){n=i;break}}return n}},{key:"_isRoundtripMessage",value:function(e){return this.thisParticipant.participantId===e.ParticipantId}},{key:"_handleEndedEvent",value:function(){this._updateContactStatus(ti),this._triggerEvent("chat-disconnected"),wp.trigger("agentEndChat",{})}},{key:"_handleTypingEvent",value:function(e){var t=this,n=e.data;if(!this._isRoundtripMessage(n)){var i=Ri.createTypingParticipant(n,this.thisParticipant.participantId);i.callback=setTimeout((function(){t._removeTypingParticipant(i.participantId)}),12e3);for(var r=[],a=0;a=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}var kg,Eg=Q.b.div(hg||(hg=q(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n > button {\n min-width: 85px;\n }\n"]))),wg=Q.b.div(dg||(dg=q(["\n padding: 10;\n background-color: red;\n"]))),Cg=Object(Q.b)(We)(pg||(pg=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),xg=Q.b.div(gg||(gg=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),Tg=function(e){function t(e){var n;return H(this,t),J(G(n=V(this,Y(t).call(this,e))),"resetState",(function(){n.setState({status:"NotInitiated",chatSession:null}),n.logger&&n.logger.info("Chat session is reset")})),n.state={chatSession:null,composerConfig:{},status:"NotInitiated",language:"en_US"},n.submitChatInitiationHandler=n.initiateChatSession.bind(G(n)),wp.on("initChat",n.initiateChatSession.bind(G(n))),window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatContainer"})),n}return $(t,e),U(t,[{key:"componentWillUnmount",value:function(){wp.off(this.submitChatInitiationHandler)}},{key:"initiateChatSession",value:function(e,t,n){var i={contactFlowId:e.contactFlowId?e.contactFlowId:null,instanceId:e.instanceId?e.instanceId:null,region:e.region?e.region:null,stage:e.stage?e.stage:null,featurePermissions:e.featurePermissions?e.featurePermissions:null,apiGatewayEndpoint:e.apiGatewayEndpoint?e.apiGatewayEndpoint:null};this.logger&&this.logger.info("Chat session meta data:",i),this.submitChatInitiation(e,t,n)}},{key:"submitChatInitiation",value:function(){var e=me(vg().mark((function e(t,n,i){var r,a,o,s,l;return vg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({status:"Initiating"}),e.prev=1,e.next=4,Ip(t);case 4:return r=e.sent,e.next=7,this.openChatSession(r,t.name,t.region,t.stage);case 7:a=e.sent,o=t.featurePermissions&&t.featurePermissions[Li]||r.featurePermissions&&r.featurePermissions[Li],s="string"===typeof t.supportedMessagingContentTypes&&t.supportedMessagingContentTypes.split(",").includes(_i.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN),l=t.language||"en_US",this.setState({status:"Initiated",chatSession:a,composerConfig:{attachmentsEnabled:o,richMessagingEnabled:s},language:l}),n&&n(a),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),this.setState({status:"InitiateFailed"}),i&&i(e.t0);case 19:case"end":return e.stop()}}),e,this,[[1,15]])})));return function(t,n,i){return e.apply(this,arguments)}}()},{key:"openChatSession",value:function(e,t,n,i){var r=new Ap(e,t,n,i);return r.onChatClose((function(){wp.trigger("endChat",{})})),r.openChatSession().then((function(){return r}))}},{key:"render",value:function(){var e=this;return"NotInitiated"===this.state.status||"Initiating"===this.state.status?a.a.createElement(Cg,{center:!0},a.a.createElement(Ze,{color:de.color.primary,size:30})):"InitiateFailed"===this.state.status?a.a.createElement(xg,null,a.a.createElement(wg,null,"Initialization failed"),a.a.createElement(Eg,null,a.a.createElement(Re,{col:"2",type:"tertiary",onClick:this.resetState},a.a.createElement("span",null,"Go Back")))):a.a.createElement(yg,null,a.a.createElement(bg.Consumer,null,(function(t){var n=t.changeLanguage;return a.a.createElement(a.a.Fragment,null,a.a.createElement(Fp,Object.assign({chatSession:e.state.chatSession,composerConfig:e.state.composerConfig,onEnded:e.resetState,changeLanguage:n,language:e.state.language},e.props)))})))}}]),t}(r.Component),Dg=Tg,Sg=Q.b.div(kg||(kg=q(["\n\n width: 300px;\n font-family: ",";\n\n margin: ",";\n border-collapse: collapse;\n box-shadow: 0px 2px 3px ",";\n\n box-sizing: border-box;\n\n *, *:before, *:after {\n box-sizing: inherit;\n }\n"])),(function(e){return e.theme.fonts.regular}),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.palette.alto})),Ag=function(e){return a.a.createElement(pe,{theme:Object.assign({},de,e.themeConfig)},e.children)};function Og(e){var t=e.baseCssClass,n=i(e,["baseCssClass"]);return a.a.createElement(Ag,{themeConfig:n.themeConfig||{}},a.a.createElement(Sg,{className:t},a.a.createElement(Dg,n)))}Og.defaultProps={baseCssClass:"connect-customer-interface"};var Ig=Og,Rg={loggerConfig:{level:connect.LogLevel.DEBUG,useDefaultLogger:!0}};!function(e){e.LogManager&&e.LogManager.updateLoggerConfig(Rg),e.ChatInterface=e.ChatInterface||{},e.ChatInterface.init=function(t){var n=t.containerId,r=i(t,["containerId"]);r.widgetType&&(Rg.csmConfig={widgetType:r.widgetType}),Rg.features={messageReceipts:{shouldSendMessageReceipts:!0,throttleTime:5e3}},e.ChatSession.setGlobalConfig(Rg),Gi(r),s.a.render(a.a.createElement(L,null,a.a.createElement(Ig,r)),document.getElementById(n)||document.getElementById("root"))},e.ChatInterface.getCurrentTheme=function(){return de},window.connect=e}(window.connect||{})}]); \ No newline at end of file +!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/amazon-connect/amazon-connect-chat-interface/",n(n.s=361)}([function(e,t,n){"use strict";e.exports=n(552)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Xe}));var i=n(207),r=n.n(i),a=n(349),o=n.n(a),s=n(0),l=n.n(s),c=n(350),u=n(152),f=n(208),d=n(358),h=n(359),p=function(e,t){for(var n=[e[0]],i=0,r=t.length;i1?i-1:0),a=1;a0?" Additional arguments: "+r.join(", "):"")));return y(o)}return b(t,e),t}(Error),M=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,P=function(e){var t=""+(e||""),n=[];return t.replace(M,(function(e,t,i){return n.push({componentId:t,matchIndex:i}),e})),n.map((function(e,i){var r=e.componentId,a=e.matchIndex,o=n[i+1];return{componentId:r,cssFromDOM:o?t.slice(a,o.matchIndex):t.slice(a)}}))},N=/^\s*\/\/.*$/gm,R=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),j=new r.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),B=[],L=function(e){if(-2===e){var t=B;return B=[],t}},q=o()((function(e){B.push(e)})),H=void 0,U=void 0,z=void 0,K=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(U)&&n.slice(t-U.length,t)!==U?"."+H:e};j.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(U)>0&&(n[0]=n[0].replace(z,K))},q,L]),R.use([q,L]);var G=function(e){return R("",e)};function W(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",r=e.join("").replace(N,""),a=t&&n?n+" "+t+" { "+r+" }":r;return H=i,U=t,z=new RegExp("\\"+U+"\\b","g"),j(n||!t?"":t,a)}var V=function(){return n.nc},Y=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},X=function(e,t){e[t]=Object.create(null)},$=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},J=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},Q=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},ie=function(e,t){return function(){var n,i=((n={})[x]=J(t),n[D]="4.4.1",n),r=V();return r&&(i.nonce=r),l.a.createElement("style",F({},i,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(ee(t))},oe=function e(t,n){var i=void 0===t?Object.create(null):t,r=void 0===n?Object.create(null):n,a=function(e){var t=r[e];return void 0!==t?t:r[e]=[""]},o=function(){var e="";for(var t in r){var n=r[t][0];n&&(e+=ee(t)+n)}return e},s={clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=F({},e[n]);return t}(i),n=Object.create(null);for(var a in r)n[a]=[r[a][0]];return e(t,n)},css:o,getIds:re(r),hasNameForId:$(i),insertMarker:a,insertRules:function(e,t,n){a(e)[0]+=t.join(" "),Y(i,e,n)},removeRules:function(e){var t=r[e];void 0!==t&&(t[0]="",X(i,e))},sealed:!1,styleTag:null,toElement:ie(o,i),toHTML:ne(o,i)};return s},se=function(e,t,n,i,r){if(A&&!n){var a=function(e,t,n){var i=document;e?i=e.ownerDocument:t&&(i=t.ownerDocument);var r=i.createElement("style");r.setAttribute(x,""),r.setAttribute(D,"4.4.1");var a=V();if(a&&r.setAttribute("nonce",a),r.appendChild(i.createTextNode("")),e&&!t)e.appendChild(r);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(r,n?t:t.nextSibling)}return r}(e,t,i);return O?function(e,t){var n=Object.create(null),i=Object.create(null),r=void 0!==t,a=!1,o=function(t){var r=i[t];return void 0!==r?r:(i[t]=ae(e.ownerDocument,t),e.appendChild(i[t]),n[t]=Object.create(null),i[t])},s=function(){var e="";for(var t in i)e+=i[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:re(i),hasNameForId:$(n),insertMarker:o,insertRules:function(e,i,s){for(var l=o(e),c=[],u=i.length,f=0;f0&&(a=!0,t().insertRules(e+"-import",c))},removeRules:function(o){var s=i[o];if(void 0!==s){var l=ae(e.ownerDocument,o);e.replaceChild(l,s),i[o]=l,X(n,o),r&&a&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ie(s,n),toHTML:ne(s,n)}}(a,r):function(e,t){var n=Object.create(null),i=Object.create(null),r=[],a=void 0!==t,o=!1,s=function(e){var t=i[e];return void 0!==t?t:(i[e]=r.length,r.push(0),X(n,e),i[e])},l=function(){var t=Q(e).cssRules,n="";for(var a in i){n+=ee(a);for(var o=i[a],s=te(r,o),l=s-r[o];l0&&(o=!0,t().insertRules(i+"-import",p)),r[u]+=h,Y(n,i,c)},removeRules:function(s){var l=i[s];if(void 0!==l&&!1!==e.isConnected){var c=r[l];!function(e,t,n){for(var i=t-n,r=t;r>i;r-=1)e.deleteRule(r)}(Q(e),te(r,l)-1,c),r[l]=0,X(n,s),a&&o&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ie(l,n),toHTML:ne(l,n)}}(a,r)}return oe()},le=/\s+/,ce=void 0;ce=A?O?40:1e3:-1;var ue=0,fe=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=se(t.target,n?n.styleTag:null,t.forceServer,!0)},ue+=1,this.id=ue,this.forceServer=i,this.target=i?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],n=!1,i=document.querySelectorAll("style["+x+"]["+D+'="4.4.1"]'),r=i.length;if(!r)return this;for(var a=0;a0&&void 0!==arguments[0]&&arguments[0]).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),i=e.clone(),r=0;r1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:E;if(!Object(u.isValidElementType)(t))throw new I(1,String(t));var i=function(){return e(t,n,ye.apply(void 0,arguments))};return i.withConfig=function(i){return ve(e,t,F({},n,i))},i.attrs=function(i){return ve(e,t,F({},n,{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i}function ke(e){for(var t,n=0|e.length,i=0|n,r=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+((1540483477*(t>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++r;switch(n){case 3:i^=(255&e.charCodeAt(r+2))<<16;case 2:i^=(255&e.charCodeAt(r+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(r)))+((1540483477*(i>>>16)&65535)<<16)}return((i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16))^i>>>15)>>>0}var Ee=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ce(e){var t="",n=void 0;for(n=e;n>Ee;n=Math.floor(n/Ee))t=we(n%Ee)+t;return we(n%Ee)+t}function Te(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:E,i=!!n&&e.theme===n.theme;return e.theme&&!i?e.theme:t||n.theme},Oe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Me(e){return e.replace(Oe,"-").replace(Ie,"")}function Pe(e){return"string"===typeof e&&!0}var Ne={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Re={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},je=((xe={})[u.ForwardRef]={$$typeof:!0,render:!0},xe),Be=Object.defineProperty,Le=Object.getOwnPropertyNames,qe=Object.getOwnPropertySymbols,He=void 0===qe?function(){return[]}:qe,Ue=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Ke=Object.prototype,Ge=Array.prototype;function We(e,t,n){if("string"!==typeof t){var i=ze(t);i&&i!==Ke&&We(e,i,n);for(var r=Ge.concat(Le(t),He(t)),a=je[e.$$typeof]||Ne,o=je[t.$$typeof]||Ne,s=r.length,l=void 0,c=void 0;s--;)if(c=r[s],!Re[c]&&(!n||!n[c])&&(!o||!o[c])&&(!a||!a[c])&&(l=Ue(t,c)))try{Be(e,c,l)}catch(u){}return e}return e}var Ve=Object(s.createContext)(),Ye=Ve.Consumer,Xe=function(e){function t(n){_(this,t);var i=y(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext.bind(i)),i.renderInner=i.renderInner.bind(i),i}return b(t,e),t.prototype.render=function(){return this.props.children?l.a.createElement(Ve.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return l.a.createElement(Ve.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(w(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":g(e)))throw new I(8);return F({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),$e=(function(){function e(){_(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return l.a.createElement(Qe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)}}(),Object(s.createContext)()),Je=$e.Consumer,Qe=function(e){function t(n){_(this,t);var i=y(this,e.call(this,n));return i.getContext=Object(f.a)(i.getContext),i}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new I(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,i=e.target;return l.a.createElement($e.Provider,{value:this.getContext(n,i)},t)},t}(s.Component),Ze={};var et=function(e){function t(){_(this,t);var n=y(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return l.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():l.a.createElement(Ye,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,i=t.defaultProps,r=(t.displayName,t.foldedComponentIds),a=t.styledComponentId,o=t.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(E,this.props):this.generateAndInjectStyles(Ae(this.props,e,i)||E,this.props);var c=this.props.as||this.attrs.as||o,u=Pe(c),f={},h=F({},this.props,this.attrs),p=void 0;for(p in h)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=h[p]:"forwardedAs"===p?f.as=h[p]:u&&!Object(d.a)(p)||(f[p]=h[p]));return this.props.style&&this.attrs.style&&(f.style=F({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(r,a,l!==a?l:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var i=this,r=F({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,a=!1,o=void 0,s=void 0;for(s in w(n)&&(n=n(r),a=!0),n)o=n[s],a||!w(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||T(o)||(o=o(r)),i.attrs[s]=o,r[s]=o})),r):r},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,i=n.attrs,r=n.componentStyle;n.warnTooManyClasses;return r.isStatic&&!i.length?r.generateAndInjectStyles(E,this.styleSheet):r.generateAndInjectStyles(this.buildExecutionContext(e,t,i),this.styleSheet)},t}(s.Component);function tt(e,t,n){var i=T(e),r=!Pe(e),a=t.displayName,o=void 0===a?function(e){return Pe(e)?"styled."+e:"Styled("+C(e)+")"}(e):a,s=t.componentId,c=void 0===s?function(e,t,n){var i="string"!==typeof t?"sc":Me(t),r=(Ze[i]||0)+1;Ze[i]=r;var a=i+"-"+e.generateName(i+r);return n?n+"-"+a:a}(Se,t.displayName,t.parentComponentId):s,u=t.ParentComponent,f=void 0===u?et:u,d=t.attrs,p=void 0===d?k:d,g=t.displayName&&t.componentId?Me(t.displayName)+"-"+t.componentId:t.componentId||c,_=i&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,m=new Se(i?e.componentStyle.rules.concat(n):n,_,g),b=void 0,y=function(e,t){return l.a.createElement(f,F({},e,{forwardedComponent:b,forwardedRef:t}))};return y.displayName=o,(b=l.a.forwardRef(y)).displayName=o,b.attrs=_,b.componentStyle=m,b.foldedComponentIds=i?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):k,b.styledComponentId=g,b.target=i?e.target:e,b.withComponent=function(e){var i=t.componentId,r=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["componentId"]),a=i&&i+"-"+(Pe(e)?e:Me(C(e)));return tt(e,F({},r,{attrs:_,componentId:a,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?Object(h.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},r&&We(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var nt=function(e){return ve(tt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nt[e]=nt(e)}));!function(){function e(t,n){_(this,e),this.rules=t,this.componentId=n,this.isStatic=Te(t,k),de.master.hasId(n)||de.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=W(be(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();A&&(window.scCGSHMRCache={});t.b=nt}).call(this,n(93))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?T(e)+t:t}function D(){return!0}function S(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return I(e,t,0)}function O(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var M=0,P=1,N=2,R="function"===typeof Symbol&&Symbol.iterator,j="@@iterator",B=R||j;function L(e){this.next=e}function q(e,t,n,i){var r=0===e?t:1===e?n:[t,n];return i?i.value=r:i={value:r,done:!1},i}function H(){return{value:void 0,done:!0}}function U(e){return!!G(e)}function z(e){return e&&"function"===typeof e.next}function K(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(R&&e[R]||e[j]);if("function"===typeof t)return t}function W(e){return e&&"number"===typeof e.length}function V(e){return null===e||void 0===e?oe():o(e)?e.toSeq():ce(e)}function Y(e){return null===e||void 0===e?oe().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function X(e){return null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():le(e)}function $(e){return(null===e||void 0===e?oe():o(e)?s(e)?e.entrySeq():e:le(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=M,L.VALUES=P,L.ENTRIES=N,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[B]=function(){return this},t(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},V.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(Y,V),Y.prototype.toKeyedSeq=function(){return this},t(X,V),X.of=function(){return X(arguments)},X.prototype.toIndexedSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq [","]")},X.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},X.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t($,V),$.of=function(){return $(arguments)},$.prototype.toSetSeq=function(){return this},V.isSeq=ae,V.Keyed=Y,V.Set=$,V.Indexed=X;var J,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ie(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():z(e)?new re(e).fromEntrySeq():U(e)?new ie(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):z(e)?new re(e):U(e)?new ie(e):void 0}function fe(e,t,n,i){var r=e._cache;if(r){for(var a=r.length-1,o=0;o<=a;o++){var s=r[n?a-o:o];if(!1===t(s[1],i?s[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function de(e,t,n,i){var r=e._cache;if(r){var a=r.length-1,o=0;return new L((function(){var e=r[n?a-o:o];return o++>a?H():q(t,i?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):ge(e)}function pe(e,t,n,i){return Array.isArray(t)?e.call(i,n,X(t).map((function(n,i){return pe(e,n,i,t)}))):_e(t)?e.call(i,n,Y(t).map((function(n,i){return pe(e,n,i,t)}))):t}function ge(e){return Array.isArray(e)?X(e).map(ge).toList():_e(e)?Y(e).map(ge).toMap():e}function _e(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function Fe(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var i=e.entries();return t.every((function(e,t){var r=i.next().value;return r&&me(r[1],e)&&(n||me(r[0],t))}))&&i.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{r=!0;var a=e;e=t,t=a}var f=!0,d=t.__iterate((function(t,i){if(n?!e.has(t):r?!me(t,e.get(i,b)):!me(e.get(i,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function ye(e,t){if(!e)throw new Error(t)}function ve(e,t,n){if(!(this instanceof ve))return new ve(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),ti?H():q(e,r,n[t?i-r++:r++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,i=this._keys,r=i.length-1,a=0;a<=r;a++){var o=i[t?r-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,i=this._keys,r=i.length-1,a=0;return new L((function(){var o=i[t?r-a:a];return a++>r?H():q(e,o,n[o])}))},ne.prototype[p]=!0,t(ie,X),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),i=0;if(z(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,i++,this););return i},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!z(n))return new L(H);var i=0;return new L((function(){var t=n.next();return t.done?t:q(e,i++,t.value)}))},t(re,X),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,i=this._iterator,r=this._iteratorCache,a=0;a=i.length){var t=n.next();if(t.done)return t;i[r]=t.value}return q(e,r,i[r++])}))},t(be,X),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return me(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return S(e,t,n)?this:new be(this._value,O(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return me(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ve.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},ve.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?H():q(e,a++,o)}))},ve.prototype.equals=function(e){return e instanceof ve?this._start===e._start&&this._end===e._end&&this._step===e._step:Fe(this,e)},t(ke,n),t(Ee,ke),t(we,ke),t(Ce,ke),ke.Keyed=Ee,ke.Indexed=we,ke.Set=Ce;var Te="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),i=65535&(t|=0);return n*i+((e>>>16)*i+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return xe(n)}if("string"===t)return e.length>Le?Se(e):Ae(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Oe(e);if("function"===typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Se(e){var t=Ue[e];return void 0===t&&(t=Ae(e),He===qe&&(He=0,Ue={}),He++,Ue[e]=t),t}function Ae(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,Re="function"===typeof WeakMap;Re&&(Ne=new WeakMap);var je=0,Be="__immutablehash__";"function"===typeof Symbol&&(Be=Symbol(Be));var Le=16,qe=255,He=0,Ue={};function ze(e){ye(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null===e||void 0===e?rt():Ge(e)&&!u(e)?e:rt().withMutations((function(t){var n=i(e);ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ge(e){return!(!e||!e[Ve])}t(Ke,Ee),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return at(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return at(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var i=_t(this,kn(e),t,n);return i===b?void 0:i},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):rt()},Ke.prototype.merge=function(){return dt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return dt(this,ht,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,pt(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,rt(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ut(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ut(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,i=0;return this._root&&this._root.iterate((function(t){return i++,e(t[1],t[0],n)}),t),i},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?it(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=Ge;var We,Ve="@@__IMMUTABLE_MAP__@@",Ye=Ke.prototype;function Xe(e,t){this.ownerID=e,this.entries=t}function $e(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ze(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return q(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function it(e,t,n,i){var r=Object.create(Ye);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function rt(){return We||(We=it(0))}function at(e,t,n){var i,r;if(e._root){var a=k(y),o=k(v);if(i=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;r=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;r=1,i=new Xe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=i,e.__hash=void 0,e.__altered=!0,e):i?it(r,i):rt()}function ot(e,t,n,i,r,a,o,s){return e?e.update(t,n,i,r,a,o,s):a===b?e:(E(s),E(o),new Ze(t,i,[r,a]))}function st(e){return e.constructor===Ze||e.constructor===Qe}function lt(e,t,n,i,r){if(e.keyHash===i)return new Qe(t,i,[e.entry,r]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&F,s=(0===n?i:i>>>n)&F;return new $e(t,1<>>=1)o[s]=1&n?t[a++]:void 0;return o[i]=r,new Je(e,a+1,o)}function dt(e,t,n){for(var r=[],a=0;a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ft(e,t,n,i){var r=i?e:C(e);return r[t]=n,r}function bt(e,t,n,i){var r=e.length+1;if(i&&t+1===r)return e[t]=n,e;for(var a=new Array(r),o=0,s=0;s=vt)return ct(e,l,i,r);var d=e&&e===this.ownerID,h=d?l:C(l);return f?s?c===u-1?h.pop():h[c]=h.pop():h[c]=[i,r]:h.push([i,r]),d?(this.entries=h,this):new Xe(e,h)}},$e.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=1<<((0===e?t:t>>>e)&F),a=this.bitmap;return 0===(a&r)?i:this.nodes[mt(a&r-1)].get(e+_,t,n,i)},$e.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&F,l=1<=kt)return ft(e,d,c,s,p);if(u&&!p&&2===d.length&&st(d[1^f]))return d[1^f];if(u&&p&&1===d.length&&st(p))return p;var g=e&&e===this.ownerID,m=u?p?c:c^l:c|l,y=u?p?Ft(d,f,p,g):yt(d,f,g):bt(d,f,p,g);return g?(this.bitmap=m,this.nodes=y,this):new $e(e,m,y)},Je.prototype.get=function(e,t,n,i){void 0===t&&(t=De(n));var r=(0===e?t:t>>>e)&F,a=this.nodes[r];return a?a.get(e+_,t,n,i):i},Je.prototype.update=function(e,t,n,i,r,a,o){void 0===n&&(n=De(i));var s=(0===t?n:n>>>t)&F,l=r===b,c=this.nodes,u=c[s];if(l&&!u)return this;var f=ot(u,e,t+_,n,i,r,a,o);if(f===u)return this;var d=this.count;if(u){if(!f&&--d0&&i=0&&e>>t&F;if(i>=this.array.length)return new Dt([],e);var r,a=0===i;if(t>0){var o=this.array[i];if((r=o&&o.removeBefore(e,t-_,n))===o&&a)return this}if(a&&!r)return this;var s=jt(this,e);if(!a)for(var l=0;l>>t&F;if(r>=this.array.length)return this;if(t>0){var a=this.array[r];if((i=a&&a.removeAfter(e,t-_,n))===a&&r===this.array.length-1)return this}var o=jt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var St,At,Ot={};function It(e,t){var n=e._origin,i=e._capacity,r=Ht(i),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?s(e,n):l(e,t,n)}function s(e,o){var s=o===r?a&&a.array:e&&e.array,l=o>n?0:n-o,c=i-o;return c>m&&(c=m),function(){if(l===c)return Ot;var e=t?--c:l++;return s&&s[e]}}function l(e,r,a){var s,l=e&&e.array,c=a>n?0:n-a>>r,u=1+(i-a>>r);return u>m&&(u=m),function(){for(;;){if(s){var e=s();if(e!==Ot)return e;s=null}if(c===u)return Ot;var n=t?--u:c++;s=o(l&&l[n],r-_,a+(n<=e.size||t<0)return e.withMutations((function(e){t<0?Lt(e,t).set(0,n):Lt(e,0,t+1).set(t,n)}));t+=e._origin;var i=e._tail,r=e._root,a=k(v);return t>=Ht(e._capacity)?i=Rt(i,e.__ownerID,0,t,n,a):r=Rt(r,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=r,e._tail=i,e.__hash=void 0,e.__altered=!0,e):Mt(e._origin,e._capacity,e._level,r,i):e}function Rt(e,t,n,i,r,a){var o,s=i>>>n&F,l=e&&s0){var c=e&&e.array[s],u=Rt(c,t,n-_,i,r,a);return u===c?e:((o=jt(e,t)).array[s]=u,o)}return l&&e.array[s]===r?e:(E(a),o=jt(e,t),void 0===r&&s===o.array.length-1?o.array.pop():o.array[s]=r,o)}function jt(e,t){return t&&e&&t===e.ownerID?e:new Dt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ht(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>i&F],i-=_;return n}}function Lt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var i=e.__ownerID||new w,r=e._origin,a=e._capacity,o=r+t,s=void 0===n?a:n<0?a+n:r+n;if(o===r&&s===a)return e;if(o>=s)return e.clear();for(var l=e._level,c=e._root,u=0;o+u<0;)c=new Dt(c&&c.array.length?[void 0,c]:[],i),u+=1<<(l+=_);u&&(o+=u,r+=u,s+=u,a+=u);for(var f=Ht(a),d=Ht(s);d>=1<f?new Dt([],i):h;if(h&&d>f&&o_;m-=_){var b=f>>>m&F;g=g.array[b]=jt(g.array[b],i)}g.array[f>>>_&F]=h}if(s=d)o-=d,s-=d,l=_,c=null,p=p&&p.removeBefore(i,0,o);else if(o>r||d>>l&F;if(y!==d>>>l&F)break;y&&(u+=(1<r&&(c=c.removeBefore(i,l,o-u)),c&&da&&(a=c.size),o(l)||(c=c.map((function(e){return he(e)}))),i.push(c)}return a>e.size&&(e=e.setSize(a)),gt(e,t,i)}function Ht(e){return e>>_<<_}function Ut(e){return null===e||void 0===e?Gt():zt(e)?e:Gt().withMutations((function(t){var n=i(e);ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function zt(e){return Ge(e)&&u(e)}function Kt(e,t,n,i){var r=Object.create(Ut.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=i,r}function Gt(){return At||(At=Kt(rt(),Pt()))}function Wt(e,t,n){var i,r,a=e._map,o=e._list,s=a.get(t),l=void 0!==s;if(n===b){if(!l)return e;o.size>=m&&o.size>=2*a.size?(i=(r=o.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(i.__ownerID=r.__ownerID=e.__ownerID)):(i=a.remove(t),r=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return e;i=a,r=o.set(s,[t,n])}else i=a.set(t,o.size),r=o.set(o.size,[t,n]);return e.__ownerID?(e.size=i.size,e._map=i,e._list=r,e.__hash=void 0,e):Kt(i,r)}function Vt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Jt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=yn,t.__iterateUncached=function(t,n){var i=this;return e.__iterate((function(e,n){return!1!==t(n,e,i)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var i=e.__iterator(t,n);return new L((function(){var e=i.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===P?M:P,n)},t}function Qt(e,t,n){var i=bn(e);return i.size=e.size,i.has=function(t){return e.has(t)},i.get=function(i,r){var a=e.get(i,b);return a===b?r:t.call(n,a,i,e)},i.__iterateUncached=function(i,r){var a=this;return e.__iterate((function(e,r,o){return!1!==i(t.call(n,e,r,o),r,a)}),r)},i.__iteratorUncached=function(i,r){var a=e.__iterator(N,r);return new L((function(){var r=a.next();if(r.done)return r;var o=r.value,s=o[0];return q(i,s,t.call(n,o[1],s,e),r)}))},i}function Zt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,i){return e.get(t?n:-1-n,i)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=yn,n.__iterate=function(t,n){var i=this;return e.__iterate((function(e,n){return t(e,n,i)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,i){var r=bn(e);return i&&(r.has=function(i){var r=e.get(i,b);return r!==b&&!!t.call(n,r,i,e)},r.get=function(i,r){var a=e.get(i,b);return a!==b&&t.call(n,a,i,e)?a:r}),r.__iterateUncached=function(r,a){var o=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,r(e,i?a:s-1,o)}),a),s},r.__iteratorUncached=function(r,a){var o=e.__iterator(N,a),s=0;return new L((function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return q(r,i?c:s++,u,a)}}))},r}function tn(e,t,n){var i=Ke().asMutable();return e.__iterate((function(r,a){i.update(t.call(n,r,a,e),0,(function(e){return e+1}))})),i.asImmutable()}function nn(e,t,n){var i=s(e),r=(u(e)?Ut():Ke()).asMutable();e.__iterate((function(a,o){r.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(i?[o,a]:a),e}))}));var a=Fn(e);return r.map((function(t){return gn(e,a(t))}))}function rn(e,t,n,i){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),S(t,n,r))return e;var a=A(t,r),o=O(n,r);if(a!==a||o!==o)return rn(e.toSeq().cacheResult(),t,n,i);var s,l=o-a;l===l&&(s=l<0?0:l);var c=bn(e);return c.size=0===s?s:e.size&&s||void 0,!i&&ae(e)&&s>=0&&(c.get=function(t,n){return(t=x(this,t))>=0&&ts)return H();var e=r.next();return i||t===P?e:q(t,l-1,t===M?void 0:e.value[1],e)}))},c}function an(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterate(i,r);var o=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++o&&i(e,r,a)})),o},i.__iteratorUncached=function(i,r){var a=this;if(r)return this.cacheResult().__iterator(i,r);var o=e.__iterator(N,r),s=!0;return new L((function(){if(!s)return H();var e=o.next();if(e.done)return e;var r=e.value,l=r[0],c=r[1];return t.call(n,c,l,a)?i===N?e:q(i,l,c,e):(s=!1,H())}))},i}function on(e,t,n,i){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,r(e,i?a:l-1,o)})),l},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var s=e.__iterator(N,a),l=!0,c=0;return new L((function(){var e,a,u;do{if((e=s.next()).done)return i||r===P?e:q(r,c++,r===M?void 0:e.value[1],e);var f=e.value;a=f[0],u=f[1],l&&(l=t.call(n,u,a,o))}while(l);return r===N?e:q(r,a,u,e)}))},r}function sn(e,t){var n=s(e),r=[e].concat(t).map((function(e){return o(e)?n&&(e=i(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var a=r[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var c=new te(r);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function ln(e,t,n){var i=bn(e);return i.__iterateUncached=function(i,r){var a=0,s=!1;function l(e,c){var u=this;e.__iterate((function(e,r){return(!t||c0}function pn(e,t,i){var r=bn(e);return r.size=new te(i).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,i=this.__iterator(P,t),r=0;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var a=i.map((function(e){return e=n(e),K(r?e.reverse():e)})),o=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?H():q(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function gn(e,t){return ae(e)?t:e.constructor(t)}function _n(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return ze(e.size),T(e)}function Fn(e){return s(e)?i:l(e)?r:a}function bn(e){return Object.create((s(e)?Y:l(e)?X:$).prototype)}function yn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function vn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},zn.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;ze(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},zn.prototype.pop=function(){return this.slice(1)},zn.prototype.unshift=function(){return this.push.apply(this,arguments)},zn.prototype.unshiftAll=function(e){return this.pushAll(e)},zn.prototype.shift=function(){return this.pop.apply(this,arguments)},zn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xn()},zn.prototype.slice=function(e,t){if(S(e,t,this.size))return this;var n=A(e,this.size);if(O(t,this.size)!==this.size)return we.prototype.slice.call(this,e,t);for(var i=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):Yn(i,r)},zn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},zn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,i=this._head;i&&!1!==e(i.value,n++,this);)i=i.next;return n},zn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,i=this._head;return new L((function(){if(i){var t=i.value;return i=i.next,q(e,n++,t)}return H()}))},zn.isStack=Kn;var Gn,Wn="@@__IMMUTABLE_STACK__@@",Vn=zn.prototype;function Yn(e,t,n,i){var r=Object.create(Vn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Xn(){return Gn||(Gn=Yn(0))}function $n(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Vn[Wn]=!0,Vn.withMutations=Ye.withMutations,Vn.asMutable=Ye.asMutable,Vn.asImmutable=Ye.asImmutable,Vn.wasAltered=Ye.wasAltered,n.Iterator=L,$n(n,{toArray:function(){ze(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Vt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){ze(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ut(this.toKeyedSeq())},toOrderedSet:function(){return jn(s(this)?this.valueSeq():this)},toSet:function(){return Sn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Xt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return zn(s(this)?this.valueSeq():this)},toList:function(){return wt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(N)},every:function(e,t){ze(this.size);var n=!0;return this.__iterate((function(i,r,a){if(!e.call(t,i,r,a))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var i=this.findEntry(e,t);return i?i[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(i,r,a){if(e.call(t,i,r,a))return n=[r,i],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ze(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ze(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(i){n?n=!1:t+=e,t+=null!==i&&void 0!==i?i.toString():""})),t},keys:function(){return this.__iterator(M)},map:function(e,t){return gn(this,Qt(this,e,t))},reduce:function(e,t,n){var i,r;return ze(this.size),arguments.length<2?r=!0:i=t,this.__iterate((function(t,a,o){r?(r=!1,i=t):i=e.call(n,i,t,a,o)})),i},reduceRight:function(e,t,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return gn(this,Zt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(ti(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return T(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return Fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(ei).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ti(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(D)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,ln(this,e,!0))},fromEntrySeq:function(){return new $t(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,i=this,r=kn(e);!(n=r.next()).done;){var a=n.value;if((i=i&&i.get?i.get(a,b):b)===b)return t}return i},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Zn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?ni(e):ai)},minBy:function(e,t){return dn(this,t?ni(t):ai,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ti(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ti(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=oi(this))}});var Jn=n.prototype;Jn[f]=!0,Jn[B]=Jn.values,Jn.__toJS=Jn.toArray,Jn.__toStringMapper=ii,Jn.inspect=Jn.toSource=function(){return this.toString()},Jn.chain=Jn.flatMap,Jn.contains=Jn.includes,function(){try{Object.defineProperty(Jn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn,this.size}}})}catch(e){}}(),$n(i,{flip:function(){return gn(this,Jt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,i=0;return gn(this,this.toSeq().map((function(r,a){return e.call(t,[a,r],i++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(i,r){return e.call(t,i,r,n)})).flip())}});var Qn=i.prototype;function Zn(e,t){return t}function ei(e,t){return[t,e]}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(e){return function(){return-e.apply(this,arguments)}}function ii(e){return"string"===typeof e?JSON.stringify(e):e}function ri(){return C(arguments)}function ai(e,t){return et?-1:0}function oi(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),i=t?1:0;return si(e.__iterate(n?t?function(e,t){i=31*i+li(De(e),De(t))|0}:function(e,t){i=i+li(De(e),De(t))|0}:t?function(e){i=31*i+De(e)|0}:function(e){i=i+De(e)|0}),i)}function si(e,t){return t=Te(t,3432918353),t=Te(t<<15|t>>>-15,461845907),t=Te(t<<13|t>>>-13,5),t=Te((t=t+3864292196^e)^t>>>16,2246822507),t=xe((t=Te(t^t>>>13,3266489909))^t>>>16)}function li(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return Qn[d]=!0,Qn[B]=Jn.entries,Qn.__toJS=Jn.toObject,Qn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+ii(e)},$n(r,{toKeyedSeq:function(){return new Vt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Zt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var i=this.slice(0,e);return gn(this,1===n?i:i.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,ln(this,e,!1))},get:function(e,t){return(e=x(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||e2?n-2:0),a=2;a0)return r.getInlineStyleAt(i-1);if(r.getLength())return r.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),r=e.getBlockForKey(n);if(i0)return r.getInlineStyleAt(i-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return m(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),i=n.getKey(),r=n.getLength();return t.acceptSelection(e,new l({anchorKey:i,anchorOffset:r,focusKey:i,focusOffset:r,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:null});var o=e.getSelection(),l=e.getCurrentContent(),c=e.getUndoStack(),u=n;o!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,i)?(c=c.push(l),u=u.set("selectionBefore",o)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(u=u.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(i)&&(f=null);var h={currentContent:u,directionMap:a,undoStack:c,redoStack:d(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:r,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(r),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:r.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),i=n.peek();if(!i)return e;var r=e.getCurrentContent(),a=s.getDirectionMap(i,e.getDirectionMap());return t.set(e,{currentContent:i,directionMap:a,undoStack:e.getUndoStack().push(r),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function m(e,t,n){return _.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function F(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=_},function(e,t,n){"use strict";var i=n(11);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var i=n(741),r=n(112),a=n(43),o=n(757),s=n(81),l=n(196),c=n(198),u=n(317),f=n(758),d=n(333),h=n(143),p=n(30),g=n(315),_=n(13),m=n(204),F=n(823),b=n(344),y=n(144),v=n(824),k=n(827),E=n(56),w=n(345),C=n(833),T={Editor:f,EditorBlock:d,EditorState:_,CompositeDecorator:o,Entity:h,EntityInstance:g,BlockMapBuilder:r,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:F,SelectionState:y,AtomicBlockUtils:i,KeyBindingUtil:m,Modifier:p,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(342),convertFromRaw:k,convertToRaw:v,genKey:E,getDefaultKeyBinding:w,getVisibleSelectionRect:C};e.exports=T},function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(258),t),r(n(561),t),r(n(562),t)},function(e,t,n){"use strict";n.r(t),n.d(t,"CacheProvider",(function(){return S})),n.d(t,"ThemeContext",(function(){return D})),n.d(t,"withEmotionCache",(function(){return A})),n.d(t,"css",(function(){return G})),n.d(t,"ClassNames",(function(){return Q})),n.d(t,"Global",(function(){return V})),n.d(t,"createElement",(function(){return W})),n.d(t,"jsx",(function(){return W})),n.d(t,"keyframes",(function(){return X}));var i=n(0);var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;th)&&(L=(U=U.replace(" ",":")).length),0i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(_,"$1"+e.trim());case 58:return e.trim()+t.replace(_,"$1"+e.trim());default:if(0<1*n&&0l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var _=/[A-Z]|^ms/g,m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F=function(e){return 45===e.charCodeAt(1)},b=function(e){return null!=e&&"boolean"!==typeof e},y=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return F(e)?e:e.replace(_,"-$&").toLowerCase()})),v=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(m,(function(e,t,n){return E={name:t,styles:n,next:E},t}))}return 1===g[e]||F(e)||"number"!==typeof t||0===t?t:t+"px"};function k(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return E={name:n.name,styles:n.styles,next:E},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)E={name:r.name,styles:r.styles,next:E},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",r=h(e,t),a=p(r,t);return c(a,a.getSelectionAfter(),n,i)},removeRange:function(e,t,n){var i,r,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),i=t.getAnchorKey(),r=t.getFocusKey(),a=e.getBlockForKey(i),s=e.getBlockForKey(r);var l=t.getStartOffset(),c=t.getEndOffset(),u=a.getEntityAt(l),f=s.getEntityAt(c-1);if(i===r&&u&&u===f){var d=o(e.getEntityMap(),a,s,t,n);return p(e,d)}var g=h(e,t);return p(g,t)},splitBlock:function(e,t){var n=h(e,t),i=p(n,t);return g(i,i.getSelectionAfter())},applyInlineStyle:function(e,t,n){return r.add(e,t,n)},removeInlineStyle:function(e,t,n){return r.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return d(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var i=h(e,t);return a(i,t,n)}};e.exports=m},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var i=n(761),r=n(764),a=n(765),o=n(766);function s(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=i?i(a):a,r.contains(a,t))}function l(e){return"Windows"===i.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return s(i.browserName,i.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(i.browserArchitecture,null,e)},isDevice:function(e){return s(i.deviceName,null,e)},isEngine:function(e){return s(i.engineName,i.engineVersion,e)},isPlatform:function(e){return s(i.platformName,i.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(i.platformArchitecture,null,e)}};e.exports=a(c,o)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var i=n(51),r=Object;e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},function(e,t,n){"use strict";var i=n(15),r=n(215),a=n(214),o=n(9),s=n(158),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";t.f=i?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=u(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:f in n?n[f]:i[f],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var i=n(38).has;e.exports=function(e){return i(e),e}},function(e,t,n){"use strict";var i=n(4),r=Map.prototype;e.exports={Map:Map,set:i(r.set),get:i(r.get),has:i(r.has),remove:i(r.delete),proto:r}},function(e,t,n){"use strict";var i=n(11),r=n(36),a=n(222),o=n(156);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(i(n)&&a(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(e,t,n){"use strict";var i=n(57),r=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},function(e,t,n){"use strict";var i=n(4),r=n(69),a=n(27),o=a.Set,s=a.proto,l=i(s.forEach),c=i(s.keys),u=c(new o).next;e.exports=function(e,t,n){return n?r({iterator:c(e),next:u},t):l(e,t)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var i;null!==n&&void 0!==n||"object"===typeof t&&!Array.isArray(t)||(n=t,t={});i=Object.assign({type:String(e)},t),Array.isArray(n)?i.children=n:null!==n&&void 0!==n&&(i.value=String(n));return i}},function(e,t,n){"use strict";var i=n(8),r=i.Map,a=i.OrderedSet,o=i.Record,s=a(),l={style:s,entity:null},c=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},i.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return i.create(n)},i.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return i.create(n)},i.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return i.create(n)},i.create=function(e){if(!e)return u;var t=r({style:s,entity:null}).merge(e),n=f.get(t);if(n)return n;var a=new i(t);return f=f.set(t,a),a},i.fromJS=function(e){var t=e.style,n=e.entity;return new i({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},i}(o(l)),u=new c,f=r([[r(l),u]]);c.EMPTY=u,e.exports=c},function(e,t,n){"use strict";var i=n(43),r=n(113),a=n(8),o=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,f=l(),d={parent:null,characterList:o(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:o(),prevSibling:null,nextSibling:null},h=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(u(i.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){r(this.getCharacterList(),h,e,t)},s.findEntityRanges=function(e,t){r(this.getCharacterList(),p,e,t)},a}(c(d));e.exports=g},function(e,t,n){"use strict";var i=n(88);e.exports=function(e){return i(e.length)}},function(e,t,n){"use strict";var i=n(15),r=n(36),a=n(65);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var i=n(222),r=n(36);e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(9),o=n(99),s=n(174),l=n(45),c=n(75),u=n(103),f=n(104),d=n(125),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var _,m,F,b,y,v,k,E=n&&n.that,w=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),D=i(t,E),S=function(e){return _&&d(_,"normal",e),new p(!0,e)},A=function(e){return w?(a(e),x?D(e[0],e[1],S):D(e[0],e[1])):x?D(e,S):D(e)};if(C)_=e.iterator;else if(T)_=e;else{if(!(m=f(e)))throw new h(o(e)+" is not iterable");if(s(m)){for(F=0,b=l(e);b>F;F++)if((y=A(e[F]))&&c(g,y))return y;return new p(!1)}_=u(e,m)}for(v=C?e.next:_.next;!(k=r(v,_)).done;){try{y=A(k.value)}catch(O){d(_,"throw",O)}if("object"==typeof y&&y&&c(g,y))return y}return new p(!1)}},function(e,t,n){"use strict";var i=n(4),r=n(69),a=n(38),o=a.Map,s=a.proto,l=i(s.forEach),c=i(s.entries),u=c(new o).next;e.exports=function(e,t,n){return n?r({iterator:c(e),next:u},(function(e){return t(e[1],e[0])})):l(e,t)}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var i=n(35),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i,r=n(9),a=n(363),o=n(161),s=n(121),l=n(220),c=n(120),u=n(162),f="prototype",d="script",h=u("IE_PROTO"),p=function(){},g=function(e){return"<"+d+">"+e+""},_=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&i?_(i):function(){var e,t=c("iframe"),n="java"+d+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():_(i);for(var e=o.length;e--;)delete m[f][o[e]];return m()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[f]=r(e),n=new p,p[f]=null,n[h]=e):n=m(),void 0===t?n:a.f(n,t)}},function(e,t,n){"use strict";var i=n(4),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},function(e,t,n){"use strict";var i=n(366);e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},function(e,t,n){"use strict";var i=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUITEM:"menuitem",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"},a=t.SPECIAL_ELEMENTS=Object.create(null);a[i.HTML]=Object.create(null),a[i.HTML][r.ADDRESS]=!0,a[i.HTML][r.APPLET]=!0,a[i.HTML][r.AREA]=!0,a[i.HTML][r.ARTICLE]=!0,a[i.HTML][r.ASIDE]=!0,a[i.HTML][r.BASE]=!0,a[i.HTML][r.BASEFONT]=!0,a[i.HTML][r.BGSOUND]=!0,a[i.HTML][r.BLOCKQUOTE]=!0,a[i.HTML][r.BODY]=!0,a[i.HTML][r.BR]=!0,a[i.HTML][r.BUTTON]=!0,a[i.HTML][r.CAPTION]=!0,a[i.HTML][r.CENTER]=!0,a[i.HTML][r.COL]=!0,a[i.HTML][r.COLGROUP]=!0,a[i.HTML][r.DD]=!0,a[i.HTML][r.DETAILS]=!0,a[i.HTML][r.DIR]=!0,a[i.HTML][r.DIV]=!0,a[i.HTML][r.DL]=!0,a[i.HTML][r.DT]=!0,a[i.HTML][r.EMBED]=!0,a[i.HTML][r.FIELDSET]=!0,a[i.HTML][r.FIGCAPTION]=!0,a[i.HTML][r.FIGURE]=!0,a[i.HTML][r.FOOTER]=!0,a[i.HTML][r.FORM]=!0,a[i.HTML][r.FRAME]=!0,a[i.HTML][r.FRAMESET]=!0,a[i.HTML][r.H1]=!0,a[i.HTML][r.H2]=!0,a[i.HTML][r.H3]=!0,a[i.HTML][r.H4]=!0,a[i.HTML][r.H5]=!0,a[i.HTML][r.H6]=!0,a[i.HTML][r.HEAD]=!0,a[i.HTML][r.HEADER]=!0,a[i.HTML][r.HGROUP]=!0,a[i.HTML][r.HR]=!0,a[i.HTML][r.HTML]=!0,a[i.HTML][r.IFRAME]=!0,a[i.HTML][r.IMG]=!0,a[i.HTML][r.INPUT]=!0,a[i.HTML][r.LI]=!0,a[i.HTML][r.LINK]=!0,a[i.HTML][r.LISTING]=!0,a[i.HTML][r.MAIN]=!0,a[i.HTML][r.MARQUEE]=!0,a[i.HTML][r.MENU]=!0,a[i.HTML][r.META]=!0,a[i.HTML][r.NAV]=!0,a[i.HTML][r.NOEMBED]=!0,a[i.HTML][r.NOFRAMES]=!0,a[i.HTML][r.NOSCRIPT]=!0,a[i.HTML][r.OBJECT]=!0,a[i.HTML][r.OL]=!0,a[i.HTML][r.P]=!0,a[i.HTML][r.PARAM]=!0,a[i.HTML][r.PLAINTEXT]=!0,a[i.HTML][r.PRE]=!0,a[i.HTML][r.SCRIPT]=!0,a[i.HTML][r.SECTION]=!0,a[i.HTML][r.SELECT]=!0,a[i.HTML][r.SOURCE]=!0,a[i.HTML][r.STYLE]=!0,a[i.HTML][r.SUMMARY]=!0,a[i.HTML][r.TABLE]=!0,a[i.HTML][r.TBODY]=!0,a[i.HTML][r.TD]=!0,a[i.HTML][r.TEMPLATE]=!0,a[i.HTML][r.TEXTAREA]=!0,a[i.HTML][r.TFOOT]=!0,a[i.HTML][r.TH]=!0,a[i.HTML][r.THEAD]=!0,a[i.HTML][r.TITLE]=!0,a[i.HTML][r.TR]=!0,a[i.HTML][r.TRACK]=!0,a[i.HTML][r.UL]=!0,a[i.HTML][r.WBR]=!0,a[i.HTML][r.XMP]=!0,a[i.MATHML]=Object.create(null),a[i.MATHML][r.MI]=!0,a[i.MATHML][r.MO]=!0,a[i.MATHML][r.MN]=!0,a[i.MATHML][r.MS]=!0,a[i.MATHML][r.MTEXT]=!0,a[i.MATHML][r.ANNOTATION_XML]=!0,a[i.SVG]=Object.create(null),a[i.SVG][r.TITLE]=!0,a[i.SVG][r.FOREIGN_OBJECT]=!0,a[i.SVG][r.DESC]=!0},function(e,t,n){"use strict";var i={},r=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||i.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return i[e]=!0,e}},function(e,t,n){"use strict";var i=n(370),r=n(11),a=n(53),o=n(12)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"===(i=a(t))&&r(t.callee)?"Arguments":i}},function(e,t,n){"use strict";var i=n(3),r=n(5),a=n(6),o=n(15),s=n(170),l=n(66),c=n(383),u=n(68),f=n(65),d=n(46),h=n(387),p=n(88),g=n(232),_=n(235),m=n(389),F=n(158),b=n(21),y=n(57),v=n(14),k=n(159),E=n(52),w=n(75),C=n(89),T=n(123).f,x=n(236),D=n(238).forEach,S=n(175),A=n(47),O=n(36),I=n(122),M=n(394),P=n(25),N=n(172),R=P.get,j=P.set,B=P.enforce,L=O.f,q=I.f,H=r.RangeError,U=c.ArrayBuffer,z=U.prototype,K=c.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,V=l.TypedArray,Y=l.TypedArrayPrototype,X=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Q=function(e,t){A(e,t,{configurable:!0,get:function(){return R(this)[t]}})},Z=function(e){var t;return w(z,e)||"ArrayBuffer"===(t=y(e))||"SharedArrayBuffer"===t},ee=function(e,t){return X(e)&&!k(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=F(t),ee(e,t)?f(2,e[t]):q(e,t)},ne=function(e,t,n){return t=F(t),!(ee(e,t)&&v(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?L(e,t,n):(e[t]=n.value,e)};o?(G||(I.f=te,O.f=ne,Q(Y,"buffer"),Q(Y,"byteOffset"),Q(Y,"byteLength"),Q(Y,"length")),i({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var o=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,h=r[l],F=h,b=F&&F.prototype,y={},k=function(e,t){L(e,t,{get:function(){return function(e,t){var n=R(e);return n.view[c](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var r=R(e);r.view[f](t*o+r.byteOffset,n?m(i):i,!0)}(this,t,e)},enumerable:!0})};G?s&&(F=t((function(e,t,n,i){return u(e,b),N(v(t)?Z(t)?void 0!==i?new h(t,_(n,o),i):void 0!==n?new h(t,_(n,o)):new h(t):X(t)?M(F,t):a(x,F,t):new h(g(t)),e,F)})),C&&C(F,V),D(T(h),(function(e){e in F||d(F,e,h[e])})),F.prototype=b):(F=t((function(e,t,n,i){u(e,b);var r,s,l,c=0,f=0;if(v(t)){if(!Z(t))return X(t)?M(F,t):a(x,F,t);r=t,f=_(n,o);var d=t.byteLength;if(void 0===i){if(d%o)throw new H(J);if((s=d-f)<0)throw new H(J)}else if((s=p(i)*o)+f>d)throw new H(J);l=s/o}else l=g(t),r=new U(s=l*o);for(j(e,{buffer:r,byteOffset:f,byteLength:s,length:l,view:new K(r)});c=a)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return e}})),l=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),F(i.showHidden)&&(i.showHidden=!1),F(i.depth)&&(i.depth=2),F(i.colors)&&(i.colors=!1),F(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),u(i,e,i.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,i){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return m(r)||(r=u(e,r,i)),r}var a=function(e,t){if(F(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(_(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(E(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(v(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var c,y="",w=!1,C=["{","}"];(h(n)&&(w=!0,C=["[","]"]),E(n))&&(y=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(y=" "+RegExp.prototype.toString.call(n)),v(n)&&(y=" "+Date.prototype.toUTCString.call(n)),k(n)&&(y=" "+f(n)),0!==o.length||w&&0!=n.length?i<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,i,r){for(var a=[],o=0,s=t.length;o=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,y,C)):C[0]+y+C[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),x(i,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),F(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"===typeof e}function g(e){return null===e}function _(e){return"number"===typeof e}function m(e){return"string"===typeof e}function F(e){return void 0===e}function b(e){return y(e)&&"[object RegExp]"===w(e)}function y(e){return"object"===typeof e&&null!==e}function v(e){return y(e)&&"[object Date]"===w(e)}function k(e){return y(e)&&("[object Error]"===w(e)||e instanceof Error)}function E(e){return"function"===typeof e}function w(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(F(a)&&(a=Object({NODE_ENV:"production",PUBLIC_URL:"/amazon-connect/amazon-connect-chat-interface"}).NODE_DEBUG||""),n=n.toUpperCase(),!o[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;o[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else o[n]=function(){};return o[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=_,t.isString=m,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=F,t.isRegExp=b,t.isObject=y,t.isDate=v,t.isError=k,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(591);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){(function(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");[e.getDate(),T[e.getMonth()],t].join(" ")})(),t.format.apply(t,arguments)},t.inherits=n(592),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!==typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],a=0;ao?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),i.apply(e,a);else for(n&&i.apply(e,[t,n]);si||n<=0)return"";var r=0;if(t>0){for(;t>0&&r=i)return""}else if(t<0){for(r=i;t<0&&00&&a0?r(t,9007199254740991):0}},function(e,t,n){"use strict";var i=n(231),r=n(14),a=n(51),o=n(381);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return a(n),o(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},function(e,t,n){"use strict";var i=n(39);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){"use strict";var i=n(4);e.exports=i([].slice)},function(e,t,n){"use strict";e.exports={}},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f1)for(var n=1;n=o.DIGIT_0&&e<=o.DIGIT_9}function ke(e){return e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_Z}function Ee(e){return e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_Z}function we(e){return Ee(e)||ke(e)}function Ce(e,t){return ve(e)||t&&(e>=o.LATIN_CAPITAL_A&&e<=o.LATIN_CAPITAL_F||e>=o.LATIN_SMALL_A&&e<=o.LATIN_SMALL_F)}function Te(e){return e+32}function xe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function De(e){return String.fromCharCode(Te(e))}function Se(e,t){for(var n=a[++e],i=++e,r=i+n-1;i<=r;){var o=i+r>>>1,s=a[o];if(st))return a[o+n];r=o-1}}return-1}var Ae=e.exports=function(){this.preprocessor=new i,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};Ae.CHARACTER_TOKEN="CHARACTER_TOKEN",Ae.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ae.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ae.START_TAG_TOKEN="START_TAG_TOKEN",Ae.END_TAG_TOKEN="END_TAG_TOKEN",Ae.COMMENT_TOKEN="COMMENT_TOKEN",Ae.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ae.EOF_TOKEN="EOF_TOKEN",Ae.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ae.MODE={DATA:c,RCDATA:f,RAWTEXT:h,SCRIPT_DATA:p,PLAINTEXT:g},Ae.getTokenAttr=function(e,t){for(var n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},Ae.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()},Ae.prototype.write=function(e,t){this.active=!0,this.preprocessor.write(e,t)},Ae.prototype.insertHtmlAtCurrentPos=function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)},Ae.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},Ae.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ae.HIBERNATION_TOKEN}),!0}return!1},Ae.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},Ae.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},Ae.prototype._unconsumeSeveral=function(e){for(;e--;)this._unconsume()},Ae.prototype._reconsumeInState=function(e){this.state=e,this._unconsume()},Ae.prototype._consumeSubsequentIfMatch=function(e,t,n){for(var i=0,r=!0,a=e.length,s=0,l=t,c=void 0;s0&&(l=this._consume(),i++),l===o.EOF){r=!1;break}if(l!==(c=e[s])&&(n||l!==Te(c))){r=!1;break}}return r||this._unconsumeSeveral(i),r},Ae.prototype._lookahead=function(){var e=this._consume();return this._unconsume(),e},Ae.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==s.SCRIPT_STRING.length)return!1;for(var e=0;e=55296&&i<=57343||i>1114111?o.REPLACEMENT_CHARACTER:r)},Ae.prototype._consumeNamedEntity=function(e){for(var t=null,n=0,i=null,r=0,s=!1,l=0;l>-1;){var c=a[l],u=c<7;if(u&&1&c&&(t=2&c?[a[++l],a[++l]]:[a[++l]],n=r,i===o.SEMICOLON)){s=!0;break}if(r++,(i=this._consume())===o.EOF)break;l=u?4&c?Se(l,i):-1:i===c?++l:-1}if(t){if(!s&&(this._unconsumeSeveral(r-n),e)){var f=this._lookahead();if(f===o.EQUALS_SIGN||function(e){return we(e)||ve(e)}(f))return this._unconsumeSeveral(n),null}return t}return this._unconsumeSeveral(r),null},Ae.prototype._consumeCharacterReference=function(e,t){if(ye(e)||e===o.GREATER_THAN_SIGN||e===o.AMPERSAND||e===this.additionalAllowedCp||e===o.EOF)return this._unconsume(),null;if(e===o.NUMBER_SIGN){var n=!1,i=this._lookahead();return i!==o.LATIN_SMALL_X&&i!==o.LATIN_CAPITAL_X||(this._consume(),n=!0),(i=this._lookahead())!==o.EOF&&Ce(i,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(t)};var Oe=Ae.prototype;Oe[c]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=u:e===o.LESS_THAN_SIGN?this.state=_:e===o.NULL?this._emitCodePoint(e):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[u]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=c)},Oe[f]=function(e){this.preprocessor.dropParsedChunk(),e===o.AMPERSAND?this.state=d:e===o.LESS_THAN_SIGN?this.state=b:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[d]=function(e){this.additionalAllowedCp=void 0;var t=this._consumeCharacterReference(e,!1);this._ensureHibernation()||(t?this._emitSeveralCodePoints(t):this._emitChar("&"),this.state=f)},Oe[h]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=k:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[p]=function(e){this.preprocessor.dropParsedChunk(),e===o.LESS_THAN_SIGN?this.state=C:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[g]=function(e){this.preprocessor.dropParsedChunk(),e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._emitEOFToken():this._emitCodePoint(e)},Oe[_]=function(e){e===o.EXCLAMATION_MARK?this.state=ee:e===o.SOLIDUS?this.state=m:we(e)?(this._createStartTagToken(),this._reconsumeInState(F)):e===o.QUESTION_MARK?this._reconsumeInState(Q):(this._emitChar("<"),this._reconsumeInState(c))},Oe[m]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(F)):e===o.GREATER_THAN_SIGN?this.state=c:e===o.EOF?(this._reconsumeInState(c),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState(Q)},Oe[F]=function(e){ye(e)?this.state=U:e===o.SOLIDUS?this.state=J:e===o.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):ke(e)?this.currentToken.tagName+=De(e):e===o.NULL?this.currentToken.tagName+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentToken.tagName+=xe(e)},Oe[b]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=y):(this._emitChar("<"),this._reconsumeInState(f))},Oe[y]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(v)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(f))},Oe[v]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=xe(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this.state=c,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(f)}},Oe[k]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=E):(this._emitChar("<"),this._reconsumeInState(h))},Oe[E]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(w)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(h))},Oe[w]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=xe(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(h)}},Oe[C]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=T):e===o.EXCLAMATION_MARK?(this.state=D,this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState(p))},Oe[T]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(x)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(p))},Oe[x]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=xe(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(p)}},Oe[D]=function(e){e===o.HYPHEN_MINUS?(this.state=S,this._emitChar("-")):this._reconsumeInState(p)},Oe[S]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):this._reconsumeInState(p)},Oe[A]=function(e){e===o.HYPHEN_MINUS?(this.state=O,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(c):this._emitCodePoint(e)},Oe[O]=function(e){e===o.HYPHEN_MINUS?(this.state=I,this._emitChar("-")):e===o.LESS_THAN_SIGN?this.state=M:e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=A,this._emitCodePoint(e))},Oe[I]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?this.state=M:e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=A,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=A,this._emitCodePoint(e))},Oe[M]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=P):we(e)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState(R)):(this._emitChar("<"),this._reconsumeInState(A))},Oe[P]=function(e){we(e)?(this._createEndTagToken(),this._reconsumeInState(N)):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState(A))},Oe[N]=function(e){if(ke(e))this.currentToken.tagName+=De(e),this.tempBuff.push(e);else if(Ee(e))this.currentToken.tagName+=xe(e),this.tempBuff.push(e);else{if(this._isAppropriateEndTagToken()){if(ye(e))return void(this.state=U);if(e===o.SOLIDUS)return void(this.state=J);if(e===o.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=c)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(A)}},Oe[R]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?j:A,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Te(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(A)},Oe[j]=function(e){e===o.HYPHEN_MINUS?(this.state=B,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?this._emitChar(r.REPLACEMENT_CHARACTER):e===o.EOF?this._reconsumeInState(c):this._emitCodePoint(e)},Oe[B]=function(e){e===o.HYPHEN_MINUS?(this.state=L,this._emitChar("-")):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.NULL?(this.state=j,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=j,this._emitCodePoint(e))},Oe[L]=function(e){e===o.HYPHEN_MINUS?this._emitChar("-"):e===o.LESS_THAN_SIGN?(this.state=q,this._emitChar("<")):e===o.GREATER_THAN_SIGN?(this.state=p,this._emitChar(">")):e===o.NULL?(this.state=j,this._emitChar(r.REPLACEMENT_CHARACTER)):e===o.EOF?this._reconsumeInState(c):(this.state=j,this._emitCodePoint(e))},Oe[q]=function(e){e===o.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChar("/")):this._reconsumeInState(j)},Oe[H]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?A:j,this._emitCodePoint(e)):ke(e)?(this.tempBuff.push(Te(e)),this._emitCodePoint(e)):Ee(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(j)},Oe[U]=function(e){ye(e)||(e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?this._reconsumeInState(K):e===o.EQUALS_SIGN?(this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))},Oe[z]=function(e){ye(e)||e===o.SOLIDUS||e===o.GREATER_THAN_SIGN||e===o.EOF?(this._leaveAttrName(K),this._unconsume()):e===o.EQUALS_SIGN?this._leaveAttrName(G):ke(e)?this.currentAttr.name+=De(e):e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN?this.currentAttr.name+=xe(e):e===o.NULL?this.currentAttr.name+=r.REPLACEMENT_CHARACTER:this.currentAttr.name+=xe(e)},Oe[K]=function(e){ye(e)||(e===o.SOLIDUS?this.state=J:e===o.EQUALS_SIGN?this.state=G:e===o.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===o.EOF?this._reconsumeInState(c):(this._createAttr(""),this._reconsumeInState(z)))},Oe[G]=function(e){ye(e)||(e===o.QUOTATION_MARK?this.state=W:e===o.APOSTROPHE?this.state=V:this._reconsumeInState(Y))},Oe[W]=function(e){e===o.QUOTATION_MARK?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.QUOTATION_MARK,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=xe(e)},Oe[V]=function(e){e===o.APOSTROPHE?this.state=$:e===o.AMPERSAND?(this.additionalAllowedCp=o.APOSTROPHE,this.returnState=this.state,this.state=X):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=xe(e)},Oe[Y]=function(e){ye(e)?this._leaveAttrValue(U):e===o.AMPERSAND?(this.additionalAllowedCp=o.GREATER_THAN_SIGN,this.returnState=this.state,this.state=X):e===o.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===o.NULL?this.currentAttr.value+=r.REPLACEMENT_CHARACTER:e===o.QUOTATION_MARK||e===o.APOSTROPHE||e===o.LESS_THAN_SIGN||e===o.EQUALS_SIGN||e===o.GRAVE_ACCENT?this.currentAttr.value+=xe(e):e===o.EOF?this._reconsumeInState(c):this.currentAttr.value+=xe(e)},Oe[X]=function(e){var t=this._consumeCharacterReference(e,!0);if(!this._ensureHibernation()){if(t)for(var n=0;n=h?e?"":void 0:(i=l(f,d))<55296||i>56319||d+1===h||(u=l(f,d+1))<56320||u>57343?e?s(f,d):i:e?c(f,d,d+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},function(e,t,n){"use strict";var i=n(6),r=n(24),a=n(9),o=n(99),s=n(104),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return a(i(n,e));throw new l(o(e)+" is not iterable")}},function(e,t,n){"use strict";var i=n(57),r=n(64),a=n(35),o=n(92),s=n(12)("iterator");e.exports=function(e){if(!a(e))return r(e,s)||r(e,"@@iterator")||o[i(e)]}},function(e,t,n){"use strict";var i=n(244).IteratorPrototype,r=n(52),a=n(65),o=n(76),s=n(92),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(i,{next:a(+!c,n)}),o(e,u,!1,!0),s[u]=l,e}},function(e,t,n){"use strict";var i=n(231),r=n(27);e.exports=i(r.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var i=n(4),r=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:i(r.add),has:i(r.has),remove:i(r.delete)}},function(e,t,n){"use strict";t.REPLACEMENT_CHARACTER="\ufffd",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],CDATA_END_STRING:[93,93,62],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]}},function(e,t,n){function i(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===i(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===i(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===i(e)},t.isError=function(e){return"[object Error]"===i(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(134).Buffer.isBuffer},function(e,t,n){"use strict";var i=Object.assign;e.exports=i},function(e,t,n){"use strict";e.exports=function(e,t){var n=[],r=-1,a=e.length;t&&n.push(i("text","\n"));for(;++r0&&n.push(i("text","\n"));return n};var i=n(42)},function(e,t,n){"use strict";var i=n(8).OrderedMap,r={createFromArray:function(e){return i(e.map((function(e){return[e.getKey(),e]})))}};e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n,i){if(e.size){var r=0;e.reduce((function(e,a,o){return t(e,a)||(n(e)&&i(r,o),r=o),a})),n(e.last())&&i(r,e.count())}}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},function(e,t,n){"use strict";var i=n(30),r=n(73)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),o=e.getCurrentContent(),s=a,l=a.getAnchorKey(),c=a.getFocusKey(),u=o.getBlockForKey(l);if(r&&"forward"===n&&l!==c)return o;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(r)if(a.getAnchorOffset()===o.getBlockForKey(l).getLength()){var f=o.getBlockForKey(u.nextSibling);if(!f||0===f.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((s=t(e))===a)return o}return i.removeRange(o,s,n)}},function(e,t,n){"use strict";function i(e,t){return!(!t||!r(e))||(n=e,"[object String]"===Object.prototype.toString.call(n)&&(e=e.replace(/\s/g,"").replace(/\n|\r/,""),/^\{(.*?)\}$/.test(e)?/"(.*?)":(.*?)/g.test(e):!!/^\[(.*?)\]$/.test(e)&&e.replace(/^\[/,"").replace(/\]$/,"").replace(/},{/g,"}\n{").split(/\n/).map((function(e){return i(e)})).reduce((function(e,t){return!!t}))));var n}function r(e){return"[object Object]"===Object.prototype.toString.call(e)}e.exports=i,i.strict=function(e){if(r(e))return!0;try{return JSON.parse(e)&&!0}catch(t){return!1}}},function(e,t,n){"use strict";var i=n(155);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";var i=n(4),r=0,a=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}},function(e,t,n){"use strict";var i=n(5),r=n(14),a=i.document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var i=n(15),r=n(6),a=n(221),o=n(65),s=n(87),l=n(158),c=n(21),u=n(215),f=Object.getOwnPropertyDescriptor;t.f=i?f:function(e,t){if(e=s(e),t=l(t),u)try{return f(e,t)}catch(n){}if(c(e,t))return o(!r(a.f,e,t),e[t])}},function(e,t,n){"use strict";var i=n(218),r=n(161).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";var i=n(24),r=TypeError,a=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new a(e)}},function(e,t,n){"use strict";var i=n(6),r=n(9),a=n(64);e.exports=function(e,t,n){var o,s;r(e);try{if(!(o=a(e,"return"))){if("throw"===t)throw n;return n}o=i(o,e)}catch(l){s=!0,o=l}if("throw"===t)throw n;if(s)throw o;return r(o),n}},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(121),o=n(14),s=n(21),l=n(36).f,c=n(123),u=n(423),f=n(424),d=n(119),h=n(243),p=!1,g=d("meta"),_=0,m=function(e){l(e,g,{value:{objectID:"O"+_++,weakData:{}}})},F=e.exports={enable:function(){F.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),r=0,a=i.length;r1?arguments[1]:void 0,f=void 0!==u,d=f?i(u,c>2?arguments[2]:void 0):void 0,h=new e,p=0;return o(l,(function(e){var i=f?d(e,p++):e;n?t(h,r(i)[0],i[1]):t(h,i)})),h}}},function(e,t,n){"use strict";var i=n(9);e.exports=function(e,t,n){return function(){for(var r=new e,a=arguments.length,o=0;o=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:F(e,t,n,i,r);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):F(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function F(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(a=n;as&&(n=s-l),a=n;a>=0;a--){for(var f=!0,d=0;dr&&(i=r):i=r;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r239?4:c>223?3:c>191?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[r+1],o=e[r+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=f}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(i,r),u=e.slice(t,n),f=0;fr)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return v(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function D(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;ri)&&(n=i);for(var r="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r>>8*(i?r:1-r)}function N(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r>>8*(i?r:3-r)&255}function R(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,a){return a||R(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,a){return a||R(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(33))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";var i=String.fromCharCode;e.exports=i},function(e,t,n){"use strict";var i=n(22),r=n(23),a={tokenize:function(e,t,n){return r(e,(function(e){return null===e||i(e)?t(e):n(e)}),"linePrefix")},partial:!0};e.exports=a},function(e,t,n){"use strict";var i=n(281);e.exports=function(e,t){var n=e[e.length-1];return n&&n[1].type===t?i(n[2].sliceStream(n[1])):0}},function(e,t,n){"use strict";var i=n(72)(/[\dA-Za-z]/);e.exports=i},function(e,t,n){"use strict";var i={};function r(e,t,n){var a,o,s,l,c,u="";for("string"!==typeof t&&(n=t,t=r.defaultChars),"undefined"===typeof n&&(n=!0),c=function(e){var t,n,r=i[e];if(r)return r;for(r=i[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[a]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},function(e,t,n){"use strict";var i=0;function r(){return Math.pow(2,++i)}t.boolean=r(),t.booleanish=r(),t.overloadedBoolean=r(),t.number=r(),t.spaceSeparated=r(),t.commaSeparated=r(),t.commaOrSpaceSeparated=r()},function(e,t,n){"use strict";var i=n(309),r=n(310);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),l=r(e,t).getBlockMap(),c=l.keySeq(),u=c.indexOf(n),f=c.indexOf(o)+1;return i(l.slice(u,f).map((function(e,t){var i=e.getText(),r=e.getCharacterList();return n===o?e.merge({text:i.slice(a,s),characterList:r.slice(a,s)}):t===n?e.merge({text:i.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:i.slice(0,s),characterList:r.slice(0,s)}):e})))}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=n(315),a=n(8),o=n(10),s=n(753),l=(0,a.Map)(),c=s();var u={getLastCreatedEntityKey:function(){return u.__getLastCreatedEntityKey()},create:function(e,t,n){return u.__create(e,t,n)},add:function(e){return u.__add(e)},get:function(e){return u.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,c=s()},mergeData:function(e,t){return u.__mergeData(e,t)},replaceData:function(e,t){return u.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return c},__create:function(e,t,n){return u.__add(new r({type:e,mutability:t,data:n||{}}))},__add:function(e){return c=s(),l=l.set(c,e),c},__get:function(e){var t=l.get(e);return t||o(!1),t},__mergeData:function(e,t){var n=u.__get(e),r=function(e){for(var t=1;t=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},i.createEmpty=function(e){return new i({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,n(8).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},function(e,t,n){"use strict";var i=n(10),r="LTR",a="RTL",o=null;function s(e){return e===r||e===a}function l(e){return s(e)||i(!1),e===r?"ltr":"rtl"}function c(e){o=e}var u={NEUTRAL:"NEUTRAL",LTR:r,RTL:a,isStrong:s,getHTMLDir:l,getHTMLDirIfDifferent:function(e,t){return s(e)||i(!1),s(t)||i(!1),e===t?null:l(e)},setGlobalDir:c,initGlobalDir:function(){c(r)},getGlobalDir:function(){return o||this.initGlobalDir(),o||i(!1),o}};e.exports=u},function(e,t,n){"use strict";var i=n(147),r=n(318);e.exports=function(e){for(var t=e;t&&t!==i(e).documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function i(e,t){var n=r.get(e,t);return"auto"===n||"scroll"===n}var r={get:n(776),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(i(e,"overflow")||i(e,"overflowY")||i(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=r},function(e,t,n){"use strict";var i=n(780),r=n(781);e.exports=function(e){var t=i(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=r(e),a=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,n){"use strict";e.exports=n(556)},function(e,t,n){"use strict";var i=n(585),r=n(0),a=n(615),o=n(616);function s(e,t){if("#text"===e.nodeName)return e.value;if("#comment"===e.nodeName)return e.value;var n=e.attrs.reduce((function(e,t){var n=a(t.name);return e[n]="style"===n?o(t.value):t.value,e}),{key:t});if(0===e.childNodes.length)return r.createElement(e.tagName,n);if("script"===e.nodeName)return n.dangerouslySetInnerHTML={__html:e.childNodes[0].value},r.createElement("script",n);var i=e.childNodes.map(s);return r.createElement(e.tagName,n,i)}e.exports=function(e){var t=i.parseFragment(e);if(0===t.childNodes.length)return null;var n=t.childNodes.map(s);return 1===n.length?n[0]:n}},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t,n){"use strict";var i=n(50),r=n(5),a=n(156),o="__core-js_shared__",s=e.exports=r[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.36.1",mode:i?"pure":"global",copyright:"\xa9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var i=n(5),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},function(e,t,n){"use strict";var i,r,a=n(5),o=n(86),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},function(e,t,n){"use strict";var i=n(216),r=n(159);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},function(e,t,n){"use strict";var i=n(28),r=n(11),a=n(75),o=n(213),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&a(t.prototype,s(e))}},function(e,t,n){"use strict";var i=n(4),r=n(7),a=n(53),o=Object,s=i("".split);e.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var i=n(117),r=n(119),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t,n){"use strict";var i=n(15),r=n(21),a=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=r(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(e,t,n){"use strict";var i=n(4),r=n(11),a=n(155),o=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},function(e,t,n){"use strict";var i=n(21),r=n(369),a=n(122),o=n(36);e.exports=function(e,t,n){for(var s=r(t),l=o.f,c=a.f,u=0;u0&&(!E.multiline||E.multiline&&"\n"!==_(C,E.lastIndex-1))&&(A="(?: "+A+")",I=" "+I,O++),n=new RegExp("^(?:"+A+")",S)),k&&(n=new RegExp("^"+A+"$(?!\\s)",S)),y&&(r=E.lastIndex),s=i(p,D?n:E,I),D?s?(s.input=b(s.input,O),s[0]=b(s[0],O),s.index=E.lastIndex,E.lastIndex+=s[0].length):E.lastIndex=0:y&&s&&(E.lastIndex=E.global?s.index+s[0].length:r),k&&s&&s.length>1&&i(h,s[0],n,(function(){for(l=1;l-1)return i.QUIRKS;var c=null===n?a:r;if(u(t,c))return i.QUIRKS;if(u(t,c=null===n?s:l))return i.LIMITED_QUIRKS}return i.NO_QUIRKS},t.serializeContent=function(e,t,n){var i="!DOCTYPE ";return e&&(i+=e),null!==t?i+=" PUBLIC "+c(t):null!==n&&(i+=" SYSTEM"),null!==n&&(i+=" "+c(n)),i}},function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,a=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,a),i(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,i){var r,a,o;if(c(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=u(e))>0&&o.length>r&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,console&&console.warn}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var c=l.length,u=_(l,c);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,r=a;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){(t=e.exports=n(265)).Stream=t,t.Readable=t,t.Writable=n(186),t.Duplex=n(80),t.Transform=n(270),t.PassThrough=n(605)},function(e,t,n){var i=n(134),r=i.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),a(r,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,i,r){var a=n(133);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=F;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?i:a.nextTick;F.WritableState=m;var c=Object.create(n(109));c.inherits=n(95);var u={deprecate:n(603)},f=n(266),d=n(185).Buffer,h=("undefined"!==typeof r?r:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var p,g=n(267);function _(){}function m(e,t){s=s||n(80),e=e||{};var i=t instanceof s;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,c=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(a.nextTick(r,i),a.nextTick(w,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),w(e,t))}(e,n,i,t,r);else{var o=k(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),i?l(y,e,n,o,r):y(e,n,o,r)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function F(e){if(s=s||n(80),!p.call(F,this)&&!(this instanceof s))return new F(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,n,i,r,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function y(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),w(e,t)}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,r=new Array(i),a=t.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,b(e,t,!0,t.length,r,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,u=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),w(e,t)}))}function w(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(F,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===F&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},F.prototype.write=function(e,t,n){var i,r=this._writableState,o=!1,s=!r.objectMode&&(i=e,d.isBuffer(i)||i instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=_),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),a.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var r=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(i,o),r=!1),r}(this,r,e,n))&&(r.pendingcb++,o=function(e,t,n,i,r,a){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n));return t}(t,i,r);i!==o&&(n=!0,r="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),F.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(e,t,n){var i=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,w(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n)},Object.defineProperty(F.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),F.prototype.destroy=g.destroy,F.prototype._undestroy=g.undestroy,F.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(93),n(602).setImmediate,n(33))},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},function(e,t,n){var i=n(635),r=n(273),a=n(636);e.exports=function(e){return i(e)||r(e)||a()}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}},function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e?[]:"length"in e?e:[e]}},function(e,t,n){"use strict";var i=n(70);e.exports=function(e,t){return e.length?(i(e,e.length,0,t),e):t}},function(e,t,n){"use strict";e.exports=function(e,t,n){for(var i,r=[],a=-1;++a-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l)};function l(n){return 40===n?e.attempt(p,t,r?t:c)(n):91===n?e.attempt(g,t,r?e.attempt(_,t,c):c)(n):r?t(n):c(n)}function c(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){var n,i,o,c,u,f,d,h=e.length,p=0;for(;h--;)if(c=e[h][1],u){if("link"===c.type||"labelLink"===c.type&&c._inactive)break;"enter"===e[h][0]&&"labelLink"===c.type&&(c._inactive=!0)}else if(f){if("enter"===e[h][0]&&("labelImage"===c.type||"labelLink"===c.type)&&!c._balanced&&(u=h,"labelLink"!==c.type)){p=2;break}}else"labelEnd"===c.type&&(f=h);return n={type:"labelLink"===e[u][1].type?"link":"image",start:l(e[u][1].start),end:l(e[e.length-1][1].end)},i={type:"label",start:l(e[u][1].start),end:l(e[f][1].end)},o={type:"labelText",start:l(e[u+p+2][1].end),end:l(e[f-2][1].start)},d=r(d=[["enter",n,t],["enter",i,t]],e.slice(u+1,u+p+3)),d=r(d,[["enter",o,t]]),d=r(d,s(t.parser.constructs.insideSpan.null,e.slice(u+p+4,f-3),t)),d=r(d,[["exit",o,t],e[f-2],e[f-1],["exit",i,t]]),d=r(d,e.slice(f+1)),d=r(d,[["exit",n,t]]),a(e,u,e.length,d),e},resolveAll:function(e){var t,n=-1;for(;++n1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return c.__create(e,t,n),this},s.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},s.addEntity=function(e){return c.__add(e),this},s.getEntity=function(e){return c.__get(e)},s.getAllEntities=function(){return c.__getAll()},s.loadWithEntities=function(e){return c.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,i=a.createFromArray(n),o=i.isEmpty()?new u:u.createEmpty(i.first().getKey());return new r({blockMap:i,entityMap:t||c,selectionBefore:o,selectionAfter:o})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new k({key:f(),text:e,type:"unstyled",characterList:_(F(o.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(i({},e,{blockMap:y(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new k(i({},e,{data:b(e.data),characterList:null!=t?_((Array.isArray(t)?t:d(t)).map((function(e){return o.fromJS(e)}))):void 0}))},r}(v);e.exports=E},function(e,t,n){"use strict";var i=n(145),r=n(10),a="\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05d0-\u05ea\u05eb-\u05ef\u05f0-\u05f2\u05f3-\u05f4\u05f5-\u05ff\u07c0-\u07c9\u07ca-\u07ea\u07f4-\u07f5\u07fa\u07fb-\u07ff\u0800-\u0815\u081a\u0824\u0828\u082e-\u082f\u0830-\u083e\u083f\u0840-\u0858\u085c-\u085d\u085e\u085f-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb37\ufb38-\ufb3c\ufb3d\ufb3e\ufb3f\ufb40-\ufb41\ufb42\ufb43-\ufb44\ufb45\ufb46-\ufb4f",o="\u0608\u060b\u060d\u061b\u061c\u061d\u061e-\u061f\u0620-\u063f\u0640\u0641-\u064a\u066d\u066e-\u066f\u0671-\u06d3\u06d4\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06fd-\u06fe\u06ff\u0700-\u070d\u070e\u070f\u0710\u0712-\u072f\u074b-\u074c\u074d-\u07a5\u07b1\u07b2-\u07bf\u08a0-\u08b2\u08b3-\u08e3\ufb50-\ufbb1\ufbb2-\ufbc1\ufbc2-\ufbd2\ufbd3-\ufd3d\ufd40-\ufd4f\ufd50-\ufd8f\ufd90-\ufd91\ufd92-\ufdc7\ufdc8-\ufdcf\ufdf0-\ufdfb\ufdfc\ufdfe-\ufdff\ufe70-\ufe74\ufe75\ufe76-\ufefc\ufefd-\ufefe",s=new RegExp("["+"A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u01ba\u01bb\u01bc-\u01bf\u01c0-\u01c3\u01c4-\u0293\u0294\u0295-\u02af\u02b0-\u02b8\u02bb-\u02c1\u02d0-\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376-\u0377\u037a\u037b-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0482\u048a-\u052f\u0531-\u0556\u0559\u055a-\u055f\u0561-\u0587\u0589\u0903\u0904-\u0939\u093b\u093d\u093e-\u0940\u0949-\u094c\u094e-\u094f\u0950\u0958-\u0961\u0964-\u0965\u0966-\u096f\u0970\u0971\u0972-\u0980\u0982-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09be-\u09c0\u09c7-\u09c8\u09cb-\u09cc\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e1\u09e6-\u09ef\u09f0-\u09f1\u09f4-\u09f9\u09fa\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0abe-\u0ac0\u0ac9\u0acb-\u0acc\u0ad0\u0ae0-\u0ae1\u0ae6-\u0aef\u0af0\u0b02-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47-\u0b48\u0b4b-\u0b4c\u0b57\u0b5c-\u0b5d\u0b5f-\u0b61\u0b66-\u0b6f\u0b70\u0b71\u0b72-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bbf\u0bc1-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bef\u0bf0-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c59\u0c60-\u0c61\u0c66-\u0c6f\u0c7f\u0c82-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cbe\u0cbf\u0cc0-\u0cc4\u0cc6\u0cc7-\u0cc8\u0cca-\u0ccb\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce1\u0ce6-\u0cef\u0cf1-\u0cf2\u0d02-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d60-\u0d61\u0d66-\u0d6f\u0d70-\u0d75\u0d79\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0df4\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e45\u0e46\u0e4f\u0e50-\u0e59\u0e5a-\u0e5b\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f01-\u0f03\u0f04-\u0f12\u0f13\u0f14\u0f15-\u0f17\u0f1a-\u0f1f\u0f20-\u0f29\u0f2a-\u0f33\u0f34\u0f36\u0f38\u0f3e-\u0f3f\u0f40-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fcf\u0fd0-\u0fd4\u0fd5-\u0fd8\u0fd9-\u0fda\u1000-\u102a\u102b-\u102c\u1031\u1038\u103b-\u103c\u103f\u1040-\u1049\u104a-\u104f\u1050-\u1055\u1056-\u1057\u105a-\u105d\u1061\u1062-\u1064\u1065-\u1066\u1067-\u106d\u106e-\u1070\u1075-\u1081\u1083-\u1084\u1087-\u108c\u108e\u108f\u1090-\u1099\u109a-\u109c\u109e-\u109f\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fb\u10fc\u10fd-\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\u1360-\u1368\u1369-\u137c\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166d-\u166e\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16eb-\u16ed\u16ee-\u16f0\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735-\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7-\u17c8\u17d4-\u17d6\u17d7\u17d8-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1842\u1843\u1844-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930-\u1931\u1933-\u1938\u1946-\u194f\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c0\u19c1-\u19c7\u19c8-\u19c9\u19d0-\u19d9\u19da\u1a00-\u1a16\u1a19-\u1a1a\u1a1e-\u1a1f\u1a20-\u1a54\u1a55\u1a57\u1a61\u1a63-\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aa6\u1aa7\u1aa8-\u1aad\u1b04\u1b05-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b44\u1b45-\u1b4b\u1b50-\u1b59\u1b5a-\u1b60\u1b61-\u1b6a\u1b74-\u1b7c\u1b82\u1b83-\u1ba0\u1ba1\u1ba6-\u1ba7\u1baa\u1bae-\u1baf\u1bb0-\u1bb9\u1bba-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2-\u1bf3\u1bfc-\u1bff\u1c00-\u1c23\u1c24-\u1c2b\u1c34-\u1c35\u1c3b-\u1c3f\u1c40-\u1c49\u1c4d-\u1c4f\u1c50-\u1c59\u1c5a-\u1c77\u1c78-\u1c7d\u1c7e-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf1\u1cf2-\u1cf3\u1cf5-\u1cf6\u1d00-\u1d2b\u1d2c-\u1d6a\u1d6b-\u1d77\u1d78\u1d79-\u1d9a\u1d9b-\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\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2134\u2135-\u2138\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2182\u2183-\u2184\u2185-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2c7b\u2c7c-\u2c7d\u2c7e-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005\u3006\u3007\u3021-\u3029\u302e-\u302f\u3031-\u3035\u3038-\u303a\u303b\u303c\u3041-\u3096\u309d-\u309e\u309f\u30a1-\u30fa\u30fc-\u30fe\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u3191\u3192-\u3195\u3196-\u319f\u31a0-\u31ba\u31f0-\u31ff\u3200-\u321c\u3220-\u3229\u322a-\u3247\u3248-\u324f\u3260-\u327b\u327f\u3280-\u3289\u328a-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua014\ua015\ua016-\ua48c\ua4d0-\ua4f7\ua4f8-\ua4fd\ua4fe-\ua4ff\ua500-\ua60b\ua60c\ua610-\ua61f\ua620-\ua629\ua62a-\ua62b\ua640-\ua66d\ua66e\ua680-\ua69b\ua69c-\ua69d\ua6a0-\ua6e5\ua6e6-\ua6ef\ua6f2-\ua6f7\ua722-\ua76f\ua770\ua771-\ua787\ua789-\ua78a\ua78b-\ua78e\ua790-\ua7ad\ua7b0-\ua7b1\ua7f7\ua7f8-\ua7f9\ua7fa\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua823-\ua824\ua827\ua830-\ua835\ua836-\ua837\ua840-\ua873\ua880-\ua881\ua882-\ua8b3\ua8b4-\ua8c3\ua8ce-\ua8cf\ua8d0-\ua8d9\ua8f2-\ua8f7\ua8f8-\ua8fa\ua8fb\ua900-\ua909\ua90a-\ua925\ua92e-\ua92f\ua930-\ua946\ua952-\ua953\ua95f\ua960-\ua97c\ua983\ua984-\ua9b2\ua9b4-\ua9b5\ua9ba-\ua9bb\ua9bd-\ua9c0\ua9c1-\ua9cd\ua9cf\ua9d0-\ua9d9\ua9de-\ua9df\ua9e0-\ua9e4\ua9e6\ua9e7-\ua9ef\ua9f0-\ua9f9\ua9fa-\ua9fe\uaa00-\uaa28\uaa2f-\uaa30\uaa33-\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f\uaa60-\uaa6f\uaa70\uaa71-\uaa76\uaa77-\uaa79\uaa7a\uaa7b\uaa7d\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadc\uaadd\uaade-\uaadf\uaae0-\uaaea\uaaeb\uaaee-\uaaef\uaaf0-\uaaf1\uaaf2\uaaf3-\uaaf4\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5b\uab5c-\uab5f\uab64-\uab65\uabc0-\uabe2\uabe3-\uabe4\uabe6-\uabe7\uabe9-\uabea\uabeb\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\uf8ff\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uff6f\uff70\uff71-\uff9d\uff9e-\uff9f\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"+a+o+"]"),l=new RegExp("["+a+o+"]");function c(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?i.NEUTRAL:l.exec(t)?i.RTL:i.LTR}function f(e,t){if(t=t||i.NEUTRAL,!e.length)return t;var n=u(e);return n===i.NEUTRAL?t:n}function d(e,t){return t||(t=i.getGlobalDir()),i.isStrong(t)||r(!1),f(e,t)}var h={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:f,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===i.LTR},isDirectionRTL:function(e,t){return d(e,t)===i.RTL}};e.exports=h},function(e,t,n){"use strict";var i=n(0),r=n(82),a=(0,n(8).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:r("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:r("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:r("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},function(e,t,n){"use strict";var i=n(326).notEmptyKey;function r(e,t){return i(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var i=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(i).getEntityAt(a-1))!==e.getBlockForKey(i).getEntityAt(a)?null:r(e.getEntityMap(),n):null}var o=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(o);return n=s===l.getLength()?null:l.getEntityAt(s),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var i=n(774);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!i(t)&&(i(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function i(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return i(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;i(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";n(203);e.exports=function(e,t){var n=e.getSelection(),i=e.getCurrentContent(),r=n.getStartKey(),a=n.getStartOffset(),o=r,s=0;if(t>a){var l=i.getKeyBefore(r);if(null==l)o=r;else o=l,s=i.getBlockForKey(l).getText().length}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})}},function(e,t,n){"use strict";var i=n(335);e.exports=i},function(e,t,n){"use strict";var i=n(32),r=n(801),a=i.isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)},isSoftNewlineEvent:r};e.exports=o},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(553)},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,a=/zoo|gra/,o=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,u=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,_=/:(read-only)/g,m=/\s+(?=[{\];=:>])/g,F=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,y=/\s{2,}/g,v=/([^\(])(:+) */g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,T=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,S="-webkit-",A="-moz-",O="-ms-",I=59,M=125,P=123,N=40,R=41,j=91,B=93,L=10,q=13,H=9,U=64,z=32,K=38,G=45,W=95,V=42,Y=44,X=58,$=39,J=34,Q=47,Z=62,ee=43,te=126,ne=0,ie=12,re=11,ae=107,oe=109,se=115,le=112,ce=111,ue=105,fe=99,de=100,he=112,pe=1,ge=1,_e=0,me=1,Fe=1,be=1,ye=0,ve=0,ke=0,Ee=[],we=[],Ce=0,Te=null,xe=-2,De=-1,Se=0,Ae=1,Oe=2,Ie=3,Me=0,Pe=1,Ne="",Re="",je="";function Be(e,t,r,a,o){for(var s,l,u=0,f=0,d=0,h=0,m=0,F=0,b=0,y=0,k=0,w=0,C=0,T=0,x=0,D=0,W=0,ye=0,we=0,Te=0,xe=0,De=r.length,qe=De-1,We="",Ve="",Ye="",Xe="",$e="",Je="";W0&&(Ve=Ve.replace(i,"")),Ve.trim().length>0)){switch(b){case z:case H:case I:case q:case L:break;default:Ve+=r.charAt(W)}b=I}if(1===we)switch(b){case P:case M:case I:case J:case $:case N:case R:case Y:we=0;case H:case q:case L:case z:break;default:for(we=0,xe=W,m=b,W--,b=I;xe0&&(++W,b=m);case P:xe=De}}switch(b){case P:for(m=(Ve=Ve.trim()).charCodeAt(0),C=1,xe=++W;W0&&(Ve=Ve.replace(i,"")),F=Ve.charCodeAt(1)){case de:case oe:case se:case G:s=t;break;default:s=Ee}if(xe=(Ye=Be(t,s,Ye,F,o+1)).length,ke>0&&0===xe&&(xe=Ve.length),Ce>0&&(s=Le(Ee,Ve,Te),l=Ke(Ie,Ye,s,t,ge,pe,xe,F,o,a),Ve=s.join(""),void 0!==l&&0===(xe=(Ye=l.trim()).length)&&(F=0,Ye="")),xe>0)switch(F){case se:Ve=Ve.replace(E,ze);case de:case oe:case G:Ye=Ve+"{"+Ye+"}";break;case ae:Ye=(Ve=Ve.replace(p,"$1 $2"+(Pe>0?Ne:"")))+"{"+Ye+"}",Ye=1===Fe||2===Fe&&Ue("@"+Ye,3)?"@"+S+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ve+Ye,a===he&&(Xe+=Ye,Ye="")}else Ye=""}else Ye=Be(t,Le(t,Ve,Te),Ye,a,o+1);$e+=Ye,T=0,we=0,D=0,ye=0,Te=0,x=0,Ve="",Ye="",b=r.charCodeAt(++W);break;case M:case I:if((xe=(Ve=(ye>0?Ve.replace(i,""):Ve).trim()).length)>1)switch(0===D&&((m=Ve.charCodeAt(0))===G||m>96&&m<123)&&(xe=(Ve=Ve.replace(" ",":")).length),Ce>0&&void 0!==(l=Ke(Ae,Ve,t,e,ge,pe,Xe.length,a,o,a))&&0===(xe=(Ve=l.trim()).length)&&(Ve="\0\0"),m=Ve.charCodeAt(0),F=Ve.charCodeAt(1),m){case ne:break;case U:if(F===ue||F===fe){Je+=Ve+r.charAt(W);break}default:if(Ve.charCodeAt(xe-1)===X)break;Xe+=He(Ve,m,F,Ve.charCodeAt(2))}T=0,we=0,D=0,ye=0,Te=0,Ve="",b=r.charCodeAt(++W)}}switch(b){case q:case L:if(f+h+d+u+ve===0)switch(w){case R:case $:case J:case U:case te:case Z:case V:case ee:case Q:case G:case X:case Y:case I:case P:case M:break;default:D>0&&(we=1)}f===Q?f=0:me+T===0&&a!==ae&&Ve.length>0&&(ye=1,Ve+="\0"),Ce*Me>0&&Ke(Se,Ve,t,e,ge,pe,Xe.length,a,o,a),pe=1,ge++;break;case I:case M:if(f+h+d+u===0){pe++;break}default:switch(pe++,We=r.charAt(W),b){case H:case z:if(h+u+f===0)switch(y){case Y:case X:case H:case z:We="";break;default:b!==z&&(We=" ")}break;case ne:We="\\0";break;case ie:We="\\f";break;case re:We="\\v";break;case K:h+f+u===0&&me>0&&(Te=1,ye=1,We="\f"+We);break;case 108:if(h+f+u+_e===0&&D>0)switch(W-D){case 2:y===le&&r.charCodeAt(W-3)===X&&(_e=y);case 8:k===ce&&(_e=k)}break;case X:h+f+u===0&&(D=W);break;case Y:f+d+h+u===0&&(ye=1,We+="\r");break;case J:case $:0===f&&(h=h===b?0:0===h?b:h);break;case j:h+f+d===0&&u++;break;case B:h+f+d===0&&u--;break;case R:h+f+u===0&&d--;break;case N:h+f+u===0&&(0===T&&(2*y+3*k===533||(C=0,T=1)),d++);break;case U:f+d+h+u+D+x===0&&(x=1);break;case V:case Q:if(h+u+d>0)break;switch(f){case 0:switch(2*b+3*r.charCodeAt(W+1)){case 235:f=Q;break;case 220:xe=W,f=V}break;case V:b===Q&&y===V&&xe+2!==W&&(33===r.charCodeAt(xe+2)&&(Xe+=r.substring(xe,W+1)),We="",f=0)}}if(0===f){if(me+h+u+x===0&&a!==ae&&b!==I)switch(b){case Y:case te:case Z:case ee:case R:case N:if(0===T){switch(y){case H:case z:case L:case q:We+="\0";break;default:We="\0"+We+(b===Y?"":"\0")}ye=1}else switch(b){case N:D+7===W&&108===y&&(D=0),T=++C;break;case R:0==(T=--C)&&(ye=1,We+="\0")}break;case H:case z:switch(y){case ne:case P:case M:case I:case Y:case ie:case H:case z:case L:case q:break;default:0===T&&(ye=1,We+="\0")}}Ve+=We,b!==z&&b!==H&&(w=b)}}k=y,y=b,W++}if(xe=Xe.length,ke>0&&0===xe&&0===$e.length&&0===t[0].length==0&&(a!==oe||1===t.length&&(me>0?Re:je)===t[0])&&(xe=t.join(",").length+2),xe>0){if(s=0===me&&a!==ae?function(e){for(var t,n,r=0,a=e.length,o=Array(a);r1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==u)switch(d){case V:case te:case Z:case ee:case z:case N:break;default:t=" "}switch(h){case K:n=t+Re;case te:case Z:case ee:case z:case R:case N:break;case j:n=t+n+Re;break;case X:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,f-1);break}default:(u<1||s[u-1].length<1)&&(n=t+Re+n)}break;case Y:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(v,"$1"+Re+"$2"):t+n+Re}l+=n}o[r]=l.replace(i,"").trim()}return o}(t):t,Ce>0&&void 0!==(l=Ke(Oe,Xe,s,e,ge,pe,xe,a,o,a))&&0===(Xe=l).length)return Je+Xe+$e;if(Xe=s.join(",")+"{"+Xe+"}",Fe*_e!=0){switch(2!==Fe||Ue(Xe,2)||(_e=0),_e){case ce:Xe=Xe.replace(_,":"+A+"$1")+Xe;break;case le:Xe=Xe.replace(g,"::"+S+"input-$1")+Xe.replace(g,"::"+A+"$1")+Xe.replace(g,":"+O+"input-$1")+Xe}_e=0}}return Je+Xe+$e}function Le(e,t,n){var i=t.trim().split(u),r=i,a=i.length,o=e.length;switch(o){case 0:case 1:for(var s=0,l=0===o?"":e[0]+" ";s0&&me>0)return r.replace(d,"$1").replace(f,"$1"+je);default:if(n*me>0&&r.indexOf("\f")>0)return r.replace(f,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+r}function He(e,t,n,i){var c,u=0,f=e+";",d=2*t+3*n+4*i;if(944===d)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Pe){case 0:break;case G:if(110!==e.charCodeAt(10))break;default:var a=r.split((r="",s)),o=0;for(n=0,t=a.length;oU&&f<90||f>96&&f<123||f===W||f===G&&c.charCodeAt(1)!==G)&&isNaN(parseFloat(c))+(-1!==c.indexOf("("))===1)switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Ne}u[n++]=c}r+=(0===o?"":",")+u.join(" ")}}return r=i+r+";",1===Fe||2===Fe&&Ue(r,1)?S+r+r:r}(f);if(0===Fe||2===Fe&&!Ue(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?S+f+f:f;case 951:return 116===f.charCodeAt(3)?S+f+f:f;case 963:return 110===f.charCodeAt(5)?S+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return S+f+f;case 978:return S+f+A+f+f;case 1019:case 983:return S+f+A+f+O+f+f;case 883:return f.charCodeAt(8)===G?S+f+f:f.indexOf("image-set(",11)>0?f.replace(D,"$1"+S+"$2")+f:f;case 932:if(f.charCodeAt(4)===G)switch(f.charCodeAt(5)){case 103:return S+"box-"+f.replace("-grow","")+S+f+O+f.replace("grow","positive")+f;case 115:return S+f+O+f.replace("shrink","negative")+f;case 98:return S+f+O+f.replace("basis","preferred-size")+f}return S+f+O+f+f;case 964:return S+f+O+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),S+"box-pack"+c+S+f+O+"flex-pack"+c+f;case 1005:return a.test(f)?f.replace(r,":"+S)+f.replace(r,":"+A)+f:f;case 1e3:switch(u=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(u)){case 226:c=f.replace(k,"tb");break;case 232:c=f.replace(k,"tb-rl");break;case 220:c=f.replace(k,"lr");break;default:return f}return S+f+O+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(u=(f=e).length-10,d=(c=(33===f.charCodeAt(u)?f.substring(0,u):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,S+c)+";"+f;break;case 207:case 102:f=f.replace(c,S+(d>102?"inline-":"")+"box")+";"+f.replace(c,S+c)+";"+f.replace(c,O+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===G)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),S+f+S+"box-"+c+O+"flex-"+c+f;case 115:return S+f+O+"flex-item-"+f.replace(C,"")+f;default:return S+f+O+"flex-line-pack"+f.replace("align-content","").replace(C,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==G||122===f.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?He(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):f.replace(c,S+c)+f.replace(c,A+c.replace("fill-",""))+f;break;case 962:if(f=S+f+(102===f.charCodeAt(5)?O+f:"")+f,n+i===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(o,"$1"+S+"$2")+f}return f}function Ue(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return Te(2!==t?i:i.replace(T,"$1"),r,t)}function ze(e,t){var n=He(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function Ke(e,t,n,i,r,a,o,s,l,c){for(var u,f=0,d=t;f0&&(Ne=r.replace(h,a===j?"":"-")),a=1,1===me?je=r:Re=r;var o,s=[je];Ce>0&&void 0!==(o=Ke(De,n,s,s,ge,pe,0,0,0,0))&&"string"==typeof o&&(n=o);var l=Be(Ee,s,n,0,0);return Ce>0&&void 0!==(o=Ke(xe,l,s,s,ge,pe,l.length,0,0,0))&&"string"!=typeof(l=o)&&(a=0),Ne="",je="",Re="",_e=0,ge=1,pe=1,ye*a==0?l:l.replace(i,"").replace(m,"").replace(F,"$1").replace(b,"$1").replace(y," ")}return Ve.use=function e(t){switch(t){case void 0:case null:Ce=we.length=0;break;default:if("function"==typeof t)we[Ce++]=t;else if("object"==typeof t)for(var n=0,i=t.length;nc;)r(i,n=t[c++])&&(~o(u,n)||l(u,n));return u}},function(e,t,n){"use strict";var i=n(54),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},function(e,t,n){"use strict";var i=n(28);e.exports=i("document","documentElement")},function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!i.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},function(e,t,n){"use strict";var i=n(4),r=n(7),a=n(11),o=n(21),s=n(15),l=n(163).CONFIGURABLE,c=n(164),u=n(25),f=u.enforce,d=u.get,h=String,p=Object.defineProperty,g=i("".slice),_=i("".replace),m=i([].join),F=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+_(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),F&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=f(e);return o(i,"source")||(i.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return a(this)&&d(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var i=n(5),r=n(11),a=i.WeakMap;e.exports=r(a)&&/native code/.test(String(a))},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var i=n(9),r=n(226),a=n(35),o=n(12)("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||a(n=i(s)[o])?t:r(n)}},function(e,t,n){"use strict";var i=n(100),r=n(99),a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not a constructor")}},function(e,t,n){"use strict";var i=n(102).charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){"use strict";var i=n(4),r=n(34),a=Math.floor,o=i("".charAt),s=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,f,d){var h=n+e.length,p=i.length,g=u;return void 0!==f&&(f=r(f),g=c),s(d,g,(function(r,s){var c;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,h);case"<":c=f[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>p){var d=a(u/10);return 0===d?r:d<=p?void 0===i[d-1]?o(s,1):i[d-1]+o(s,1):r}c=i[u-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var i=n(6),r=n(9),a=n(11),o=n(53),s=n(169),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var c=i(n,e,t);return null!==c&&r(c),c}if("RegExp"===o(e))return i(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var i=n(4),r=n(24);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(a){}}},function(e,t,n){"use strict";var i=n(54),r=n(88),a=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw new a("Wrong length or index");return n}},function(e,t,n){"use strict";var i=n(384);e.exports=Math.fround||function(e){return i(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";var i=n(34),r=n(219),a=n(45);e.exports=function(e){for(var t=i(this),n=a(t),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var i=n(388),r=RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw new r("Wrong offset");return n}},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(226),o=n(34),s=n(45),l=n(103),c=n(104),u=n(174),f=n(390),d=n(66).aTypedArrayConstructor,h=n(237);e.exports=function(e){var t,n,p,g,_,m,F,b,y=a(this),v=o(e),k=arguments.length,E=k>1?arguments[1]:void 0,w=void 0!==E,C=c(v);if(C&&!u(C))for(b=(F=l(v,C)).next,v=[];!(m=r(b,F)).done;)v.push(m.value);for(w&&k>2&&(E=i(E,arguments[2])),n=s(v),p=new(d(y))(n),g=f(p),t=0;n>t;t++)_=w?E(v[t],t):v[t],p[t]=g?h(_):+_;return p}},function(e,t,n){"use strict";var i=n(216),r=TypeError;e.exports=function(e){var t=i(e,"number");if("number"==typeof t)throw new r("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var i=n(20),r=n(4),a=n(160),o=n(34),s=n(45),l=n(391),c=r([].push),u=function(e){var t=1===e,n=2===e,r=3===e,u=4===e,f=6===e,d=7===e,h=5===e||f;return function(p,g,_,m){for(var F,b,y=o(p),v=a(y),k=s(v),E=i(g,_),w=0,C=m||l,T=t?C(p,k):n||d?C(p,0):void 0;k>w;w++)if((h||w in v)&&(b=E(F=v[w],w,y),e))if(t)T[w]=b;else if(b)switch(e){case 3:return!0;case 5:return F;case 6:return w;case 2:c(T,F)}else switch(e){case 4:return!1;case 7:c(T,F)}return f?-1:r||u?u:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t,n){"use strict";var i=n(91),r=Math.floor;e.exports=function e(t,n){var a=t.length;if(a<8)for(var o,s,l=1;l0;)t[s]=t[--s];s!==l++&&(t[s]=o)}else for(var c=r(a/2),u=e(i(t,0,c),n),f=e(i(t,c),n),d=u.length,h=f.length,p=0,g=0;p=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var g=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!u&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(_){}},function(e,t,n){"use strict";var i,r,a,o,s=n(5),l=n(101),c=n(20),u=n(11),f=n(21),d=n(7),h=n(220),p=n(91),g=n(120),_=n(130),m=n(537),F=n(249),b=s.setImmediate,y=s.clearImmediate,v=s.process,k=s.Dispatch,E=s.Function,w=s.MessageChannel,C=s.String,T=0,x={},D="onreadystatechange";d((function(){i=s.location}));var S=function(e){if(f(x,e)){var t=x[e];delete x[e],t()}},A=function(e){return function(){S(e)}},O=function(e){S(e.data)},I=function(e){s.postMessage(C(e),i.protocol+"//"+i.host)};b&&y||(b=function(e){_(arguments.length,1);var t=u(e)?e:E(e),n=p(arguments,1);return x[++T]=function(){l(t,void 0,n)},r(T),T},y=function(e){delete x[e]},F?r=function(e){v.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:w&&!m?(o=(a=new w).port2,a.port1.onmessage=O,r=c(o.postMessage,o)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!d(I)?(r=I,s.addEventListener("message",O,!1)):r=D in g("script")?function(e){h.appendChild(g("script"))[D]=function(){h.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:y}},function(e,t,n){"use strict";var i=n(7),r=n(12),a=n(15),o=n(50),s=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),i+=n+e})),n.delete("a",2),n.delete("b",void 0),o&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(o||!a)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";n(253);var i=n(3),r=n(5),a=n(549),o=n(6),s=n(4),l=n(15),c=n(255),u=n(39),f=n(47),d=n(90),h=n(76),p=n(105),g=n(25),_=n(68),m=n(11),F=n(21),b=n(20),y=n(57),v=n(9),k=n(14),E=n(40),w=n(52),C=n(65),T=n(103),x=n(104),D=n(77),S=n(130),A=n(12),O=n(239),I=A("iterator"),M="URLSearchParams",P=M+"Iterator",N=g.set,R=g.getterFor(M),j=g.getterFor(P),B=a("fetch"),L=a("Request"),q=a("Headers"),H=L&&L.prototype,U=q&&q.prototype,z=r.RegExp,K=r.TypeError,G=r.decodeURIComponent,W=r.encodeURIComponent,V=s("".charAt),Y=s([].join),X=s([].push),$=s("".replace),J=s([].shift),Q=s([].splice),Z=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),ie=function(e){return ne[e-1]||(ne[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return G(e)}catch(t){return e}},ae=function(e){var t=$(e,te," "),n=4;try{return G(t)}catch(i){for(;n;)t=$(t,ie(n--),re);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},le=function(e){return se[e]},ce=function(e){return $(W(e),oe,le)},ue=p((function(e,t){N(this,{type:P,target:R(e).entries,index:0,kind:t})}),M,(function(){var e=j(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,D(void 0,!0);var i=t[n];switch(e.kind){case"keys":return D(i.key,!1);case"values":return D(i.value,!1)}return D([i.key,i.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(k(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===V(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,a,s,l,c=this.entries,u=x(e);if(u)for(n=(t=T(e,u)).next;!(i=o(n,t)).done;){if(a=(r=T(v(i.value))).next,(s=o(a,r)).done||(l=o(a,r)).done||!o(a,r).done)throw new K("Expected sequence with length 2");X(c,{key:E(s.value),value:E(l.value)})}else for(var f in e)F(e,f)&&X(c,{key:f,value:E(e[f])})},parseQuery:function(e){if(e)for(var t,n,i=this.entries,r=Z(e,"&"),a=0;a0?arguments[0]:void 0));l||(this.size=e.entries.length)},he=de.prototype;if(d(he,{append:function(e,t){var n=R(this);S(arguments.length,2),X(n.entries,{key:E(e),value:E(t)}),l||this.length++,n.updateURL()},delete:function(e){for(var t=R(this),n=S(arguments.length,1),i=t.entries,r=E(e),a=n<2?void 0:arguments[1],o=void 0===a?a:E(a),s=0;st.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=R(this).entries,i=b(e,arguments.length>1?arguments[1]:void 0),r=0;r1?_e(arguments[1]):{})}}),m(L)){var me=function(e){return _(this,H),new L(e,arguments.length>1?_e(arguments[1]):{})};H.constructor=me,me.prototype=H,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:de,getState:R}},function(e,t,n){e.exports=n.p+"static/media/ico_logo_dk.a8aea59e.svg"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heightWidthRadiusDefaults=t.heightWidthDefaults=t.sizeMarginDefaults=t.sizeDefaults=void 0;var i={loading:!0,color:"#000000",css:""};function r(e){return Object.assign({},i,{size:e})}function a(e,t){return Object.assign({},i,{height:e,width:t})}t.sizeDefaults=r,t.sizeMarginDefaults=function(e){return Object.assign({},r(e),{margin:2})},t.heightWidthDefaults=a,t.heightWidthRadiusDefaults=function(e,t,n){return void 0===n&&(n=2),Object.assign({},a(e,t),{radius:n,margin:2})}},function(e,t,n){"use strict";var i=n(94),r=n(588),a=n(589),o=n(590),s=n(180),l=n(181),c=n(182),u=n(262),f=n(108),d=n(55),h=d.TAG_NAMES,p=d.NAMESPACES,g=d.ATTRS,_={locationInfo:!1,treeAdapter:s},m="hidden",F=8,b=3,y="INITIAL_MODE",v="BEFORE_HTML_MODE",k="BEFORE_HEAD_MODE",E="IN_HEAD_MODE",w="AFTER_HEAD_MODE",C="IN_BODY_MODE",T="TEXT_MODE",x="IN_TABLE_MODE",D="IN_TABLE_TEXT_MODE",S="IN_CAPTION_MODE",A="IN_COLUMN_GROUP_MODE",O="IN_TABLE_BODY_MODE",I="IN_ROW_MODE",M="IN_CELL_MODE",P="IN_SELECT_MODE",N="IN_SELECT_IN_TABLE_MODE",R="IN_TEMPLATE_MODE",j="AFTER_BODY_MODE",B="IN_FRAMESET_MODE",L="AFTER_FRAMESET_MODE",q="AFTER_AFTER_BODY_MODE",H="AFTER_AFTER_FRAMESET_MODE",U=Object.create(null);U[h.TR]=I,U[h.TBODY]=U[h.THEAD]=U[h.TFOOT]=O,U[h.CAPTION]=S,U[h.COLGROUP]=A,U[h.TABLE]=x,U[h.BODY]=C,U[h.FRAMESET]=B;var z=Object.create(null);z[h.CAPTION]=z[h.COLGROUP]=z[h.TBODY]=z[h.TFOOT]=z[h.THEAD]=x,z[h.COL]=A,z[h.TR]=O,z[h.TD]=z[h.TH]=I;var K=Object.create(null);K[y]=Object.create(null),K[y][i.CHARACTER_TOKEN]=K[y][i.NULL_CHARACTER_TOKEN]=re,K[y][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[y][i.COMMENT_TOKEN]=ee,K[y][i.DOCTYPE_TOKEN]=function(e,t){e._setDocumentType(t);var n=t.forceQuirks?d.DOCUMENT_MODE.QUIRKS:c.getDocumentMode(t.name,t.publicId,t.systemId);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=v},K[y][i.START_TAG_TOKEN]=K[y][i.END_TAG_TOKEN]=K[y][i.EOF_TOKEN]=re,K[v]=Object.create(null),K[v][i.CHARACTER_TOKEN]=K[v][i.NULL_CHARACTER_TOKEN]=ae,K[v][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[v][i.COMMENT_TOKEN]=ee,K[v][i.DOCTYPE_TOKEN]=Z,K[v][i.START_TAG_TOKEN]=function(e,t){t.tagName===h.HTML?(e._insertElement(t,p.HTML),e.insertionMode=k):ae(e,t)},K[v][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HTML&&n!==h.HEAD&&n!==h.BODY&&n!==h.BR||ae(e,t)},K[v][i.EOF_TOKEN]=ae,K[k]=Object.create(null),K[k][i.CHARACTER_TOKEN]=K[k][i.NULL_CHARACTER_TOKEN]=oe,K[k][i.WHITESPACE_CHARACTER_TOKEN]=Z,K[k][i.COMMENT_TOKEN]=ee,K[k][i.DOCTYPE_TOKEN]=Z,K[k][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.HEAD?(e._insertElement(t,p.HTML),e.headElement=e.openElements.current,e.insertionMode=E):oe(e,t)},K[k][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n!==h.HEAD&&n!==h.BODY&&n!==h.HTML&&n!==h.BR||oe(e,t)},K[k][i.EOF_TOKEN]=oe,K[E]=Object.create(null),K[E][i.CHARACTER_TOKEN]=K[E][i.NULL_CHARACTER_TOKEN]=ce,K[E][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[E][i.COMMENT_TOKEN]=ee,K[E][i.DOCTYPE_TOKEN]=Z,K[E][i.START_TAG_TOKEN]=se,K[E][i.END_TAG_TOKEN]=le,K[E][i.EOF_TOKEN]=ce,K[w]=Object.create(null),K[w][i.CHARACTER_TOKEN]=K[w][i.NULL_CHARACTER_TOKEN]=ue,K[w][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[w][i.COMMENT_TOKEN]=ee,K[w][i.DOCTYPE_TOKEN]=Z,K[w][i.START_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.BODY?(e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=C):n===h.FRAMESET?(e._insertElement(t,p.HTML),e.insertionMode=B):n===h.BASE||n===h.BASEFONT||n===h.BGSOUND||n===h.LINK||n===h.META||n===h.NOFRAMES||n===h.SCRIPT||n===h.STYLE||n===h.TEMPLATE||n===h.TITLE?(e.openElements.push(e.headElement),se(e,t),e.openElements.remove(e.headElement)):n!==h.HEAD&&ue(e,t)},K[w][i.END_TAG_TOKEN]=function(e,t){var n=t.tagName;n===h.BODY||n===h.HTML||n===h.BR?ue(e,t):n===h.TEMPLATE&&le(e,t)},K[w][i.EOF_TOKEN]=ue,K[C]=Object.create(null),K[C][i.CHARACTER_TOKEN]=de,K[C][i.NULL_CHARACTER_TOKEN]=Z,K[C][i.WHITESPACE_CHARACTER_TOKEN]=fe,K[C][i.COMMENT_TOKEN]=ee,K[C][i.DOCTYPE_TOKEN]=Z,K[C][i.START_TAG_TOKEN]=Ee,K[C][i.END_TAG_TOKEN]=xe,K[C][i.EOF_TOKEN]=De,K[T]=Object.create(null),K[T][i.CHARACTER_TOKEN]=K[T][i.NULL_CHARACTER_TOKEN]=K[T][i.WHITESPACE_CHARACTER_TOKEN]=ne,K[T][i.COMMENT_TOKEN]=K[T][i.DOCTYPE_TOKEN]=K[T][i.START_TAG_TOKEN]=Z,K[T][i.END_TAG_TOKEN]=function(e,t){t.tagName===h.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},K[T][i.EOF_TOKEN]=function(e,t){e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)},K[x]=Object.create(null),K[x][i.CHARACTER_TOKEN]=K[x][i.NULL_CHARACTER_TOKEN]=K[x][i.WHITESPACE_CHARACTER_TOKEN]=Se,K[x][i.COMMENT_TOKEN]=ee,K[x][i.DOCTYPE_TOKEN]=Z,K[x][i.START_TAG_TOKEN]=Ae,K[x][i.END_TAG_TOKEN]=Oe,K[x][i.EOF_TOKEN]=De,K[D]=Object.create(null),K[D][i.CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},K[D][i.NULL_CHARACTER_TOKEN]=Z,K[D][i.WHITESPACE_CHARACTER_TOKEN]=function(e,t){e.pendingCharacterTokens.push(t)},K[D][i.COMMENT_TOKEN]=K[D][i.DOCTYPE_TOKEN]=K[D][i.START_TAG_TOKEN]=K[D][i.END_TAG_TOKEN]=K[D][i.EOF_TOKEN]=function(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n=0;i--){var r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function Y(e,t,n){for(var i=t,r=e.openElements.getCommonAncestor(t),a=0,o=r;o!==n;a++,o=r){r=e.openElements.getCommonAncestor(o);var s=e.activeFormattingElements.getElementEntry(o),l=s&&a>=b;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=X(e,s),i===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function X(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function $(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{var i=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&r===p.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J(e,t,n){var i=e.treeAdapter.getNamespaceURI(n.element),r=n.token,a=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function Q(e,t){for(var n,i=0;i0&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode())}function ce(e,t){e.openElements.pop(),e.insertionMode=w,e._processToken(t)}function ue(e,t){e._insertFakeElement(h.BODY),e.insertionMode=C,e._processToken(t)}function fe(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function de(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function he(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}function pe(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ge(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function me(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML),e.framesetOk=!1}function Fe(e,t){e._appendElement(t,p.HTML)}function be(e,t){e._switchToTextParsing(t,i.MODE.RAWTEXT)}function ye(e,t){e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function ve(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,p.HTML)}function ke(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}function Ee(e,t){var n=t.tagName;switch(n.length){case 1:n===h.I||n===h.S||n===h.B||n===h.U?ge(e,t):n===h.P?he(e,t):n===h.A?function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(h.A);n&&(Q(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ke(e,t);break;case 2:n===h.DL||n===h.OL||n===h.UL?he(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement();var n=e.openElements.currentTagName;n!==h.H1&&n!==h.H2&&n!==h.H3&&n!==h.H4&&n!==h.H5&&n!==h.H6||e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n===h.LI||n===h.DD||n===h.DT?function(e,t){e.framesetOk=!1;for(var n=t.tagName,i=e.openElements.stackTop;i>=0;i--){var r=e.openElements.items[i],a=e.treeAdapter.getTagName(r),o=null;if(n===h.LI&&a===h.LI?o=h.LI:n!==h.DD&&n!==h.DT||a!==h.DD&&a!==h.DT||(o=a),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(a!==h.ADDRESS&&a!==h.DIV&&a!==h.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML)}(e,t):n===h.EM||n===h.TT?ge(e,t):n===h.BR?me(e,t):n===h.HR?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._appendElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.RB?ve(e,t):n===h.RT||n===h.RP?function(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,p.HTML)}(e,t):n!==h.TH&&n!==h.TD&&n!==h.TR&&ke(e,t);break;case 3:n===h.DIV||n===h.DIR||n===h.NAV?he(e,t):n===h.PRE?pe(e,t):n===h.BIG?ge(e,t):n===h.IMG||n===h.WBR?me(e,t):n===h.XMP?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SVG?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenSVGAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.SVG):e._insertElement(t,p.SVG)}(e,t):n===h.RTC?ve(e,t):n!==h.COL&&ke(e,t);break;case 4:n===h.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===h.BASE||n===h.LINK||n===h.META?se(e,t):n===h.BODY?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===h.MAIN?he(e,t):n===h.FORM?function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===h.CODE||n===h.FONT?ge(e,t):n===h.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Q(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,p.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===h.AREA?me(e,t):n===h.MATH?function(e,t){e._reconstructActiveFormattingElements(),u.adjustTokenMathMLAttrs(t),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,p.MATHML):e._insertElement(t,p.MATHML)}(e,t):n===h.MENU?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._insertElement(t,p.HTML)}(e,t):n!==h.HEAD&&ke(e,t);break;case 5:n===h.STYLE||n===h.TITLE?se(e,t):n===h.ASIDE?he(e,t):n===h.SMALL?ge(e,t):n===h.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==d.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode=x}(e,t):n===h.EMBED?me(e,t):n===h.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.HTML);var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m||(e.framesetOk=!1)}(e,t):n===h.PARAM||n===h.TRACK?Fe(e,t):n===h.IMAGE?function(e,t){t.tagName=h.IMG,me(e,t)}(e,t):n!==h.FRAME&&n!==h.TBODY&&n!==h.TFOOT&&n!==h.THEAD&&ke(e,t);break;case 6:n===h.SCRIPT?se(e,t):n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?he(e,t):n===h.BUTTON?function(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1}(e,t):n===h.STRIKE||n===h.STRONG?ge(e,t):n===h.APPLET||n===h.OBJECT?_e(e,t):n===h.KEYGEN?me(e,t):n===h.SOURCE?Fe(e,t):n===h.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,i.MODE.RAWTEXT)}(e,t):n===h.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML),e.framesetOk=!1,e.insertionMode===x||e.insertionMode===S||e.insertionMode===O||e.insertionMode===I||e.insertionMode===M?e.insertionMode=N:e.insertionMode=P}(e,t):n===h.OPTION?ye(e,t):ke(e,t);break;case 7:n===h.BGSOUND?se(e,t):n===h.DETAILS||n===h.ADDRESS||n===h.ARTICLE||n===h.SECTION||n===h.SUMMARY?he(e,t):n===h.LISTING?pe(e,t):n===h.MARQUEE?_e(e,t):n===h.NOEMBED?be(e,t):n!==h.CAPTION&&ke(e,t);break;case 8:n===h.BASEFONT?se(e,t):n===h.MENUITEM?function(e,t){e.openElements.currentTagName===h.MENUITEM&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,p.HTML)}(e,t):n===h.FRAMESET?function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,p.HTML),e.insertionMode=B)}(e,t):n===h.FIELDSET?he(e,t):n===h.TEXTAREA?function(e,t){e._insertElement(t,p.HTML),e.skipNextNewLine=!0,e.tokenizer.state=i.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=T}(e,t):n===h.TEMPLATE?se(e,t):n===h.NOSCRIPT?be(e,t):n===h.OPTGROUP?ye(e,t):n!==h.COLGROUP&&ke(e,t);break;case 9:n===h.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,p.HTML),e.tokenizer.state=i.MODE.PLAINTEXT}(e,t):ke(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?he(e,t):ke(e,t);break;default:ke(e,t)}}function we(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Ce(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Te(e,t){for(var n=t.tagName,i=e.openElements.stackTop;i>0;i--){var r=e.openElements.items[i];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function xe(e,t){var n=t.tagName;switch(n.length){case 1:n===h.A||n===h.B||n===h.I||n===h.S||n===h.U?Q(e,t):n===h.P?function(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(h.P),e._closePElement()}(e):Te(e,t);break;case 2:n===h.DL||n===h.UL||n===h.OL?we(e,t):n===h.LI?function(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}(e):n===h.DD||n===h.DT?function(e,t){var n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===h.H1||n===h.H2||n===h.H3||n===h.H4||n===h.H5||n===h.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===h.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(h.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===h.EM||n===h.TT?Q(e,t):Te(e,t);break;case 3:n===h.BIG?Q(e,t):n===h.DIR||n===h.DIV||n===h.NAV?we(e,t):Te(e,t);break;case 4:n===h.BODY?function(e){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=j)}(e):n===h.HTML?function(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=j,e._processToken(t))}(e,t):n===h.FORM?function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(h.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(h.FORM):e.openElements.remove(n))}(e):n===h.CODE||n===h.FONT||n===h.NOBR?Q(e,t):n===h.MAIN||n===h.MENU?we(e,t):Te(e,t);break;case 5:n===h.ASIDE?we(e,t):n===h.SMALL?Q(e,t):Te(e,t);break;case 6:n===h.CENTER||n===h.FIGURE||n===h.FOOTER||n===h.HEADER||n===h.HGROUP?we(e,t):n===h.APPLET||n===h.OBJECT?Ce(e,t):n===h.STRIKE||n===h.STRONG?Q(e,t):Te(e,t);break;case 7:n===h.ADDRESS||n===h.ARTICLE||n===h.DETAILS||n===h.SECTION||n===h.SUMMARY?we(e,t):n===h.MARQUEE?Ce(e,t):Te(e,t);break;case 8:n===h.FIELDSET?we(e,t):n===h.TEMPLATE?le(e,t):Te(e,t);break;case 10:n===h.BLOCKQUOTE||n===h.FIGCAPTION?we(e,t):Te(e,t);break;default:Te(e,t)}}function De(e,t){e.tmplInsertionModeStackTop>-1?Re(e,t):e.stopped=!0}function Se(e,t){var n=e.openElements.currentTagName;n===h.TABLE||n===h.TBODY||n===h.TFOOT||n===h.THEAD||n===h.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D,e._processToken(t)):Ie(e,t)}function Ae(e,t){var n=t.tagName;switch(n.length){case 2:n===h.TD||n===h.TH||n===h.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.TBODY),e.insertionMode=O,e._processToken(t)}(e,t):Ie(e,t);break;case 3:n===h.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(h.COLGROUP),e.insertionMode=A,e._processToken(t)}(e,t):Ie(e,t);break;case 4:n===h.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,p.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Ie(e,t);break;case 5:n===h.TABLE?function(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===h.STYLE?se(e,t):n===h.TBODY||n===h.TFOOT||n===h.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=O}(e,t):n===h.INPUT?function(e,t){var n=i.getTokenAttr(t,g.TYPE);n&&n.toLowerCase()===m?e._appendElement(t,p.HTML):Ie(e,t)}(e,t):Ie(e,t);break;case 6:n===h.SCRIPT?se(e,t):Ie(e,t);break;case 7:n===h.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,p.HTML),e.insertionMode=S}(e,t):Ie(e,t);break;case 8:n===h.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,p.HTML),e.insertionMode=A}(e,t):n===h.TEMPLATE?se(e,t):Ie(e,t);break;default:Ie(e,t)}}function Oe(e,t){var n=t.tagName;n===h.TABLE?e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode()):n===h.TEMPLATE?le(e,t):n!==h.BODY&&n!==h.CAPTION&&n!==h.COL&&n!==h.COLGROUP&&n!==h.HTML&&n!==h.TBODY&&n!==h.TD&&n!==h.TFOOT&&n!==h.TH&&n!==h.THEAD&&n!==h.TR&&Ie(e,t)}function Ie(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Me(e,t){e.openElements.currentTagName===h.COLGROUP&&(e.openElements.pop(),e.insertionMode=x,e._processToken(t))}function Pe(e,t){var n=t.tagName;n===h.HTML?Ee(e,t):n===h.OPTION?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.OPTGROUP?(e.openElements.currentTagName===h.OPTION&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.HTML)):n===h.INPUT||n===h.KEYGEN||n===h.TEXTAREA||n===h.SELECT?e.openElements.hasInSelectScope(h.SELECT)&&(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode(),n!==h.SELECT&&e._processToken(t)):n!==h.SCRIPT&&n!==h.TEMPLATE||se(e,t)}function Ne(e,t){var n=t.tagName;if(n===h.OPTGROUP){var i=e.openElements.items[e.openElements.stackTop-1],r=i&&e.treeAdapter.getTagName(i);e.openElements.currentTagName===h.OPTION&&r===h.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===h.OPTGROUP&&e.openElements.pop()}else n===h.OPTION?e.openElements.currentTagName===h.OPTION&&e.openElements.pop():n===h.SELECT&&e.openElements.hasInSelectScope(h.SELECT)?(e.openElements.popUntilTagNamePopped(h.SELECT),e._resetInsertionMode()):n===h.TEMPLATE&&le(e,t)}function Re(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function je(e,t){e.insertionMode=C,e._processToken(t)}function Be(e,t){e.insertionMode=C,e._processToken(t)}G.prototype.parse=function(e){var t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t},G.prototype.parseFragment=function(e,t){t||(t=this.treeAdapter.createElement(h.TEMPLATE,p.HTML,[]));var n=this.treeAdapter.createElement("documentmock",p.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===h.TEMPLATE&&this._pushTmplInsertionMode(R),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);var i=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,r),r},G.prototype._bootstrap=function(e,t){this.tokenizer=new i(this.options),this.stopped=!1,this.insertionMode=y,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},G.prototype._runParsingLoop=function(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();var t=this.tokenizer.getNextToken();if(t.type===i.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===i.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}},G.prototype.runParsingLoopForCurrentChunk=function(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void t(n)}e&&e()},G.prototype._setupTokenizerCDATAMode=function(){var e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==p.HTML&&!this._isIntegrationPoint(e)},G.prototype._switchToTextParsing=function(e,t){this._insertElement(e,p.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=T},G.prototype.switchToPlaintextParsing=function(){this.insertionMode=T,this.originalInsertionMode=C,this.tokenizer.state=i.MODE.PLAINTEXT},G.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},G.prototype._findFormInFragmentContext=function(){var e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===h.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)},G.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.HTML){var e=this.treeAdapter.getTagName(this.fragmentContext);e===h.TITLE||e===h.TEXTAREA?this.tokenizer.state=i.MODE.RCDATA:e===h.STYLE||e===h.XMP||e===h.IFRAME||e===h.NOEMBED||e===h.NOFRAMES||e===h.NOSCRIPT?this.tokenizer.state=i.MODE.RAWTEXT:e===h.SCRIPT?this.tokenizer.state=i.MODE.SCRIPT_DATA:e===h.PLAINTEXT&&(this.tokenizer.state=i.MODE.PLAINTEXT)}},G.prototype._setDocumentType=function(e){this.treeAdapter.setDocumentType(this.document,e.name,e.publicId,e.systemId)},G.prototype._attachElementToTree=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}},G.prototype._appendElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)},G.prototype._insertElement=function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)},G.prototype._insertFakeElement=function(e){var t=this.treeAdapter.createElement(e,p.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)},G.prototype._insertTemplate=function(e){var t=this.treeAdapter.createElement(e.tagName,p.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)},G.prototype._insertFakeRootElement=function(){var e=this.treeAdapter.createElement(h.HTML,p.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)},G.prototype._appendCommentNode=function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)},G.prototype._insertCharacters=function(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{var t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}},G.prototype._adoptNodes=function(e,t){for(;;){var n=this.treeAdapter.getFirstChild(e);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},G.prototype._shouldProcessTokenInForeignContent=function(e){var t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(t);if(n===p.HTML)return!1;if(this.treeAdapter.getTagName(t)===h.ANNOTATION_XML&&n===p.MATHML&&e.type===i.START_TAG_TOKEN&&e.tagName===h.SVG)return!1;var r=e.type===i.CHARACTER_TOKEN||e.type===i.NULL_CHARACTER_TOKEN||e.type===i.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===i.START_TAG_TOKEN&&e.tagName!==h.MGLYPH&&e.tagName!==h.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,p.MATHML))&&((e.type!==i.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,p.HTML))&&e.type!==i.EOF_TOKEN)},G.prototype._processToken=function(e){K[this.insertionMode][e.type](this,e)},G.prototype._processTokenInBodyMode=function(e){K[C][e.type](this,e)},G.prototype._processTokenInForeignContent=function(e){e.type===i.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===i.NULL_CHARACTER_TOKEN?function(e,t){t.chars=f.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===i.WHITESPACE_CHARACTER_TOKEN?ne(this,e):e.type===i.COMMENT_TOKEN?ee(this,e):e.type===i.START_TAG_TOKEN?function(e,t){if(u.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{var n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===p.MATHML?u.adjustTokenMathMLAttrs(t):i===p.SVG&&(u.adjustTokenSVGTagName(t),u.adjustTokenSVGAttrs(t)),u.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i)}}(this,e):e.type===i.END_TAG_TOKEN&&function(e,t){for(var n=e.openElements.stackTop;n>0;n--){var i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===p.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(i).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(i);break}}}(this,e)},G.prototype._processInputToken=function(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e)},G.prototype._isIntegrationPoint=function(e,t){var n=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return u.isIntegrationPoint(n,i,r,t)},G.prototype._reconstructActiveFormattingElements=function(){var e=this.activeFormattingElements.length;if(e){var t=e,n=null;do{if(t--,(n=this.activeFormattingElements.entries[t]).type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(var i=t;i=0;e--){var n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));var i=this.treeAdapter.getTagName(n),r=U[i];if(r){this.insertionMode=r;break}if(!(t||i!==h.TD&&i!==h.TH)){this.insertionMode=M;break}if(!t&&i===h.HEAD){this.insertionMode=E;break}if(i===h.SELECT){this._resetInsertionModeForSelect(e);break}if(i===h.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(i===h.HTML){this.insertionMode=this.headElement?w:k;break}if(t){this.insertionMode=C;break}}},G.prototype._resetInsertionModeForSelect=function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n);if(i===h.TEMPLATE)break;if(i===h.TABLE)return void(this.insertionMode=N)}this.insertionMode=P},G.prototype._pushTmplInsertionMode=function(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e},G.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},G.prototype._isElementCausesFosterParenting=function(e){var t=this.treeAdapter.getTagName(e);return t===h.TABLE||t===h.TBODY||t===h.TFOOT||t===h.THEAD||t===h.TR},G.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},G.prototype._findFosterParentingLocation=function(){for(var e={parent:null,beforeElement:null},t=this.openElements.stackTop;t>=0;t--){var n=this.openElements.items[t],i=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(i===h.TEMPLATE&&r===p.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(i===h.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e},G.prototype._fosterParentElement=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)},G.prototype._fosterParentText=function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)},G.prototype._isSpecialElement=function(e){var t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return d.SPECIAL_ELEMENTS[n][t]}},function(e,t,n){"use strict";var i=n(131),r=n(94),a=n(261),o=n(61).inherits,s=e.exports=function(e){i.call(this,e),this.tokenizer=e,this.posTracker=new a(e.preprocessor),this.currentAttrLocation=null,this.currentTokenLocation=null};o(s,i),s.prototype._getCurrentLocation=function(){return{line:this.posTracker.line,col:this.posTracker.col,startOffset:this.posTracker.offset,endOffset:-1}},s.prototype._attachCurrentAttrLocationInfo=function(){this.currentAttrLocation.endOffset=this.posTracker.offset;var e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation},s.prototype._getOverriddenMethods=function(e,t){var n={_createStartTagToken:function(){t._createStartTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createEndTagToken:function(){t._createEndTagToken.call(this),this.currentToken.location=e.currentTokenLocation},_createCommentToken:function(){t._createCommentToken.call(this),this.currentToken.location=e.currentTokenLocation},_createDoctypeToken:function(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.currentTokenLocation},_createCharacterToken:function(n,i){t._createCharacterToken.call(this,n,i),this.currentCharacterToken.location=e.currentTokenLocation},_createAttr:function(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName:function(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue:function(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken:function(){this.currentCharacterToken&&(this.currentCharacterToken.location.endOffset=this.currentToken.location.startOffset),this.currentToken.location.endOffset=e.posTracker.offset+1,t._emitCurrentToken.call(this)},_emitCurrentCharacterToken:function(){this.currentCharacterToken&&-1===this.currentCharacterToken.location.endOffset&&(this.currentCharacterToken.location.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach((function(i){var a=r.MODE[i];n[a]=function(n){e.currentTokenLocation=e._getCurrentLocation(),t[a].call(this,n)}})),n}},function(e,t,n){"use strict";var i=n(131),r=n(61).inherits,a=n(108).CODE_POINTS,o=e.exports=function(e){return e.__locTracker||(e.__locTracker=this,i.call(this,e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.col=-1,this.line=1),e.__locTracker};r(o,i),Object.defineProperty(o.prototype,"offset",{get:function(){return this.droppedBufferSize+this.preprocessor.pos}}),o.prototype._getOverriddenMethods=function(e,t){return{advance:function(){var n=t.advance.call(this);return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=e.offset),n===a.LINE_FEED&&(e.isEol=!0),e.col=e.offset-e.lineStartPos+1,n},retreat:function(){t.retreat.call(this),e.isEol=!1,e.col=e.offset-e.lineStartPos+1},dropParsedChunk:function(){var n=this.pos;t.dropParsedChunk.call(this),e.droppedBufferSize+=n-this.pos}}}},function(e,t,n){"use strict";var i=n(94),r=n(55),a=r.TAG_NAMES,o=r.NAMESPACES,s=r.ATTRS,l="text/html",c="application/xhtml+xml",u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},f={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},d=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},h=Object.create(null);h[a.B]=!0,h[a.BIG]=!0,h[a.BLOCKQUOTE]=!0,h[a.BODY]=!0,h[a.BR]=!0,h[a.CENTER]=!0,h[a.CODE]=!0,h[a.DD]=!0,h[a.DIV]=!0,h[a.DL]=!0,h[a.DT]=!0,h[a.EM]=!0,h[a.EMBED]=!0,h[a.H1]=!0,h[a.H2]=!0,h[a.H3]=!0,h[a.H4]=!0,h[a.H5]=!0,h[a.H6]=!0,h[a.HEAD]=!0,h[a.HR]=!0,h[a.I]=!0,h[a.IMG]=!0,h[a.LI]=!0,h[a.LISTING]=!0,h[a.MENU]=!0,h[a.META]=!0,h[a.NOBR]=!0,h[a.OL]=!0,h[a.P]=!0,h[a.PRE]=!0,h[a.RUBY]=!0,h[a.S]=!0,h[a.SMALL]=!0,h[a.SPAN]=!0,h[a.STRONG]=!0,h[a.STRIKE]=!0,h[a.SUB]=!0,h[a.SUP]=!0,h[a.TABLE]=!0,h[a.TT]=!0,h[a.U]=!0,h[a.UL]=!0,h[a.VAR]=!0,t.causesExit=function(e){var t=e.tagName;return!!(t===a.FONT&&(null!==i.getTokenAttr(e,s.COLOR)||null!==i.getTokenAttr(e,s.SIZE)||null!==i.getTokenAttr(e,s.FACE)))||h[t]},t.adjustTokenMathMLAttrs=function(e){for(var t=0;t/g,g=e.exports=function(e,t){this.options=r(c,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e};g.escapeString=function(e,t){return e=e.replace(u,"&").replace(f," "),e=t?e.replace(d,"""):e.replace(h,"<").replace(p,">")},g.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},g.prototype._serializeChildNodes=function(e){var t=this.treeAdapter.getChildNodes(e);if(t)for(var n=0,i=t.length;n",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.MENUITEM&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){var i=t===s.TEMPLATE&&n===l.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(i),this.html+=""}},g.prototype._serializeAttributes=function(e){for(var t=this.treeAdapter.getAttrList(e),n=0,i=t.length;n"}},function(e,t,n){"use strict";var i=n(132).Writable,r=n(61).inherits,a=n(259),o=e.exports=function(e){i.call(this),this.parser=new a(e),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};r(o,i),o.prototype._write=function(e,t,n){this.writeCallback=n,this.parser.tokenizer.write(e.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},o.prototype.end=function(e,t,n){this.lastChunkWritten=!0,i.prototype.end.call(this,e||"",t,n)},o.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},o.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var e=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(e)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},o.prototype._documentWrite=function(e){this.parser.stopped||this.pendingHtmlInsertions.push(e)},o.prototype._scriptHandler=function(e){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",e,this._documentWrite,this._resume)):this._runParsingLoop()}},function(e,t,n){"use strict";(function(t,i){var r=n(133);e.exports=b;var a,o=n(595);b.ReadableState=F;n(183).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(266),c=n(185).Buffer,u=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(109));f.inherits=n(95);var d=n(599),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=n(600),_=n(267);f.inherits(b,l);var m=["error","close","destroy","pause","resume"];function F(e,t){e=e||{};var i=t instanceof(a=a||n(80));this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(269).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(a=a||n(80),!(this instanceof b))return new b(e);this._readableState=new F(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function y(e,t,n,i,r){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,w(e)}(e,o)):(r||(a=function(e,t){var n;i=t,c.isBuffer(i)||i instanceof u||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),i?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):v(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?v(e,o,t,!1):T(e,o)):v(e,o,t,!1))):i||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function w(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?r.nextTick(C,e):C(e))}function C(e){h("emit readable"),e.emit("readable"),A(e)}function T(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(x,e,t))}function x(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var i;ea.length?a.length:e;if(o===a.length?r+=a:r+=a.slice(0,e),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t):function(e,t){var n=c.allocUnsafe(e),i=t.head,r=1;i.data.copy(n),e-=i.data.length;for(;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++r}return t.length-=r,n}(e,t);return i}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,r.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var n=0,i=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):w(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==i&&this.emit("data",i),i},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,h("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?u:b;function c(t,i){h("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",m),e.removeListener("finish",F),e.removeListener("drain",f),e.removeListener("error",_),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",g),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){h("onend"),e.end()}a.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(n);e.on("drain",f);var d=!1;var p=!1;function g(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==P(a.pipes,e))&&!d&&(h("false write response, pause",a.awaitDrain),a.awaitDrain++,p=!0),n.pause())}function _(t){h("onerror",t),b(),e.removeListener("error",_),0===s(e,"error")&&e.emit("error",t)}function m(){e.removeListener("finish",F),b()}function F(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",g),function(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",m),e.once("finish",F),e.emit("pipe",n),a.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return r>0&&(e.lastNeed=r-1),r;if(--i=0)return r>0&&(e.lastNeed=r-2),r;if(--i=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=o;var i=n(80),r=Object.create(n(109));function a(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.lengthd?n(a):(e.consume(a),m):41===a?h--?(e.consume(a),m):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(o),t(a)):null===a||r(a)?h?n(a):(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(o),t(a)):i(a)?n(a):(e.consume(a),92===a?F:m)}function F(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62);e.exports=function(e,t,n,a,o,s){var l,c=this,u=0;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),e.enter(s),f};function f(r){return null===r||91===r||93===r&&!l||94===r&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs||u>999?n(r):93===r?(e.exit(s),e.enter(o),e.consume(r),e.exit(o),e.exit(a),t):i(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(r))}function d(t){return null===t||91===t||93===t||i(t)||u++>999?(e.exit("chunkString"),f(t)):(e.consume(t),l=l||!r(t),92===t?h:d)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,d):d(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62),a=n(23);e.exports=function(e,t){var n;return function o(s){if(i(s))return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,o;if(r(s))return a(e,o,n?"linePrefix":"lineSuffix")(s);return t(s)}}},function(e,t,n){"use strict";var i=n(22),r=n(23);e.exports=function(e,t,n,a,o,s){var l;return function(t){return e.enter(a),e.enter(o),e.consume(t),e.exit(o),l=40===t?41:t,c};function c(n){return n===l?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),t):(e.enter(s),u(n))}function u(t){return t===l?(e.exit(s),c(l)):null===t?n(t):i(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return t===l||null===t||i(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?d:f)}function d(t){return t===l||92===t?(e.consume(t),f):f(t)}}},function(e,t,n){"use strict";var i=n(22),r=n(62),a=n(23),o={name:"thematicBreak",tokenize:function(e,t,n){var o,s=0;return function(t){return e.enter("thematicBreak"),o=t,l(t)};function l(u){return u===o?(e.enter("thematicBreakSequence"),c(u)):r(u)?a(e,l,"whitespace")(u):s<3||null!==u&&!i(u)?n(u):(e.exit("thematicBreak"),t(u))}function c(t){return t===o?(e.consume(t),s++,c):(e.exit("thematicBreakSequence"),l(t))}}};e.exports=o},function(e,t,n){"use strict";var i=o("start"),r=o("end");function a(e){return{start:i(e),end:r(e)}}function o(e){return t.displayName=e,t;function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}}e.exports=a,a.start=i,a.end=r},function(e,t,n){"use strict";e.exports=function(e,t,n){var i,r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");i=a.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.indexOf(r)>-1?s:e.unknownHandler;return("function"===typeof i?i:o)(e,t,n)};var i=n(42),r=n(29),a={}.hasOwnProperty;function o(e,t){return function(e){var t=e.data||{};if(a.call(t,"hName")||a.call(t,"hProperties")||a.call(t,"hChildren"))return!1;return"value"in e}(t)?e.augment(t,i("text",t.value)):e(t,"div",r(e,t))}function s(e,t){var n;return t.children?((n=Object.assign({},t)).children=r(e,t),n):t}},function(e,t,n){"use strict";e.exports=function(e,t){return e(t,"hr")}},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o={},s=t.ordered?"ol":"ul",l=-1;"number"===typeof t.start&&1!==t.start&&(o.start=t.start);n=r(e,t),a=n.length;for(;++l0?o.get(n-1):void 0,l=n=n&&(i={start:e,end:t})})),"object"!==typeof i&&a(!1),i}(o,u,n),h=d.start,p=d.end;h0&&(n=a.childNodes.length));if(0===n){var f=null;if(null!=c)f=c;else{var d=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||r(e.firstChild));)e=e.firstChild;return e}(a);f=l(r(d))}return{key:f,offset:0}}var h=a.childNodes[n-1],p=null,g=null;if(r(h)){var _=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||r(e.lastChild));)e=e.lastChild;return e}(h);p=l(r(_)),g=u(_)}else p=l(c),g=u(h);return{key:p,offset:g}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,r,o,s){var u=n.nodeType===Node.TEXT_NODE,f=o.nodeType===Node.TEXT_NODE;if(u&&f)return{selectionState:a(e,l(i(n)),r,l(i(o)),s),needsRecovery:!1};var d=null,h=null,p=!0;return u?(d={key:l(i(n)),offset:r},h=c(t,o,s)):f?(h={key:l(i(o)),offset:s},d=c(t,n,r)):(d=c(t,n,r),h=c(t,o,s),n===o&&r===s&&(p=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,h.key,h.offset),needsRecovery:p}}},function(e,t,n){"use strict";var i=n(63),r=n(31);e.exports=function(e,t,n,a,o){var s=r(e.getSelection());if(!t||!a)return s;var l=i.decode(t),c=l.blockKey,u=e.getBlockTree(c),f=u&&u.getIn([l.decoratorKey,"leaves",l.leafKey]),d=i.decode(a),h=d.blockKey,p=e.getBlockTree(h),g=p&&p.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!f||!g)return s;var _=f.get("start"),m=g.get("start"),F=f?_+n:null,b=g?m+o:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===F&&s.getFocusKey()===h&&s.getFocusOffset()===b)return s;var y=!1;if(c===h){var v=f.get("end"),k=g.get("end");y=m===_&&k===v?o0&&window.scrollTo(a.x,a.y+i+10)}else{m(n)||_(!1),(i=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+a.y))>0&&l.setTop(r,l.getTop(r)+i+10)}}}}},y._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),i=t.getText(),l=this.props.tree.size-1,c=b(this.props.selection,n);return this.props.tree.map((function(d,h){var p=d.get("leaves");if(0===p.size)return null;var g=p.size-1,_=p.map((function(r,u){var f=o.encode(n,h,u),d=r.get("start"),p=r.get("end");return s.createElement(a,{key:f,offsetKey:f,block:t,start:d,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:i.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:h===l&&u===g})})).toArray(),m=d.get("decoratorKey");if(null==m)return _;if(!e.props.decorator)return _;var b=F(e.props.decorator),y=b.getComponentForKey(m);if(!y)return _;var v=b.getPropsForKey(m),k=o.encode(n,h,0),E=p.first().get("start"),w=p.last().get("end"),C=i.slice(E,w),T=t.getEntityAt(d.get("start")),x=f.getHTMLDirIfDifferent(u.getDirection(C),e.props.direction),D={contentState:e.props.contentState,decoratedText:C,dir:x,start:E,end:w,blockKey:n,entityKey:T,offsetKey:k};return s.createElement(y,r({},v,D,{key:k}),_)})).toArray()},y.render=function(){var e=this,t=this.props,n=t.direction,i=t.offsetKey,r=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":i,className:r,ref:function(t){return e._node=t}},this._renderChildren())},i}(s.Component);e.exports=y},function(e,t,n){"use strict";var i=n(785),r=n(786),a=n(335),o=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(o,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";(function(t){var i=n(10),r=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var o=0,s=[];e.forEach((function(l){!function(e,n){if(!t.FileReader||e.type&&!(e.type in a))return void n("");if(""===e.type){var o="";return r.test(e.name)&&(o=e.name.replace(r,"")),void n(o)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!==typeof e&&i(!1),n(e)},s.onerror=function(){n("")},s.readAsText(e)}(l,(function(t){o++,t&&s.push(t.slice(0,5e3)),o==e.length&&n(s.join("\r"))}))}))}}).call(this,n(33))},function(e,t,n){"use strict";var i=n(142);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:i(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var i=n(13),r=n(84),a=n(202),o=n(115);e.exports=function(e){var t=o(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(i).getText()[o-1];return a(e,s?r.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return i.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var i=n(32),r=n(10);var a=i.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;null!=i;i=i.parentNode){var a=i===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(o=[]).concat.apply(o,n);t.setEndBefore(i)}r(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},function(e,t,n){"use strict";var i="['\u2018\u2019]",r="\\s|(?![_])"+n(806).getPunctuation(),a=new RegExp("^(?:"+r+")*(?:"+i+"|(?!"+r+").)*(?:(?!"+r+").)"),o=new RegExp("(?:(?!"+r+").)(?:"+i+"|(?!"+r+").)*(?:"+r+")*$");function s(e,t){var n=t?o.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},function(e,t,n){"use strict";n(203);e.exports=function(e,t){var n,i=e.getSelection(),r=i.getStartKey(),a=i.getStartOffset(),o=e.getCurrentContent(),s=r;return t>o.getBlockForKey(r).getText().length-a?(s=o.getKeyAfter(r),n=0):n=a+t,i.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var i;function r(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some((function(n){e.classList.contains(n)&&(t=N[n])})),t},L=function(e){if(!y(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},q=function(e){if(!E(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},H=function(e,t){if(!k(e))return t;var n=e,i=n.style.fontWeight,r=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){O.indexOf(i)>=0?e.add("BOLD"):I.indexOf(i)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},z=function(){function e(e,t){a(this,"characterList",m()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",u),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(w?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r({key:e.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],i=0;i(n=void 0!==(i=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-i[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(x,"")).replace(T," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){v(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(E(e)){var n=e,i={};P.forEach((function(e){var t=n.getAttribute(e);t&&(i[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("\ud83d\udcf7",t):this._appendText("\ud83d\udcf7",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(y(e)){var i=e,r={};M.forEach((function(e){var t=i.getAttribute(e);t&&(r[e]=t)})),r.url=new f(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",r||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var a=e[i];a.parent=t,a.prevSibling=i>0?e[i-1].key:null,a.nextSibling=i2&&void 0!==arguments[2]?arguments[2]:c,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:p)(e=e.trim().replace(C,"").replace(D," ").replace(S,"").replace(A,""));if(!n)return null;var i=function(e){var t={};return e.mapKeys((function(e,n){var i=[n.element];void 0!==n.aliasedElements&&i.push.apply(i,n.aliasedElements),i.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),F(t)}(t);return new z(i,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},function(e,t,n){"use strict";var i=n(32),r=n(10),a=i.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||r(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var i=n(30),r=n(13),a=n(819),o=n(31),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===i.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=i.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=r.push(e,t,"insert-characters");return r.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockBefore(i);if(a&&"atomic"===a.getType()){var o=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:o,selectionAfter:t});if(l!==n)return r.push(e,l,"remove-range")}var c=s.tryToRemoveBlockStyle(e);return c?r.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),o=n.getBlockForKey(a).getLength();if(t.getStartOffset()o&&i.push(e.substring(o,a.index));var l={href:a.url,key:"parse"+n.parseCounter+"match"+s};for(var c in n.props.properties){var u=n.props.properties[c];u===t.MATCH&&(u=a.url),l[c]=u}i.push(r.default.createElement(n.props.component,l,a.text)),o=a.lastIndex})),o=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:F;t&&t(e,null);for(var a=i.length;a--;){var o=i[a];if("string"===typeof o){var s=r(o);s!==o&&(n(i)||(i[a]=s),o=s)}e[o]=!0}return e}function O(e){for(var t=0;t/gm),V=u(/\${[\w\W]*}/gm),Y=u(/^data-[\-\w.\u00B7-\uFFFF]/),X=u(/^aria-[\-\w]+$/),$=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),J=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),ee=u(/^[a-z][.\w]*(-[.\w]+)+$/i),te=Object.freeze({__proto__:null,MUSTACHE_EXPR:G,ERB_EXPR:W,TMPLIT_EXPR:V,DATA_ATTR:Y,ARIA_ATTR:X,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:Q,DOCTYPE_NAME:Z,CUSTOM_ELEMENT:ee}),ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ie=function(){return"undefined"===typeof window?null:window},re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),n=function(e){return ae(e)};if(n.version="3.1.3",n.removed=[],!t||!t.document||t.document.nodeType!==ne.document)return n.isSupported=!1,n;var i,r=t.document,o=r,s=o.currentScript,l=t.DocumentFragment,u=t.HTMLTemplateElement,d=t.Node,h=t.Element,p=t.NodeFilter,D=t.NamedNodeMap,S=void 0===D?t.NamedNodeMap||t.MozNamedAttrMap:D,O=t.HTMLFormElement,G=t.DOMParser,W=t.trustedTypes,V=h.prototype,Y=M(V,"cloneNode"),X=M(V,"nextSibling"),J=M(V,"childNodes"),Q=M(V,"parentNode");if("function"===typeof u){var ee=r.createElement("template");ee.content&&ee.content.ownerDocument&&(r=ee.content.ownerDocument)}var oe="",se=r,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,fe=se.getElementsByTagName,de=o.importNode,he={};n.isSupported="function"===typeof e&&"function"===typeof Q&&le&&void 0!==le.createHTMLDocument;var pe=te.MUSTACHE_EXPR,ge=te.ERB_EXPR,_e=te.TMPLIT_EXPR,me=te.DATA_ATTR,Fe=te.ARIA_ATTR,be=te.IS_SCRIPT_OR_DATA,ye=te.ATTR_WHITESPACE,ve=te.CUSTOM_ELEMENT,ke=te.IS_ALLOWED_URI,Ee=null,we=A({},[].concat(a(P),a(N),a(R),a(B),a(q))),Ce=null,Te=A({},[].concat(a(H),a(U),a(z),a(K))),xe=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Se=null,Ae=!0,Oe=!0,Ie=!1,Me=!0,Pe=!1,Ne=!0,Re=!1,je=!1,Be=!1,Le=!1,qe=!1,He=!1,Ue=!0,ze=!1,Ke="user-content-",Ge=!0,We=!1,Ve={},Ye=null,Xe=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Je=A({},["audio","video","img","source","image","track"]),Qe=null,Ze=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",it=nt,rt=!1,at=null,ot=A({},[et,tt,nt],b),st=null,lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,ft=null,dt=255,ht=r.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=I(e),st=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?ct:e.PARSER_MEDIA_TYPE,ut="application/xhtml+xml"===st?b:F,Ee=w(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,ut):we,Ce=w(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,ut):Te,at=w(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,b):ot,Qe=w(e,"ADD_URI_SAFE_ATTR")?A(I(Ze),e.ADD_URI_SAFE_ATTR,ut):Ze,$e=w(e,"ADD_DATA_URI_TAGS")?A(I(Je),e.ADD_DATA_URI_TAGS,ut):Je,Ye=w(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,ut):Xe,De=w(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,ut):{},Se=w(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,ut):{},Ve=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,Ne=!1!==e.SAFE_FOR_XML,Re=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,Ue=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||$,it=e.NAMESPACE||nt,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Oe=!1),qe&&(Le=!0),Ve&&(Ee=A({},q),Ce=[],!0===Ve.html&&(A(Ee,P),A(Ce,H)),!0===Ve.svg&&(A(Ee,N),A(Ce,U),A(Ce,K)),!0===Ve.svgFilters&&(A(Ee,R),A(Ce,U),A(Ce,K)),!0===Ve.mathMl&&(A(Ee,B),A(Ce,z),A(Ce,K))),e.ADD_TAGS&&(Ee===we&&(Ee=I(Ee)),A(Ee,e.ADD_TAGS,ut)),e.ADD_ATTR&&(Ce===Te&&(Ce=I(Ce)),A(Ce,e.ADD_ATTR,ut)),e.ADD_URI_SAFE_ATTR&&A(Qe,e.ADD_URI_SAFE_ATTR,ut),e.FORBID_CONTENTS&&(Ye===Xe&&(Ye=I(Ye)),A(Ye,e.FORBID_CONTENTS,ut)),Ge&&(Ee["#text"]=!0),Re&&A(Ee,["html","head","body"]),Ee.table&&(A(Ee,["tbody"]),delete De.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');i=e.TRUSTED_TYPES_POLICY,oe=i.createHTML("")}else void 0===i&&(i=re(W,s)),null!==i&&"string"===typeof oe&&(oe=i.createHTML(""));c&&c(e),ft=e}},_t=A({},["mi","mo","mn","ms","mtext"]),mt=A({},["foreignobject","annotation-xml"]),Ft=A({},["title","style","font","a","script"]),bt=A({},[].concat(a(N),a(R),a(j))),yt=A({},[].concat(a(B),a(L))),vt=function(e){var t=Q(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=F(e.tagName),i=F(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===i||_t[i]):Boolean(bt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&mt[i]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!mt[i])&&!(t.namespaceURI===et&&!_t[i])&&!yt[n]&&(Ft[n]||!bt[n]):!("application/xhtml+xml"!==st||!at[e.namespaceURI]))},kt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Et=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(i){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ce[e])if(Le||qe)try{kt(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},wt=function(e){var t=null,n=null;if(Be)e=""+e;else{var a=y(e,/^[\r\n\t ]+/);n=a&&a[0]}"application/xhtml+xml"===st&&it===nt&&(e=''+e+"");var o=i?i.createHTML(e):e;if(it===nt)try{t=(new G).parseFromString(o,st)}catch(l){}if(!t||!t.documentElement){t=le.createDocument(it,"template",null);try{t.documentElement.innerHTML=rt?oe:o}catch(l){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(r.createTextNode(n),s.childNodes[0]||null),it===nt?fe.call(t,Re?"html":"body")[0]:Re?t.documentElement:s},Ct=function(e){return ce.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof O&&("undefined"!==typeof e.__depth&&"number"!==typeof e.__depth||"undefined"!==typeof e.__removalCount&&"number"!==typeof e.__removalCount||"string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof S)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},xt=function(e){return"function"===typeof d&&e instanceof d},Dt=function(e,t,i){he[e]&&g(he[e],(function(e){e.call(n,t,i,ft)}))},St=function(e){var t=null;if(Dt("beforeSanitizeElements",e,null),Tt(e))return kt(e),!0;var i=ut(e.nodeName);if(Dt("uponSanitizeElement",e,{tagName:i,allowedTags:Ee}),e.hasChildNodes()&&!xt(e.firstElementChild)&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return kt(e),!0;if(e.nodeType===ne.progressingInstruction)return kt(e),!0;if(Ne&&e.nodeType===ne.comment&&C(/<[/\w]/g,e.data))return kt(e),!0;if(!Ee[i]||De[i]){if(!De[i]&&Ot(i)){if(xe.tagNameCheck instanceof RegExp&&C(xe.tagNameCheck,i))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(i))return!1}if(Ge&&!Ye[i]){var r=Q(e)||e.parentNode,a=J(e)||e.childNodes;if(a&&r)for(var o=a.length-1;o>=0;--o){var s=Y(a[o],!0);s.__removalCount=(e.__removalCount||0)+1,r.insertBefore(s,X(e))}}return kt(e),!0}return e instanceof h&&!vt(e)?(kt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===ne.text&&(t=e.textContent,g([pe,ge,_e],(function(e){t=v(t,e," ")})),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),Dt("afterSanitizeElements",e,null),!1):(kt(e),!0)},At=function(e,t,n){if(Ue&&("id"===t||"name"===t)&&(n in r||n in ht||"__depth"===n||"__removalCount"===n))return!1;if(Oe&&!Se[t]&&C(me,t));else if(Ae&&C(Fe,t));else if(!Ce[t]||Se[t]){if(!(Ot(e)&&(xe.tagNameCheck instanceof RegExp&&C(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&C(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&C(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Qe[t]);else if(C(ke,v(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!$e[e])if(Ie&&!C(be,v(n,ye,"")));else if(n)return!1;return!0},Ot=function(e){return"annotation-xml"!==e&&y(e,ve)},It=function(e){Dt("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce},a=t.length,o=function(){var o=t[a],s=o.name,l=o.namespaceURI,c=o.value,u=ut(s),f="value"===s?c:E(c);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Dt("uponSanitizeAttribute",e,r),f=r.attrValue,r.forceKeepAttr)return 0;if(Et(s,e),!r.keepAttr)return 0;if(!Me&&C(/\/>/i,f))return Et(s,e),0;if(Ne&&C(/((--!?|])>)|<\/(style|title)/i,f))return Et(s,e),0;Pe&&g([pe,ge,_e],(function(e){f=v(f,e," ")}));var d=ut(e.nodeName);if(!At(d,u,f))return 0;if(!ze||"id"!==u&&"name"!==u||(Et(s,e),f=Ke+f),i&&"object"===typeof W&&"function"===typeof W.getAttributeType)if(l);else switch(W.getAttributeType(d,u)){case"TrustedHTML":f=i.createHTML(f);break;case"TrustedScriptURL":f=i.createScriptURL(f)}try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),Tt(e)?kt(e):_(n.removed)}catch(h){}};a--;)o();Dt("afterSanitizeAttributes",e,null)}},Mt=function e(t){var n=null,i=Ct(t);for(Dt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)if(Dt("uponSanitizeShadowNode",n,null),!St(n)){var r=Q(n);n.nodeType===ne.element&&(r&&r.__depth?n.__depth=(n.__removalCount||0)+r.__depth+1:n.__depth=1),(n.__depth>=dt||n.__depth<0||x(n.__depth))&&kt(n),n.content instanceof l&&(n.content.__depth=n.__depth,e(n.content)),It(n)}Dt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if((rt=!e)&&(e="\x3c!--\x3e"),"string"!==typeof e&&!xt(e)){if("function"!==typeof e.toString)throw T("toString is not a function");if("string"!==typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported)return e;if(je||gt(t),n.removed=[],"string"===typeof e&&(We=!1),We){if(e.nodeName){var u=ut(e.nodeName);if(!Ee[u]||De[u])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)(a=(r=wt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ne.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Le&&!Pe&&!Re&&-1===e.indexOf("<"))return i&&He?i.createHTML(e):e;if(!(r=wt(e)))return Le?null:He?oe:""}r&&Be&&kt(r.firstChild);for(var f=Ct(We?e:r);s=f.nextNode();)if(!St(s)){var h=Q(s);s.nodeType===ne.element&&(h&&h.__depth?s.__depth=(s.__removalCount||0)+h.__depth+1:s.__depth=1),(s.__depth>=dt||s.__depth<0||x(s.__depth))&&kt(s),s.content instanceof l&&(s.content.__depth=s.__depth,Mt(s.content)),It(s)}if(We)return e;if(Le){if(qe)for(c=ue.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ce.shadowroot||Ce.shadowrootmode)&&(c=de.call(o,c,!0)),c}var p=Re?r.outerHTML:r.innerHTML;return Re&&Ee["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(Z,r.ownerDocument.doctype.name)&&(p="\n"+p),Pe&&g([pe,ge,_e],(function(e){p=v(p,e," ")})),i&&He?i.createHTML(p):p},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),je=!0},n.clearConfig=function(){ft=null,je=!1},n.isValidAttribute=function(e,t,n){ft||gt({});var i=ut(e),r=ut(t);return At(i,r,n)},n.addHook=function(e,t){"function"===typeof t&&(he[e]=he[e]||[],m(he[e],t))},n.removeHook=function(e){if(he[e])return _(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}return ae()}()},function(e,t,n){"use strict";var i=n(0),r=n(277),a=n(644),o=n(650),s=n(696),l=n(19),c=n(725),u=n(728),f=n(729),d=n(730).hastChildrenToReact;e.exports=_;var h={}.hasOwnProperty,p="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",g={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function _(e){for(var t in g)if(h.call(g,t)&&h.call(e,t)){var n=g[t];"[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat(p,"#").concat(n.id,"> for more info)"),delete g[t]}var l,f=a().use(o).use(e.remarkPlugins||e.plugins||[]).use(s,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(u,e);"string"===typeof e.children?l=r(e.children):(void 0!==e.children&&null!==e.children&&"[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"),l=r());var _=f.runSync(f.parse(l),l);if("root"!==_.type)throw new TypeError("Expected a `root` node");var m=i.createElement(i.Fragment,{},d({options:e,schema:c,listDepth:0},_));return e.className&&(m=i.createElement("div",{className:e.className},m)),m}_.defaultProps={transformLinkUri:f},_.propTypes={children:l.string,className:l.string,allowElement:l.func,allowedElements:l.arrayOf(l.string),disallowedElements:l.arrayOf(l.string),unwrapDisallowed:l.bool,remarkPlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),rehypePlugins:l.arrayOf(l.oneOfType([l.object,l.func,l.arrayOf(l.oneOfType([l.object,l.func]))])),sourcePos:l.bool,rawSourcePos:l.bool,skipHtml:l.bool,includeElementIndex:l.bool,transformLinkUri:l.oneOfType([l.func,l.bool]),linkTarget:l.oneOfType([l.func,l.string]),transformImageUri:l.func,components:l.object},_.uriTransformer=f},function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var i=n(t);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}var o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},s={error:null},l=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),r=0;ru;)a.f(e,n=r[u++],i[n]);return e}},function(e,t,n){"use strict";var i=n(6),r=n(11),a=n(14),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!a(s=i(n,e)))return s;if(r(n=e.valueOf)&&!a(s=i(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!a(s=i(n,e)))return s;throw new o("Can't convert object to primitive value")}},function(e,t,n){"use strict";var i=n(87),r=n(219),a=n(45),o=function(e){return function(t,n,o){var s=i(t),l=a(s);if(0===l)return!e&&-1;var c,u=r(o,l);if(e&&n!==n){for(;l>u;)if((c=s[u++])!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){"use strict";var i=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:i)(t)}},function(e,t,n){"use strict";n(98)("flatMap")},function(e,t,n){"use strict";var i=n(3),r=n(50),a=n(167),o=n(7),s=n(28),l=n(11),c=n(225),u=n(371),f=n(39),d=a&&a.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(a)){var h=s("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},function(e,t,n){"use strict";var i=n(28),r=n(4),a=n(123),o=n(224),s=n(9),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var i={};i[n(12)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t,n){"use strict";var i=n(9),r=n(14),a=n(124);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(5),r=n(15),a=n(47),o=n(168),s=n(7),l=i.RegExp,c=l.prototype;r&&s((function(){var e=!0;try{l(".","d")}catch(s){e=!1}var t={},n="",i=e?"dgimsy":"gimsy",r=function(e,i){Object.defineProperty(t,e,{get:function(){return n+=i,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)r(o,a[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==i||n!==i}))&&a(c,"flags",{configurable:!0,get:o})},function(e,t,n){"use strict";var i=n(101),r=n(6),a=n(4),o=n(374),s=n(7),l=n(9),c=n(11),u=n(35),f=n(54),d=n(88),h=n(40),p=n(51),g=n(227),_=n(64),m=n(228),F=n(229),b=n(12)("replace"),y=Math.max,v=Math.min,k=a([].concat),E=a([].push),w=a("".indexOf),C=a("".slice),T="$0"==="a".replace(/./,"$0"),x=!!/./[b]&&""===/./[b]("a","$0");o("replace",(function(e,t,n){var a=x?"$":"$0";return[function(e,n){var i=p(this),a=u(e)?void 0:_(e,b);return a?r(a,e,i,n):r(t,h(i),e,n)},function(e,r){var o=l(this),s=h(e);if("string"==typeof r&&-1===w(r,a)&&-1===w(r,"$<")){var u=n(t,o,s,r);if(u.done)return u.value}var p=c(r);p||(r=h(r));var _,b=o.global;b&&(_=o.unicode,o.lastIndex=0);for(var T,x=[];null!==(T=F(o,s))&&(E(x,T),b);){""===h(T[0])&&(o.lastIndex=g(s,d(o.lastIndex),_))}for(var D,S="",A=0,O=0;O=A&&(S+=C(s,A,P)+I,A=P+M.length)}return S+C(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!T||x)},function(e,t,n){"use strict";n(375);var i=n(6),r=n(39),a=n(169),o=n(7),s=n(12),l=n(46),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),p=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!p||n){var g=/./[d],_=t(d,""[e],(function(e,t,n,r,o){var s=t.exec;return s===a||s===u.exec?h&&!o?{done:!0,value:i(g,t,n,r)}:{done:!0,value:i(e,n,t,r)}:{done:!1}}));r(String.prototype,e,_[0]),r(u,d,_[1])}f&&l(u[d],"sham",!0)}},function(e,t,n){"use strict";var i=n(3),r=n(169);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp,a=i((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=a||i((function(){return!r("a","y").sticky})),s=a||i((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp;e.exports=i((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var i=n(7),r=n(5).RegExp;e.exports=i((function(){var e=r("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},function(e,t,n){"use strict";n(58)("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(7);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var i=n(382),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a("Can't set "+r(e)+" as a prototype")}},function(e,t,n){"use strict";var i=n(14);e.exports=function(e){return i(e)||null===e}},function(e,t,n){"use strict";var i=n(5),r=n(4),a=n(15),o=n(230),s=n(163),l=n(46),c=n(47),u=n(90),f=n(7),d=n(68),h=n(54),p=n(88),g=n(232),_=n(233),m=n(386),F=n(67),b=n(89),y=n(234),v=n(91),k=n(172),E=n(165),w=n(76),C=n(25),T=s.PROPER,x=s.CONFIGURABLE,D="ArrayBuffer",S="DataView",A="prototype",O="Wrong index",I=C.getterFor(D),M=C.getterFor(S),P=C.set,N=i[D],R=N,j=R&&R[A],B=i[S],L=B&&B[A],q=Object.prototype,H=i.Array,U=i.RangeError,z=r(y),K=r([].reverse),G=m.pack,W=m.unpack,V=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},$=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return G(_(e),23,4)},Q=function(e){return G(e,52,8)},Z=function(e,t,n){c(e[A],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,i){var r=M(e),a=g(n),o=!!i;if(a+t>r.byteLength)throw new U(O);var s=r.bytes,l=a+r.byteOffset,c=v(s,l,l+t);return o?c:K(c)},te=function(e,t,n,i,r,a){var o=M(e),s=g(n),l=i(+r),c=!!a;if(s+t>o.byteLength)throw new U(O);for(var u=o.bytes,f=s+o.byteOffset,d=0;d>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else j=(R=function(e){d(this,j);var t=g(e);P(this,{type:D,bytes:z(H(t),0),byteLength:t}),a||(this.byteLength=t,this.detached=!1)})[A],L=(B=function(e,t,n){d(this,L),d(e,j);var i=I(e),r=i.byteLength,o=h(t);if(o<0||o>r)throw new U("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw new U("Wrong length");P(this,{type:S,buffer:e,byteLength:n,byteOffset:o,bytes:i.bytes}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=o)})[A],a&&(Z(R,"byteLength",I),Z(B,"buffer",M),Z(B,"byteLength",M),Z(B,"byteOffset",M)),u(L,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return $(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,V,t)},setUint8:function(e,t){te(this,1,e,V,t)},setInt16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,Q,t,arguments.length>2&&arguments[2])}});w(R,D),w(B,S),e.exports={ArrayBuffer:R,DataView:B}},function(e,t,n){"use strict";var i=n(385),r=Math.abs,a=2220446049250313e-31,o=1/a;e.exports=function(e,t,n,s){var l=+e,c=r(l),u=i(l);if(cn||d!==d?u*(1/0):u*d}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},function(e,t,n){"use strict";var i=Array,r=Math.abs,a=Math.pow,o=Math.floor,s=Math.log,l=Math.LN2;e.exports={pack:function(e,t,n){var c,u,f,d=i(n),h=8*n-t-1,p=(1<>1,_=23===t?a(2,-24)-a(2,-77):0,m=e<0||0===e&&1/e<0?1:0,F=0;for((e=r(e))!==e||e===1/0?(u=e!==e?1:0,c=p):(c=o(s(e)/l),e*(f=a(2,-c))<1&&(c--,f*=2),(e+=c+g>=1?_/f:_*a(2,1-g))*f>=2&&(c++,f/=2),c+g>=p?(u=0,c=p):c+g>=1?(u=(e*f-1)*a(2,t),c+=g):(u=e*a(2,g-1)*a(2,t),c=0));t>=8;)d[F++]=255&u,u/=256,t-=8;for(c=c<0;)d[F++]=255&c,c/=256,h-=8;return d[--F]|=128*m,d},unpack:function(e,t){var n,i=e.length,r=8*i-t-1,o=(1<>1,l=r-7,c=i-1,u=e[c--],f=127&u;for(u>>=7;l>0;)f=256*f+e[c--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:u?-1/0:1/0;n+=a(2,t),f-=s}return(u?-1:1)*n*a(2,f-t)}}},function(e,t,n){"use strict";var i=n(14),r=Math.floor;e.exports=Number.isInteger||function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t,n){"use strict";var i=n(54),r=RangeError;e.exports=function(e){var t=i(e);if(t<0)throw new r("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var i=Math.round;e.exports=function(e){var t=i(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var i=n(57);e.exports=function(e){var t=i(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var i=n(392);e.exports=function(e,t){return new(i(e))(0===t?0:t)}},function(e,t,n){"use strict";var i=n(393),r=n(100),a=n(14),o=n(12)("species"),s=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(r(t)&&(t===s||i(t.prototype))||a(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){"use strict";var i=n(53);e.exports=Array.isArray||function(e){return"Array"===i(e)}},function(e,t,n){"use strict";var i=n(45);e.exports=function(e,t,n){for(var r=0,a=arguments.length>2?n:i(t),o=new e(a);a>r;)o[r]=t[r++];return o}},function(e,t,n){"use strict";n(58)("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){"use strict";n(58)("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";n(58)("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){"use strict";var i=n(66),r=n(234),a=n(237),o=n(57),s=n(6),l=n(4),c=n(7),u=i.aTypedArray,f=i.exportTypedArrayMethod,d=l("".slice);f("fill",(function(e){var t=arguments.length;u(this);var n="Big"===d(o(this),0,3)?a(e):+e;return s(r,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var i=n(170);(0,n(66).exportTypedArrayStaticMethod)("from",n(236),i)},function(e,t,n){"use strict";var i=n(66),r=n(170),a=i.aTypedArrayConstructor;(0,i.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(a(this))(t);t>e;)n[e]=arguments[e++];return n}),r)},function(e,t,n){"use strict";var i=n(5),r=n(6),a=n(66),o=n(45),s=n(235),l=n(34),c=n(7),u=i.RangeError,f=i.Int8Array,d=f&&f.prototype,h=d&&d.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,_=!c((function(){var e=new Uint8ClampedArray(2);return r(h,e,{length:1,0:3},1),3!==e[1]})),m=_&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(_)return r(h,this,n,t);var i=this.length,a=o(n),c=0;if(a+t>i)throw new u("Wrong length");for(;c0&&1/n<0?1:-1:t>n}}(e))}),!F||m)},function(e,t,n){"use strict";var i=n(86).match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},function(e,t,n){"use strict";var i=n(86);e.exports=/MSIE|Trident/.test(i)},function(e,t,n){"use strict";var i=n(86).match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},function(e,t,n){"use strict";n(412)},function(e,t,n){"use strict";n(413)},function(e,t,n){"use strict";var i=n(3),r=n(75),a=n(67),o=n(89),s=n(165),l=n(52),c=n(46),u=n(65),f=n(414),d=n(415),h=n(48),p=n(418),g=n(12)("toStringTag"),_=Error,m=[].push,F=function(e,t){var n,i=r(b,this);o?n=o(new _,i?a(this):b):(n=i?this:l(b),c(n,g,"Error")),void 0!==t&&c(n,"message",p(t)),d(n,F,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return h(e,m,{that:s}),c(n,"errors",s),n};o?o(F,_):s(F,_,{name:!0});var b=F.prototype=l(_.prototype,{constructor:u(1,F),message:u(1,""),name:u(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},function(e,t,n){"use strict";var i=n(14),r=n(46);e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},function(e,t,n){"use strict";var i=n(46),r=n(416),a=n(417),o=Error.captureStackTrace;e.exports=function(e,t,n,s){a&&(o?o(e,t):i(e,"stack",r(n,s)))}},function(e,t,n){"use strict";var i=n(4),r=Error,a=i("".replace),o=String(new r("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)for(;t--;)e=a(e,s,"");return e}},function(e,t,n){"use strict";var i=n(7),r=n(65);e.exports=!i((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},function(e,t,n){"use strict";var i=n(40);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},function(e,t,n){"use strict";var i=n(15),r=n(98),a=n(34),o=n(45),s=n(47);i&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0===t?0:t-1}}),r("lastIndex"))},function(e,t,n){"use strict";var i=n(15),r=n(98),a=n(34),o=n(45),s=n(47);i&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=o(e);return 0===t?void 0:e[t-1]},set:function(e){var t=a(this),n=o(t);return t[0===n?0:n-1]=e}}),r("lastItem"))},function(e,t,n){"use strict";var i=n(3),r=n(101),a=n(240),o=n(28),s=n(52),l=Object,c=function(){var e=o("Object","freeze");return e?e(s(null)):s(null)};i({global:!0,forced:!0},{compositeKey:function(){return r(a,l,arguments).get("object",c)}})},function(e,t,n){"use strict";n(242)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(426))},function(e,t,n){"use strict";var i=n(53),r=n(87),a=n(123).f,o=n(91),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===i(e)?function(e){try{return a(e)}catch(t){return o(s)}}(e):a(r(e))}},function(e,t,n){"use strict";var i=n(7),r=n(14),a=n(53),o=n(425),s=Object.isExtensible,l=i((function(){s(1)}));e.exports=l||o?function(e){return!!r(e)&&((!o||"ArrayBuffer"!==a(e))&&(!s||s(e)))}:s},function(e,t,n){"use strict";var i=n(7);e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var i=n(52),r=n(47),a=n(90),o=n(20),s=n(68),l=n(35),c=n(48),u=n(176),f=n(77),d=n(175),h=n(15),p=n(126).fastKey,g=n(25),_=g.set,m=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var f=e((function(e,r){s(e,d),_(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),l(r)||c(r,e[u],{that:e,AS_ENTRIES:n})})),d=f.prototype,g=m(t),F=function(e,t,n){var i,r,a=g(e),o=b(e,t);return o?o.value=n:(a.last=o={index:r=p(t,!0),key:t,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),h?a.size++:e.size++,"F"!==r&&(a.index[r]=o)),e},b=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===t)return n};return a(d,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=i(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),i=b(t,e);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first===i&&(n.first=r),n.last===i&&(n.last=a),h?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=g(this),i=o(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),a(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return F(this,0===e?0:e,t)}}:{add:function(e){return F(this,e=0===e?0:e,e)}}),h&&r(d,"size",{configurable:!0,get:function(){return g(this).size}}),f},setStrong:function(e,t,n){var i=t+" Iterator",r=m(t),a=m(i);u(e,t,(function(e,t){_(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var i,r=n(243),a=n(5),o=n(4),s=n(90),l=n(126),c=n(242),u=n(428),f=n(14),d=n(25).enforce,h=n(7),p=n(223),g=Object,_=Array.isArray,m=g.isExtensible,F=g.isFrozen,b=g.isSealed,y=g.freeze,v=g.seal,k=!a.ActiveXObject&&"ActiveXObject"in a,E=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},w=c("WeakMap",E,u),C=w.prototype,T=o(C.set);if(p)if(k){i=u.getConstructor(E,"WeakMap",!0),l.enable();var x=o(C.delete),D=o(C.has),S=o(C.get);s(C,{delete:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),x(this,e)||t.frozen.delete(e)}return x(this,e)},has:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),D(this,e)||t.frozen.has(e)}return D(this,e)},get:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new i),D(this,e)?S(this,e):t.frozen.get(e)}return S(this,e)},set:function(e,t){if(f(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new i),D(this,e)?T(this,e,t):n.frozen.set(e,t)}else T(this,e,t);return this}})}else r&&h((function(){var e=y([]);return T(new w,e,1),!F(e)}))&&s(C,{set:function(e,t){var n;return _(e)&&(F(e)?n=y:b(e)&&(n=v)),T(this,e,t),n&&n(e),this}})},function(e,t,n){"use strict";var i=n(4),r=n(90),a=n(126).getWeakData,o=n(68),s=n(9),l=n(35),c=n(14),u=n(48),f=n(238),d=n(21),h=n(25),p=h.set,g=h.getterFor,_=f.find,m=f.findIndex,F=i([].splice),b=0,y=function(e){return e.frozen||(e.frozen=new v)},v=function(){this.entries=[]},k=function(e,t){return _(e.entries,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,(function(t){return t[0]===e}));return~t&&F(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var f=e((function(e,r){o(e,h),p(e,{type:t,id:b++,frozen:void 0}),l(r)||u(r,e[i],{that:e,AS_ENTRIES:n})})),h=f.prototype,_=g(t),m=function(e,t,n){var i=_(e),r=a(s(t),!0);return!0===r?y(i).set(t,n):r[i.id]=n,e};return r(h,{delete:function(e){var t=_(this);if(!c(e))return!1;var n=a(e);return!0===n?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=_(this);if(!c(e))return!1;var n=a(e);return!0===n?y(t).has(e):n&&d(n,t.id)}}),r(h,n?{get:function(e){var t=_(this);if(c(e)){var n=a(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),f}}},function(e,t,n){"use strict";var i=n(3),r=n(240),a=n(28),o=n(101);i({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?a("Symbol").for(arguments[0]):o(r,null,arguments).get("symbol",a("Symbol"))}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(38).remove;i({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=r(this),n=!0,i=0,o=arguments.length;i1?arguments[1]:void 0);return!1!==o(t,(function(e,i){if(!n(e,i,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){n(e,r,t)&&c(i,r,e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e,i){if(n(e,i,t))return{key:i}}),!0);return i&&i.key}})},function(e,t,n){"use strict";var i=n(3),r=n(38);i({target:"Map",stat:!0,forced:!0},{from:n(127)(r.Map,r.set,!0)})},function(e,t,n){"use strict";n(437)},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(24),o=n(51),s=n(48),l=n(38),c=n(50),u=l.Map,f=l.has,d=l.get,h=l.set,p=r([].push);i({target:"Map",stat:!0,forced:c},{groupBy:function(e,t){o(e),a(t);var n=new u,i=0;return s(e,(function(e){var r=t(e,i++);f(n,r)?p(d(n,r),e):h(n,r,[e])})),n}})},function(e,t,n){"use strict";var i=n(3),r=n(439),a=n(37),o=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===o(a(this),(function(t){if(r(t,e))return!0}),!0)}})},function(e,t,n){"use strict";e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(48),o=n(11),s=n(24),l=n(38).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(o(this)?this:l);s(t);var i=s(n.set);return a(e,(function(e){r(i,n,t(e),e)})),n}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(49);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=a(r(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){c(i,n(e,r,t),e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(37),o=n(38),s=n(49),l=o.Map,c=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e,r){c(i,r,n(e,r,t))})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(37),a=n(48),o=n(38).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=r(this),n=arguments.length,i=0;i1?arguments[1]:void 0);return!0===o(t,(function(e,i){if(n(e,i,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(24),a=n(37),o=n(38),s=TypeError,l=o.get,c=o.has,u=o.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=a(this),i=arguments.length;r(t);var o=c(n,e);if(!o&&i<3)throw new s("Updating absent value");var f=o?l(n,e):r(i>2?arguments[2]:void 0)(e,n);return u(n,e,t(f,e,n)),n}})},function(e,t,n){"use strict";var i=n(3),r=Math.min,a=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return r(n,a(t,e))}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){"use strict";var i=n(3),r=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*r}})},function(e,t,n){"use strict";var i=n(3),r=n(246),a=n(233);i({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>16,l=r>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>16)+((a*l>>>0)+(c&n)>>16)}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|(r^~a)&r-a>>>0)>>>31)|0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){"use strict";var i=n(3),r=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*r}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{scale:n(246)})},function(e,t,n){"use strict";var i=n(3),r=n(9),a=n(460),o=n(105),s=n(77),l=n(25),c="Seeded Random",u=c+" Generator",f=l.set,d=l.getterFor(u),h=TypeError,p=o((function(e){f(this,{type:u,seed:e%2147483647})}),c,(function(){var e=d(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=r(e).seed;if(!a(t))throw new h('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new p(t)}})},function(e,t,n){"use strict";var i=n(5).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t===t&&0===t?1/t===-1/0:t<0}})},function(e,t,n){"use strict";n(3)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,i=+e,r=+t,a=i&n,o=r&n,s=i>>>16,l=r>>>16,c=(s*o>>>0)+(a*o>>>16);return s*l+(c>>>16)+((a*l>>>0)+(c&n)>>>16)}})},function(e,t,n){"use strict";var i=n(3),r=n(4),a=n(54),o="Invalid number representation",s=RangeError,l=SyntaxError,c=TypeError,u=parseInt,f=Math.pow,d=/^[\d.a-z]+$/,h=r("".charAt),p=r(d.exec),g=r(1..toString),_=r("".slice),m=r("".split);i({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new c(o);if(!e.length)throw new l(o);if("-"===h(e,0)&&(n=-1,!(e=_(e,1)).length))throw new l(o);var i=void 0===t?10:a(t);if(i<2||i>36)throw new s("Invalid radix");if(!p(d,e))throw new l(o);var r=m(e,"."),F=u(r[0],i);if(r.length>1&&(F+=u(r[1],i)/f(i,r[1].length)),10===i&&g(F,i)!==e)throw new l(o);return n*F}})},function(e,t,n){"use strict";n(465),n(467),n(468)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(15),o=n(175),s=n(24),l=n(9),c=n(68),u=n(11),f=n(35),d=n(14),h=n(64),p=n(39),g=n(90),_=n(47),m=n(466),F=n(12),b=n(25),y=F("observable"),v="Observable",k="Subscription",E="SubscriptionObserver",w=b.getterFor,C=b.set,T=w(v),x=w(k),D=w(E),S=function(e){this.observer=l(e),this.cleanup=void 0,this.subscriptionObserver=void 0};S.prototype={type:k,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(t){m(t)}}},close:function(){if(!a){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var A=function(e,t){var n,i=C(this,new S(e));a||(this.closed=!1);try{(n=h(e,"start"))&&r(n,e,this)}catch(d){m(d)}if(!i.isClosed()){var o=i.subscriptionObserver=new O(i);try{var l=t(o),c=l;f(l)||(i.cleanup=u(l.unsubscribe)?function(){c.unsubscribe()}:s(l))}catch(d){return void o.error(d)}i.isClosed()&&i.clean()}};A.prototype=g({},{unsubscribe:function(){var e=x(this);e.isClosed()||(e.close(),e.clean())}}),a&&_(A.prototype,"closed",{configurable:!0,get:function(){return x(this).isClosed()}});var O=function(e){C(this,{type:E,subscriptionState:e}),a||(this.closed=!1)};O.prototype=g({},{next:function(e){var t=D(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var i=h(n,"next");i&&r(i,n,e)}catch(a){m(a)}}},error:function(e){var t=D(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var i=h(n,"error");i?r(i,n,e):m(e)}catch(a){m(a)}t.clean()}},complete:function(){var e=D(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=h(t,"complete");n&&r(n,t)}catch(i){m(i)}e.clean()}}}),a&&_(O.prototype,"closed",{configurable:!0,get:function(){return D(this).subscriptionState.isClosed()}});var I=function(e){c(this,M),C(this,{type:v,subscriber:s(e)})},M=I.prototype;g(M,{subscribe:function(e){var t=arguments.length;return new A(u(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:d(e)?e:{},T(this).subscriber)}}),p(M,y,(function(){return this})),i({global:!0,constructor:!0,forced:!0},{Observable:I}),o(v)},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(n){}}},function(e,t,n){"use strict";var i=n(3),r=n(28),a=n(6),o=n(9),s=n(100),l=n(103),c=n(64),u=n(48),f=n(12)("observable");i({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=s(this)?this:r("Observable"),n=c(o(e),f);if(n){var i=o(a(n,e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}var d=l(e);return new t((function(e){u(d,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var i=n(3),r=n(28),a=n(100),o=r("Array");i({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=a(this)?this:r("Observable"),t=arguments.length,n=o(t),i=0;i1?arguments[1]:void 0);return!1!==o(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(27),s=n(41),l=o.Set,c=o.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=new l;return s(t,(function(e){n(e,e,t)&&c(i,e)})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(41);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0),i=o(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return i&&i.value}})},function(e,t,n){"use strict";var i=n(3),r=n(27);i({target:"Set",stat:!0,forced:!0},{from:n(127)(r.Set,r.add,!1)})},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(497);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27),a=n(106),o=n(79),s=n(41),l=n(69),c=r.Set,u=r.add,f=r.has;e.exports=function(e){var t=i(this),n=o(e),r=new c;return a(t)>n.size?l(n.getIterator(),(function(e){f(t,e)&&u(r,e)})):s(t,(function(e){n.includes(e)&&u(r,e)})),r}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(499);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).has,a=n(106),o=n(79),s=n(41),l=n(69),c=n(125);e.exports=function(e){var t=i(this),n=o(e);if(a(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(r(t,e))return c(u,"normal",!1)}))}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(501);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(106),a=n(41),o=n(79);e.exports=function(e){var t=i(this),n=o(e);return!(r(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(503);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).has,a=n(106),o=n(79),s=n(69),l=n(125);e.exports=function(e){var t=i(this),n=o(e);if(a(t)1?arguments[1]:void 0),i=new l;return s(t,(function(e){c(i,n(e,e,t))})),i}})},function(e,t,n){"use strict";var i=n(3),r=n(27);i({target:"Set",stat:!0,forced:!0},{of:n(128)(r.Set,r.add,!1)})},function(e,t,n){"use strict";var i=n(3),r=n(24),a=n(26),o=n(41),s=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,i=n?void 0:arguments[1];if(r(e),o(t,(function(r){n?(n=!1,i=r):i=e(i,r,r,t)})),n)throw new s("Reduce of empty set with no initial value");return i}})},function(e,t,n){"use strict";var i=n(3),r=n(20),a=n(26),o=n(41);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=r(e,arguments.length>1?arguments[1]:void 0);return!0===o(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(510);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27),a=n(178),o=n(79),s=n(69),l=r.add,c=r.has,u=r.remove;e.exports=function(e){var t=i(this),n=o(e).getIterator(),r=a(t);return s(n,(function(e){c(t,e)?u(r,e):l(r,e)})),r}},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(78),o=n(512);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return r(o,this,a(e))}})},function(e,t,n){"use strict";var i=n(26),r=n(27).add,a=n(178),o=n(79),s=n(69);e.exports=function(e){var t=i(this),n=o(e).getIterator(),l=a(t);return s(n,(function(e){r(l,e)})),l}},function(e,t,n){"use strict";var i=n(3),r=n(102).charAt,a=n(51),o=n(54),s=n(40);i({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(a(this)),n=t.length,i=o(e),l=i>=0?i:n+i;return l<0||l>=n?void 0:r(t,l)}})},function(e,t,n){"use strict";var i=n(3),r=n(105),a=n(77),o=n(51),s=n(40),l=n(25),c=n(102),u=c.codeAt,f=c.charAt,d="String Iterator",h=l.set,p=l.getterFor(d),g=r((function(e){h(this,{type:d,string:e,index:0})}),"String",(function(){var e,t=p(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=f(n,i),t.index+=e.length,a({codePoint:u(e,0),position:i},!1))}));i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new g(s(o(this)))}})},function(e,t,n){"use strict";n(516)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(173),o=n(105),s=n(77),l=n(51),c=n(88),u=n(40),f=n(9),d=n(35),h=n(53),p=n(250),g=n(251),_=n(64),m=n(39),F=n(7),b=n(12),y=n(225),v=n(227),k=n(229),E=n(25),w=n(50),C=b("matchAll"),T="RegExp String",x=T+" Iterator",D=E.set,S=E.getterFor(x),A=RegExp.prototype,O=TypeError,I=a("".indexOf),M=a("".matchAll),P=!!M&&!F((function(){M("a",/./)})),N=o((function(e,t,n,i){D(this,{type:x,regexp:e,string:t,global:n,unicode:i,done:!1})}),T,(function(){var e=S(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,i=k(t,n);return null===i?(e.done=!0,s(void 0,!0)):e.global?(""===u(i[0])&&(t.lastIndex=v(n,c(t.lastIndex),e.unicode)),s(i,!1)):(e.done=!0,s(i,!1))})),R=function(e){var t,n,i,r=f(this),a=u(e),o=y(r,RegExp),s=u(g(r));return t=new o(o===RegExp?r.source:r,s),n=!!~I(s,"g"),i=!!~I(s,"u"),t.lastIndex=c(r.lastIndex),new N(t,a,n,i)};i({target:"String",proto:!0,forced:P},{matchAll:function(e){var t,n,i,a,o=l(this);if(d(e)){if(P)return M(o,e)}else{if(p(e)&&(t=u(l(g(e))),!~I(t,"g")))throw new O("`.matchAll` does not allow non-global regexes");if(P)return M(o,e);if(void 0===(i=_(e,C))&&w&&"RegExp"===h(e)&&(i=R),i)return r(i,e,o)}return n=u(o),a=new RegExp(e,"g"),w?r(R,a,n):a[C](n)}}),w||C in A||m(A,C,R)},function(e,t,n){"use strict";n(518)},function(e,t,n){"use strict";var i=n(3),r=n(6),a=n(4),o=n(51),s=n(11),l=n(35),c=n(250),u=n(40),f=n(64),d=n(251),h=n(228),p=n(12),g=n(50),_=p("replace"),m=TypeError,F=a("".indexOf),b=a("".replace),y=a("".slice),v=Math.max;i({target:"String",proto:!0},{replaceAll:function(e,t){var n,i,a,p,k,E,w,C,T,x=o(this),D=0,S=0,A="";if(!l(e)){if((n=c(e))&&(i=u(o(d(e))),!~F(i,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(a=f(e,_))return r(a,e,x,t);if(g&&n)return b(u(x),e,t)}for(p=u(x),k=u(e),(E=s(t))||(t=u(t)),w=k.length,C=v(1,w),D=F(p,k);-1!==D;)T=E?u(t(k,D,p)):h(k,p,D,[],void 0,t),A+=y(p,S,D)+T,S=D+w,D=D+C>p.length?-1:F(p,k,D+C);return Sn,f=a(i)?i:u(i),d=s?l(arguments,n):[],h=s?function(){r(f,this,d)}:f;return t?e(h,o):e(h)}:e}},function(e,t,n){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){"use strict";n(542)},function(e,t,n){"use strict";n(543);var i,r=n(3),a=n(15),o=n(255),s=n(5),l=n(20),c=n(4),u=n(39),f=n(47),d=n(68),h=n(21),p=n(544),g=n(545),_=n(91),m=n(102).codeAt,F=n(548),b=n(40),y=n(76),v=n(130),k=n(256),E=n(25),w=E.set,C=E.getterFor("URL"),T=k.URLSearchParams,x=k.getState,D=s.URL,S=s.TypeError,A=s.parseInt,O=Math.floor,I=Math.pow,M=c("".charAt),P=c(/./.exec),N=c([].join),R=c(1..toString),j=c([].pop),B=c([].push),L=c("".replace),q=c([].shift),H=c("".split),U=c("".slice),z=c("".toLowerCase),K=c([].unshift),G="Invalid scheme",W="Invalid host",V="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,$=/\d/,J=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,re=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,oe=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)K(t,e%256),e=O(e/256);return N(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},se={},le=p({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=p({},le,{"#":1,"?":1,"{":1,"}":1}),ue=p({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=m(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2===e.length&&P(Y,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},pe=function(e){var t;return e.length>1&&he(U(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===z(e)},_e={},me={},Fe={},be={},ye={},ve={},ke={},Ee={},we={},Ce={},Te={},xe={},De={},Se={},Ae={},Oe={},Ie={},Me={},Pe={},Ne={},Re={},je=function e(t,n,i){var r,a,o,s=b(t);if(n){if(a=this.parse(s))throw new S(a);this.searchParams=null}else{if(void 0!==i&&(r=new e(i,!0)),a=this.parse(s,null,r))throw new S(a);(o=x(new T)).bindURL(this),this.searchParams=o}};je.prototype={type:"URL",parse:function(e,t,n){var r,a,o,s,l,c=this,u=t||_e,f=0,d="",p=!1,m=!1,F=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=L(e,ie,""),e=L(e,re,"$1")),e=L(e,ae,""),r=g(e);f<=r.length;){switch(a=r[f],u){case _e:if(!a||!P(Y,a)){if(t)return G;u=Fe;continue}d+=z(a),u=me;break;case me:if(a&&(P(X,a)||"+"===a||"-"===a||"."===a))d+=z(a);else{if(":"!==a){if(t)return G;d="",u=Fe,f=0;continue}if(t&&(c.isSpecial()!==h(de,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&de[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?u=Se:c.isSpecial()&&n&&n.scheme===c.scheme?u=be:c.isSpecial()?u=Ee:"/"===r[f+1]?(u=ye,f++):(c.cannotBeABaseURL=!0,B(c.path,""),u=Pe)}break;case Fe:if(!n||n.cannotBeABaseURL&&"#"!==a)return G;if(n.cannotBeABaseURL&&"#"===a){c.scheme=n.scheme,c.path=_(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Re;break}u="file"===n.scheme?Se:ve;continue;case be:if("/"!==a||"/"!==r[f+1]){u=ve;continue}u=we,f++;break;case ye:if("/"===a){u=Ce;break}u=Me;continue;case ve:if(c.scheme=n.scheme,a===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_(n.path),c.query=n.query;else if("/"===a||"\\"===a&&c.isSpecial())u=ke;else if("?"===a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_(n.path),c.query="",u=Ne;else{if("#"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_(n.path),c.path.length--,u=Me;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_(n.path),c.query=n.query,c.fragment="",u=Re}break;case ke:if(!c.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Me;continue}u=Ce}else u=we;break;case Ee:if(u=we,"/"!==a||"/"!==M(d,f+1))continue;f++;break;case we:if("/"!==a&&"\\"!==a){u=Ce;continue}break;case Ce:if("@"===a){p&&(d="%40"+d),p=!0,o=g(d);for(var y=0;y65535)return V;c.port=c.isSpecial()&&E===de[c.scheme]?null:E,d=""}if(t)return;u=Ie;continue}return V}d+=a;break;case Se:if(c.scheme="file","/"===a||"\\"===a)u=Ae;else{if(!n||"file"!==n.scheme){u=Me;continue}switch(a){case i:c.host=n.host,c.path=_(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=_(n.path),c.query="",u=Ne;break;case"#":c.host=n.host,c.path=_(n.path),c.query=n.query,c.fragment="",u=Re;break;default:pe(N(_(r,f),""))||(c.host=n.host,c.path=_(n.path),c.shortenPath()),u=Me;continue}}break;case Ae:if("/"===a||"\\"===a){u=Oe;break}n&&"file"===n.scheme&&!pe(N(_(r,f),""))&&(he(n.path[0],!0)?B(c.path,n.path[0]):c.host=n.host),u=Me;continue;case Oe:if(a===i||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&he(d))u=Me;else if(""===d){if(c.host="",t)return;u=Ie}else{if(s=c.parseHost(d))return s;if("localhost"===c.host&&(c.host=""),t)return;d="",u=Ie}continue}d+=a;break;case Ie:if(c.isSpecial()){if(u=Me,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==i&&(u=Me,"/"!==a))continue}else c.fragment="",u=Re;else c.query="",u=Ne;break;case Me:if(a===i||"/"===a||"\\"===a&&c.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(l=z(l=d))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===a||"\\"===a&&c.isSpecial()||B(c.path,"")):ge(d)?"/"===a||"\\"===a&&c.isSpecial()||B(c.path,""):("file"===c.scheme&&!c.path.length&&he(d)&&(c.host&&(c.host=""),d=M(d,0)+":"),B(c.path,d)),d="","file"===c.scheme&&(a===i||"?"===a||"#"===a))for(;c.path.length>1&&""===c.path[0];)q(c.path);"?"===a?(c.query="",u=Ne):"#"===a&&(c.fragment="",u=Re)}else d+=fe(a,ce);break;case Pe:"?"===a?(c.query="",u=Ne):"#"===a?(c.fragment="",u=Re):a!==i&&(c.path[0]+=fe(a,se));break;case Ne:t||"#"!==a?a!==i&&("'"===a&&c.isSpecial()?c.query+="%27":c.query+="#"===a?"%23":fe(a,se)):(c.fragment="",u=Re);break;case Re:a!==i&&(c.fragment+=fe(a,le))}f++}},parseHost:function(e){var t,n,i;if("["===M(e,0)){if("]"!==M(e,e.length-1))return W;if(t=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return M(e,f)};if(":"===d()){if(":"!==M(e,1))return;f+=2,u=++c}for(;d();){if(8===c)return;if(":"!==d()){for(t=n=0;n<4&&P(ee,d());)t=16*t+A(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,c>6)return;for(i=0;d();){if(r=null,i>0){if(!("."===d()&&i<4))return;f++}if(!P($,d()))return;for(;P($,d());){if(a=A(d(),10),null===r)r=a;else{if(0===r)return;r=10*r+a}if(r>255)return;f++}l[c]=256*l[c]+r,2!==++i&&4!==i||c++}if(4!==i)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(o=c-u,c=7;0!==c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!==c)return;return l}(U(e,1,-1)),!t)return W;this.host=t}else if(this.isSpecial()){if(e=F(e),P(te,e))return W;if(t=function(e){var t,n,i,r,a,o,s,l=H(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i1&&"0"===M(r,0)&&(a=P(J,r)?16:8,r=U(r,8===a?1:2)),""===r)o=0;else{if(!P(10===a?Z:8===a?Q:ee,r))return e;o=A(r,a)}B(n,o)}for(i=0;i=I(256,5-t))return null}else if(o>255)return null;for(s=j(n),i=0;i1?arguments[1]:void 0,i=w(t,new je(e,!1,n));a||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Le=Be.prototype,qe=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(f(Le,"href",qe("serialize","setHref")),f(Le,"origin",qe("getOrigin")),f(Le,"protocol",qe("getProtocol","setProtocol")),f(Le,"username",qe("getUsername","setUsername")),f(Le,"password",qe("getPassword","setPassword")),f(Le,"host",qe("getHost","setHost")),f(Le,"hostname",qe("getHostname","setHostname")),f(Le,"port",qe("getPort","setPort")),f(Le,"pathname",qe("getPathname","setPathname")),f(Le,"search",qe("getSearch","setSearch")),f(Le,"searchParams",qe("getSearchParams")),f(Le,"hash",qe("getHash","setHash"))),u(Le,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Le,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),D){var He=D.createObjectURL,Ue=D.revokeObjectURL;He&&u(Be,"createObjectURL",l(He,D)),Ue&&u(Be,"revokeObjectURL",l(Ue,D))}y(Be,"URL"),r({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Be})},function(e,t,n){"use strict";var i=n(102).charAt,r=n(40),a=n(25),o=n(176),s=n(77),l="String Iterator",c=a.set,u=a.getterFor(l);o(String,"String",(function(e){c(this,{type:l,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=i(n,r),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var i=n(15),r=n(4),a=n(6),o=n(7),s=n(217),l=n(224),c=n(221),u=n(34),f=n(160),d=Object.assign,h=Object.defineProperty,p=r([].concat);e.exports=!d||o((function(){if(i&&1!==d({b:1},d(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||s(d({},t)).join("")!==r}))?function(e,t){for(var n=u(e),r=arguments.length,o=1,d=l.f,h=c.f;r>o;)for(var g,_=f(arguments[o++]),m=d?p(s(_),d(_)):s(_),F=m.length,b=0;F>b;)g=m[b++],i&&!a(h,_,g)||(n[g]=_[g]);return n}:d},function(e,t,n){"use strict";var i=n(20),r=n(6),a=n(34),o=n(546),s=n(174),l=n(100),c=n(45),u=n(547),f=n(103),d=n(104),h=Array;e.exports=function(e){var t=a(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g;_&&(g=i(g,p>2?arguments[2]:void 0));var m,F,b,y,v,k,E=d(t),w=0;if(!E||this===h&&s(E))for(m=c(t),F=n?new this(m):h(m);m>w;w++)k=_?g(t[w],w):t[w],u(F,w,k);else for(F=n?new this:[],v=(y=f(t,E)).next;!(b=r(v,y)).done;w++)k=_?o(y,g,[b.value,w],!0):b.value,u(F,w,k);return F.length=w,F}},function(e,t,n){"use strict";var i=n(9),r=n(125);e.exports=function(e,t,n,a){try{return a?t(i(n)[0],n[1]):t(n)}catch(o){r(e,"throw",o)}}},function(e,t,n){"use strict";var i=n(15),r=n(36),a=n(65);e.exports=function(e,t,n){i?r.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){"use strict";var i=n(4),r=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=i(o.exec),u=Math.floor,f=String.fromCharCode,d=i("".charCodeAt),h=i([].join),p=i([].push),g=i("".replace),_=i("".split),m=i("".toLowerCase),F=function(e){return e+22+75*(e<26)},b=function(e,t,n){var i=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),i+=36;return u(i+36*e/(e+38))},y=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n=55296&&r<=56319&&n=o&&iu((r-c)/v))throw new l(s);for(c+=(y-o)*v,o=y,n=0;nr)throw new l(s);if(i===o){for(var k=c,E=36;;){var w=E<=g?1:E>=g+26?26:E-g;if(kA.length&&A.push(e)}function M(e,t,n,i){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var s=!1;if(null===e)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return n(i,e,""===t?"."+N(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l, only round last child */\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}));function xf(e){var t=e.element,n=e.handleButtonClick,i=t.title,r=t.type,o=t.url,s=Ki(i,bi.PANEL,"elementTitleCharLimit");return r===yi.HYPERLINK&&o?a.a.createElement(Sd,t):a.a.createElement(Tf,{value:s,onClick:n},a.a.createElement(wd,null,s))}function Df(e){var t=e.content,n=e.addMessage,i=e.templateType,o=e.isCarouselElem,s=e.templateIdentifier,l=t.title,c=t.subtitle,u=t.elements,f=t.imageData,d=t.imageDescription,h=t.preIndex,p=t.nextIndex,g=t.listId,_=t.referenceId,m=Ki(l,bi.PANEL,"titleCharLimit"),F=Ki(c,bi.PANEL,"subtitleCharLimit"),b=di(Object(r.useState)(!1),2),y=b[0],v=b[1];return a.a.createElement(a.a.Fragment,null,f&&a.a.createElement(Cf,{showImage:y,isCarouselElem:o},a.a.createElement(Td,{imageSrc:f,imageDescription:d,onImageLoad:function(){v(!0)}})),a.a.createElement(xd,{title:m,subtitle:F}),a.a.createElement(kd,{isCarouselElem:o},a.a.createElement("div",null,u.map((function(e,t){return a.a.createElement(xf,{key:"element-"+t,handleButtonClick:function(){!function(e){var t=Ui(u[e],h,p,g,i,_,o,m,s);n(t)}(t)},element:e})})))))}var Sf=3,Af=Q.b.div(hf||(hf=q(["\n background-color: white;\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: ",";\n \n span {\n padding: 0 5px;\n flex-grow: 2;\n }\n"])),(function(e){return e.theme.globals.basePadding})),Of=Object(Q.b)(Me)(pf||(pf=q(["\n border: ",";\n padding: 0;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n \n &[disabled] {\n opacity: 0.3 !important;\n }\n \n &>div {\n display: flex;\n }\n"])),(function(e){return e.theme.globals.baseBorder}));Af.PrevDateButton=Object(Q.b)(Of)(gf||(gf=q(["\n align-self: flex-start;\n"]))),Af.NextDateButton=Object(Q.b)(Of)(_f||(_f=q(["\n align-self: flex-end;\n"])));var If,Mf,Pf=Q.b.div(mf||(mf=q(["\n font-size: 0;\n transform: rotate(","deg);\n \n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"})),Nf=Q.b.div(Ff||(Ff=q(["\n padding: 0 ",";\n \n button {\n margin-top: ",";\n width: 100%;\n max-width: none;\n border-radius: ",";\n white-space: pre-line;\n \n &[data-selected='true'] { \n box-shadow: none;\n border: 1px solid ",";\n }\n }\n"])),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.color.highlightColor})),Rf=Q.b.div(bf||(bf=q(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: "," ",";\n \n button{\n border-radius: ",";\n\t padding: ",";\n\t \n\t &[disabled] {\n\t opacity: 0.3 !important;\n\t }\n }\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.large}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.basePadding})),jf=Q.b.button(yf||(yf=q(["\n background-color: #fff;\n align-self: flex-start;\n"]))),Bf=Q.b.button(vf||(vf=q(["\n background-color: #fff;\n align-self: flex-end;\n"]))),Lf=Q.b.button(kf||(kf=q(["\n background-color: #3F5773;\n color: #fff !important;\n"]))),qf=Object(Q.b)(Lf)(Ef||(Ef=q(["\n flex-grow: 2;\n"]))),Hf=Object(Q.b)(Lf)(wf||(wf=q(["\n font-size: 0;\n margin-right: ",";\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.fontsSize.small}),(function(e){return e.theme.fontsSize.small}));function Uf(){return(navigator.languages&&navigator.languages.length>0?navigator.languages[0]:navigator.language)||"en-US"}function zf(e){var t=e.timeslot,n=e.onClick,i=e.onKeyPress,r=e.selected,o=t.date,s=new Date(o).toLocaleTimeString("".concat(Uf()),{hour:"numeric",minute:"numeric",timeZoneName:"short"});return a.a.createElement(Me,{selected:r,value:o,onKeyPress:i,onClick:n},"".concat(s))}function Kf(e){var t=e.direction;return a.a.createElement(Pf,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("title",null,"Path"),a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function Gf(e){var t=e.content,n=e.addMessage,i=t.title,o=t.subtitle,s=t.timeZoneOffset,l=t.timeslots,c=Ki(i,bi.TIME_PICKER,"titleCharLimit"),u=Ki(o,bi.TIME_PICKER,"subtitleCharLimit"),f=function(e,t){var n=e.map((function(e){return ui({},e,{date:Wf(e.date,t)})}));return n}(l,s),d=function(e){return e.sort((function(e,t){return e.date.localeCompare(t.date)})),e.reduce((function(e,t){var n=new Date(t.date).setHours(0,0,0,0),i=new Date(n).toDateString();return e[i]||(e[i]=[]),e[i].push(t),e}),{})}(f),h=Object.keys(d),p=di(Object(r.useState)(0),2),g=p[0],_=p[1],m=h[g],F=d[m],b=di(Object(r.useState)(null),2),y=b[0],v=b[1],k=di(Object(r.useState)(0),2),E=k[0],w=k[1],C=E*Sf,T=C+Sf,x=F.slice(C,Math.min(F.length,T));function D(){S(g-1)}function S(e){_(e),w(0),v(null)}function A(e){v(e.currentTarget.value)}var O=new Date(m).toLocaleDateString(Uf(),{weekday:"long",month:"long",day:"numeric"}),I=h.length>0,M=null==y&&F.length>Sf;return a.a.createElement(a.a.Fragment,null,a.a.createElement(xd,{title:c,subtitle:u}),a.a.createElement(kd,null,a.a.createElement(Af,null,I&&a.a.createElement(Af.PrevDateButton,{disabled:0===g,onKeyPress:D,onClick:D,"data-testid":"time-picker-prev-date-button"},a.a.createElement(Kf,{direction:"left"})),a.a.createElement("span",null,O),I&&a.a.createElement(Af.NextDateButton,{disabled:g===h.length-1,onClick:function(){S(g+1)},"data-testid":"time-picker-next-date-button"},a.a.createElement(Kf,{direction:"right"}))),a.a.createElement(Nf,null,x.map((function(e){var t=new Date(y).getTime()===new Date(e.date).getTime();return a.a.createElement(zf,{selected:t,key:"timeslot".concat(e.date),timeslot:e,onKeypress:A,onClick:A})}))),a.a.createElement(Rf,null,null!=y&&a.a.createElement(a.a.Fragment,null,a.a.createElement(Hf,{onClick:function(){v(null)},"data-testid":"time-picker-reset-selection-button"},a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"}))),a.a.createElement(qf,{disabled:null==y,onClick:function(){n({text:y})},"data-testid":"time-picker-confirm-selection-button"},"Confirm")),M&&a.a.createElement(a.a.Fragment,null,a.a.createElement(jf,{disabled:0===E,onClick:function(){w(E-1)}},"Earlier"),a.a.createElement(Bf,{disabled:T>=F.length,onClick:function(){w(E+1)}},"Later")))))}function Wf(e,t){if(t){var n=new Date(e).getTime();return new Date(n+6e4*t).toISOString().slice(0,-2)+"+00:00"}return e}var Vf,Yf,Xf,$f="#077398",Jf="#FFFFFF",Qf=Q.b.div(If||(If=q(["\n padding: "," 0;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n gap: ",";\n justify-content: flex-end;\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),Zf=Object(Q.b)(Me)(Mf||(Mf=q(["\n padding: 4px ",";\n text-align: left;\n cursor: pointer;\n border: 2px solid ",";\n border-radius: 2px;\n white-space: pre-wrap;\n font-weight: bold;\n font-size: ",";\n line-height: 22px;\n font-weight: 600;\n font-style: normal;\n color: ",";\n background: ",";\n text-shadow: none;\n box-shadow: none;\n\n :hover, :focus {\n background: ",";\n color: ",";\n border: 2px solid "," !important;\n }\n"])),(function(e){return e.theme.spacing.base}),$f,(function(e){return e.theme.fontsSize.regular}),$f,Jf,$f,Jf,$f);function ed(e){var t=e.element,n=e.handleSelection,i=Ki(t.title,bi.QUICK_REPLY,"replyOptionCharLimit");return a.a.createElement(Zf,{onClick:function(){return n({text:t.title})}},i)}function td(e){var t=e.content,n=e.addMessage,i=t.title,r=t.elements,o=Ki(i,bi.QUICK_REPLY,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(md,{addChildBackgroundStyles:!0,"data-testid":"interactive-quickreply-message-title",applySpeechBubbleCaret:!0},a.a.createElement(Bs,{content:o})),a.a.createElement(Qf,{"data-testid":"interactive-quickreply-response-section"},r.map((function(e,t){return a.a.createElement(ed,{element:e,handleSelection:n,key:t})}))))}var nd=200;var id,rd,ad,od,sd,ld,cd,ud,fd=Q.b.div(Vf||(Vf=q(["\n padding: ",";\n margin: 0 ",";\n display: flex;\n gap: 2%;\n overflow-x: scroll;\n position: relative;\n scroll-snap-type: x mandatory;\n scroll-behavior: smooth;\n scroll-snap-type: x proximity;\n\n /* Hide scrollbar */\n ::-webkit-scrollbar {\n display: none; /* Chrome, Safari and Opera */\n }\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.spacing.mini})),dd=Object(Q.b)(Me)(Yf||(Yf=q(["\n cursor: pointer;\n position: absolute;\n top: 50%;\n display: block;\n --offset-x: 0;\n z-index: 99;\n ","\n\n width: 32px;\n height: 32px;\n border: 2px solid #fff;\n border-radius: 50%;\n\n background-size: 14px auto;\n background: white;\n -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);\n"])),(function(e){return"right"===e.direction?"right: 0;":""})),hd=Q.b.div(Xf||(Xf=q(["\n font-size: 0;\n transform: rotate(","deg);\n\n svg {\n width: 8px;\n height: 12px;\n }\n"])),(function(e){return"left"===e.direction?"180":"0"}));function pd(e){var t=e.elements,n=e.addMessage;return a.a.createElement(a.a.Fragment,null,t.map((function(e,t){return a.a.createElement(Cd,{key:t,content:e.data.content,templateType:e.templateType,addMessage:n,templateIdentifier:e.templateIdentifier,isCarouselElem:!0})})))}function gd(e){var t=e.direction;return a.a.createElement(hd,{direction:t},a.a.createElement("svg",{width:"8px",height:"12px",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},a.a.createElement("polygon",{id:"Path",fill:"currentColor",fillRule:"nonzero",points:"2 0 0.59 1.41 5.17 6 0.59 10.59 2 12 8 6"}))))}function _d(e){var t=e.content,n=e.addMessage,i=t.title,o=t.elements,s=Object(r.useRef)(null),l=function(){s.current.scrollLeft+=-1*nd},c=function(){s.current.scrollLeft+=nd},u=Ki(i,bi.CAROUSEL,"titleCharLimit");return a.a.createElement(a.a.Fragment,null,a.a.createElement(md,{addChildBackgroundStyles:!0,"data-testid":"interactive-carousel-message-title",applySpeechBubbleCaret:!0},a.a.createElement(Bs,{content:u})),a.a.createElement(dd,{onKeyPress:l,onClick:l,"data-testid":"interactive-carousel-scroll-left-btn",direction:"left"},a.a.createElement(gd,{direction:"left"})),a.a.createElement(fd,{ref:s,"data-testid":"interactive-carousel-response-section"},a.a.createElement(pd,{elements:o,addMessage:n})),a.a.createElement(dd,{onKeyPress:c,onClick:c,"data-testid":"interactive-carousel-scroll-right-btn",direction:"right"},a.a.createElement(gd,{direction:"right"})))}var md=Q.b.div(id||(id=q(["\n border: ",";\n border-radius: ",";\n\n ","\n\n ","\n\n ","\n\n button {\n cursor: pointer;\n border: ",";\n \n &:hover:enabled {\n color: #fff;\n background: ",";\n }\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.spacing.mini}),(function(e){return e.addChildBackgroundStyles?"\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n padding: 14px;\n "):""}),(function(e){return e.isCarouselElem?"\n position: relative;\n max-width: 350px;\n min-width: 225px;\n scroll-snap-align: start;\n background: ".concat(e.theme.chatTranscriptor.incomingMsgBg,"\n display: flex;\n flex-direction: column;\n "):""}),(function(e){return e.applySpeechBubbleCaret?'\n position: relative;\n\n &:after {\n display: block;\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";\n }\n "):""}),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.color.primary})),Fd=Object(Q.b)(Te)(rd||(rd=q(["\n font-weight: bold !important;\n"]))),bd=Object(Q.b)(Te)(ad||(ad=q(["\n color: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor})),yd=Q.b.img(od||(od=q(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),vd=Q.b.div(sd||(sd=q(["\n padding: ",";\n text-align: left;\n\n ","\n"])),(function(e){return e.theme.spacing.base}),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""})),kd=Q.b.div(ld||(ld=q(["\n position: relative;\n white-space: pre-line;\n border-radius: ",";\n\n ","\n"])),(function(e){return e.theme.spacing.mini}),(function(e){return e.isCarouselElem?"\n margin-top: auto;\n flex: none;\n ":""})),Ed=Q.b.div(cd||(cd=q(["\n display: flex;\n justify-content: center;\n width: 100%;\n max-width: none;\n border: ",";\n background: ",";\n white-space: pre-line;\n padding-right: ",";\n padding-left: ",";\n padding-top: ",";\n padding-bottom: ",";\n font-size: ",";\n line-height: 1.465;\n text-decoration: none;\n\n &:last-child {\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n margin-bottom: 0;\n }\n\n a: {\n text-decoration: none !important;\n font-weight: bold !important;\n }\n\n svg: {\n color: ",";\n margin: 0 ",";\n }\n"])),(function(e){return e.theme.globals.baseBorder}),(function(e){return e.theme.palette.white}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.padding}),(function(e){return e.theme.button.normal.fontSize}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.micro})),wd=Object(Q.b)(Te)(ud||(ud=q(["\n font-weight: bold;\n\n a {\n text-decoration: none;\n }\n\n ","\n"])),(function(e){return e.hasNestedSVG?"\n align-items: center;\n display: flex;\n justify-content: center;\n ":""}));function Cd(e){var t=e.content,n=e.templateType,i=e.addMessage,o=e.textInputRef,s=e.isCarouselElem,l=e.templateIdentifier,c=di(Object(r.useState)(!1),2),u=c[0],f=c[1],d=Object(r.useRef)();function h(e){i(e),f(!0)}return Object(r.useEffect)((function(){if(d.current){var e=d.current;e.setAttribute("view",JSON.stringify(t)),e.addEventListener("onAction",(function(e){var t=e.detail,r={action:t.Action,data:t.Output||{},templateType:n,version:"1.0"},a=JSON.stringify(r);i({text:a,type:mi.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE}),f(!0)}))}}),[d]),Object(r.useLayoutEffect)((function(){o&&o.current&&o.current.focus&&o.current.focus()}),[u,o]),n===bi.QUICK_REPLY?a.a.createElement(td,{content:t,addMessage:h}):n===bi.CAROUSEL?a.a.createElement(_d,{content:t,addMessage:h}):n===bi.VIEW_RESOURCE?a.a.createElement("connect-view-renderer",{"data-testid":"connect-view-renderer",ref:d}):a.a.createElement(md,{"data-testid":l,isCarouselElem:s},n===bi.LIST_PICKER?a.a.createElement(df,{content:t,addMessage:h,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===bi.PANEL?a.a.createElement(Df,{content:t,addMessage:h,templateType:n,isCarouselElem:s,templateIdentifier:l}):n===bi.TIME_PICKER?a.a.createElement(Gf,{content:t,addMessage:h}):void 0)}function Td(e){var t=e.imageSrc,n=e.imageDescription,i=e.onImageLoad;return a.a.createElement(yd,{src:t,alt:n,onLoad:i,onError:function(e){return console.log("Failed to load image:",e)}})}function xd(e){var t=e.title,n=e.subtitle;return a.a.createElement(vd,null,a.a.createElement(Bs,{content:t,styledWrapper:Fd}),n&&a.a.createElement(Bs,{content:n,styledWrapper:bd}))}function Dd(){return a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",stroke:"none"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}))}function Sd(e){var t=e.url,n=e.title,i=e.target,r=e.testId;return a.a.createElement(Ed,{"data-testid":r},a.a.createElement(wd,{hasNestedSVG:!0},a.a.createElement("a",{href:t,target:i||"_blank"},n),a.a.createElement(Dd,null)))}function Ad(){return Ad=Object.assign||function(e){for(var t=1;t=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((function(e){e(a,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},Id.set(t,n)}return n}(n),o=a.id,s=a.observer,l=a.elements,c=l.get(e)||[];return l.has(e)||l.set(e,c),c.push(t),s.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),Id.delete(o))}}var Bd=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function Ld(e){return"function"!==typeof e.children}var qd,Hd,Ud,zd,Kd,Gd,Wd,Vd,Yd,Xd,$d,Jd,Qd=function(e){var t,n;function i(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),Ld(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,Od(t,n);var a=i.prototype;return a.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},a.componentWillUnmount=function(){this.unobserve(),this.node=null},a.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,i=e.rootMargin,r=e.trackVisibility,a=e.delay,o=e.fallbackInView;this._unobserveCb=jd(this.node,this.handleChange,{threshold:t,root:n,rootMargin:i,trackVisibility:r,delay:a},o)}},a.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},a.render=function(){if(!Ld(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,a=i.children,o=i.as,s=i.tag,l=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(i,Bd);return r.createElement(o||s||"div",Ad({ref:this.handleNode},l),a)},i}(r.Component);Qd.displayName="InView",Qd.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};var Zd=Q.b.div(qd||(qd=q(["\n padding: "," ",";\n word-break: break-word;\n white-space: pre-line;\n overflow: auto;\n text-align: ",";\n"])),(function(e){return e.theme.globals.basePadding}),(function(e){return e.theme.spacing.base}),(function(e){return e.textAlign})),eh=Q.b.div(Hd||(Hd=q(["\n overflow: auto;\n"])));eh.Sender=Q.b.div(Ud||(Ud=q(["\n float: left;\n max-width: 150px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]))),eh.Status=Q.b.div(zd||(zd=q(["\n float: right;\n"])));var th=Q.b.div(Kd||(Kd=q(["\n overflow: auto;\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini}));th.MessageReceipt=Q.b.div(Gd||(Gd=q(["\n float: right;\n"])));var nh=Q.b.div(Wd||(Wd=q(["\n ",";\n\n ",";\n\n ","\n\n padding: ",";\n margin-top: ",";\n border-radius: 5px;\n position: relative;\n &:after {\n display: ",";\n ","\n }\n"])),(function(e){return e.direction===Ti?e.theme.chatTranscriptor.outgoingMsg:e.theme.chatTranscriptor.incomingMsg}),(function(e){return e.messageStyle?e.messageStyle:""}),(function(e){return e.childWillAddBackground?"background: none":""}),(function(e){return e.removePadding?0:e.theme.spacing.base}),(function(e){return e.theme.spacing.mini}),(function(e){return e.hideDirectionArrow?"none":"block"}),(function(e){return e.direction===Ti?'\n content: " ";\n position: absolute;\n right: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 12px solid transparent;\n border-right: 10px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.outgoingMsgBg,";\n "):'\n content: " ";\n position: absolute;\n left: -6px;\n bottom: 4px;\n border-radius: 2px;\n border-left: 10px solid transparent;\n border-right: 12px solid transparent;\n border-bottom: 9px solid '.concat(e.theme.chatTranscriptor.incomingMsgBg,";")})),ih=Q.b.div(Vd||(Vd=q(["\n color: ",";\n display: flex;\n > img {\n margin-right: ",";\n }\n"])),(function(e){return e.theme.palette.red}),(function(e){return e.theme.spacing.mini})),rh=Q.b.span(Yd||(Yd=q(["\n color: ",";\n padding-right: ",";\n"])),(function(e){return e.theme.globals.textSecondaryColor}),(function(e){return e.theme.spacing.mini})),ah=Q.b.div(Xd||(Xd=q(["\n margin-left: ",";\n padding: "," "," ",";\n\n span {\n color: ",";\n }\n"])),(function(e){return e.theme.chatTranscriptor.msgStatusWidth}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.micro}),(function(e){return e.theme.palette.red}));ah.RetryButton=Q.b.a($d||($d=q(["\n margin-left: ",";\n"])),(function(e){return e.theme.spacing.micro}));var oh,sh,lh,ch=function(e){e.error;var t=e.resetErrorBoundary,n=e.InteractiveMessageType+"_ERROR";return window.connect&&window.connect.csmService&&window.connect.csmService.addCountAndErrorMetric(n,ci,!1),a.a.createElement("div",{role:"alert"},a.a.createElement("p",null,"Something went wrong"),a.a.createElement("button",{onClick:t},"Reload Editor"))},uh=function(e){function t(e){var n;return H(this,t),(n=V(this,Y(t).call(this,e))).state={inView:!1,isVisible:!1},n.csmService=void 0,window.connect&&window.connect.csmService&&(n.csmService=window.connect.csmService),n}return $(t,e),z(t,[{key:"timestampToDisplayable",value:function(e){var t=new Date(0);t.setUTCSeconds(e);var n={hour:"numeric",minute:"numeric"};return(new Date).toDateString()===new Date(1e3*e).toDateString()?t.toLocaleTimeString([],n):t.toLocaleTimeString([],ui({},n,{weekday:"short",month:"short",day:"numeric"}))}},{key:"renderHeader",value:function(){var e=this.props.messageDetails.transportDetails.direction===Ti,t=rr().authenticatedParticipantDisplayName,n=this.props.messageDetails.displayName||(e?"Customer":"Agent");e&&t&&(n=t);var i=this.props.messageDetails.transportDetails,r="connect-chat-transport-status-",o=a.a.createElement(a.a.Fragment,null);switch(i.status){case vi:o=a.a.createElement(a.a.Fragment,null,a.a.createElement(rh,null,a.a.createElement("span",null,a.a.createElement(Xn,{id:r+"sending",defaultMessage:"Sending"}))));break;case ki:o=a.a.createElement(a.a.Fragment,null,this.timestampToDisplayable(i.sentTime,e));break;case Ei:o=a.a.createElement(ih,null,a.a.createElement(Je,null),a.a.createElement("span",null,a.a.createElement(Xn,{id:r+"sendFailed",defaultMessage:"Failed to send! "})));break;default:o=a.a.createElement(a.a.Fragment,null)}return a.a.createElement(a.a.Fragment,null,a.a.createElement(eh.Sender,null,a.a.createElement(Xn,{id:n||"DISPLAY_NAME_MISSING",defaultMessage:n})),a.a.createElement(eh.Status,null,o))}},{key:"renderMessageReceipts",value:function(){var e=this.props.messageDetails,t=e.lastReadReceipt,n=void 0!==t&&t,i=e.lastDeliveredReceipt,r=void 0!==i&&i,o=e.transportDetails,s=void 0===o?{}:o,l=s.messageReceiptType;return s.direction===Ti&&l?a.a.createElement(a.a.Fragment,null,a.a.createElement(th.MessageReceipt,null,n&&a.a.createElement(Xn,{id:"connect-chat-read-receipt",defaultMessage:"Read","aria-live":"polite"}),r&&a.a.createElement(Xn,{id:"connect-chat-delivered-receipt",defaultMessage:"Delivered","aria-live":"polite"}))):null}},{key:"visibilityChangeListener",value:function(){var e="visible"===document.visibilityState;this.setState({isVisible:e})}},{key:"componentDidUpdate",value:function(){var e=this.props.messageDetails,t=e.transportDetails.direction,n=e.type,i=e.id,r=e.participantRole;this.state.inView&&this.state.isVisible&&Mi.isTypeMessageOrAttachment(n)&&Mi.isParticipantAgentOrCustomer(r)&&t===xi&&this.props.sendReadReceipt(i,n===pi?{disableThrottle:!0}:{})}},{key:"componentDidMount",value:function(){this.visibilityChangeListener(),document.addEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.visibilityChangeListener.bind(this))}},{key:"render",value:function(){var e,t,n=this,i=this.props.messageDetails.transportDetails,r=i.direction,o=i.error,s=r===Ti?this.props.outgoingMsgStyle:this.props.incomingMsgStyle,l={};if(this.props.isLatestMessage&&this.props.messageDetails.content&&this.props.messageDetails.content.type===mi.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){l.hideDirectionArrow=!0,l.removePadding=!0;var c=JSON.parse(this.props.messageDetails.content.data).templateType;c!==bi.VIEW_RESOURCE&&c!==bi.QUICK_REPLY&&c!==bi.CAROUSEL||(l.childWillAddBackground=!0)}if(this.props.messageDetails.type===pi)this.props.messageDetails.Attachments&&this.props.messageDetails.Attachments.length>0?(e=this.props.messageDetails.Attachments[0],t=e.ContentType,e.Status===Ci&&void 0===o&&(o={message:"Attachment was rejected."})):(e={AttachmentName:this.props.messageDetails.content.name},t=this.props.messageDetails.content.type);else if(e=this.props.messageDetails.content.data,!function(e){var t=!1;for(var n in mi.MESSAGE_CONTENT_TYPE)mi.MESSAGE_CONTENT_TYPE[n]===e&&(t=!0);return t}(t=this.props.messageDetails.content.type))return null;return a.a.createElement("div",{"data-testid":"main-message"},a.a.createElement(eh,{"data-testid":"message-header"},this.renderHeader()),a.a.createElement(Qd,{onChange:function(e){return n.setState({inView:e})}},(function(i){var o=i.ref;return a.a.createElement(nh,Object.assign({"data-testid":"message-body",direction:r,messageStyle:s},l,{ref:n.props.isLatestMessage?o:null}),n.renderContent(e,t))})),a.a.createElement(th,null,this.renderMessageReceipts()),o&&this.renderTransportError(o))}},{key:"triggerCountMetric",value:function(e){this.csmService&&this.csmService.addCountMetric(e,ci)}},{key:"renderContent",value:function(e,t){if(this.props.messageDetails.type===pi)return a.a.createElement(ph,{content:e,downloadAttachment:this.props.mediaOperations.downloadAttachment});if(t===mi.MESSAGE_CONTENT_TYPE.INTERACTIVE_MESSAGE){var n=JSON.parse(e),i=n.data,r=n.templateType;return this.props.isLatestMessage?(this.triggerCountMetric(r+oi),a.a.createElement(cr.ErrorBoundary,{fallback:a.a.createElement(ch,{InteractiveMessageType:r})},a.a.createElement(Cd,{content:i.content,templateType:r,addMessage:this.props.mediaOperations.addMessage,textInputRef:this.props.textInputRef}))):(this.triggerCountMetric(si),a.a.createElement(Bs,{content:i.content.title}))}if(t===mi.MESSAGE_CONTENT_TYPE.INTERACTIVE_RESPONSE&&JSON.parse(e).templateType===bi.VIEW_RESOURCE){var o=JSON.parse(e),s=o.action,l=o.data;return!s.trim()&&l&&(s=l.content),a.a.createElement(fh,{content:s})}if(t===mi.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN)return this.triggerCountMetric(si),a.a.createElement(Bs,{content:e});if(this.triggerCountMetric(li),function(e){if(Zi()(e)){var t=JSON.parse(e);return["listTitle","selectionText","templateIdentifier"].every((function(e){return e in t&&"string"===typeof t[e]}))}return!1}(e)){var c=function(e){var t=JSON.parse(e),n=t.listTitle,i=t.selectionText,r=":"===n.slice(-1)?"":" -";return"".concat(n).concat(r," ").concat(i)}(e);return a.a.createElement(fh,{content:c})}return a.a.createElement(fh,{content:e})}},{key:"renderTransportError",value:function(e){return e&&e.message?a.a.createElement(ah,null,a.a.createElement("span",null,e.message),e.retry&&this.renderRetryButton(e.retry)):null}},{key:"renderRetryButton",value:function(e){var t=function(t){t.preventDefault(),e()};return a.a.createElement(ah.RetryButton,{href:"Retry",tabIndex:0,onClick:t,onKeyPress:t},"Retry")}}]),t}(r.PureComponent),fh=function(e){function t(){return H(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),z(t,[{key:"render",value:function(){return a.a.createElement(ji.a,{properties:{target:"_blank"}},this.props.content)}}]),t}(r.PureComponent),dh=Object(Q.b)(Zd)(Jd||(Jd=q(["\n > ","{\n display: inline-block;\n float: ","\n"])),nh,(function(e){return e.direction===Ti?"right":"left"})),hh=function(e){function t(){return H(this,t),V(this,Y(t).apply(this,arguments))}return $(t,e),z(t,[{key:"render",value:function(){return a.a.createElement(dh,{direction:this.props.direction},a.a.createElement(nh,{direction:this.props.direction},a.a.createElement(et,{color:this.props.direction===Ti?"#fff":"#000"})))}}]),t}(r.PureComponent),ph=function(e){function t(){var e,n;H(this,t);for(var i=arguments.length,r=new Array(i),a=0;al.current.clientHeight&&l.current.scrollTop<=0&&!d&&(h(!0),i().then((function(){h(!1)})))},className:o},d&&a.a.createElement(Eh,null,a.a.createElement(Ze,{size:20,color:he.color.primary}),a.a.createElement(Te,null,a.a.createElement("span",null,a.a.createElement(Xn,{id:"connect-chat-transcriptor-loading-msg",defaultMessage:"Loading previous messages..."})))),s)}wh.defaultProps={loadPreviousTranscript:function(){return Promise.resolve()},lastSentMessageId:""};var Ch=Q.b.div(yh||(yh=q(["\n margin: 0 auto;\n"]))),Th=Object(Q.b)(wh)(vh||(vh=q(["\n background: ",";\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n flex: 12 1 auto;\n"])),(function(e){return e.theme.chatTranscriptor.background})),xh={participantMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(uh,t)}},attachmentMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(uh,t)}},systemMessageConfig:{render:function(e){var t=fi({},e);return a.a.createElement(Fh,t)}}},Dh=function(e){function t(){var e,n;H(this,t);for(var i=arguments.length,r=new Array(i),o=0;o=0||(r[n]=e[n]);return r}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var f=void 0!==u.value,d=Object(r.useRef)(null),h=Ph(d,t),p=Object(r.useRef)(0),g=Object(r.useRef)(),_=function(){var e=d.current,t=n&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,i=(n=t,qh.reduce((function(e,t){return e[t]=n[t],e}),{})),r=i.boxSizing;return""===r?null:(Hh&&"border-box"===r&&(i.width=parseFloat(i.width)+parseFloat(i.borderRightWidth)+parseFloat(i.borderLeftWidth)+parseFloat(i.paddingRight)+parseFloat(i.paddingLeft)+"px"),{sizingStyle:i,paddingSize:parseFloat(i.paddingBottom)+parseFloat(i.paddingTop),borderSize:parseFloat(i.borderBottomWidth)+parseFloat(i.borderTopWidth)})}(e);if(t){g.current=t;var r=function(e,t,n,i){void 0===n&&(n=1),void 0===i&&(i=1/0),jh||((jh=document.createElement("textarea")).setAttribute("tabindex","-1"),jh.setAttribute("aria-hidden","true"),Rh(jh)),null===jh.parentNode&&document.body.appendChild(jh);var r=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach((function(e){var t=e;jh.style[t]=o[t]})),Rh(jh),jh.value=t;var l=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(jh,e);jh.value="x";var c=jh.scrollHeight-r,u=c*n;"border-box"===s&&(u=u+r+a),l=Math.max(u,l);var f=c*i;return"border-box"===s&&(f=f+r+a),[l=Math.min(f,l),c]}(t,e.value||e.placeholder||"x",a,i),o=r[0],s=r[1];p.current!==o&&(p.current=o,e.style.setProperty("height",o+"px","important"),c(o,{rowHeight:s}))}};return Object(r.useLayoutEffect)(_),Uh(_),Object(r.createElement)("textarea",Oh({},u,{onChange:function(e){f||_(),s(e)},ref:h}))},Kh=Object(r.forwardRef)(zh),Gh=he.palette.secondaryBlack,Wh=he.palette.whisper,Vh=Q.b.div(Bh||(Bh=q(["\n cursor: ",";\n\n &>svg {\n fill: ",";\n }\n"])),(function(e){return e.isActive?"pointer":"default"}),(function(e){return e.isActive?Gh:Wh}));var Yh,Xh,$h,Jh,Qh,Zh,ep,tp,np,ip,rp,ap,op,sp=function(e){var t=e.isActive,n=e.sendMessage;return a.a.createElement(Vh,{isActive:t,onClick:n,"data-testid":"customer-chat-send-message-button","aria-label":"Send Message",tabIndex:0,onKeyDown:function(e){e.key!==ii&&e.key!==ni||n(e)}},a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})))},lp=Q.b.div(Yh||(Yh=q(["\n margin: 0;\n padding: 0;\n"]))),cp=Q.b.div(Xh||(Xh=q(["\n position: relative;\n display: flex;\n background: ",";\n border: 0.5px solid ",";\n border-left: 0;\n border-right: 0;\n"])),(function(e){return e.theme.palette.white}),(function(e){return e.theme.palette.lightGray})),up=Q.b.div($h||($h=q(["\n position: absolute;\n padding: ",";\n padding-right: ",";\n top: 0;\n right: 0;\n z-index: 2;\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.base})),fp=Q.b.div(Jh||(Jh=q(["\n cursor: pointer;\n height: auto;\n vertical-align: top;\n\n button {\n height: 100%;\n width: 100%;\n }\n\n label {\n align-items: center;\n display: flex;\n cursor: pointer;\n font-size: 0;\n height: 100%;\n padding-left: ",";\n padding-right: ",';\n margin-bottom: 0;\n }\n\n input {\n display: none;\n }\n\n & + [role="textbox"] {\n padding-left: 0;\n }\n'])),(function(e){return e.theme.spacing.mini}),(function(e){return e.theme.spacing.mini})),dp=Q.b.button(Qh||(Qh=q(["\n background-color: transparent;\n border: 1px solid transparent;\n position: relative;\n padding: 0;\n margin: 0;\n"]))),hp=Q.b.div(Zh||(Zh=q(["\n display: flex;\n background-color: ",";\n border-radius: 5px;\n margin: 5px;\n padding: ",";\n min-width: 0;\n\n & > div {\n width: 100%;\n\n span {\n overflow-wrap: break-word;\n }\n\n button {\n align-items: center;\n display: inline-flex;\n cursor: pointer;\n margin-left: 5px;\n }\n }\n\n & + div {\n padding-left: 0;\n }\n"])),(function(e){return e.theme.chatTranscriptor.outgoingMsgBg}),(function(e){return e.theme.spacing.mini})),pp=Object(Q.b)(Kh)(ep||(ep=q(["\n flex: 1;\n outline: none;\n user-select: text;\n word-break: break-word;\n font-family: inherit;\n font-size: 1rem !important;\n padding: ",";\n padding-left: 0;\n padding-right: ",";\n margin-left: ",";\n max-height: 80px;\n line-height: 1.5rem;\n overflow: auto;\n min-height: 39px;\n z-index: 2;\n resize: none;\n letter-spacing: ",";\n font-size: ",";\n border: none;\n\n &::placeholder {\n color: ",";\n }\n\n &:focus::placeholder {\n color: transparent;\n }\n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.spacing.xxlarge}),(function(e){return e.theme.spacing.small}),(function(e){return e.theme.globals.letterSpacing}),(function(e){return e.theme.fontsSize.regular||"1rem"}),(function(e){return e.theme.palette.mediumGray})),gp=Q.b.div(tp||(tp=q(["\n display: flex;\n font-size: 0;\n\n svg {\n width: 24px;\n height: 24px;\n }\n"]))),_p=Q.b.div(np||(np=q(["\n display: flex;\n font-size: 0;\n svg {\n width: ",";\n height: ",";\n }\n"])),(function(e){return e.theme.fontsSize.mini}),(function(e){return e.theme.fontsSize.mini}));function mp(e){var t,n,i=e.addMessage,o=e.addAttachment,s=e.onTyping,l=e.contactId,c=e.contactStatus,u=e.onTypingValidityTime,f=e.textInputRef,d=e.composerConfig;window.connect&&window.connect.LogManager&&(t=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatComposer"}));var h=di(Object(r.useState)(""),2),p=h[0],g=h[1],_=di(Object(r.useState)(null),2),m=_[0],F=_[1],b=Object(r.useRef)(null);function y(e){return e.shiftKey||e.key!==ni?(function(e){return e.target.innerText===p}(e)||k(),g(e.target.value),e.key!==ai&&e.key!==ri||!m||""!==p?void 0:(e.preventDefault(),void E())):(e.preventDefault(),v(),!1)}function v(){var e;k.cancel(),(e=p).trim()&&i(l,{text:e}),g(""),m&&(o(l,m),E())}Object(r.useEffect)((function(){t&&t.info("Component mounted.")}),[t]),Object(r.useLayoutEffect)((function(){f&&f.current&&f.current.focus&&f.current.focus()}),[m,f]);var k=Object(r.useMemo)((function(){return Ah()((function(){s().then((function(){}))}),u,{trailing:!1,leading:!0})}),[s,u,{trailing:!1,leading:!0}]);function E(){F(null),b.current.value=null,t&&t.info("File is removed.")}var w=Wn().formatMessage({id:"chatComposer.placeholder",defaultMessage:"Type a message"}),C=null==m?w:"",T=a.a.createElement(jc,{allowedFileContentTypes:Fi,attachmentsEnabled:d&&d.attachmentsEnabled,sendMessage:function(e){k.cancel(),e.trim()&&i(l,{text:e,type:mi.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN})},sendAttachment:function(e){o(l,e)},placeholder:C,onTyping:k}),x=a.a.createElement(cp,null,d&&d.attachmentsEnabled&&a.a.createElement(fp,{tabIndex:0,"data-testid":"customer-chat-attachment-icon",onKeyDown:function(e){e.key!==ii&&e.key!==ni||(e.preventDefault(),document.getElementById("customer-chat-file-select-".concat(l)).click())}},a.a.createElement(dp,{"aria-label":"Attach a file"},a.a.createElement("label",{htmlFor:"customer-chat-file-select-".concat(l)},a.a.createElement(gp,null,a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},a.a.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),a.a.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}))),a.a.createElement("input",{ref:b,type:"file",id:"customer-chat-file-select-".concat(l),"data-testid":"customer-chat-file-select",accept:Fi.join(","),onChange:function(e){var n=e.target.files[0];F(n),t&&t.info("File added.")},"aria-label":"Attach a file",tabIndex:-1})))),null!=m&&a.a.createElement(hp,null,a.a.createElement("div",null,a.a.createElement("span",null,m.name),a.a.createElement(dp,{onClick:E,"aria-label":"Remove attachment"},a.a.createElement(_p,null,a.a.createElement("svg",{viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},a.a.createElement("path",{d:"M13 1.3L11.7 0 6.5 5.2 1.3 0 0 1.3l5.2 5.2L0 11.7 1.3 13l5.2-5.2 5.2 5.2 1.3-1.3-5.2-5.2z",fillRule:"evenodd"})))))),a.a.createElement(pp,{"data-testid":"customer-chat-text-input",ref:f,value:p,onInput:y,onKeyPress:y,onKeyDown:y,onFocus:function(){if(!n&&function(){var e=window.navigator&&window.navigator.userAgent;return e&&-1!==e.search(/iPhone/i)}()){n=!0;var e=document.createElement("input"),t=document.querySelector('[data-testid="amazon-connect-chat-wrapper"] div');t&&(t.appendChild(e),e.focus()),setTimeout((function(){f&&f.current&&f.current.focus(),e.remove(),n=!1}),300)}},"aria-label":w,placeholder:C,tabIndex:"0",spellCheck:"true"}),a.a.createElement(up,null,a.a.createElement(sp,{isActive:!!p||m,sendMessage:v.bind(this)})));return a.a.createElement(lp,null,c===Jn&&(d&&d.richMessagingEnabled?T:x))}mp.defaultProps={onTypingValidityTime:1e4};var Fp=Q.b.div(ip||(ip=q(["\n background: ",";\n height: ",";\n"])),(function(e){return e.theme.palette.dustyGray}),"85px"),bp=Q.b.div(rp||(rp=q(["\n order: 3;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n bottom: 0;\n right: 0;\n }\n"]))),yp=Q.b.div(ap||(ap=q(["\n display: flex;\n justify-content: center;\n flex-direction: row;\n height: 100%;\n align-items: center;\n > button {\n min-width: 85px;\n margin: ",";\n font-weight: bold;\n }\n"])),(function(e){return e.theme.spacing.mini})),vp=Object(Q.b)(Me)(op||(op=q(["\n margin: ",";\n width: ",";\n \n"])),(function(e){return e.theme.spacing.small}),(function(e){return e.col?100/e.col-7+"%":""}));function kp(e){return{__html:e}}var Ep,wp,Cp,Tp,xp,Dp=function(e){function t(){var e;return H(this,t),e=V(this,Y(t).call(this)),window.connect&&window.connect.LogManager&&(e.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatActionBar"})),e}return $(t,e),z(t,[{key:"componentDidMount",value:function(){this.logger&&this.logger.info("Component mounted.")}},{key:"render",value:function(){var e=this.props,t=e.contactStatus,n=e.onEndChat,i=e.onClose,a=e.footerConfig;if(a.render){var o=a.render(this.props);return a.isHTML?r.createElement(bp,{dangerouslySetInnerHTML:kp(o)}):r.createElement(bp,null,o)}return r.createElement(bp,null,r.createElement(Fp,null,r.createElement(yp,null,(t===Jn||t===ei)&&r.createElement(r.Fragment,null,r.createElement(vp,{col:"2",type:"default",onClick:n},r.createElement("span",null,r.createElement(Xn,{id:"Chat.EndChat",defaultMessage:"End chat"})))),t===ti&&r.createElement(r.Fragment,null,r.createElement(vp,{col:"2",type:"default",onClick:i},r.createElement("span",null,r.createElement(Xn,{id:"Chat.Close",defaultMessage:"Close"})))))))}}]),t}(r.Component);J(Dp,"defaultProps",{onEndChat:function(){},onClose:function(){},footerConfig:{}});var Sp=Q.b.div(Ep||(Ep=q(["\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n @media (max-width:640px) {\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n }\n"]))),Ap=Q.b.div(wp||(wp=q(["\n margin: 0;\n padding: 0;\n order: 1;\n @media (max-width: 640px) {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n }\n"]))),Op=Q.b.div(Cp||(Cp=q(["\n order: 2;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n height: 340px;\n @media (max-width:640px) {\n position: absolute;\n left: 0;\n bottom: 85px;\n right: 0;\n top: ","px;\n min-height: auto;\n }\n"])),(function(e){return e.parentHeaderWrapperHeight})),Ip=Q.b.div(Tp||(Tp=q(["\n background: #3F5773;\n text-align: center;\n padding: 16px;\n color: #fff;\n border-radius: 3px;\n flex-shrink: 0;\n"]))),Mp=Object(Q.b)(Te)(xp||(xp=q(["\n padding-bottom: 10px;\n"]))),Pp={isHTML:!1,render:function(){return a.a.createElement(Ip,null,a.a.createElement(Mp,{type:"h2"},a.a.createElement(Xn,{id:"header.headerText",defaultMessage:"Hi there! "})),a.a.createElement(Te,{type:"p"},"This is an example of how customers experience chat on your website"))}};function Np(e){var t=e.headerConfig,n=Object.assign({},Pp,t);return n.isHTML?Ni()(n.render()):n.render()}Np.defaultProps={headerConfig:{}};var Rp=a.a.createRef(),jp=function(e){function t(e){var n;return H(this,t),(n=V(this,Y(t).call(this,e))).state={transcript:[],typingParticipants:[],contactStatus:Zn,parentHeaderWrapperHeight:115},n.parentHeaderRef=a.a.createRef(),n.updateTranscript=function(e){return n.setState({transcript:tt(e)})},n.updateTypingParticipants=function(e){return n.setState({typingParticipants:e})},n.updateContactStatus=function(e){return n.setState({contactStatus:e})},window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-Chat"})),n}return $(t,e),z(t,[{key:"resetChatHeight",value:function(){this.setState({parentHeaderWrapperHeight:this.parentHeaderRef&&this.parentHeaderRef.current?this.parentHeaderRef.current.clientHeight:115})}},{key:"componentDidMount",value:function(){this.init(this.props.chatSession),this.resetChatHeight(),"function"===typeof this.props.changeLanguage&&this.props.changeLanguage(this.props.language),this.logger&&this.logger.info("Component mounted.")}},{key:"componentDidUpdate",value:function(e){e.chatSession!==this.props.chatSession&&(this.cleanUp(e.chatSession),this.init(this.props.chatSession)),e.language!==this.props.language&&"function"===typeof this.props.changeLanguage&&this.props.changeLanguage(this.props.language)}},{key:"componentWillUnmount",value:function(){this.cleanUp(this.props.chatSession)}},{key:"init",value:function(e){this.setState({contactStatus:e.contactStatus}),e.on("transcript-changed",this.updateTranscript),e.on("typing-participants-changed",this.updateTypingParticipants),e.on("contact-status-changed",this.updateContactStatus)}},{key:"cleanUp",value:function(e){e.off("transcript-changed",this.updateTranscript),e.off("typing-participants-changed",this.updateTypingParticipants),e.off("contact-status-changed",this.updateContactStatus)}},{key:"endChat",value:function(){this.props.chatSession.endChat(),this.props.onEnded()}},{key:"closeChat",value:function(){this.props.chatSession.closeChat(),this.props.onEnded()}},{key:"render",value:function(){var e=this,t=this.props,n=t.chatSession,i=t.headerConfig,r=t.transcriptConfig,o=t.composerConfig,s=t.footerConfig;return this.state.transcript,a.a.createElement(Sp,{"data-testid":"amazon-connect-chat-wrapper"},(this.state.contactStatus===Jn||this.state.contactStatus===ei||this.state.contactStatus===ti)&&a.a.createElement(Ap,{ref:this.parentHeaderRef},a.a.createElement(Np,{headerConfig:i})),a.a.createElement(Op,{parentHeaderWrapperHeight:this.state.parentHeaderWrapperHeight},a.a.createElement(Dh,{loadPreviousTranscript:function(){return n.loadPreviousTranscript()},addMessage:function(e){return n.addOutgoingMessage(e)},downloadAttachment:function(e){return n.downloadAttachment(e)},transcript:this.state.transcript,typingParticipants:this.state.typingParticipants,contactStatus:this.state.contactStatus,contactId:n.contactId,transcriptConfig:r,textInputRef:Rp,sendReadReceipt:function(){return n.sendReadReceipt.apply(n,arguments)}}),a.a.createElement(mp,{contactStatus:this.state.contactStatus,contactId:n.contactId,addMessage:function(e,t){return n.addOutgoingMessage(t)},addAttachment:function(e,t){return n.addOutgoingAttachment(t)},onTyping:function(){return n.sendTypingEvent()},composerConfig:o,textInputRef:Rp})),a.a.createElement(Dp,{onEndChat:function(){return e.endChat()},onClose:function(){return e.closeChat()},contactStatus:this.state.contactStatus,footerConfig:s}))}}]),t}(r.Component);J(jp,"defaultProps",{onEnded:function(){}});n(846);function Bp(e){return new Promise((function(t){return e.json().then((function(n){return t({status:e.status,ok:e.ok,json:n})}))}))}function Lp(e){var t={InstanceId:e.instanceId,ContactFlowId:e.contactFlowId,ParticipantDetails:{DisplayName:e.name},Username:e.username};e.persistentChat&&e.persistentChat.sourceContactId&&e.persistentChat.rehydrationType&&(t.PersistentChat={SourceContactId:e.persistentChat.sourceContactId,RehydrationType:e.persistentChat.rehydrationType});var n=function(e,t){try{return JSON.parse(e)}catch(n){return t}}(e.contactAttributes,null);n&&(t.Attributes=n),e.initialMessage&&(t.InitialMessage={ContentType:"text/plain",Content:e.initialMessage}),e.supportedMessagingContentTypes&&(t.SupportedMessagingContentTypes=e.supportedMessagingContentTypes.split(",")),e.chatDurationInMinutes&&(t.ChatDurationInMinutes=Number(e.chatDurationInMinutes));var i,r,a=new Headers;return e.headers&&(a=e.headers),(i=e.apiGatewayEndpoint,r={headers:a,method:"post",body:JSON.stringify(t)},new Promise((function(e,t){window.fetch(i,r).then(Bp).then((function(n){return n.ok?e(n):t(n)})).catch((function(e){return t({networkError:e.message})}))}))).then((function(e){return e.json.data}))}var qp=function(){function e(){H(this,e),J(this,"clientConfig",{contactFlowId:"",instanceId:"",region:"",stage:"prod",contactAttributes:{},featurePermissions:{}})}return z(e,[{key:"initiateChat",value:function(e,t,n){var i=Object.assign({},this.clientConfig,e);Ji.trigger("initChat",i,t,n)}}]),e}();window.connect=window.connect||{},window.connect.ChatInterface=window.connect.ChatInterface||new qp,window.addEventListener("message",(function(e){e.initChat&&window.connect.ChatInterface.initiateChat(e)}));var Hp=function(){function e(){H(this,e),J(this,"_eventHandlers",{"chat-disconnected":[],"chat-loading":[],"chat-start-new":[],"push-notification-eligible-message-received":[],"agent-end-chat":[],"voice-escalation":[],"authentication-complete":[]}),Ji.on("endChat",this.endChat.bind(this)),Ji.on("loadChat",this.loadChat.bind(this)),Ji.on("startNewChat",this.startNewChat.bind(this)),Ji.on("pushNotificationEligibleMessageReceived",this.approvePushNotificationEligibleMessageReceived.bind(this)),Ji.on("agentEndChat",this.agentEndChat.bind(this)),Ji.on("escalateToVoice",this.escalateToVoice.bind(this)),Ji.on("authenticationComplete",this.authenticationComplete.bind(this))}return z(e,[{key:"onVoiceEscalation",value:function(e){this.on("voice-escalation",(function(){e.apply(void 0,arguments)}))}},{key:"onChatEnded",value:function(e){this.on("chat-disconnected",(function(){e.apply(void 0,arguments)}))}},{key:"onStartNewChat",value:function(e){this.on("chat-start-new",(function(){e.apply(void 0,arguments)}))}},{key:"onChatLoading",value:function(e){this.on("chat-loading",(function(){e.apply(void 0,arguments)}))}},{key:"onPushNotificationEligibleMessageReceived",value:function(e){this.on("push-notification-eligible-message-received",(function(){e.apply(void 0,arguments)}))}},{key:"onAuthenticationComplete",value:function(e){this.on("authentication-complete",(function(){e.apply(void 0,arguments)}))}},{key:"onAgentEndChat",value:function(e){this.on("agent-end-chat",(function(){e.apply(void 0,arguments)}))}},{key:"on",value:function(e,t){-1===this._eventHandlers[e].indexOf(t)&&this._eventHandlers[e].push(t)}},{key:"_triggerEvent",value:function(e,t){this._eventHandlers[e].forEach((function(e){e(t)}))}},{key:"escalateToVoice",value:function(e){this._triggerEvent("voice-escalation",e)}},{key:"endChat",value:function(){this._triggerEvent("chat-disconnected")}},{key:"loadChat",value:function(){this._triggerEvent("chat-loading")}},{key:"startNewChat",value:function(){this._triggerEvent("chat-start-new")}},{key:"approvePushNotificationEligibleMessageReceived",value:function(){this._triggerEvent("push-notification-eligible-message-received")}},{key:"agentEndChat",value:function(){this._triggerEvent("agent-end-chat")}},{key:"authenticationComplete",value:function(){this._triggerEvent("authentication-complete")}}]),e}();function Up(e,t){return Object.keys(e).reduce((function(n,i){return n[i]=Object(nt.a)({timeZone:t},e[i]),n}),{})}function zp(e,t){return Object.keys(Object(nt.a)(Object(nt.a)({},e),t)).reduce((function(n,i){return n[i]=Object(nt.a)(Object(nt.a)({},e[i]||{}),t[i]||{}),n}),{})}function Kp(e,t){if(!t)return e;var n=Dn.formats;return Object(nt.a)(Object(nt.a)(Object(nt.a)({},n),e),{date:zp(Up(n.date,t),Up(e.date||{},t)),time:zp(Up(n.time,t),Up(e.time||{},t))})}window.connect=window.connect||{},window.connect.ChatEvents=window.connect.ChatEvents||new Hp;var Gp=function(e,t,n,i,r){var a=e.locale,o=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,f=e.onError,d=e.timeZone,h=e.defaultRichTextElements;void 0===n&&(n={id:""});var p=n.id,g=n.defaultMessage;ot(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(p),m=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(m)&&1===m.length&&m[0].type===rt.literal)return m[0].value;if(!i&&m&&"string"===typeof m&&!h)return m.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=Object(nt.a)(Object(nt.a)({},h),i||{}),o=Kp(o,d),c=Kp(c,d),!m){if(!1===u&&""===m)return m;if((!g||a&&a.toLowerCase()!==l.toLowerCase())&&f(new Nn(n,a)),g)try{return t.getMessageFormat(g,l,c,r).format(i)}catch(F){return f(new Pn('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),a,n,F)),"string"===typeof g?g:_}return _}try{return t.getMessageFormat(m,a,o,Object(nt.a)({formatters:t},r||{})).format(i)}catch(F){f(new Pn('Error formatting message: "'.concat(_,'", using ').concat(g?"default message":"id"," as fallback."),a,n,F))}if(g)try{return t.getMessageFormat(g,l,c,r).format(i)}catch(F){f(new Pn('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),a,n,F))}return"string"===typeof m?m:"string"===typeof g?g:_},Wp=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Vp(e,t,n){var i=e.locale,r=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format,s=o&&Ln(r,"number",o,a)||{};return t(i,Rn(n,Wp,s))}function Yp(e,t,n,i){void 0===i&&(i={});try{return Vp(e,t,i).format(n)}catch(r){e.onError(new Mn("Error formatting number.",e.locale,r))}return String(n)}function Xp(e,t,n,i){void 0===i&&(i={});try{return Vp(e,t,i).formatToParts(n)}catch(r){e.onError(new Mn("Error formatting number.",e.locale,r))}return[]}var $p=["numeric","style"];function Jp(e,t,n,i,r){void 0===r&&(r={}),i||(i="second"),Intl.RelativeTimeFormat||e.onError(new bn('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',gn.MISSING_INTL_API));try{return function(e,t,n){var i=e.locale,r=e.formats,a=e.onError;void 0===n&&(n={});var o=n.format,s=!!o&&Ln(r,"relative",o,a)||{};return t(i,Rn(n,$p,s))}(e,t,r).format(n,i)}catch(a){e.onError(new Mn("Error formatting relative time.",e.locale,a))}return String(n)}var Qp=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Zp(e,t,n,i){var r=e.locale,a=e.formats,o=e.onError,s=e.timeZone;void 0===i&&(i={});var l=i.format,c=Object(nt.a)(Object(nt.a)({},s&&{timeZone:s}),l&&Ln(a,t,l,o)),u=Rn(i,Qp,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=Object(nt.a)(Object(nt.a)({},u),{hour:"numeric",minute:"numeric"})),n(r,u)}function eg(e,t){for(var n=[],i=2;i=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),_}},t}var Sg,Ag=Q.b.div(bg||(bg=q(["\n display: flex;\n justify-content: center;\n margin-top: 10px;\n > button {\n min-width: 85px;\n }\n"]))),Og=Q.b.div(yg||(yg=q(["\n padding: 10;\n background-color: red;\n"]))),Ig=Object(Q.b)(Ge)(vg||(vg=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),Mg=Q.b.div(kg||(kg=q(["\n padding: ",";\n height: 100%;\n"])),(function(e){return e.theme.globals.basePadding})),Pg=function(e){function t(e){var n;return H(this,t),J(W(n=V(this,Y(t).call(this,e))),"resetState",(function(){n.setState({status:"NotInitiated",chatSession:null}),n.logger&&n.logger.info("Chat session is reset")})),n.state={chatSession:null,composerConfig:{},status:"NotInitiated",language:"en_US"},n.submitChatInitiationHandler=n.initiateChatSession.bind(W(n)),Ji.on("initChat",n.initiateChatSession.bind(W(n))),window.connect&&window.connect.LogManager&&(n.logger=window.connect.LogManager.getLogger({prefix:"ChatInterface-ChatContainer"})),n}return $(t,e),z(t,[{key:"componentWillUnmount",value:function(){Ji.off(this.submitChatInitiationHandler)}},{key:"initiateChatSession",value:function(e,t,n){var i={contactFlowId:e.contactFlowId?e.contactFlowId:null,instanceId:e.instanceId?e.instanceId:null,region:e.region?e.region:null,stage:e.stage?e.stage:null,featurePermissions:e.featurePermissions?e.featurePermissions:null,apiGatewayEndpoint:e.apiGatewayEndpoint?e.apiGatewayEndpoint:null};this.logger&&this.logger.info("Chat session meta data:",i),this.submitChatInitiation(e,t,n)}},{key:"submitChatInitiation",value:function(){var e=_e(Dg().mark((function e(t,n,i){var r,a,o,s,l,c;return Dg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({status:"Initiating"}),r={authenticationRedirectUri:t.authenticationRedirectUri||"",authenticationIdentityProvider:t.authenticationIdentityProvider||""},e.prev=2,e.next=5,Lp(t);case 5:return a=e.sent,e.next=8,this.openChatSession(a,t.name,t.region,t.stage,r);case 8:ar(o=e.sent),s=t.featurePermissions&&t.featurePermissions[Bi]||a.featurePermissions&&a.featurePermissions[Bi],l="string"===typeof t.supportedMessagingContentTypes&&t.supportedMessagingContentTypes.split(",").includes(mi.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN),c=t.language||"en_US",this.setState({status:"Initiated",chatSession:o,composerConfig:{attachmentsEnabled:s,richMessagingEnabled:l},language:c}),n&&n(o),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(2),this.setState({status:"InitiateFailed"}),i&&i(e.t0);case 21:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(t,n,i){return e.apply(this,arguments)}}()},{key:"openChatSession",value:function(e,t,n,i,r){var a=new lr(e,t,n,i,r);return a.onChatClose((function(){Ji.trigger("endChat",{})})),a.openChatSession().then((function(){return a}))}},{key:"render",value:function(){var e=this;return"NotInitiated"===this.state.status||"Initiating"===this.state.status?a.a.createElement(Ig,{center:!0},a.a.createElement(Ze,{color:he.color.primary,size:30})):"InitiateFailed"===this.state.status?a.a.createElement(Mg,null,a.a.createElement(Og,null,"Initialization failed"),a.a.createElement(Ag,null,a.a.createElement(Me,{col:"2",type:"tertiary",onClick:this.resetState},a.a.createElement("span",null,"Go Back")))):a.a.createElement(xg,null,a.a.createElement(Tg.Consumer,null,(function(t){var n=t.changeLanguage;return a.a.createElement(a.a.Fragment,null,a.a.createElement(jp,Object.assign({chatSession:e.state.chatSession,composerConfig:e.state.composerConfig,onEnded:e.resetState,changeLanguage:n,language:e.state.language},e.props)))})))}}]),t}(r.Component),Ng=Pg,Rg=Q.b.div(Sg||(Sg=q(["\n\n width: 300px;\n font-family: ",";\n\n margin: ",";\n border-collapse: collapse;\n box-shadow: 0px 2px 3px ",";\n\n box-sizing: border-box;\n\n *, *:before, *:after {\n box-sizing: inherit;\n }\n"])),(function(e){return e.theme.fonts.regular}),(function(e){return e.theme.spacing.base}),(function(e){return e.theme.palette.alto})),jg=function(e){return a.a.createElement(pe,{theme:Object.assign({},he,e.themeConfig)},e.children)};function Bg(e){var t=e.baseCssClass,n=i(e,["baseCssClass"]);return a.a.createElement(jg,{themeConfig:n.themeConfig||{}},a.a.createElement(Rg,{className:t},a.a.createElement(Ng,n)))}Bg.defaultProps={baseCssClass:"connect-customer-interface"};var Lg=Bg,qg={loggerConfig:{level:connect.LogLevel.DEBUG,useDefaultLogger:!0}};!function(e){e.LogManager&&e.LogManager.updateLoggerConfig(qg),e.ChatInterface=e.ChatInterface||{},e.ChatInterface.init=function(t){var n=t.containerId,r=i(t,["containerId"]);r.widgetType&&(qg.csmConfig={widgetType:r.widgetType}),qg.features={messageReceipts:{shouldSendMessageReceipts:!0,throttleTime:5e3}},e.ChatSession.setGlobalConfig(qg),Gi(r),s.a.render(a.a.createElement(L,null,a.a.createElement(Lg,r)),document.getElementById(n)||document.getElementById("root"))},e.ChatInterface.getCurrentTheme=function(){return he},window.connect=e}(window.connect||{})}]); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7fec495..b491d2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "react-router-dom": "^4.3.1", "dompurify": "^3.1.3", "react-spinners": "^0.10.4", - "amazon-connect-chatjs": "^3.0.2", + "amazon-connect-chatjs": "^3.0.3", "@emotion/core": "^10.0.35", "react-app-polyfill": "^3.0.0", "styled-components": "^4.1.1", @@ -89,7 +89,7 @@ "babel-loader": "^8.3.0", "babel-preset-react-app": "^8.0.0", "jest-styled-components": "^6.3.1", - "@testing-library/jest-dom": "^6.4.2", + "@testing-library/jest-dom": "^6.6.3", "@babel/plugin-proposal-optional-chaining": "^7.21.0", "husky": "^4.3.8", "webpack-cli": "^4.8.0", @@ -154,20 +154,6 @@ "multicast-dns": "cli.js" } }, - "node_modules/pkg-up/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/babel-preset-react-app/node_modules/@babel/runtime": { "version": "7.4.3", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.4.3.tgz", @@ -180,8 +166,7 @@ "node_modules/@emotion/hash": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz", - "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==", - "dev": true + "integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==" }, "node_modules/extglob/node_modules/define-property": { "version": "1.0.0", @@ -209,8 +194,7 @@ "node_modules/webpack/node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, "node_modules/jest-runner": { "version": "28.1.3", @@ -381,8 +365,7 @@ "node_modules/stream-shift": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", - "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", - "license": "MIT" + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" }, "node_modules/@testing-library/user-event": { "version": "13.0.7", @@ -500,7 +483,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -512,6 +494,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@emotion/css/node_modules/@emotion/unitless": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", + "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" + }, "node_modules/terser": { "version": "5.30.0", "resolved": "https://registry.npmjs.org/terser/-/terser-5.30.0.tgz", @@ -607,21 +594,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/plugin-kit": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", - "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/autoprefixer": { "version": "10.4.19", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.19.tgz", @@ -659,21 +631,6 @@ "postcss": "^8.1.0" } }, - "node_modules/react-dev-utils/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", @@ -788,21 +745,6 @@ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/react-dev-utils/node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/memoize-one": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-5.2.1.tgz", @@ -966,6 +908,12 @@ "flat": "cli.js" } }, + "node_modules/jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/abab": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", @@ -990,12 +938,6 @@ "node": ">=8" } }, - "node_modules/jake/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, "node_modules/jest-runner/node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", @@ -1113,7 +1055,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -1409,19 +1350,6 @@ "node": ">=8" } }, - "node_modules/@jest/test-sequencer/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, "node_modules/@formatjs/intl": { "version": "2.10.1", "resolved": "https://registry.npmjs.org/@formatjs/intl/-/intl-2.10.1.tgz", @@ -1536,7 +1464,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1561,12 +1488,11 @@ "node": ">= 0.8.0" } }, - "node_modules/@jest/test-result/node_modules/color-convert": { + "node_modules/@jest/globals/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -2163,6 +2089,18 @@ "rollup": "^1.20.0||^2.0.0" } }, + "node_modules/jest-mock/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, "node_modules/@jest/test-sequencer/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -2562,12 +2500,6 @@ "node": ">=6" } }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, "node_modules/read-pkg-up/node_modules/p-try": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", @@ -2631,19 +2563,6 @@ "fsevents": "^2.3.2" } }, - "node_modules/jest-location-mock/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/@jest/environment/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -2935,18 +2854,6 @@ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "node_modules/to-regex/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "license": "MIT", - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/public-encrypt": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", @@ -3030,7 +2937,6 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -3614,7 +3520,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "license": "MIT", "dependencies": { "p-limit": "^2.0.0" }, @@ -3679,7 +3584,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -4006,6 +3910,12 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/jest-mock/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/jest-diff/node_modules/react-is": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", @@ -4083,7 +3993,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -4138,7 +4047,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", "integrity": "sha512-ntymy489o0/QQplUDnpYAYUsO50K9SBrIVaKCWDOJzYJts0f9WH9RFJkyagebkw5+y1oi00R7ynNW/d12GBumg==", - "license": "ISC", "dependencies": { "aproba": "^1.1.1" } @@ -4148,7 +4056,6 @@ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "dev": true, - "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -4329,16 +4236,6 @@ "node": ">=0.10.0" } }, - "node_modules/serve-index/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -4513,7 +4410,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "readable-stream": "^2.3.6" @@ -4780,7 +4676,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4907,19 +4802,6 @@ "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } }, - "node_modules/css-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/is-boolean-object": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", @@ -5042,7 +4924,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -5202,7 +5083,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", - "license": "MIT", "dependencies": { "inherits": "^2.0.1", "readable-stream": "^2.0.0" @@ -5431,8 +5311,7 @@ "node_modules/has-values/node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, "node_modules/jest-matcher-utils/node_modules/ansi-styles": { "version": "4.3.0", @@ -5452,7 +5331,6 @@ "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -5470,7 +5348,6 @@ "version": "3.7.1", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "license": "MIT", "dependencies": { "end-of-stream": "^1.0.0", "inherits": "^2.0.1", @@ -5513,30 +5390,15 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, - "node_modules/husky/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/watchpack-chokidar2/node_modules/binary-extensions": { "version": "1.13.1", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", - "license": "MIT", "optional": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/@jest/test-sequencer/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/@sinonjs/commons": { "version": "1.8.6", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", @@ -5603,6 +5465,22 @@ "node": ">=6.0.0" } }, + "node_modules/jest-mock/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/jest-config/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5663,18 +5541,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/split-string/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "license": "MIT", - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", @@ -5725,8 +5591,7 @@ "node_modules/@emotion/core/node_modules/csstype": { "version": "2.6.21", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz", - "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==", - "license": "MIT" + "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==" }, "node_modules/cross-spawn": { "version": "6.0.5", @@ -5754,7 +5619,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", - "license": "MIT", "optional": true, "dependencies": { "is-accessor-descriptor": "^1.0.1", @@ -5802,7 +5666,6 @@ "engines": [ "node >= 0.8" ], - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", @@ -5952,18 +5815,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@types/jest/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/eslint/node_modules/semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", @@ -6060,7 +5911,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -6163,21 +6013,11 @@ "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true - }, "node_modules/@jest/reporters/node_modules/convert-source-map": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-plugin-macros/node_modules/@babel/runtime": { "version": "7.24.1", @@ -6236,19 +6076,6 @@ "postcss": "^8.4" } }, - "node_modules/nanomatch/node_modules/is-descriptor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", - "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", - "license": "MIT", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/update-browserslist-db": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", @@ -6341,12 +6168,6 @@ "node": ">=4" } }, - "node_modules/@emotion/core/node_modules/@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "license": "MIT" - }, "node_modules/@babel/plugin-transform-function-name": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz", @@ -6431,7 +6252,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -6649,8 +6469,7 @@ "node_modules/cyclist": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.2.tgz", - "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==", - "license": "MIT" + "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==" }, "node_modules/electron-to-chromium": { "version": "1.4.718", @@ -6712,8 +6531,7 @@ "node_modules/typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "license": "MIT" + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" }, "node_modules/dns-packet": { "version": "5.6.1", @@ -6802,26 +6620,6 @@ "node": ">=8" } }, - "node_modules/react-dev-utils/node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/sass-loader": { "version": "10.5.2", "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-10.5.2.tgz", @@ -6983,6 +6781,15 @@ "node": ">=6.9.0" } }, + "node_modules/jest-mock/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/husky/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -7030,7 +6837,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7059,7 +6865,6 @@ "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "license": "MIT", "optional": true, "dependencies": { "arr-diff": "^4.0.0", @@ -7090,7 +6895,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "license": "MIT", "dependencies": { "find-up": "^3.0.0" }, @@ -7235,22 +7039,6 @@ "node": ">=4" } }, - "node_modules/@jest/test-result/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", @@ -7298,7 +7086,6 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -7323,7 +7110,6 @@ "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", "integrity": "sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^28.1.3", "@types/node": "*", @@ -7409,7 +7195,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7465,8 +7250,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/istanbul-lib-instrument": { "version": "5.2.1", @@ -7487,7 +7271,8 @@ "node_modules/@emotion/memoize": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", - "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" + "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==", + "dev": true }, "node_modules/@jest/transform/node_modules/color-name": { "version": "1.1.4", @@ -7742,35 +7527,12 @@ "node": ">= 6" } }, - "node_modules/@eslint/plugin-kit/node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/commander": { "version": "2.17.1", "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", "dev": true }, - "node_modules/jest-location-mock/node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true, - "license": "MIT" - }, "node_modules/jest-environment-jsdom/node_modules/@jest/environment": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", @@ -8087,26 +7849,6 @@ "node-fetch": "^2.6.12" } }, - "node_modules/react-dev-utils/node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/@babel/plugin-transform-block-scoped-functions": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz", @@ -8171,16 +7913,6 @@ "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" }, - "node_modules/@jest/console/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -8410,8 +8142,7 @@ "node_modules/webpack/node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, "node_modules/unique-slug": { "version": "2.0.2", @@ -8421,6 +8152,12 @@ "imurmurhash": "^0.1.4" } }, + "node_modules/@jest/globals/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, "node_modules/browserify-aes": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", @@ -8535,7 +8272,6 @@ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-28.1.3.tgz", "integrity": "sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^28.1.3", "@types/graceful-fs": "^4.1.3", @@ -8596,16 +8332,6 @@ "node": ">=10.13.0" } }, - "node_modules/@jest/test-result/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/@babel/plugin-transform-logical-assignment-operators": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.1.tgz", @@ -8805,8 +8531,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/jest-runtime/node_modules/color-convert": { "version": "2.0.1", @@ -8850,23 +8575,6 @@ "node": ">=8" } }, - "node_modules/@eslint/config-array": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.0.tgz", - "integrity": "sha512-zdHg2FPIFNKPdcHWtiNT+jEFCHYVplAXRDlQDyqy0zGx/q2parwh7brGJSiTxRk/TSMkbM//zt/f5CHgyTyaSQ==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "@eslint/object-schema": "^2.1.4", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/jest-runner/node_modules/jest-pnp-resolver": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", @@ -9014,7 +8722,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -9031,18 +8738,6 @@ "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", "dev": true }, - "node_modules/react-dev-utils/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/jest-config/node_modules/jest-pnp-resolver": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", @@ -9375,12 +9070,6 @@ "node": ">=v12.22.7" } }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, "node_modules/react-dev-utils/node_modules/loader-utils": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-3.2.1.tgz", @@ -9486,7 +9175,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -9525,18 +9213,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/webpack/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, "node_modules/pinkie-promise": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", @@ -9591,7 +9267,6 @@ "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", "deprecated": "This package is no longer supported.", - "license": "ISC", "dependencies": { "aproba": "^1.1.1", "fs-write-stream-atomic": "^1.0.8", @@ -9639,7 +9314,6 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -9720,7 +9394,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "license": "MIT", "dependencies": { "pify": "^4.0.1", "semver": "^5.6.0" @@ -9932,7 +9605,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "license": "MIT", "dependencies": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -9941,15 +9613,6 @@ "node": ">=6" } }, - "node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0", - "optional": true, - "peer": true - }, "node_modules/@types/hast": { "version": "2.3.10", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", @@ -10016,7 +9679,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -10047,6 +9709,15 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, + "node_modules/husky/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/postcss-colormin": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.3.1.tgz", @@ -10079,7 +9750,6 @@ "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", "integrity": "sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA==", "deprecated": "This package is no longer supported.", - "license": "ISC", "dependencies": { "graceful-fs": "^4.1.2", "iferr": "^0.1.5", @@ -10295,18 +9965,7 @@ "node_modules/aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "license": "ISC" - }, - "node_modules/cliui/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "node_modules/node-releases": { "version": "2.0.14", @@ -10402,8 +10061,7 @@ "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/terser-webpack-plugin/node_modules/source-map": { "version": "0.6.1", @@ -10617,19 +10275,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/mini-css-extract-plugin/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -10835,13 +10480,6 @@ "node": ">=10.0.0" } }, - "node_modules/react-dev-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/express-serve-static-core": { "version": "4.17.43", "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.43.tgz", @@ -10881,7 +10519,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -10996,7 +10633,6 @@ "version": "12.0.4", "resolved": "https://registry.npmjs.org/cacache/-/cacache-12.0.4.tgz", "integrity": "sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ==", - "license": "ISC", "dependencies": { "bluebird": "^3.5.5", "chownr": "^1.1.1", @@ -11024,11 +10660,10 @@ } }, "node_modules/react-dev-utils/node_modules/cross-spawn": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.5.tgz", - "integrity": "sha512-ZVJrKKYunU38/76t0RMOulHOnUcbU9GbpWKAOZ0mhjr7CX6FVrH+4FrAapSOekrgFQ3f/8gwMEuIft0aKq6Hug==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -11055,15 +10690,6 @@ "react": "^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/react-dev-utils/node_modules/@types/estree": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", - "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true - }, "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/@apideck/better-ajv-errors/-/better-ajv-errors-0.3.6.tgz", @@ -11403,7 +11029,6 @@ "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz", "integrity": "sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -11747,21 +11372,6 @@ "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } }, - "node_modules/jest-location-mock/node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, "node_modules/@emotion/is-prop-valid": { "version": "0.8.8", "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", @@ -11909,16 +11519,6 @@ "node": ">=10" } }, - "node_modules/jest-mock/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/babel-plugin-emotion/node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -11964,19 +11564,6 @@ "node": ">=10" } }, - "node_modules/style-loader/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, "node_modules/css-select": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz", @@ -12037,7 +11624,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -12166,15 +11752,6 @@ "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true - }, "node_modules/webpack/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -12361,16 +11938,6 @@ "node": ">=0.10.0" } }, - "node_modules/execa/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/eslint-module-utils/node_modules/debug": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", @@ -12448,21 +12015,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/react-dev-utils/node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/get-intrinsic": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", @@ -12486,7 +12038,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -12537,7 +12088,6 @@ "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" }, @@ -12587,19 +12137,6 @@ "postcss": "^8.4" } }, - "node_modules/husky/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, "node_modules/mdast-util-to-hast": { "version": "10.2.0", "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-10.2.0.tgz", @@ -12703,9 +12240,9 @@ } }, "node_modules/amazon-connect-chatjs": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/amazon-connect-chatjs/-/amazon-connect-chatjs-3.0.2.tgz", - "integrity": "sha512-xHma7QJ3L4cpH8l3qpntXBvlSKVjSWOsGNbmNxcTfQFPCkNxiAWNEkupD87Eki6DzAvM9lV5QLiM6+SdwaTX9w==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/amazon-connect-chatjs/-/amazon-connect-chatjs-3.0.3.tgz", + "integrity": "sha512-cNwJYIj5CfYVYet69P+pO2eIoseWursUUMe6bCsO6WHz9dZONCR93bDPCuNjLE/spHFKCFaQRK7Db5GymfHEtg==", "dependencies": { "detect-browser": "5.3.0", "jest-environment-jsdom": "^29.7.0", @@ -13001,7 +12538,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", - "license": "MIT", "optional": true, "dependencies": { "is-number": "^3.0.0", @@ -13024,7 +12560,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -13035,8 +12570,7 @@ "node_modules/webpack/node_modules/y18n": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "license": "ISC" + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==" }, "node_modules/punycode": { "version": "2.3.1", @@ -13357,7 +12891,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", - "license": "MIT", "optional": true, "dependencies": { "assign-symbols": "^1.0.0", @@ -13367,18 +12900,6 @@ "node": ">=0.10.0" } }, - "node_modules/@eslint/plugin-kit/node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/@babel/plugin-proposal-optional-chaining": { "version": "7.21.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", @@ -13729,6 +13250,18 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, + "node_modules/webpack/node_modules/is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/data-view-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", @@ -13795,6 +13328,18 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "node_modules/webpack/node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/simple-update-notifier/node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -13844,7 +13389,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", - "license": "MIT", "dependencies": { "commondir": "^1.0.1", "make-dir": "^2.0.0", @@ -13906,7 +13450,6 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } @@ -14089,51 +13632,20 @@ } ] }, - "node_modules/@jest/globals/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==" }, - "node_modules/@jest/test-result/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/@jest/core/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/postcss-loader/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/jest-config/node_modules/write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", @@ -14151,7 +13663,6 @@ "version": "29.6.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.27.8" }, @@ -14289,7 +13800,6 @@ "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "license": "MIT", "dependencies": { "once": "^1.4.0" } @@ -14316,8 +13826,7 @@ "node_modules/jest-environment-jsdom/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "node_modules/minipass/node_modules/yallist": { "version": "4.0.0", @@ -14384,7 +13893,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -14632,13 +14140,6 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" - }, "node_modules/webpack-merge": { "version": "5.10.0", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", @@ -15070,7 +14571,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -15178,23 +14678,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/@jest/test-result/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/webpack/node_modules/is-number/node_modules/kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -15417,18 +14900,6 @@ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/@eslint/core": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz", - "integrity": "sha512-7ATR9F0e4W85D/0w7cU0SNj7qkAexMG+bAHEZOjo9akvGuhHE2m7umzWzfnpa0XAg5Kxc1BWmtPMV67jJ+9VUg==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -15446,6 +14917,15 @@ "node": ">=8" } }, + "node_modules/@jest/test-sequencer/node_modules/jest-regex-util": { + "version": "28.0.2", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", + "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", + "dev": true, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, "node_modules/regenerate-unicode-properties": { "version": "10.1.1", "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", @@ -15691,7 +15171,8 @@ "node_modules/@emotion/unitless": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", - "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==", + "dev": true }, "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", @@ -15704,21 +15185,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/jest-runtime/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", @@ -15984,7 +15450,6 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -16141,7 +15606,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -16152,7 +15616,6 @@ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", "dev": true, - "license": "MIT", "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.1.0", @@ -16383,28 +15846,6 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/css-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -16508,7 +15949,6 @@ "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz", "integrity": "sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw==", "dev": true, - "license": "MIT", "engines": { "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" } @@ -16564,7 +16004,6 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "license": "MIT", "optional": true, "dependencies": { "is-buffer": "^1.1.5" @@ -16633,6 +16072,11 @@ "dequal": "^2.0.3" } }, + "node_modules/@types/jest/node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==" + }, "node_modules/jest-each/node_modules/pretty-format": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-28.1.3.tgz", @@ -16698,6 +16142,18 @@ "@babel/core": "^7.0.0" } }, + "node_modules/husky/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@npmcli/fs/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -16710,68 +16166,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/react-dev-utils/node_modules/eslint": { - "version": "9.15.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.15.0.tgz", - "integrity": "sha512-7CrWySmIibCgT1Os28lUU6upBshZ+GxybLOrmRzi08kS8MBuO8QA7pXEgYgY5W8vK3e74xv0lpjo9DbaGU9Rkw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "ignore": "^5.2.0", - "eslint-scope": "^8.2.0", - "natural-compare": "^1.4.0", - "file-entry-cache": "^8.0.0", - "@humanwhocodes/retry": "^0.4.1", - "is-glob": "^4.0.0", - "lodash.merge": "^4.6.2", - "eslint-visitor-keys": "^4.2.0", - "@types/json-schema": "^7.0.15", - "espree": "^10.3.0", - "imurmurhash": "^0.1.4", - "cross-spawn": "^7.0.5", - "@eslint/eslintrc": "^3.2.0", - "@eslint/core": "^0.9.0", - "@humanfs/node": "^0.16.6", - "@eslint-community/regexpp": "^4.12.1", - "@humanwhocodes/module-importer": "^1.0.1", - "@eslint-community/eslint-utils": "^4.2.0", - "chalk": "^4.0.0", - "@eslint/plugin-kit": "^0.2.3", - "debug": "^4.3.2", - "@eslint/config-array": "^0.19.0", - "ajv": "^6.12.4", - "json-stable-stringify-without-jsonify": "^1.0.1", - "esutils": "^2.0.2", - "minimatch": "^3.1.2", - "glob-parent": "^6.0.2", - "fast-deep-equal": "^3.1.3", - "esquery": "^1.5.0", - "@types/estree": "^1.0.6", - "find-up": "^5.0.0", - "optionator": "^0.9.3", - "escape-string-regexp": "^4.0.0", - "@eslint/js": "9.15.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", @@ -16841,6 +16235,18 @@ "node": ">= 4" } }, + "node_modules/jest-mock/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", @@ -16920,8 +16326,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/babel-preset-react-app/node_modules/@babel/preset-env": { "version": "7.4.3", @@ -17205,19 +16610,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, "node_modules/elliptic": { "version": "6.5.5", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", @@ -17244,26 +16636,10 @@ "node": ">=8" } }, - "node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/webpack/node_modules/path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "license": "MIT", "engines": { "node": ">=4" } @@ -17273,7 +16649,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -17284,8 +16659,7 @@ "node_modules/@emotion/core/node_modules/@emotion/unitless": { "version": "0.7.5", "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", - "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", - "license": "MIT" + "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" }, "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { "version": "5.1.0", @@ -17475,21 +16849,6 @@ "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" }, - "node_modules/react-dev-utils/node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/csstype": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", @@ -17524,22 +16883,6 @@ "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==" }, - "node_modules/react-dev-utils/node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/jest-cli/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -17898,24 +17241,10 @@ "react-dom": "^16.0.0-0" } }, - "node_modules/react-dev-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, "node_modules/watchpack-chokidar2/node_modules/is-extendable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "license": "MIT", "optional": true, "dependencies": { "is-plain-object": "^2.0.4" @@ -18042,18 +17371,6 @@ "node": ">= 8" } }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, "node_modules/jest-config/node_modules/babel-jest": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-28.1.3.tgz", @@ -18428,16 +17745,6 @@ "hoist-non-react-statics": "^3.3.0" } }, - "node_modules/pkg-up/node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/pinkie": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", @@ -18636,22 +17943,6 @@ "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" }, - "node_modules/react-dev-utils/node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/@npmcli/fs": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", @@ -18930,6 +18221,18 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, "node_modules/@babel/plugin-transform-modules-systemjs": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.1.tgz", @@ -18991,7 +18294,6 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -18999,20 +18301,7 @@ "node_modules/iferr": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==", - "license": "MIT" - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz", - "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } + "integrity": "sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==" }, "node_modules/@csstools/postcss-logical-overscroll-behavior": { "version": "1.0.1", @@ -19295,7 +18584,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz", "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", - "license": "ISC", "dependencies": { "figgy-pudding": "^3.5.1" } @@ -19437,13 +18725,6 @@ "node": ">= 0.4" } }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, "node_modules/normalize-url": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz", @@ -19486,7 +18767,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "license": "MIT", "optional": true, "dependencies": { "is-descriptor": "^1.0.2", @@ -19638,48 +18918,23 @@ } }, "node_modules/@testing-library/jest-dom": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.4.2.tgz", - "integrity": "sha512-CzqH0AFymEMG48CpzXFriYYkOjk6ZGPCLMhW9e9jg3KMCn5OfJecF8GtGW7yGfR/IgCe3SX8BSwjdzI6BBbZLw==", + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.6.3.tgz", + "integrity": "sha512-IteBhl4XqYNkM54f4ejhLRJiZNqcSCoXUOG2CPK7qbD322KjQozM4kHQOfkG2oln9b9HTYqs+Sae8vBATubxxA==", "dev": true, "dependencies": { - "@adobe/css-tools": "^4.3.2", - "@babel/runtime": "^7.9.2", + "@adobe/css-tools": "^4.4.0", "aria-query": "^5.0.0", "chalk": "^3.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", - "lodash": "^4.17.15", + "lodash": "^4.17.21", "redent": "^3.0.0" }, "engines": { "node": ">=14", "npm": ">=6", "yarn": ">=1" - }, - "peerDependencies": { - "@jest/globals": ">= 28", - "@types/bun": "latest", - "@types/jest": ">= 28", - "jest": ">= 28", - "vitest": ">= 0.32" - }, - "peerDependenciesMeta": { - "@jest/globals": { - "optional": true - }, - "@types/bun": { - "optional": true - }, - "@types/jest": { - "optional": true - }, - "jest": { - "optional": true - }, - "vitest": { - "optional": true - } } }, "node_modules/browserslist": { @@ -19817,6 +19072,27 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/postcss-page-break": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/postcss-page-break/-/postcss-page-break-3.0.4.tgz", @@ -20224,19 +19500,6 @@ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, - "node_modules/file-loader/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, "node_modules/is-string": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", @@ -20382,7 +19645,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", - "license": "BSD-2-Clause", "dependencies": { "concat-stream": "^1.5.0", "duplexify": "^3.4.2", @@ -20542,18 +19804,6 @@ "node": ">=4.0" } }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, "node_modules/@babel/plugin-transform-shorthand-properties": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz", @@ -20581,7 +19831,6 @@ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", "dev": true, - "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } @@ -20620,19 +19869,6 @@ "node": ">=0.10.0" } }, - "node_modules/base/node_modules/is-descriptor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", - "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", - "license": "MIT", - "dependencies": { - "is-accessor-descriptor": "^1.0.1", - "is-data-descriptor": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/@types/babel__template": { "version": "7.4.4", "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", @@ -20649,16 +19885,6 @@ "integrity": "sha512-YbulWHdfP99UfZ73NcUDlNJhEIDgm9Doq9GhpyXbF+7Aegi3CVV7qqMCKTTqJxlvEvnQBp9IA+dxsGN6xK/nSg==", "dev": true }, - "node_modules/jest-environment-node/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/workbox-build/node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", @@ -20718,12 +19944,6 @@ "@xtuc/long": "4.2.2" } }, - "node_modules/@emotion/css/node_modules/@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "license": "MIT" - }, "node_modules/set-function-name": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", @@ -21264,22 +20484,6 @@ "postcss": "^8.4" } }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", - "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -21361,15 +20565,6 @@ "node": ">=0.10.0" } }, - "node_modules/flatted": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", - "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", - "dev": true, - "license": "ISC", - "optional": true, - "peer": true - }, "node_modules/@babel/plugin-transform-for-of": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz", @@ -21438,8 +20633,7 @@ "node_modules/@emotion/css/node_modules/csstype": { "version": "2.6.21", "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.21.tgz", - "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==", - "license": "MIT" + "integrity": "sha512-Z1PhmomIfypOpoMjRQB70jfvy/wxT50qW08YXO5lMIJkrdq4yOTR+AW7FqutScmB9NkLwxo+jU+kZLbofZZq/w==" }, "node_modules/bytes": { "version": "3.0.0", @@ -21527,22 +20721,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/react-dev-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/nan": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", @@ -21554,7 +20732,6 @@ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, - "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -21646,13 +20823,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/compression/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" - }, "node_modules/eslint-plugin-import/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -21716,23 +20886,10 @@ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10.0.0" } }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=18.18.0" - } - }, "node_modules/css-loader/node_modules/semver": { "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", @@ -21780,34 +20937,6 @@ "node": ">=4" } }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", - "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, "node_modules/chalk/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -21973,21 +21102,6 @@ "node": ">=4" } }, - "node_modules/@eslint/eslintrc/node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/body-parser/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -22084,8 +21198,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/read-pkg-up": { "version": "2.0.0", @@ -22155,25 +21268,6 @@ "node": ">=7.0.0" } }, - "node_modules/react-dev-utils/node_modules/eslint-scope": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", - "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/snapdragon-node/node_modules/define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", @@ -22531,7 +21625,6 @@ "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", "integrity": "sha512-hdrFxZOycD/g6A6SoI2bB5NA/5NEqD0569+S47WZhPvm46sD50ZHdYaFmnua5lndde9rCHGjmfK7Z8BuCt/PcQ==", "deprecated": "This package is no longer supported.", - "license": "ISC", "dependencies": { "aproba": "^1.1.1", "copy-concurrently": "^1.0.0", @@ -22638,20 +21731,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/react-dev-utils/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "engines": { - "node": ">=4.0" - } + "dev": true }, "node_modules/strict-uri-encode": { "version": "1.1.0", @@ -22718,16 +21798,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest/node_modules/@types/yargs": { - "version": "17.0.33", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", - "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/@jest/fake-timers/node_modules/jest-util": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", @@ -22978,7 +22048,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -23048,7 +22117,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "license": "MIT", "engines": { "node": ">=6" } @@ -23203,7 +22271,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", - "license": "MIT", "optional": true, "dependencies": { "extend-shallow": "^2.0.1", @@ -23220,7 +22287,6 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -23291,19 +22357,21 @@ } }, "node_modules/@jest/core/node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, - "license": "MIT", "dependencies": { - "is-core-module": "^2.13.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -23421,6 +22489,12 @@ "node": ">=0.10.0" } }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, "node_modules/@jest/types/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -23689,6 +22763,22 @@ "node": ">=8" } }, + "node_modules/jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/@babel/plugin-transform-sticky-regex": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.1.tgz", @@ -23771,32 +22861,6 @@ "url": "https://opencollective.com/core-js" } }, - "node_modules/@eslint/eslintrc": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", - "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/terser-webpack-plugin/node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -23983,6 +23047,11 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@emotion/core/node_modules/@emotion/memoize": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==" + }, "node_modules/jest-runtime/node_modules/jest-util": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz", @@ -24022,8 +23091,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==", - "deprecated": "This module is no longer supported.", - "license": "ISC" + "deprecated": "This module is no longer supported." }, "node_modules/detect-browser": { "version": "5.3.0", @@ -24035,7 +23103,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -24103,7 +23170,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -24531,6 +23597,15 @@ "wbuf": "^1.1.0" } }, + "node_modules/react-dev-utils/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/@types/connect-history-api-fallback": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz", @@ -25376,7 +24451,6 @@ "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "license": "ISC", "bin": { "semver": "bin/semver" } @@ -25783,18 +24857,6 @@ "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0" } }, - "node_modules/@eslint/js": { - "version": "9.15.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.15.0.tgz", - "integrity": "sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, "node_modules/jest-watcher/node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", @@ -25819,22 +24881,6 @@ "postcss": "^8.2.15" } }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, "node_modules/jest-validate/node_modules/jest-get-type": { "version": "28.0.2", "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-28.0.2.tgz", @@ -25941,7 +24987,6 @@ "url": "https://github.com/sponsors/sibiraj-s" } ], - "license": "MIT", "engines": { "node": ">=8" } @@ -26031,27 +25076,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/react-dev-utils/node_modules/@eslint-community/eslint-utils": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", - "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, "node_modules/crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", @@ -26082,19 +25106,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@jest/test-result/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", @@ -26244,7 +25255,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", - "license": "MIT", "optional": true, "dependencies": { "kind-of": "^3.0.2" @@ -26717,13 +25727,6 @@ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", "dev": true }, - "node_modules/postcss-loader/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, "node_modules/case-sensitive-paths-webpack-plugin": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.1.2.tgz", @@ -26734,11 +25737,14 @@ } }, "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -26793,16 +25799,6 @@ "postcss": "^8.2.15" } }, - "node_modules/restore-cursor/node_modules/mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/postcss-normalize-unicode": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.1.1.tgz", @@ -26820,9 +25816,9 @@ } }, "node_modules/@adobe/css-tools": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.3.tgz", - "integrity": "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.1.tgz", + "integrity": "sha512-12WGKBQzjUAI4ayyF4IAtfw2QR/IDoqk6jTddXDhtYTJF9ASmoE1zst7cVtP0aL/F1jUJL5r+JxKXKEgHNbEUQ==", "dev": true }, "node_modules/escodegen": { @@ -27334,7 +26330,6 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "license": "MIT", "optional": true, "engines": { "node": ">=0.10.0" @@ -27345,7 +26340,6 @@ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "dev": true, - "license": "MIT", "dependencies": { "universalify": "^2.0.0" }, @@ -27713,6 +26707,21 @@ "node": ">=0.10.0" } }, + "node_modules/jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", @@ -27775,6 +26784,21 @@ "node": ">=4" } }, + "node_modules/jest-mock/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, "node_modules/@testing-library/user-event/node_modules/regenerator-runtime": { "version": "0.14.1", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", @@ -27844,18 +26868,6 @@ "node": ">=8" } }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">= 4" - } - }, "node_modules/immer": { "version": "9.0.21", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", @@ -27908,7 +26920,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "stream-shift": "^1.0.0" @@ -27966,7 +26977,6 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "license": "MIT", "dependencies": { "duplexify": "^3.6.0", "inherits": "^2.0.3", @@ -28007,27 +27017,10 @@ "node": ">=8" } }, - "node_modules/@humanfs/node": { - "version": "0.16.6", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", - "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", - "dev": true, - "license": "Apache-2.0", - "optional": true, - "peer": true, - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.3.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, "node_modules/parallel-transform": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", - "license": "MIT", "dependencies": { "cyclist": "^1.0.1", "inherits": "^2.0.3", @@ -28274,26 +27267,6 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, - "node_modules/@eslint/eslintrc/node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "dev": true, - "license": "BSD-2-Clause", - "optional": true, - "peer": true, - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/jest": { "version": "28.1.3", "resolved": "https://registry.npmjs.org/jest/-/jest-28.1.3.tgz", @@ -28389,7 +27362,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "license": "MIT", "dependencies": { "locate-path": "^3.0.0" }, @@ -28443,19 +27415,6 @@ "node": ">=8" } }, - "node_modules/pkg-up/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/postcss-custom-properties": { "version": "13.3.6", "resolved": "https://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-13.3.6.tgz", @@ -28604,7 +27563,6 @@ "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "license": "MIT", "optional": true }, "node_modules/html-encoding-sniffer": { @@ -28736,21 +27694,6 @@ "postcss": "^8.4" } }, - "node_modules/@eslint/plugin-kit/node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/webpack/node_modules/micromatch/node_modules/extend-shallow": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", @@ -29147,22 +28090,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/husky/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/dom-serializer": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", @@ -29292,8 +28219,7 @@ "node_modules/jest-environment-jsdom/node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "license": "MIT" + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==" }, "node_modules/mdn-data": { "version": "2.0.14", @@ -29321,7 +28247,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -29410,18 +28335,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/react-dev-utils/node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/postcss-attribute-case-insensitive": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-6.0.3.tgz", diff --git a/package.json b/package.json index 4c36296..a917dec 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,8 @@ "@emotion/core": "^10.0.35", "@svgr/webpack": "^6.2.1", "@types/jest": "^28.0.0", - "amazon-connect-chatjs": "^3.0.2", + "amazon-connect-chatjs": "^3.0.3", + "braces": "^3.0.3", "core-js": "^3.8.3", "dompurify": "^3.1.3", "draft-js": "^0.11.7", @@ -118,8 +119,7 @@ "styled-components": "^4.1.1", "webpack": "^4.46.0", "whatwg-fetch": "^3.2.0", - "workbox-webpack-plugin": "^7.0.0", - "braces": "^3.0.3" + "workbox-webpack-plugin": "^7.0.0" }, "devDependencies": { "@babel/core": "^7.23.2", @@ -128,7 +128,7 @@ "@babel/preset-env": "^7.23.2", "@emotion/babel-plugin": "^11.11.0", "@testing-library/dom": "7.29.4", - "@testing-library/jest-dom": "^6.4.2", + "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^12.1.5", "@testing-library/user-event": "13.0.7", "@types/react": "^16.14.35", @@ -177,8 +177,8 @@ "postcss-preset-env": "^9.5.2", "postcss-safe-parser": "^7.0.0", "prop-types": "^15.8.1", - "react-intl": "^6.3.2", "react-dev-utils": "^12.0.0", + "react-intl": "^6.3.2", "react-render-html": "^0.6.0", "react-test-renderer": "^16.6.3", "resolve": "1.8.1", diff --git a/src/components/Chat/ChatContainer.js b/src/components/Chat/ChatContainer.js index 004182b..81c9ff0 100644 --- a/src/components/Chat/ChatContainer.js +++ b/src/components/Chat/ChatContainer.js @@ -5,7 +5,7 @@ import React, { Component } from "react"; import styled from "styled-components"; import { Button, Loader } from "connect-core"; import Chat from "./Chat"; -import ChatSession from "./ChatSession"; +import ChatSession, { setCurrentChatSessionInstance } from "./ChatSession"; import { initiateChat } from "./ChatInitiator"; import EventBus from "./eventbus"; import "./ChatInterface"; @@ -95,10 +95,14 @@ class ChatContainer extends Component { */ async submitChatInitiation(input, success, failure) { this.setState({ status: "Initiating" }); - + const customizationParams = { + authenticationRedirectUri: input.authenticationRedirectUri || '', + authenticationIdentityProvider: input.authenticationIdentityProvider || '' + } try { const chatDetails = await initiateChat(input); - const chatSession = await this.openChatSession(chatDetails, input.name, input.region, input.stage); + const chatSession = await this.openChatSession(chatDetails, input.name, input.region, input.stage, customizationParams); + setCurrentChatSessionInstance(chatSession); const attachmentsEnabled = (input.featurePermissions && input.featurePermissions[CHAT_FEATURE_TYPES.ATTACHMENTS]) || (chatDetails.featurePermissions && chatDetails.featurePermissions[CHAT_FEATURE_TYPES.ATTACHMENTS]); @@ -121,8 +125,8 @@ class ChatContainer extends Component { } } - openChatSession(chatDetails, name, region, stage) { - const chatSession = new ChatSession(chatDetails, name, region, stage); + openChatSession(chatDetails, name, region, stage, customizationParams) { + const chatSession = new ChatSession(chatDetails, name, region, stage, customizationParams); chatSession.onChatClose(() => { EventBus.trigger("endChat", {}); }); diff --git a/src/components/Chat/ChatContainer.test.js b/src/components/Chat/ChatContainer.test.js index 02e76fe..32faa3e 100644 --- a/src/components/Chat/ChatContainer.test.js +++ b/src/components/Chat/ChatContainer.test.js @@ -84,6 +84,12 @@ describe("", () => { onParticipantIdle: jest.fn().mockResolvedValue("aaa"), onChatRehydrated: jest.fn().mockResolvedValue("aaa"), onDeliveredReceipt: jest.fn().mockResolvedValue("aaa"), + onAuthenticationInitiated: jest.fn().mockResolvedValue("aaa"), + onAuthenticationTimeout: jest.fn().mockResolvedValue("aaa"), + onAuthenticationSuccessful: jest.fn().mockResolvedValue("aaa"), + onAuthenticationCanceled: jest.fn().mockResolvedValue("aaa"), + onAuthenticationFailed: jest.fn().mockResolvedValue("aaa"), + onParticipantDisplayNameUpdated: jest.fn().mockResolvedValue("aaa"), onEnded: jest.fn().mockResolvedValue("aaa"), onConnectionEstablished: jest.fn().mockResolvedValue("aaa"), connect: jest.fn().mockResolvedValue("aaa"), diff --git a/src/components/Chat/ChatEvents.js b/src/components/Chat/ChatEvents.js index c07c80b..07a5a04 100644 --- a/src/components/Chat/ChatEvents.js +++ b/src/components/Chat/ChatEvents.js @@ -14,6 +14,7 @@ export class ChatEvents { ); EventBus.on('agentEndChat', this.agentEndChat.bind(this)); EventBus.on('escalateToVoice', this.escalateToVoice.bind(this)); + EventBus.on("authenticationComplete", this.authenticationComplete.bind(this)) } _eventHandlers = { @@ -23,6 +24,7 @@ export class ChatEvents { 'push-notification-eligible-message-received': [], 'agent-end-chat': [], 'voice-escalation': [], + 'authentication-complete': [] }; onVoiceEscalation(callback) { @@ -54,6 +56,12 @@ export class ChatEvents { }); } + onAuthenticationComplete(callback) { + this.on("authentication-complete", function(...rest){ + callback(...rest); + }); + } + onAgentEndChat(callback) { this.on('agent-end-chat', function (...rest) { callback(...rest); @@ -93,6 +101,9 @@ export class ChatEvents { agentEndChat() { this._triggerEvent('agent-end-chat'); } + authenticationComplete() { + this._triggerEvent("authentication-complete"); + } } window.connect = window.connect || {}; diff --git a/src/components/Chat/ChatEvents.test.js b/src/components/Chat/ChatEvents.test.js index eeee8d5..8dec5dd 100644 --- a/src/components/Chat/ChatEvents.test.js +++ b/src/components/Chat/ChatEvents.test.js @@ -12,6 +12,11 @@ describe('ChatEvents', () => { expect(myFn).toBeCalled(); }); + test('authenticationComplete event', () => { + myChatEvent.onAuthenticationComplete(myFn); + EventBus.trigger("authenticationComplete", {}); + }) + test('escalateToVoice event', () => { myChatEvent.onVoiceEscalation(myFn); EventBus.trigger('escalateToVoice', {}); diff --git a/src/components/Chat/ChatSession.js b/src/components/Chat/ChatSession.js index 984549d..636643b 100644 --- a/src/components/Chat/ChatSession.js +++ b/src/components/Chat/ChatSession.js @@ -11,6 +11,14 @@ import isJson from "is-json"; const SYSTEM_EVENTS = Object.values(ContentType.EVENT_CONTENT_TYPE); const DEFAULT_PREFIX = "Amazon-Connect-ChatInterface-ChatSession"; +var CurrentChatSessionInstance = {}; +export function getCurrentChatSessionInstance () { + return CurrentChatSessionInstance; +} + +export function setCurrentChatSessionInstance (chatSession) { + CurrentChatSessionInstance = chatSession; +} // Low-level abstraction on top of Chat.JS class ChatJSClient { session = null; @@ -52,6 +60,30 @@ class ChatJSClient { return this.session.onChatRehydrated(handler); } + onAuthenticationInitiated(handler) { + return this.session.onAuthenticationInitiated(handler); + } + + onAuthenticationTimeout(handler) { + return this.session.onAuthenticationTimeout(handler); + } + + onAuthenticationFailed(handler) { + return this.session.onAuthenticationFailed(handler); + } + + onAuthenticationSuccessful(handler) { + return this.session.onAuthenticationSuccessful(handler); + } + + onAuthenticationCanceled(handler) { + return this.session.onAuthenticationCanceled(handler); + } + + onParticipantDisplayNameUpdated(handler) { + return this.session.onParticipantDisplayNameUpdated(handler); + } + onTyping(handler) { return this.session.onTyping(handler); } @@ -138,6 +170,14 @@ class ChatJSClient { describeView(viewTokenObj) { return this.session.describeView(viewTokenObj); } + + getAuthenticationUrl(authenticationConfiguration) { + return this.session.getAuthenticationUrl(authenticationConfiguration); + } + + cancelParticipantAuthentication(sessionId) { + return this.session.cancelParticipantAuthentication(sessionId); + } } class ChatSession { @@ -167,8 +207,9 @@ class ChatSession { "chat-closed": [], }; - constructor(chatDetails, displayName, region, stage) { + constructor(chatDetails, displayName, region, stage, customizationParams) { this.client = new ChatJSClient(chatDetails, region, stage); + this.customizationParams = customizationParams || {}; this.contactId = this.client.getContactId(); this.thisParticipant = { participantId: this.client.getParticipantId(), @@ -376,6 +417,19 @@ class ChatSession { return this.client.describeView(viewTokenObj); } + getAuthenticationUrl(sessionId) { + return this.client.getAuthenticationUrl({ + redirectUri: this.customizationParams.authenticationRedirectUri, + sessionId: sessionId + }); + } + + cancelParticipantAuthentication(sessionId) { + return this.client.cancelParticipantAuthentication({ + sessionId: sessionId + }); + } + loadPreviousTranscript() { console.log("loadPreviousTranscript in single"); var args = {}; @@ -453,6 +507,24 @@ class ChatSession { this.client.onEnded((data) => { this._handleEndedEvent(data); }); + this.client.onAuthenticationInitiated(async data => { + await this._handleAuthenticationInitiated(data); + }); + this.client.onAuthenticationTimeout(async data => { + await this._handleAuthenticationLifecycleEvent(data); + }); + this.client.onAuthenticationFailed(async data => { + await this._handleAuthenticationLifecycleEvent(data); + }); + this.client.onAuthenticationSuccessful(async data => { + await this._handleAuthenticationLifecycleEvent(data); + }); + this.client.onAuthenticationCanceled(async data => { + await this._handleAuthenticationLifecycleEvent(data); + }); + this.client.onParticipantDisplayNameUpdated(async data => { + this.authenticatedParticipantDisplayName = data.data.DisplayName; + }); this.client.onConnectionEstablished(async () => { await this._loadLatestTranscript(); }); @@ -793,6 +865,46 @@ class ChatSession { Eventbus.trigger('agentEndChat', {}); } + async _handleAuthenticationInitiated(data) { + var eventDetails = data.data, + identityProvider = this.customizationParams.authenticationIdentityProvider, + content = {}, + authenticationUrl = '', + sessionId = '', + item, + getAuthenticationUrlResponse; + try { + content = JSON.parse(eventDetails.Content || '{}'); + } catch (error) { + console.error("Invalid JSON content", error); + } + sessionId = content.SessionId; + item = modelUtils.createItemFromIncoming(eventDetails); + if (item) { + try { + getAuthenticationUrlResponse = await this.getAuthenticationUrl(sessionId); + authenticationUrl = getAuthenticationUrlResponse.data.AuthenticationUrl + } + catch (error) { + console.error("Unable to get sign in URL", error) + } + item.authenticationUrl = authenticationUrl; + if(identityProvider){ + item.authenticationUrl += `&identity_provider=${identityProvider}`; + } + this._shouldAddToTranscript(item) && this._addItemsToTranscript([item]); + } + } + + async _handleAuthenticationLifecycleEvent(data) { + var eventDetails = data.data; + var item = modelUtils.createItemFromIncoming(eventDetails); + if (item) { + Eventbus.trigger('authenticationComplete', {}); + this._shouldAddToTranscript(item) && this._addItemsToTranscript([item]); + } + } + // TYPING PARTICIPANTS _handleTypingEvent(dataInput) { diff --git a/src/components/Chat/ChatSession.test.js b/src/components/Chat/ChatSession.test.js index c2677b9..589518b 100644 --- a/src/components/Chat/ChatSession.test.js +++ b/src/components/Chat/ChatSession.test.js @@ -1,7 +1,7 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 -import ChatSession from "./ChatSession"; +import ChatSession, {getCurrentChatSessionInstance, setCurrentChatSessionInstance} from "./ChatSession"; import { AttachmentErrorType, ContentType, InteractiveMessageType } from "./datamodel/Model"; const ParticipantId = "123"; @@ -177,6 +177,8 @@ beforeAll(() => { }) ), describeView: jest.fn().mockResolvedValue("view"), + getAuthenticationUrl: jest.fn().mockResolvedValue("auth"), + cancelParticipantAuthentication: jest.fn().mockResolvedValue("auth") }; }, }, @@ -201,11 +203,16 @@ describe("ChatSession", () => { }, }; session = new ChatSession(chatDetails, region, stage); + setCurrentChatSessionInstance(session); }); test("logger should be defined when LogManager is available", () => { expect(session.logger).toBeDefined(); }); + test("getCurrentChatSession returns the current chat session", () => { + expect(getCurrentChatSessionInstance()).toBe(session); + }); + test("logger should be called when addOutgoingMessage is triggered", () => { session.addOutgoingMessage({}); expect(session.logger.info).toBeCalled(); @@ -236,6 +243,15 @@ describe("ChatSession", () => { session.closeChat(); expect(session.logger.info).toBeCalled(); }); + test("Authentication: should get auth url from chatJs", () => { + const returnVal = session.getAuthenticationUrl({sessionId: 'test', redirectUri: 'test'}); + expect(session.client.session.getAuthenticationUrl).toBeCalled(); + }); + + test("Authentication: should cancel authentication from chatJs", () => { + const returnVal = session.cancelParticipantAuthentication({sessionId: 'test'}); + expect(session.client.session.cancelParticipantAuthentication).toBeCalled(); + }); test("sendAttachment: should display correct message if ServiceQuotaExceeded", () => { const DEFAULT_MESSAGE = "DEFAULT_MESSAGE"; Object.values(AttachmentErrorType).forEach((exceptionType) => { @@ -311,6 +327,12 @@ describe("ChatSession", () => { onDeliveredReceipt: jest.fn().mockResolvedValue("aaa"), onEnded: jest.fn().mockResolvedValue("aaa"), onConnectionEstablished: jest.fn().mockResolvedValue("aaa"), + onAuthenticationInitiated: jest.fn().mockResolvedValue("aaa"), + onAuthenticationTimeout: jest.fn().mockResolvedValue("aaa"), + onAuthenticationSuccessful: jest.fn().mockResolvedValue("aaa"), + onAuthenticationCanceled: jest.fn().mockResolvedValue("aaa"), + onParticipantDisplayNameUpdated: jest.fn().mockResolvedValue("aaa"), + onAuthenticationFailed: jest.fn().mockResolvedValue("aaa"), connect: jest.fn().mockResolvedValue("aaa"), sendMessage: jest.fn().mockResolvedValue("aaa"), sendEvent: jest.fn().mockResolvedValue("bb"), @@ -329,6 +351,7 @@ describe("ChatSession", () => { ), getTranscript: () => Promise.resolve(transcriptResponse), describeView: jest.fn().mockResolvedValue("view"), + getAuthenticationUrl: jest.fn().mockResolvedValue("view"), }; }, }, @@ -374,6 +397,89 @@ describe("ChatSession", () => { eventCallback(idleMessage); expect(addItemsToTranscriptSpy).toHaveBeenCalledTimes(2); }); + test("should call authentication init event handler to update the transcript", async () => { + const session = new ChatSession(chatDetails, region, stage, { authenticationRedirectUri:'test', authenticationIdentityProvider: 'test'}); + session.customizationParams = { authenticationRedirectUri:'test', authenticationIdentityProvider: 'test'} + const addItemsToTranscriptSpy = jest.spyOn(session, '_handleAuthenticationInitiated'); + const getAuthURL = jest.spyOn(session, 'getAuthenticationUrl'); + session.openChatSession(true); + const eventCallback = + session.client.session.onAuthenticationInitiated.mock.calls[0][0]; + const connectionEstablishedCallback = + session.client.session.onConnectionEstablished.mock.calls[0][0]; + await connectionEstablishedCallback(); + const authMessage = { + data: { + Content: JSON.stringify({ + sessionId: 'dd' + }), + MessageMetadata: { + MessageId: "italics", + Receipts: [ + { + DeliveredTimestamp: new Date().toISOString(), + ReadTimestamp: new Date().toISOString(), + RecipientParticipantId: "123", + }, + ], + }, + InitialContactId: "eb628fa4-9667-464f-905b-36de2f86f202", + ContactId: "eb628fa4-9667-464f-905b-36de2f86f202", + }, + chatDetails: { + participantId: "participantId" + } + }; + eventCallback(authMessage); + expect(addItemsToTranscriptSpy).toHaveBeenCalledTimes(1); + expect(getAuthURL).toHaveBeenCalledTimes(1); + }); + + + test("should call authentication lifecycle event handler to update the transcript", async () => { + const session = new ChatSession(chatDetails, region, stage); + const addItemsToTranscriptSpy = jest.spyOn(session, '_handleAuthenticationLifecycleEvent'); + session.openChatSession(true); + const eventCallbackCancelled = + session.client.session.onAuthenticationCanceled.mock.calls[0][0]; + const eventCallbackFailed = + session.client.session.onAuthenticationFailed.mock.calls[0][0]; + const eventCallbackSuccess = + session.client.session.onAuthenticationSuccessful.mock.calls[0][0]; + const eventCallbackTimeout = + session.client.session.onAuthenticationTimeout.mock.calls[0][0]; + const connectionEstablishedCallback = + session.client.session.onConnectionEstablished.mock.calls[0][0]; + await connectionEstablishedCallback(); + const authMessage = { + data: { + Content: JSON.stringify({ + sessionId: 'dd' + }), + MessageMetadata: { + MessageId: "italics", + Receipts: [ + { + DeliveredTimestamp: new Date().toISOString(), + ReadTimestamp: new Date().toISOString(), + RecipientParticipantId: "123", + }, + ], + }, + InitialContactId: "eb628fa4-9667-464f-905b-36de2f86f202", + ContactId: "eb628fa4-9667-464f-905b-36de2f86f202", + }, + chatDetails: { + participantId: "participantId" + } + }; + eventCallbackCancelled(authMessage); + eventCallbackFailed(authMessage); + eventCallbackSuccess(authMessage); + eventCallbackTimeout(authMessage); + expect(addItemsToTranscriptSpy).toHaveBeenCalledTimes(4); + }); + test("should register Read and Delivered and idle events", () => { const session = new ChatSession(chatDetails, region, stage); session.openChatSession(true); @@ -383,6 +489,11 @@ describe("ChatSession", () => { expect(session.client.session.onAutoDisconnection).toBeCalled(); expect(session.client.session.onDeliveredReceipt).toBeCalled(); expect(session.client.session.onChatRehydrated).toBeCalled(); + expect(session.client.session.onAuthenticationInitiated).toBeCalled(); + expect(session.client.session.onAuthenticationCanceled).toBeCalled(); + expect(session.client.session.onAuthenticationFailed).toBeCalled(); + expect(session.client.session.onAuthenticationSuccessful).toBeCalled(); + expect(session.client.session.onParticipantDisplayNameUpdated).toBeCalled(); }); test("should not update transcript if messageId not found", async () => { const session = new ChatSession(chatDetails, region, stage); diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.js b/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.js new file mode 100644 index 0000000..425aeec --- /dev/null +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.js @@ -0,0 +1,113 @@ +import React, { useState } from 'react'; +import { FormattedMessage } from 'react-intl'; +import styled from 'styled-components'; +import { AUTHENTICATION_POPUP_HEIGHT, AUTHENTICATION_POPUP_WIDTH } from '../../../Chat/constants'; +import { ContentType } from "../../datamodel/Model"; +import { getCurrentChatSessionInstance } from '../../ChatSession'; + +const AuthenticationEventText = styled.button` + background: none; + border: none; + color: ${(props) => (props.disabled ? '#879596' : props.visited ? '#232F3E' : '#0972D3')}; + text-align: center; + font-family: "Amazon Ember"; + font-style: normal; + font-weight: 400; + line-height: 30px; + cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')}; + text-decoration: ${(props) => (props.disabled ? 'none' : 'underline')}; + pointer-events: ${(props) => (props.disabled ? 'none' : 'auto')}; + &:focus { + outline: none; + } +`; + +const messages = { + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_EXPIRED]: { + id: 'transcriptor.authenticationExpired', + defaultMessage: 'Sign in expired', + }, + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_FAILED]: { + id: 'transcriptor.authenticationFailed', + defaultMessage: 'Sign in failed', + }, + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_TIMEOUT]: { + id: 'transcriptor.authenticationTimeout', + defaultMessage: 'Sign in cancelled', + }, + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_CANCELLED]: { + id: 'transcriptor.authenticationTimeout', + defaultMessage: 'Sign in cancelled', + }, + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_SUCCESSFUL]: { + id: 'transcriptor.authenticationSuccessful', + defaultMessage: 'You are now signed in to your account' + }, + [ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED]: { + id: 'transcriptor.authenticationInitiated', + defaultMessage: 'Please sign into your account', + }, +}; + +const AuthenticationMessage = ({ link, content }) => { + const [linksDisabled, setLinksDisabled] = useState(false); + const [authLinkVisited, setAuthLinkVisited] = useState(false); + const [cancelLinkVisited, setCancelLinkVisited] = useState(false); + const eventType = content.type; + let sessionId; + try { + sessionId = JSON.parse(content.data).SessionId; + } catch (error) { + console.error("Invalid JSON content", error); + } + + connect.ChatEvents.onAuthenticationComplete((callback) => { + setLinksDisabled(true); + }); + + const openLink = (event) => { + event.preventDefault(); + if (!linksDisabled) { + setAuthLinkVisited(true); + window.open(link, '_blank', `width=${AUTHENTICATION_POPUP_WIDTH},height=${AUTHENTICATION_POPUP_HEIGHT}`); + } + }; + + const cancelSignIn = (event) => { + event.preventDefault(); + setCancelLinkVisited(true); + var chatSession = getCurrentChatSessionInstance(); + chatSession.cancelParticipantAuthentication(sessionId); + }; + + const { id, defaultMessage } = messages[eventType] || {}; + + return ( + <> + {eventType === ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED && ( + <> + {link ? ( + + + + ) : ( + + + + )} +
+ + + + + )} + {eventType !== ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED && ( + + + + )} + + ); +}; + +export { AuthenticationMessage }; diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.test.js b/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.test.js new file mode 100644 index 0000000..56aacba --- /dev/null +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/AuthenticationMessage.test.js @@ -0,0 +1,120 @@ +import React from 'react'; +import { render, screen, fireEvent } from '@testing-library/react'; +import { AuthenticationMessage } from './AuthenticationMessage'; +import { IntlProvider } from "react-intl"; +import { ThemeProvider } from "../../../../theme"; +import { ContentType } from "../../datamodel/Model"; +import { getCurrentChatSessionInstance } from '../../ChatSession'; // Adjust the import path accordingly + +window.open = jest.fn(); +window.connect = jest.fn(); +window.connect.ChatEvents = jest.fn(); +window.connect.ChatEvents.onAuthenticationComplete = jest.fn(); +jest.mock('../../ChatSession', () => ({ + getCurrentChatSessionInstance: jest.fn(), +})); +describe('AuthenticationMessage', () => { + const link = 'https://www.example.com'; + const loginText = 'Please sign into your account'; + const failedText = 'Sign in failed'; + const cancelText = 'Continue without signing in'; + const successText = 'You are now signed in to your account'; + const cancelEventText = 'Sign in cancelled'; + + const renderComponent = (customProps) => { + render( + + + + + + ); + }; + + beforeEach(() => { + jest.clearAllMocks(); // Clear mocks before each test + }); + it('calls cancelParticipantAuthentication when cancel link is clicked', () => { + const mockCancelParticipantAuthentication = jest.fn(); + const mockChatSession = { + cancelParticipantAuthentication: mockCancelParticipantAuthentication, + }; + getCurrentChatSessionInstance.mockReturnValue(mockChatSession); + const sessionId = 'testSessionId'; + + renderComponent({ + link, + content: { + type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED, + data: JSON.stringify({ SessionId: sessionId }) + } + }); + + const cancelLink = screen.getByText(cancelText); + fireEvent.click(cancelLink); + + expect(mockCancelParticipantAuthentication).toHaveBeenCalledWith(sessionId); + }); + it('renders the message correctly when AUTHENTICATION_INITIATED', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED }}); + expect(screen.getByText(loginText)).toBeInTheDocument(); + expect(screen.getByText(cancelText)).toBeInTheDocument(); + }); + + it('opens a new window when the login button is clicked', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED }}); + const loginButton = screen.getByText(loginText); + fireEvent.click(loginButton); + expect(window.open).toHaveBeenCalledWith(link, '_blank', 'width=600,height=600'); + }); + + it('disables the buttons after authentication is cancelled', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_CANCELLED }}); + const text = screen.getByText(cancelEventText); + + connect.ChatEvents.onAuthenticationComplete.mock.calls[0][0](); + + // Now buttons should be disabled + expect(text).toBeDisabled(); + }); + + it('disables the buttons after authentication is successful', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_SUCCESSFUL }}); + const text = screen.getByText(successText); + connect.ChatEvents.onAuthenticationComplete.mock.calls[0][0](); + expect(text).toBeDisabled(); + }); + + it('disables the buttons after authentication is failed', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_FAILED }}); + const text = screen.getByText(failedText); + connect.ChatEvents.onAuthenticationComplete.mock.calls[0][0](); + expect(text).toBeDisabled(); + }); + + it('renders the appropriate message for other event types', () => { + renderComponent({ content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_TIMEOUT }}); + expect(screen.getByText('Sign in cancelled')).toBeInTheDocument(); + }); + + it('does not open a new window when the button is disabled', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED } }); + const loginButton = screen.getByText(loginText); + connect.ChatEvents.onAuthenticationComplete.mock.calls[0][0](); + fireEvent.click(loginButton); + + // window.open should not be called again since the button is disabled + expect(window.open).toHaveBeenCalledTimes(0); + }); + + it('changes the button color after being clicked (visited state)', () => { + renderComponent({ link, content: {type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED }}); + const loginButton = screen.getByText(loginText); + const cancelButton = screen.getByText(cancelText); + + // Simulate clicking the login button + fireEvent.click(loginButton); + expect(loginButton).toHaveStyle('color: #232F3E'); + + }); +}); diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/ChatMessage.js b/src/components/Chat/ChatTranscriptor/ChatMessages/ChatMessage.js index b26af8a..13ff7cf 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/ChatMessage.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/ChatMessage.js @@ -6,6 +6,7 @@ import { FormattedMessage } from "react-intl"; import styled from "styled-components"; import PT from "prop-types"; import Linkify from "react-linkify"; +import { getCurrentChatSessionInstance } from "../../ChatSession"; import { ATTACHMENT_MESSAGE, AttachmentStatus, @@ -173,7 +174,11 @@ export class ParticipantMessage extends PureComponent { renderHeader() { const isOutgoingMsg = this.props.messageDetails.transportDetails.direction === Direction.Outgoing; - const displayName = this.props.messageDetails.displayName || (isOutgoingMsg ? "Customer" : "Agent"); + const authenticatedParticipantDisplayName = getCurrentChatSessionInstance().authenticatedParticipantDisplayName; + let displayName = this.props.messageDetails.displayName || (isOutgoingMsg ? "Customer" : "Agent"); + if(isOutgoingMsg && authenticatedParticipantDisplayName){ + displayName = authenticatedParticipantDisplayName; + } const transportDetails = this.props.messageDetails.transportDetails; const statusStringPrefix = "connect-chat-transport-status-"; diff --git a/src/components/Chat/ChatTranscriptor/ChatMessages/SystemMessage.js b/src/components/Chat/ChatTranscriptor/ChatMessages/SystemMessage.js index 8b2a23a..a5da84a 100644 --- a/src/components/Chat/ChatTranscriptor/ChatMessages/SystemMessage.js +++ b/src/components/Chat/ChatTranscriptor/ChatMessages/SystemMessage.js @@ -5,10 +5,11 @@ import React from "react"; import { FormattedMessage } from "react-intl"; import PT from "prop-types"; import { ContentType } from "../../datamodel/Model"; - +import { AuthenticationMessage } from './AuthenticationMessage' export class SystemMessage extends React.PureComponent { static propTypes = { - messageDetails: PT.object.isRequired + messageDetails: PT.object.isRequired, + authenticationUrl: PT.string }; static defaultProps = {}; @@ -17,7 +18,9 @@ export class SystemMessage extends React.PureComponent { console.log("SystemMessage getMessageText"); console.log(this.props); let name = this.props.messageDetails.displayName; - switch (this.props.messageDetails.content.type) { + const type = this.props.messageDetails.content.type; + const content = this.props.messageDetails.content; + switch (type) { case ContentType.EVENT_CONTENT_TYPE.PARTICIPANT_JOINED: name = this.props.messageDetails.displayName; return ; + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED: + return + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_EXPIRED: + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_FAILED: + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_SUCCESSFUL: + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_TIMEOUT: + case ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_CANCELLED: + return case ContentType.EVENT_CONTENT_TYPE.CHAT_ENDED: return { let wrapper = null; const additionalProps = { @@ -35,6 +37,30 @@ describe("SystemMessage", () => { wrapper = createSystemMessage(joinedEvent); expect(wrapper.html()).toContain(`${TEST_DISPLAY_NAME} has joined the chat`); }); + + it("should render auth initiated event successfully", () => { + const joinedEvent = { + content: { + type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_INITIATED, + }, + displayName: TEST_DISPLAY_NAME, + authenticationUrl: 'www.example.com' + } + wrapper = createSystemMessage(joinedEvent); + expect(wrapper.html()).toContain(`Please sign into your account`); + }); + + it("should render auth cancelled event successfully", () => { + const event = { + content: { + type: ContentType.EVENT_CONTENT_TYPE.AUTHENTICATION_CANCELLED, + }, + displayName: TEST_DISPLAY_NAME, + authenticationUrl: 'www.example.com' + } + wrapper = createSystemMessage(event); + expect(wrapper.html()).toContain(`Sign in cancelled`); + }); it("should render left event successfully", () => { const leftEvent = { diff --git a/src/components/Chat/constants.js b/src/components/Chat/constants.js index be255ea..764e0d2 100644 --- a/src/components/Chat/constants.js +++ b/src/components/Chat/constants.js @@ -29,3 +29,6 @@ export const INTERACTIVE_MESSAGE = { }, VERSION: "1.0" } + +export const AUTHENTICATION_POPUP_WIDTH = 600; +export const AUTHENTICATION_POPUP_HEIGHT = 600; \ No newline at end of file diff --git a/src/components/Chat/datamodel/Model.js b/src/components/Chat/datamodel/Model.js index 2221ae3..f645f3d 100644 --- a/src/components/Chat/datamodel/Model.js +++ b/src/components/Chat/datamodel/Model.js @@ -23,6 +23,13 @@ export const ContentType = { PARTICIPANT_DISCONNECT: "application/vnd.amazonaws.connect.event.participant.autodisconnection", PARTICIPANT_RETURNED: "application/vnd.amazonaws.connect.event.participant.returned", CONNECTION_ACKNOWLEDGED: "application/vnd.amazonaws.connect.event.connection.acknowledged", + AUTHENTICATION_INITIATED: "application/vnd.amazonaws.connect.event.authentication.initiated", + AUTHENTICATION_SUCCESSFUL: "application/vnd.amazonaws.connect.event.authentication.succeeded", + AUTHENTICATION_FAILED: "application/vnd.amazonaws.connect.event.authentication.failed", + AUTHENTICATION_TIMEOUT: "application/vnd.amazonaws.connect.event.authentication.timeout", + AUTHENTICATION_EXPIRED: "application/vnd.amazonaws.connect.event.authentication.expired", + AUTHENTICATION_CANCELLED: "application/vnd.amazonaws.connect.event.authentication.cancelled", + DISPLAY_NAME_UPDATED: "application/vnd.amazonaws.connect.event.participant.displayname.updated", CHAT_ENDED: "application/vnd.amazonaws.connect.event.chat.ended", }, MESSAGE_CONTENT_TYPE: {