@botfabrik/engine-webclient 4.26.0 → 4.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/embed/bundle.js +1 -1
- package/dist/embed/bundle.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -323,6 +323,14 @@ Beispiel:
|
|
|
323
323
|
|
|
324
324
|
`chatbot.triggerStory("GET_STARTED");`
|
|
325
325
|
|
|
326
|
+
### isChatbotLoaded
|
|
327
|
+
|
|
328
|
+
Gibt `true` zurück, wenn der Chatbot geladen und der FAB sichtbar ist.
|
|
329
|
+
|
|
330
|
+
Beispiel:
|
|
331
|
+
|
|
332
|
+
`const isLoaded = chatbot.isChatbotLoaded();`
|
|
333
|
+
|
|
326
334
|
### subscribe
|
|
327
335
|
|
|
328
336
|
Erlaub das Registrieren von Event-Handlers.
|
package/dist/embed/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var chatbot=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?n(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t,e){return t(e={exports:{}},e.exports),e.exports}var d=function(t){return t&&t.Math==Math&&t},v=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof f&&f)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},g=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b={f:m&&!y.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:y},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x={}.toString,S=function(t){return x.call(t).slice(8,-1)},E="".split,O=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?E.call(t,""):Object(t)}:Object,j=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return O(j(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_=function(t,e){if(!A(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!A(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},R=function(t){return Object(j(t))},k={}.hasOwnProperty,I=function(t,e){return k.call(R(t),e)},P=v.document,$=A(P)&&A(P.createElement),C=function(t){return $?P.createElement(t):{}},L=!g&&!h((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,U={f:g?M:function(t,e){if(t=T(t),e=_(e,!0),L)try{return M(t,e)}catch(t){}if(I(t,e))return w(!b.f.call(t,e),t[e])}},N=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,z={f:g?D:function(t,e,n){if(N(t),e=_(e,!0),N(n),L)try{return D(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},F=g?function(t,e,n){return z.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},B=function(t,e){try{F(v,t,e)}catch(n){v[t]=e}return e},G=v["__core-js_shared__"]||B("__core-js_shared__",{}),W=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return W.call(t)});var q,H,Y,K=G.inspectSource,V=v.WeakMap,J="function"==typeof V&&/native code/.test(K(V)),Q=p((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,Z=Math.random(),tt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+Z).toString(36)},et=Q("keys"),nt=function(t){return et[t]||(et[t]=tt(t))},rt={},ot=v.WeakMap;if(J||G.state){var it=G.state||(G.state=new ot),ct=it.get,at=it.has,ut=it.set;q=function(t,e){if(at.call(it,t))throw new TypeError("Object already initialized");return e.facade=t,ut.call(it,t,e),e},H=function(t){return ct.call(it,t)||{}},Y=function(t){return at.call(it,t)}}else{var lt=nt("state");rt[lt]=!0,q=function(t,e){if(I(t,lt))throw new TypeError("Object already initialized");return e.facade=t,F(t,lt,e),e},H=function(t){return I(t,lt)?t[lt]:{}},Y=function(t){return I(t,lt)}}var st={set:q,get:H,has:Y,enforce:function(t){return Y(t)?H(t):q(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=H(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},ft=p((function(t){var e=st.get,n=st.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var c,a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||I(o,"name")||F(o,"name",e),(c=n(o)).source||(c.source=r.join("string"==typeof e?e:""))),t!==v?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:F(t,e,o)):u?t[e]=o:B(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||K(this)}))})),pt=v,dt=function(t){return"function"==typeof t?t:void 0},vt=function(t,e){return arguments.length<2?dt(pt[t])||dt(v[t]):pt[t]&&pt[t][e]||v[t]&&v[t][e]},ht=Math.ceil,gt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?gt:ht)(t)},mt=Math.min,bt=function(t){return t>0?mt(yt(t),9007199254740991):0},wt=Math.max,xt=Math.min,St=function(t,e){var n=yt(t);return n<0?wt(n+e,0):xt(n,e)},Et=function(t){return function(e,n,r){var o,i=T(e),c=bt(i.length),a=St(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Ot={includes:Et(!0),indexOf:Et(!1)}.indexOf,jt=function(t,e){var n,r=T(t),o=0,i=[];for(n in r)!I(rt,n)&&I(r,n)&&i.push(n);for(;e.length>o;)I(r,n=e[o++])&&(~Ot(i,n)||i.push(n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=Tt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(t){return jt(t,At)}},Rt={f:Object.getOwnPropertySymbols},kt=vt("Reflect","ownKeys")||function(t){var e=_t.f(N(t)),n=Rt.f;return n?e.concat(n(t)):e},It=function(t,e){for(var n=kt(e),r=z.f,o=U.f,i=0;i<n.length;i++){var c=n[i];I(t,c)||r(t,c,o(e,c))}},Pt=/#|\.prototype\./,$t=function(t,e){var n=Lt[Ct(t)];return n==Ut||n!=Mt&&("function"==typeof e?h(e):!!e)},Ct=$t.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},Lt=$t.data={},Mt=$t.NATIVE="N",Ut=$t.POLYFILL="P",Nt=$t,Dt=U.f,zt=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,l=t.stat;if(n=u?v:l?v[a]||B(a,{}):(v[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Dt(n,r))&&c.value:n[r],!Nt(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;It(i,o)}(t.sham||o&&o.sham)&&F(i,"sham",!0),ft(n,r,i,t)}},Ft=function(){var t=N(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Bt(t,e){return RegExp(t,e)}var Gt,Wt,qt={UNSUPPORTED_Y:h((function(){var t=Bt("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:h((function(){var t=Bt("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ht=RegExp.prototype.exec,Yt=Q("native-string-replace",String.prototype.replace),Kt=Ht,Vt=(Gt=/a/,Wt=/b*/g,Ht.call(Gt,"a"),Ht.call(Wt,"a"),0!==Gt.lastIndex||0!==Wt.lastIndex),Jt=qt.UNSUPPORTED_Y||qt.BROKEN_CARET,Qt=void 0!==/()??/.exec("")[1];(Vt||Qt||Jt)&&(Kt=function(t){var e,n,r,o,i=this,c=Jt&&i.sticky,a=Ft.call(i),u=i.source,l=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",a)),Qt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Vt&&(e=i.lastIndex),r=Ht.call(c?n:i,s),c?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Vt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Qt&&r&&r.length>1&&Yt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Xt=Kt;zt({target:"RegExp",proto:!0,forced:/./.exec!==Xt},{exec:Xt});var Zt,te,ee=vt("navigator","userAgent")||"",ne=v.process,re=ne&&ne.versions,oe=re&&re.v8;oe?te=(Zt=oe.split("."))[0]<4?1:Zt[0]+Zt[1]:ee&&(!(Zt=ee.match(/Edge\/(\d+)/))||Zt[1]>=74)&&(Zt=ee.match(/Chrome\/(\d+)/))&&(te=Zt[1]);var ie=te&&+te,ce=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())||!Symbol.sham&&ie&&ie<41})),ae=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Q("wks"),le=v.Symbol,se=ae?le:le&&le.withoutSetter||tt,fe=function(t){return I(ue,t)&&(ce||"string"==typeof ue[t])||(ce&&I(le,t)?ue[t]=le[t]:ue[t]=se("Symbol."+t)),ue[t]},pe=fe("species"),de=RegExp.prototype,ve=!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),he="$0"==="a".replace(/./,"$0"),ge=fe("replace"),ye=!!/./[ge]&&""===/./[ge]("a","$0"),me=!h((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),be=function(t,e,n,r){var o=fe(t),i=!h((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!h((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[pe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!ve||!he||ye)||"split"===t&&!me){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Xt||c===de.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:he,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ye}),l=u[0],s=u[1];ft(String.prototype,t,l),ft(de,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&F(de[o],"sham",!0)},we=fe("match"),xe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Se=fe("species"),Ee=function(t,e){var n,r=N(t).constructor;return void 0===r||null==(n=N(r)[Se])?e:xe(n)},Oe=function(t){return function(e,n){var r,o,i=String(j(e)),c=yt(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},je={codeAt:Oe(!1),charAt:Oe(!0)},Te=je.charAt,Ae=function(t,e,n){return e+(n?Te(t,e).length:1)},_e=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==S(t))throw TypeError("RegExp#exec called on incompatible receiver");return Xt.call(t,e)},Re=qt.UNSUPPORTED_Y,ke=[].push,Ie=Math.min;be("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,o,i=String(j(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!A(r=t)||!(void 0!==(o=r[we])?o:"RegExp"==S(r)))return e.call(i,t,c);for(var a,u,l,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=new RegExp(t.source,f+"g");(a=Xt.call(d,i))&&!((u=d.lastIndex)>p&&(s.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&ke.apply(s,a.slice(1)),l=a[0].length,p=u,s.length>=c));)d.lastIndex===a.index&&d.lastIndex++;return p===i.length?!l&&d.test("")||s.push(""):s.push(i.slice(p)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=j(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=N(t),a=String(this),u=Ee(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Re?"g":"y"),f=new u(Re?"^(?:"+c.source+")":c,s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===_e(f,a)?[a]:[];for(var d=0,v=0,h=[];v<a.length;){f.lastIndex=Re?0:v;var g,y=_e(f,Re?a.slice(v):a);if(null===y||(g=Ie(bt(f.lastIndex+(Re?v:0)),a.length))===d)v=Ae(a,v,l);else{if(h.push(a.slice(d,v)),h.length===p)return h;for(var m=1;m<=y.length-1;m++)if(h.push(y[m]),h.length===p)return h;v=d=g}}return h.push(a.slice(d)),h}]}),Re);var Pe,$e=Object.keys||function(t){return jt(t,Tt)},Ce=g?Object.defineProperties:function(t,e){N(t);for(var n,r=$e(e),o=r.length,i=0;o>i;)z.f(t,n=r[i++],e[n]);return t},Le=vt("document","documentElement"),Me=nt("IE_PROTO"),Ue=function(){},Ne=function(t){return"<script>"+t+"<\/script>"},De=function(){try{Pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=Pe?function(t){t.write(Ne("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Pe):((e=C("iframe")).style.display="none",Le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ne("document.F=Object")),t.close(),t.F);for(var n=Tt.length;n--;)delete De.prototype[Tt[n]];return De()};rt[Me]=!0;var ze=Object.create||function(t,e){var n;return null!==t?(Ue.prototype=N(t),n=new Ue,Ue.prototype=null,n[Me]=t):n=De(),void 0===e?n:Ce(n,e)},Fe=[].slice,Be={},Ge=function(t,e,n){if(!(e in Be)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Be[e]=Function("C,a","return new C("+r.join(",")+")")}return Be[e](t,n)},We=Function.bind||function(t){var e=xe(this),n=Fe.call(arguments,1),r=function(){var o=n.concat(Fe.call(arguments));return this instanceof r?Ge(e,o.length,o):e.apply(t,o)};return A(e.prototype)&&(r.prototype=e.prototype),r},qe=vt("Reflect","construct"),He=h((function(){function t(){}return!(qe((function(){}),[],t)instanceof t)})),Ye=!h((function(){qe((function(){}))})),Ke=He||Ye;function Ve(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}zt({target:"Reflect",stat:!0,forced:Ke,sham:Ke},{construct:function(t,e){xe(t),N(e);var n=arguments.length<3?t:xe(arguments[2]);if(Ye&&!He)return qe(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(We.apply(t,r))}var o=n.prototype,i=ze(A(o)?o:Object.prototype),c=Function.apply.call(t,i,e);return A(c)?c:i}});var Qe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xe=function(t,e,n){if(xe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ze=Array.isArray||function(t){return"Array"==S(t)},tn=fe("species"),en=function(t,e){var n;return Ze(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[tn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},nn=[].push,rn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,l,s,f){for(var p,d,v=R(u),h=O(v),g=Xe(l,s,3),y=bt(h.length),m=0,b=f||en,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in h)&&(d=g(p=h[m],m,v),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:nn.call(w,p)}else switch(t){case 4:return!1;case 7:nn.call(w,p)}return i?-1:r||o?o:w}},on={forEach:rn(0),map:rn(1),filter:rn(2),some:rn(3),every:rn(4),find:rn(5),findIndex:rn(6),filterOut:rn(7)},cn=function(t,e){var n=[][t];return!!n&&h((function(){n.call(null,e||function(){throw 1},1)}))},an=on.forEach,un=cn("forEach")?[].forEach:function(t){return an(this,t,arguments.length>1?arguments[1]:void 0)};for(var ln in Qe){var sn=v[ln],fn=sn&&sn.prototype;if(fn&&fn.forEach!==un)try{F(fn,"forEach",un)}catch(t){fn.forEach=un}}var pn=h((function(){$e(1)}));zt({target:"Object",stat:!0,forced:pn},{keys:function(t){return $e(R(t))}});var dn=function(t,e,n){var r=_(e);r in t?z.f(t,r,w(0,n)):t[r]=n},vn=fe("species"),hn=function(t){return ie>=51||!h((function(){var e=[];return(e.constructor={})[vn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=hn("slice"),yn=fe("species"),mn=[].slice,bn=Math.max;zt({target:"Array",proto:!0,forced:!gn},{slice:function(t,e){var n,r,o,i=T(this),c=bt(i.length),a=St(t,c),u=St(void 0===e?c:e,c);if(Ze(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[yn])&&(n=void 0):n=void 0,n===Array||void 0===n))return mn.call(i,a,u);for(r=new(void 0===n?Array:n)(bn(u-a,0)),o=0;a<u;a++,o++)a in i&&dn(r,o,i[a]);return r.length=o,r}});var wn=fe("unscopables"),xn=Array.prototype;null==xn[wn]&&z.f(xn,wn,{configurable:!0,value:ze(null)});var Sn,En,On,jn=function(t){xn[wn][t]=!0},Tn={},An=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_n=nt("IE_PROTO"),Rn=Object.prototype,kn=An?Object.getPrototypeOf:function(t){return t=R(t),I(t,_n)?t[_n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Rn:null},In=fe("iterator"),Pn=!1;[].keys&&("next"in(On=[].keys())?(En=kn(kn(On)))!==Object.prototype&&(Sn=En):Pn=!0),(null==Sn||h((function(){var t={};return Sn[In].call(t)!==t})))&&(Sn={}),I(Sn,In)||F(Sn,In,(function(){return this}));var $n={IteratorPrototype:Sn,BUGGY_SAFARI_ITERATORS:Pn},Cn=z.f,Ln=fe("toStringTag"),Mn=function(t,e,n){t&&!I(t=n?t:t.prototype,Ln)&&Cn(t,Ln,{configurable:!0,value:e})},Un=$n.IteratorPrototype,Nn=function(){return this},Dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return N(n),function(t){if(!A(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),zn=$n.IteratorPrototype,Fn=$n.BUGGY_SAFARI_ITERATORS,Bn=fe("iterator"),Gn=function(){return this},Wn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=ze(Un,{next:w(1,n)}),Mn(t,r,!1),Tn[r]=Nn}(n,e,r);var a,u,l,s=function(t){if(t===o&&h)return h;if(!Fn&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[Bn]||d["@@iterator"]||o&&d[o],h=!Fn&&v||s(o),g="Array"==e&&d.entries||v;if(g&&(a=kn(g.call(new t)),zn!==Object.prototype&&a.next&&(kn(a)!==zn&&(Dn?Dn(a,zn):"function"!=typeof a[Bn]&&F(a,Bn,Gn)),Mn(a,f,!0))),"values"==o&&v&&"values"!==v.name&&(p=!0,h=function(){return v.call(this)}),d[Bn]!==h&&F(d,Bn,h),Tn[e]=h,o)if(u={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},c)for(l in u)(Fn||p||!(l in d))&&ft(d,l,u[l]);else zt({target:e,proto:!0,forced:Fn||p},u);return u},qn=st.set,Hn=st.getterFor("Array Iterator"),Yn=Wn(Array,"Array",(function(t,e){qn(this,{type:"Array Iterator",target:T(t),index:0,kind:e})}),(function(){var t=Hn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Tn.Arguments=Tn.Array,jn("keys"),jn("values"),jn("entries");var Kn={};Kn[fe("toStringTag")]="z";var Vn="[object z]"===String(Kn),Jn=fe("toStringTag"),Qn="Arguments"==S(function(){return arguments}()),Xn=Vn?S:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Jn))?n:Qn?S(e):"Object"==(r=S(e))&&"function"==typeof e.callee?"Arguments":r},Zn=Vn?{}.toString:function(){return"[object "+Xn(this)+"]"};Vn||ft(Object.prototype,"toString",Zn,{unsafe:!0});var tr=!h((function(){return Object.isExtensible(Object.preventExtensions({}))})),er=p((function(t){var e=z.f,n=tt("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},c=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!A(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!I(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!I(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return tr&&c.REQUIRED&&o(t)&&!I(t,n)&&i(t),t}};rt[n]=!0}));er.REQUIRED,er.fastKey,er.getWeakData,er.onFreeze;var nr=fe("iterator"),rr=Array.prototype,or=function(t){return void 0!==t&&(Tn.Array===t||rr[nr]===t)},ir=fe("iterator"),cr=function(t){if(null!=t)return t[ir]||t["@@iterator"]||Tn[Xn(t)]},ar=function(t){var e=t.return;if(void 0!==e)return N(e.call(t)).value},ur=function(t,e){this.stopped=t,this.result=e},lr=function(t,e,n){var r,o,i,c,a,u,l,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=Xe(e,s,1+f+d),h=function(t){return r&&ar(r),new ur(!0,t)},g=function(t){return f?(N(t),d?v(t[0],t[1],h):v(t[0],t[1])):d?v(t,h):v(t)};if(p)r=t;else{if("function"!=typeof(o=cr(t)))throw TypeError("Target is not iterable");if(or(o)){for(i=0,c=bt(t.length);c>i;i++)if((a=g(t[i]))&&a instanceof ur)return a;return new ur(!1)}r=o.call(t)}for(u=r.next;!(l=u.call(r)).done;){try{a=g(l.value)}catch(t){throw ar(r),t}if("object"==typeof a&&a&&a instanceof ur)return a}return new ur(!1)},sr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},fr=fe("iterator"),pr=!1;try{var dr=0,vr={next:function(){return{done:!!dr++}},return:function(){pr=!0}};vr[fr]=function(){return this},Array.from(vr,(function(){throw 2}))}catch(t){}var hr=function(t,e){if(!e&&!pr)return!1;var n=!1;try{var r={};r[fr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},gr=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",c=v[t],a=c&&c.prototype,u=c,l={},s=function(t){var e=a[t];ft(a,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!A(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Nt(t,"function"!=typeof c||!(o||a.forEach&&!h((function(){(new c).entries().next()})))))u=n.getConstructor(e,t,r,i),er.REQUIRED=!0;else if(Nt(t,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,d=h((function(){f.has(1)})),g=hr((function(t){new c(t)})),y=!o&&h((function(){for(var t=new c,e=5;e--;)t[i](e,e);return!t.has(-0)}));g||((u=e((function(e,n){sr(e,u,t);var o=function(t,e,n){var r,o;return Dn&&"function"==typeof(r=e.constructor)&&r!==n&&A(o=r.prototype)&&o!==n.prototype&&Dn(t,o),t}(new c,e,u);return null!=n&&lr(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(d||y)&&(s("delete"),s("has"),r&&s("get")),(y||p)&&s(i),o&&a.clear&&delete a.clear}return l[t]=u,zt({global:!0,forced:u!=c},l),Mn(u,t),o||n.setStrong(u,t,r),u},yr=function(t,e,n){for(var r in e)ft(t,r,e[r],n);return t},mr=fe("species"),br=function(t){var e=vt(t),n=z.f;g&&e&&!e[mr]&&n(e,mr,{configurable:!0,get:function(){return this}})},wr=z.f,xr=er.fastKey,Sr=st.set,Er=st.getterFor,Or={getConstructor:function(t,e,n,r){var o=t((function(t,i){sr(t,o,e),Sr(t,{type:e,index:ze(null),first:void 0,last:void 0,size:0}),g||(t.size=0),null!=i&&lr(i,t[r],{that:t,AS_ENTRIES:n})})),i=Er(e),c=function(t,e,n){var r,o,c=i(t),u=a(t,e);return u?u.value=n:(c.last=u={index:o=xr(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),g?c.size++:t.size++,"F"!==o&&(c.index[o]=u)),t},a=function(t,e){var n,r=i(t),o=xr(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return yr(o.prototype,{clear:function(){for(var t=i(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,g?t.size=0:this.size=0},delete:function(t){var e=i(this),n=a(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),g?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=Xe(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),yr(o.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return c(this,0===t?0:t,e)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),g&&wr(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Er(e),i=Er(r);Wn(t,e,(function(t,e){Sr(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),br(e)}};gr("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var jr=je.charAt,Tr=st.set,Ar=st.getterFor("String Iterator");Wn(String,"String",(function(t){Tr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ar(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jr(n,r),e.index+=t.length,{value:t,done:!1})}));var _r=fe("iterator"),Rr=fe("toStringTag"),kr=Yn.values;for(var Ir in Qe){var Pr=v[Ir],$r=Pr&&Pr.prototype;if($r){if($r[_r]!==kr)try{F($r,_r,kr)}catch(t){$r[_r]=kr}if($r[Rr]||F($r,Rr,Ir),Qe[Ir])for(var Cr in Yn)if($r[Cr]!==Yn[Cr])try{F($r,Cr,Yn[Cr])}catch(t){$r[Cr]=Yn[Cr]}}}var Lr=fe("isConcatSpreadable"),Mr=ie>=51||!h((function(){var t=[];return t[Lr]=!1,t.concat()[0]!==t})),Ur=hn("concat"),Nr=function(t){if(!A(t))return!1;var e=t[Lr];return void 0!==e?!!e:Ze(t)};zt({target:"Array",proto:!0,forced:!Mr||!Ur},{concat:function(t){var e,n,r,o,i,c=R(this),a=en(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Nr(i=-1===e?c:arguments[e])){if(u+(o=bt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&dn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");dn(a,u++,i)}return a.length=u,a}});var Dr,zr,Fr,Br=v.Promise,Gr=/(?:iphone|ipod|ipad).*applewebkit/i.test(ee),Wr="process"==S(v.process),qr=v.location,Hr=v.setImmediate,Yr=v.clearImmediate,Kr=v.process,Vr=v.MessageChannel,Jr=v.Dispatch,Qr=0,Xr={},Zr=function(t){if(Xr.hasOwnProperty(t)){var e=Xr[t];delete Xr[t],e()}},to=function(t){return function(){Zr(t)}},eo=function(t){Zr(t.data)},no=function(t){v.postMessage(t+"",qr.protocol+"//"+qr.host)};Hr&&Yr||(Hr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Xr[++Qr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Dr(Qr),Qr},Yr=function(t){delete Xr[t]},Wr?Dr=function(t){Kr.nextTick(to(t))}:Jr&&Jr.now?Dr=function(t){Jr.now(to(t))}:Vr&&!Gr?(Fr=(zr=new Vr).port2,zr.port1.onmessage=eo,Dr=Xe(Fr.postMessage,Fr,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts&&qr&&"file:"!==qr.protocol&&!h(no)?(Dr=no,v.addEventListener("message",eo,!1)):Dr="onreadystatechange"in C("script")?function(t){Le.appendChild(C("script")).onreadystatechange=function(){Le.removeChild(this),Zr(t)}}:function(t){setTimeout(to(t),0)});var ro,oo,io,co,ao,uo,lo,so,fo={set:Hr,clear:Yr},po=/web0s(?!.*chrome)/i.test(ee),vo=U.f,ho=fo.set,go=v.MutationObserver||v.WebKitMutationObserver,yo=v.document,mo=v.process,bo=v.Promise,wo=vo(v,"queueMicrotask"),xo=wo&&wo.value;xo||(ro=function(){var t,e;for(Wr&&(t=mo.domain)&&t.exit();oo;){e=oo.fn,oo=oo.next;try{e()}catch(t){throw oo?co():io=void 0,t}}io=void 0,t&&t.enter()},Gr||Wr||po||!go||!yo?bo&&bo.resolve?((lo=bo.resolve(void 0)).constructor=bo,so=lo.then,co=function(){so.call(lo,ro)}):co=Wr?function(){mo.nextTick(ro)}:function(){ho.call(v,ro)}:(ao=!0,uo=yo.createTextNode(""),new go(ro).observe(uo,{characterData:!0}),co=function(){uo.data=ao=!ao}));var So,Eo,Oo,jo,To=xo||function(t){var e={fn:t,next:void 0};io&&(io.next=e),oo||(oo=e,co()),io=e},Ao=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=xe(e),this.reject=xe(n)},_o={f:function(t){return new Ao(t)}},Ro=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ko="object"==typeof window,Io=fo.set,Po=fe("species"),$o="Promise",Co=st.get,Lo=st.set,Mo=st.getterFor($o),Uo=Br&&Br.prototype,No=Br,Do=Uo,zo=v.TypeError,Fo=v.document,Bo=v.process,Go=_o.f,Wo=Go,qo=!!(Fo&&Fo.createEvent&&v.dispatchEvent),Ho="function"==typeof PromiseRejectionEvent,Yo=!1,Ko=Nt($o,(function(){var t=K(No)!==String(No);if(!t&&66===ie)return!0;if(ie>=51&&/native code/.test(No))return!1;var e=new No((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Po]=n,!(Yo=e.then((function(){}))instanceof n)||!t&&ko&&!Ho})),Vo=Ko||!hr((function(t){No.all(t).catch((function(){}))})),Jo=function(t){var e;return!(!A(t)||"function"!=typeof(e=t.then))&&e},Qo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;To((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,l=n[i++],s=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{s?(o||(2===t.rejection&&ei(t),t.rejection=1),!0===s?c=r:(d&&d.enter(),c=s(r),d&&(d.exit(),u=!0)),c===l.promise?p(zo("Promise-chain cycle")):(a=Jo(c))?a.call(c,f,p):f(c)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Zo(t)}))}},Xo=function(t,e,n){var r,o;qo?((r=Fo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),v.dispatchEvent(r)):r={promise:e,reason:n},!Ho&&(o=v["on"+t])?o(r):"unhandledrejection"===t&&function(t,e){var n=v.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Zo=function(t){Io.call(v,(function(){var e,n=t.facade,r=t.value;if(ti(t)&&(e=Ro((function(){Wr?Bo.emit("unhandledRejection",r,n):Xo("unhandledrejection",n,r)})),t.rejection=Wr||ti(t)?2:1,e.error))throw e.value}))},ti=function(t){return 1!==t.rejection&&!t.parent},ei=function(t){Io.call(v,(function(){var e=t.facade;Wr?Bo.emit("rejectionHandled",e):Xo("rejectionhandled",e,t.value)}))},ni=function(t,e,n){return function(r){t(e,r,n)}},ri=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Qo(t,!0))},oi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw zo("Promise can't be resolved itself");var r=Jo(e);r?To((function(){var n={done:!1};try{r.call(e,ni(oi,n,t),ni(ri,n,t))}catch(e){ri(n,e,t)}})):(t.value=e,t.state=1,Qo(t,!1))}catch(e){ri({done:!1},e,t)}}};if(Ko&&(Do=(No=function(t){sr(this,No,$o),xe(t),So.call(this);var e=Co(this);try{t(ni(oi,e),ni(ri,e))}catch(t){ri(e,t)}}).prototype,(So=function(t){Lo(this,{type:$o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=yr(Do,{then:function(t,e){var n=Mo(this),r=Go(Ee(this,No));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Wr?Bo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Eo=function(){var t=new So,e=Co(t);this.promise=t,this.resolve=ni(oi,e),this.reject=ni(ri,e)},_o.f=Go=function(t){return t===No||t===Oo?new Eo(t):Wo(t)},"function"==typeof Br&&Uo!==Object.prototype)){jo=Uo.then,Yo||(ft(Uo,"then",(function(t,e){var n=this;return new No((function(t,e){jo.call(n,t,e)})).then(t,e)}),{unsafe:!0}),ft(Uo,"catch",Do.catch,{unsafe:!0}));try{delete Uo.constructor}catch(t){}Dn&&Dn(Uo,Do)}zt({global:!0,wrap:!0,forced:Ko},{Promise:No}),Mn(No,$o,!1),br($o),Oo=vt($o),zt({target:$o,stat:!0,forced:Ko},{reject:function(t){var e=Go(this);return e.reject.call(void 0,t),e.promise}}),zt({target:$o,stat:!0,forced:Ko},{resolve:function(t){return function(t,e){if(N(t),A(e)&&e.constructor===t)return e;var n=_o.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),zt({target:$o,stat:!0,forced:Vo},{all:function(t){var e=this,n=Go(e),r=n.resolve,o=n.reject,i=Ro((function(){var n=xe(e.resolve),i=[],c=0,a=1;lr(t,(function(t){var u=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Go(e),r=n.reject,o=Ro((function(){var o=xe(e.resolve);lr(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),zt({target:"Object",stat:!0,sham:!g},{getOwnPropertyDescriptors:function(t){for(var e,n,r=T(t),o=U.f,i=kt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&dn(c,e,n);return c}});var ii=function(t,e,n,r){try{return r?e(N(n)[0],n[1]):e(n)}catch(e){throw ar(t),e}},ci=!hr((function(t){Array.from(t)}));zt({target:"Array",stat:!0,forced:ci},{from:function(t){var e,n,r,o,i,c,a=R(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=cr(a),d=0;if(f&&(s=Xe(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&or(p))for(n=new u(e=bt(a.length));e>d;d++)c=f?s(a[d],d):a[d],dn(n,d,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;d++)c=f?ii(o,s,[r.value,d],!0):r.value,dn(n,d,c);return n.length=d,n}});var ai=z.f,ui=Function.prototype,li=ui.toString,si=/^\s*function ([^ (]*)/;g&&!("name"in ui)&&ai(ui,"name",{configurable:!0,get:function(){try{return li.call(this).match(si)[1]}catch(t){return""}}});var fi=hn("splice"),pi=Math.max,di=Math.min;zt({target:"Array",proto:!0,forced:!fi},{splice:function(t,e){var n,r,o,i,c,a,u=R(this),l=bt(u.length),s=St(t,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-s):(n=f-2,r=di(pi(yt(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=en(u,r),i=0;i<r;i++)(c=s+i)in u&&dn(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<l-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:delete u[a];for(i=l;i>l-r+n;i--)delete u[i-1]}else if(n>r)for(i=l-r;i>s;i--)a=i+n-1,(c=i+r-1)in u?u[a]=u[c]:delete u[a];for(i=0;i<n;i++)u[i+s]=arguments[i+2];return u.length=l-r+n,o}});var vi=on.map,hi=hn("map");zt({target:"Array",proto:!0,forced:!hi},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var gi=on.filter,yi=hn("filter");zt({target:"Array",proto:!0,forced:!yi},{filter:function(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=[].join,bi=O!=Object,wi=cn("join",",");zt({target:"Array",proto:!0,forced:bi||!wi},{join:function(t){return mi.call(T(this),void 0===t?",":t)}});var xi=/"/g;zt({target:"String",proto:!0,forced:function(t){return h((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",n="name",r=t,o=String(j(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(xi,""")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}}),gr("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var Si=Object.assign,Ei=Object.defineProperty,Oi=!Si||h((function(){if(g&&1!==Si({b:1},Si(Ei({},"a",{enumerable:!0,get:function(){Ei(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Si({},t)[n]||"abcdefghijklmnopqrst"!=$e(Si({},e)).join("")}))?function(t,e){for(var n=R(t),r=arguments.length,o=1,i=Rt.f,c=b.f;r>o;)for(var a,u=O(arguments[o++]),l=i?$e(u).concat(i(u)):$e(u),s=l.length,f=0;s>f;)a=l[f++],g&&!c.call(u,a)||(n[a]=u[a]);return n}:Si;zt({target:"Object",stat:!0,forced:Object.assign!==Oi},{assign:Oi});var ji=Math.floor,Ti="".replace,Ai=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_i=/\$([$&'`]|\d{1,2})/g,Ri=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=_i;return void 0!==o&&(o=R(o),u=Ai),Ti.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var f=ji(s/10);return 0===f?i:f<=a?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[s-1]}return void 0===l?"":l}))},ki=Math.max,Ii=Math.min;be("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=j(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=N(t),l=String(this),s="function"==typeof r;s||(r=String(r));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var v=_e(u,l);if(null===v)break;if(d.push(v),!f)break;""===String(v[0])&&(u.lastIndex=Ae(l,bt(u.lastIndex),p))}for(var h,g="",y=0,m=0;m<d.length;m++){v=d[m];for(var b=String(v[0]),w=ki(Ii(yt(v.index),l.length),0),x=[],S=1;S<v.length;S++)x.push(void 0===(h=v[S])?h:String(h));var E=v.groups;if(s){var O=[b].concat(x,w,l);void 0!==E&&O.push(E);var j=String(r.apply(void 0,O))}else j=Ri(b,l,w,x,E,r);w>=y&&(g+=l.slice(y,w)+j,y=w+b.length)}return g+l.slice(y)}]}));zt({target:"Array",proto:!0},{fill:function(t){for(var e=R(this),n=bt(e.length),r=arguments.length,o=St(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:St(i,n);c>o;)e[o++]=t;return e}}),jn("fill");var Pi=_t.f,$i={}.toString,Ci="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Li={f:function(t){return Ci&&"[object Window]"==$i.call(t)?function(t){try{return Pi(t)}catch(t){return Ci.slice()}}(t):Pi(T(t))}},Mi={f:fe},Ui=z.f,Ni=function(t){var e=pt.Symbol||(pt.Symbol={});I(e,t)||Ui(e,t,{value:Mi.f(t)})},Di=on.forEach,zi=nt("hidden"),Fi=fe("toPrimitive"),Bi=st.set,Gi=st.getterFor("Symbol"),Wi=Object.prototype,qi=v.Symbol,Hi=vt("JSON","stringify"),Yi=U.f,Ki=z.f,Vi=Li.f,Ji=b.f,Qi=Q("symbols"),Xi=Q("op-symbols"),Zi=Q("string-to-symbol-registry"),tc=Q("symbol-to-string-registry"),ec=Q("wks"),nc=v.QObject,rc=!nc||!nc.prototype||!nc.prototype.findChild,oc=g&&h((function(){return 7!=ze(Ki({},"a",{get:function(){return Ki(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Yi(Wi,e);r&&delete Wi[e],Ki(t,e,n),r&&t!==Wi&&Ki(Wi,e,r)}:Ki,ic=function(t,e){var n=Qi[t]=ze(qi.prototype);return Bi(n,{type:"Symbol",tag:t,description:e}),g||(n.description=e),n},cc=ae?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof qi},ac=function(t,e,n){t===Wi&&ac(Xi,e,n),N(t);var r=_(e,!0);return N(n),I(Qi,r)?(n.enumerable?(I(t,zi)&&t[zi][r]&&(t[zi][r]=!1),n=ze(n,{enumerable:w(0,!1)})):(I(t,zi)||Ki(t,zi,w(1,{})),t[zi][r]=!0),oc(t,r,n)):Ki(t,r,n)},uc=function(t,e){N(t);var n=T(e),r=$e(n).concat(pc(n));return Di(r,(function(e){g&&!lc.call(n,e)||ac(t,e,n[e])})),t},lc=function(t){var e=_(t,!0),n=Ji.call(this,e);return!(this===Wi&&I(Qi,e)&&!I(Xi,e))&&(!(n||!I(this,e)||!I(Qi,e)||I(this,zi)&&this[zi][e])||n)},sc=function(t,e){var n=T(t),r=_(e,!0);if(n!==Wi||!I(Qi,r)||I(Xi,r)){var o=Yi(n,r);return!o||!I(Qi,r)||I(n,zi)&&n[zi][r]||(o.enumerable=!0),o}},fc=function(t){var e=Vi(T(t)),n=[];return Di(e,(function(t){I(Qi,t)||I(rt,t)||n.push(t)})),n},pc=function(t){var e=t===Wi,n=Vi(e?Xi:T(t)),r=[];return Di(n,(function(t){!I(Qi,t)||e&&!I(Wi,t)||r.push(Qi[t])})),r};if(ce||(ft((qi=function(){if(this instanceof qi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=tt(t),n=function(t){this===Wi&&n.call(Xi,t),I(this,zi)&&I(this[zi],e)&&(this[zi][e]=!1),oc(this,e,w(1,t))};return g&&rc&&oc(Wi,e,{configurable:!0,set:n}),ic(e,t)}).prototype,"toString",(function(){return Gi(this).tag})),ft(qi,"withoutSetter",(function(t){return ic(tt(t),t)})),b.f=lc,z.f=ac,U.f=sc,_t.f=Li.f=fc,Rt.f=pc,Mi.f=function(t){return ic(fe(t),t)},g&&(Ki(qi.prototype,"description",{configurable:!0,get:function(){return Gi(this).description}}),ft(Wi,"propertyIsEnumerable",lc,{unsafe:!0}))),zt({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:qi}),Di($e(ec),(function(t){Ni(t)})),zt({target:"Symbol",stat:!0,forced:!ce},{for:function(t){var e=String(t);if(I(Zi,e))return Zi[e];var n=qi(e);return Zi[e]=n,tc[n]=e,n},keyFor:function(t){if(!cc(t))throw TypeError(t+" is not a symbol");if(I(tc,t))return tc[t]},useSetter:function(){rc=!0},useSimple:function(){rc=!1}}),zt({target:"Object",stat:!0,forced:!ce,sham:!g},{create:function(t,e){return void 0===e?ze(t):uc(ze(t),e)},defineProperty:ac,defineProperties:uc,getOwnPropertyDescriptor:sc}),zt({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:fc,getOwnPropertySymbols:pc}),zt({target:"Object",stat:!0,forced:h((function(){Rt.f(1)}))},{getOwnPropertySymbols:function(t){return Rt.f(R(t))}}),Hi){var dc=!ce||h((function(){var t=qi();return"[null]"!=Hi([t])||"{}"!=Hi({a:t})||"{}"!=Hi(Object(t))}));zt({target:"JSON",stat:!0,forced:dc},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(A(e)||void 0!==t)&&!cc(t))return Ze(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!cc(e))return e}),o[1]=e,Hi.apply(null,o)}})}qi.prototype[Fi]||F(qi.prototype,Fi,qi.prototype.valueOf),Mn(qi,"Symbol"),rt[zi]=!0;var vc,hc=z.f,gc=v.Symbol;if(g&&"function"==typeof gc&&(!("description"in gc.prototype)||void 0!==gc().description)){var yc={},mc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mc?new gc(t):void 0===t?gc():gc(t);return""===t&&(yc[e]=!0),e};It(mc,gc);var bc=mc.prototype=gc.prototype;bc.constructor=mc;var wc=bc.toString,xc="Symbol(test)"==String(gc("test")),Sc=/^Symbol\((.*)\)[^)]+$/;hc(bc,"description",{configurable:!0,get:function(){var t=A(this)?this.valueOf():this,e=wc.call(t);if(I(yc,t))return"";var n=xc?e.slice(7,-1):e.replace(Sc,"$1");return""===n?void 0:n}}),zt({global:!0,forced:!0},{Symbol:mc})}function Ec(){}function Oc(t){return t()}function jc(){return Object.create(null)}function Tc(t){t.forEach(Oc)}function Ac(t){return"function"==typeof t}function _c(t,e){return t!=t?e==e:t!==e||t&&"object"===i(t)||"function"==typeof t}function Rc(t,e){t.appendChild(e)}function kc(t,e,n){t.insertBefore(e,n||null)}function Ic(t){t.parentNode.removeChild(t)}function Pc(t){return document.createElement(t)}function $c(t){return document.createTextNode(t)}function Cc(){return $c(" ")}function Lc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Mc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Uc(t){return Array.from(t.childNodes)}function Nc(t,e,n){t.classList[n?"add":"remove"](e)}function Dc(t){vc=t}Ni("iterator");var zc=[],Fc=[],Bc=[],Gc=[],Wc=Promise.resolve(),qc=!1;function Hc(t){Bc.push(t)}var Yc=!1,Kc=new Set;function Vc(){if(!Yc){Yc=!0;do{for(var t=0;t<zc.length;t+=1){var e=zc[t];Dc(e),Jc(e.$$)}for(Dc(null),zc.length=0;Fc.length;)Fc.pop()();for(var n=0;n<Bc.length;n+=1){var r=Bc[n];Kc.has(r)||(Kc.add(r),r())}Bc.length=0}while(zc.length);for(;Gc.length;)Gc.pop()();qc=!1,Yc=!1,Kc.clear()}}function Jc(t){if(null!==t.fragment){t.update(),Tc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Hc)}}var Qc=new Set;function Xc(t,e){t&&t.i&&(Qc.delete(t),t.i(e))}function Zc(t,e,n,r){if(t&&t.o){if(Qc.has(t))return;Qc.add(t),(void 0).c.push((function(){Qc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var ta="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ea(t){t&&t.c()}function na(t,e,n,r){var o=t.$$,i=o.fragment,c=o.on_mount,a=o.on_destroy,u=o.after_update;i&&i.m(e,n),r||Hc((function(){var e=c.map(Oc).filter(Ac);a?a.push.apply(a,Ve(e)):Tc(e),t.$$.on_mount=[]})),u.forEach(Hc)}function ra(t,e){var n=t.$$;null!==n.fragment&&(Tc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function oa(t,e){-1===t.$$.dirty[0]&&(zc.push(t),qc||(qc=!0,Wc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ia(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=vc;Dc(t);var u=t.$$={fragment:null,ctx:null,props:i,update:Ec,not_equal:o,bound:jc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:jc(),dirty:c,skip_bound:!1},l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&oa(t,e)),n})):[],u.update(),l=!0,Tc(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var s=Uc(e.target);u.fragment&&u.fragment.l(s),s.forEach(Ic)}else u.fragment&&u.fragment.c();e.intro&&Xc(t.$$.fragment),na(t,e.target,e.anchor,e.customElement),Vc()}Dc(a)}var ca=function(){function t(){e(this,t)}var n,r,o;return n=t,(r=[{key:"$destroy",value:function(){ra(this,1),this.$destroy=Ec}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&Je(n.prototype,r),o&&Je(n,o),t}();function aa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function ua(t){var e,n,r;return{c:function(){(e=Pc("p")).textContent="Please make sure that the script tag has 'id=\"chatbot\"' and the attribute\n 'data-server' with the full qualified URL to the chatbot-server.",n=Cc(),(r=Pc("pre")).innerHTML='<code class="svelte-1ril8w"><script\n <br class="svelte-1ril8w"/>\n id="chatbot"\n <br class="svelte-1ril8w"/>\n data-server="https://server.com/webclient"\n <br class="svelte-1ril8w"/>\n defer\n <br class="svelte-1ril8w"/>\n src="https://server.com/webclient/embed/bundle.js"> </script></code>',Mc(e,"class","svelte-1ril8w"),Mc(r,"class","svelte-1ril8w")},m:function(t,o){kc(t,e,o),kc(t,n,o),kc(t,r,o)},p:Ec,d:function(t){t&&Ic(e),t&&Ic(n),t&&Ic(r)}}}function la(t){var e,n,r,o,i,c,a,u,l,s,f,p;return{c:function(){e=Pc("div"),n=Pc("div"),r=Pc("img"),i=Cc(),(c=Pc("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-1ril8w"><path d="M0,0L20,20M20,0L0,20" class="svelte-1ril8w"></path></svg>',a=Cc(),u=Pc("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),Mc(r,"alt","Logo"),Mc(r,"class","svelte-1ril8w"),Mc(c,"aria-label","Close chat window"),Mc(c,"role","button"),Mc(c,"class","bot-border-close-icon svelte-1ril8w"),Mc(c,"tabindex",0),Mc(n,"class","header svelte-1ril8w"),Mc(u,"id","chat-frame"),Mc(u,"title","Chat"),Mc(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&Mc(u,"src",l),Mc(u,"frameborder","0"),Mc(u,"allow","microphone"),u.allowFullscreen="",Mc(e,"class","bot-border svelte-1ril8w"),Mc(e,"aria-hidden",s=t[1]?"false":"true"),Nc(e,"closed",!t[1])},m:function(o,l){kc(o,e,l),Rc(e,n),Rc(n,r),Rc(n,i),Rc(n,c),Rc(e,a),Rc(e,u),f||(p=[Lc(c,"click",(function(){Ac(t[3])&&t[3].apply(this,arguments)})),Lc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),1&i&&u.src!==(l=t[0])&&Mc(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&Mc(e,"aria-hidden",s),2&i&&Nc(e,"closed",!t[1])},d:function(t){t&&Ic(e),f=!1,Tc(p)}}}function sa(t){var e;function n(t,e){return t[0]?la:ua}var r=n(t),o=r(t);return{c:function(){o.c(),e=$c("")},m:function(t,n){o.m(t,n),kc(t,e,n)},p:function(t,i){var c=s(i,1)[0];r===(r=n(t))&&o?o.p(t,c):(o.d(1),(o=r(t))&&(o.c(),o.m(e.parentNode,e)))},i:Ec,o:Ec,d:function(t){o.d(t),t&&Ic(e)}}}function fa(t,e,n){var r=e.server,o=e.open,i=e.assetsUrl,c=e.onToggle;return t.$$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open),"assetsUrl"in t&&n(2,i=t.assetsUrl),"onToggle"in t&&n(3,c=t.onToggle)},[r,o,i,c,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),c())}]}var pa=function(t){o(i,t);var r=aa(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-1ril8w-style")||((c=Pc("style")).id="svelte-1ril8w-style",c.textContent=".svelte-1ril8w.svelte-1ril8w,.svelte-1ril8w.svelte-1ril8w:before,.svelte-1ril8w.svelte-1ril8w:after{box-sizing:border-box}.bot-border.svelte-1ril8w.svelte-1ril8w{position:fixed !important;display:flex;flex-direction:column;bottom:0;height:85vh;width:100%;border-width:0;border-radius:12px;box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms, opacity 100ms 100ms, all 150ms;z-index:1000}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(85vh);opacity:0}.header.svelte-1ril8w.svelte-1ril8w{display:flex;justify-content:space-between;width:100%;height:3.5em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-1ril8w.svelte-1ril8w{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-1ril8w.svelte-1ril8w{height:38em;max-height:calc(100vh - 2rem);width:23em;right:1em;bottom:1em;left:auto}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(38em);opacity:0}}.bot-border-close-icon.svelte-1ril8w.svelte-1ril8w{height:100%}img.svelte-1ril8w.svelte-1ril8w{display:block;height:100%}svg.svelte-1ril8w.svelte-1ril8w{height:100%;padding:0.4em;cursor:pointer}svg.svelte-1ril8w path.svelte-1ril8w{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-1ril8w:hover path.svelte-1ril8w{stroke-width:3px}p.svelte-1ril8w.svelte-1ril8w,pre.svelte-1ril8w.svelte-1ril8w{max-width:300px}pre.svelte-1ril8w.svelte-1ril8w{font-size:0.6em;line-height:0.5}",Rc(document.head,c)),ia(n(o),t,fa,sa,_c,{server:0,open:1,assetsUrl:2,onToggle:3}),o}return i}(ca);function da(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function va(t){var e,n,r,o,i;return{c:function(){e=Pc("div"),Mc(n=Pc("img"),"class","chat-button svelte-xlhtz"),Mc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r),Mc(e,"class","chat-button-wrapper svelte-xlhtz"),Mc(e,"tabindex","0"),Mc(e,"role","button"),Mc(e,"aria-label","Open chat window")},m:function(r,c){kc(r,e,c),Rc(e,n),o||(i=[Lc(e,"click",(function(){Ac(t[1])&&t[1].apply(this,arguments)})),Lc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=s(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r)},i:Ec,o:Ec,d:function(t){t&&Ic(e),o=!1,Tc(i)}}}function ha(t,e,n){var r=e.assetsUrl,o=e.onToggle;return t.$$set=function(t){"assetsUrl"in t&&n(0,r=t.assetsUrl),"onToggle"in t&&n(1,o=t.onToggle)},[r,o,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),o())}]}var ga=function(t){o(i,t);var r=da(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-xlhtz-style")||((c=Pc("style")).id="svelte-xlhtz-style",c.textContent=".svelte-xlhtz,.svelte-xlhtz:before,.svelte-xlhtz:after{box-sizing:border-box}.chat-button-wrapper.svelte-xlhtz{position:fixed !important;right:2em;bottom:2em;width:6em;height:6em;z-index:999}.chat-button.svelte-xlhtz{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms, box-shadow 100ms}.chat-button.svelte-xlhtz:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}",Rc(document.head,c)),ia(n(o),t,ha,va,_c,{assetsUrl:0,onToggle:1}),o}return i}(ca),ya=function(t,e){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",(function(n){var r,o=n.data;switch(o.type){case"webclient.expand.window":t(o.devices);break;case"webclient.change.url":e(o.url);break;case"google.tag.event":r=o.payload,window.gtag?window.gtag("event","",r):window.dataLayer&&window.dataLayer.push(r)}}),!1)},ma=p((function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=e+"="+n+a}}function c(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(a[0]);if(u=(r.read||r)(u,l)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[l]=u,t===l)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return c(t,!1)},o.getJSON=function(t){return c(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},t.exports=n()})),ba=function(){switch(ma.get("bot-window")){case"open":return!0;case"closed":default:return!1}},wa=function(t){ma.set("bot-window",t)},xa=[],Sa=ba();function Ea(){Sa=!0,wa("open"),xa.forEach((function(t){t.call(window,Sa)}))}function Oa(){Sa=!1,wa("closed"),xa.forEach((function(t){t.call(window,Sa)}))}function ja(){Sa?Oa():Ea()}function Ta(t){document.getElementById("chat-frame").contentWindow.postMessage(t,"*")}function Aa(t,e){switch(t){case"ON_CHAT_WINDOW_STATE_CHANGE":xa.push(e);break;default:throw new Error("Unsupported event "+t)}}be("match",1,(function(t,e,n){return[function(e){var n=j(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=N(t),i=String(this);if(!o.global)return _e(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=_e(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=Ae(i,bt(o.lastIndex),c)),l++}return 0===l?null:u}]}));var _a=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))};function Ra(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}var ka=ta.document;function Ia(t){var e,n,r,o,i,c,a,u;return i=new ga({props:{server:t[0],assetsUrl:t[1],onToggle:ja}}),a=new pa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:ja}}),{c:function(){e=Pc("link"),r=Cc(),o=Pc("div"),ea(i.$$.fragment),c=Cc(),ea(a.$$.fragment),Mc(e,"rel","stylesheet"),Mc(e,"href",n="".concat(t[1],"/embed/custom.css")),Mc(o,"id","chatbot-window"),Mc(o,"class","svelte-sr5aex")},m:function(t,n){Rc(ka.head,e),kc(t,r,n),kc(t,o,n),na(i,o,null),Rc(o,c),na(a,o,null),u=!0},p:function(t,r){var o=s(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&Mc(e,"href",n);var c={};1&o&&(c.server=t[0]),2&o&&(c.assetsUrl=t[1]),i.$set(c);var l={};1&o&&(l.server=t[0]),2&o&&(l.assetsUrl=t[1]),4&o&&(l.open=t[2]),a.$set(l)},i:function(t){u||(Xc(i.$$.fragment,t),Xc(a.$$.fragment,t),u=!0)},o:function(t){Zc(i.$$.fragment,t),Zc(a.$$.fragment,t),u=!1},d:function(t){Ic(e),t&&Ic(r),t&&Ic(o),ra(i),ra(a)}}}function Pa(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;_a();var c=ba();return Aa("ON_CHAT_WINDOW_STATE_CHANGE",(function(t){n(2,c=t)})),ya((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&Ea()}),(function(t){window.innerWidth<768&&Oa(),document.location.href=t})),t.$$set=function(t){"server"in t&&n(0,r=t.server),"assetsUrl"in t&&n(1,i=t.assetsUrl)},[r,i,c]}var $a=function(t){o(i,t);var r=Ra(i);function i(t){var o,c;return e(this,i),o=r.call(this),ka.getElementById("svelte-sr5aex-style")||((c=Pc("style")).id="svelte-sr5aex-style",c.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",Rc(ka.head,c)),ia(n(o),t,Pa,Ia,_c,{server:0,assetsUrl:1}),o}return i}(ca),Ca=function(t){if(t&&void 0!==t.src)return function(t){return t.dataset&&t.dataset.server}(t)||function(t){return t.src.replace(/\/embed\/bundle\.js/,"")}(t)}(document.querySelector("script#chatbot")),La=function(){console.log("Chatbot is loading from",Ca),new $a({target:document.body,props:{server:Ca}})};return window.addEventListener("load",(function(){return setTimeout(La,3e3)})),t.closeChatWindow=Oa,t.enterGuestMessage=function(t){Ta({type:"CHAT_MESSAGE_FROM_GUEST",text:t})},t.openChatWindow=Ea,t.subscribe=Aa,t.toggleChatWindow=ja,t.triggerStory=function(t){Ta({type:"TRIGGER_STORY",story:t})},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
1
|
+
var chatbot=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?n(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t,e){return t(e={exports:{}},e.exports),e.exports}var d=function(t){return t&&t.Math==Math&&t},v=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof f&&f)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},g=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b={f:m&&!y.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:y},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x={}.toString,S=function(t){return x.call(t).slice(8,-1)},E="".split,O=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?E.call(t,""):Object(t)}:Object,j=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return O(j(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_=function(t,e){if(!A(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!A(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},R=function(t){return Object(j(t))},k={}.hasOwnProperty,I=function(t,e){return k.call(R(t),e)},P=v.document,$=A(P)&&A(P.createElement),C=function(t){return $?P.createElement(t):{}},L=!g&&!h((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,U={f:g?M:function(t,e){if(t=T(t),e=_(e,!0),L)try{return M(t,e)}catch(t){}if(I(t,e))return w(!b.f.call(t,e),t[e])}},N=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,z={f:g?D:function(t,e,n){if(N(t),e=_(e,!0),N(n),L)try{return D(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},F=g?function(t,e,n){return z.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},B=function(t,e){try{F(v,t,e)}catch(n){v[t]=e}return e},G=v["__core-js_shared__"]||B("__core-js_shared__",{}),W=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return W.call(t)});var q,H,Y,K=G.inspectSource,V=v.WeakMap,J="function"==typeof V&&/native code/.test(K(V)),Q=p((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,Z=Math.random(),tt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+Z).toString(36)},et=Q("keys"),nt=function(t){return et[t]||(et[t]=tt(t))},rt={},ot=v.WeakMap;if(J||G.state){var it=G.state||(G.state=new ot),ct=it.get,at=it.has,ut=it.set;q=function(t,e){if(at.call(it,t))throw new TypeError("Object already initialized");return e.facade=t,ut.call(it,t,e),e},H=function(t){return ct.call(it,t)||{}},Y=function(t){return at.call(it,t)}}else{var lt=nt("state");rt[lt]=!0,q=function(t,e){if(I(t,lt))throw new TypeError("Object already initialized");return e.facade=t,F(t,lt,e),e},H=function(t){return I(t,lt)?t[lt]:{}},Y=function(t){return I(t,lt)}}var st={set:q,get:H,has:Y,enforce:function(t){return Y(t)?H(t):q(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=H(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},ft=p((function(t){var e=st.get,n=st.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var c,a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||I(o,"name")||F(o,"name",e),(c=n(o)).source||(c.source=r.join("string"==typeof e?e:""))),t!==v?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:F(t,e,o)):u?t[e]=o:B(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||K(this)}))})),pt=v,dt=function(t){return"function"==typeof t?t:void 0},vt=function(t,e){return arguments.length<2?dt(pt[t])||dt(v[t]):pt[t]&&pt[t][e]||v[t]&&v[t][e]},ht=Math.ceil,gt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?gt:ht)(t)},mt=Math.min,bt=function(t){return t>0?mt(yt(t),9007199254740991):0},wt=Math.max,xt=Math.min,St=function(t,e){var n=yt(t);return n<0?wt(n+e,0):xt(n,e)},Et=function(t){return function(e,n,r){var o,i=T(e),c=bt(i.length),a=St(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Ot={includes:Et(!0),indexOf:Et(!1)}.indexOf,jt=function(t,e){var n,r=T(t),o=0,i=[];for(n in r)!I(rt,n)&&I(r,n)&&i.push(n);for(;e.length>o;)I(r,n=e[o++])&&(~Ot(i,n)||i.push(n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=Tt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(t){return jt(t,At)}},Rt={f:Object.getOwnPropertySymbols},kt=vt("Reflect","ownKeys")||function(t){var e=_t.f(N(t)),n=Rt.f;return n?e.concat(n(t)):e},It=function(t,e){for(var n=kt(e),r=z.f,o=U.f,i=0;i<n.length;i++){var c=n[i];I(t,c)||r(t,c,o(e,c))}},Pt=/#|\.prototype\./,$t=function(t,e){var n=Lt[Ct(t)];return n==Ut||n!=Mt&&("function"==typeof e?h(e):!!e)},Ct=$t.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},Lt=$t.data={},Mt=$t.NATIVE="N",Ut=$t.POLYFILL="P",Nt=$t,Dt=U.f,zt=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,l=t.stat;if(n=u?v:l?v[a]||B(a,{}):(v[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Dt(n,r))&&c.value:n[r],!Nt(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;It(i,o)}(t.sham||o&&o.sham)&&F(i,"sham",!0),ft(n,r,i,t)}},Ft=function(){var t=N(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Bt(t,e){return RegExp(t,e)}var Gt,Wt,qt={UNSUPPORTED_Y:h((function(){var t=Bt("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:h((function(){var t=Bt("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ht=RegExp.prototype.exec,Yt=Q("native-string-replace",String.prototype.replace),Kt=Ht,Vt=(Gt=/a/,Wt=/b*/g,Ht.call(Gt,"a"),Ht.call(Wt,"a"),0!==Gt.lastIndex||0!==Wt.lastIndex),Jt=qt.UNSUPPORTED_Y||qt.BROKEN_CARET,Qt=void 0!==/()??/.exec("")[1];(Vt||Qt||Jt)&&(Kt=function(t){var e,n,r,o,i=this,c=Jt&&i.sticky,a=Ft.call(i),u=i.source,l=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",a)),Qt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Vt&&(e=i.lastIndex),r=Ht.call(c?n:i,s),c?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Vt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Qt&&r&&r.length>1&&Yt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Xt=Kt;zt({target:"RegExp",proto:!0,forced:/./.exec!==Xt},{exec:Xt});var Zt,te,ee=vt("navigator","userAgent")||"",ne=v.process,re=ne&&ne.versions,oe=re&&re.v8;oe?te=(Zt=oe.split("."))[0]<4?1:Zt[0]+Zt[1]:ee&&(!(Zt=ee.match(/Edge\/(\d+)/))||Zt[1]>=74)&&(Zt=ee.match(/Chrome\/(\d+)/))&&(te=Zt[1]);var ie=te&&+te,ce=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())||!Symbol.sham&&ie&&ie<41})),ae=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Q("wks"),le=v.Symbol,se=ae?le:le&&le.withoutSetter||tt,fe=function(t){return I(ue,t)&&(ce||"string"==typeof ue[t])||(ce&&I(le,t)?ue[t]=le[t]:ue[t]=se("Symbol."+t)),ue[t]},pe=fe("species"),de=RegExp.prototype,ve=!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),he="$0"==="a".replace(/./,"$0"),ge=fe("replace"),ye=!!/./[ge]&&""===/./[ge]("a","$0"),me=!h((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),be=function(t,e,n,r){var o=fe(t),i=!h((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!h((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[pe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!ve||!he||ye)||"split"===t&&!me){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Xt||c===de.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:he,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ye}),l=u[0],s=u[1];ft(String.prototype,t,l),ft(de,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&F(de[o],"sham",!0)},we=fe("match"),xe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Se=fe("species"),Ee=function(t,e){var n,r=N(t).constructor;return void 0===r||null==(n=N(r)[Se])?e:xe(n)},Oe=function(t){return function(e,n){var r,o,i=String(j(e)),c=yt(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},je={codeAt:Oe(!1),charAt:Oe(!0)},Te=je.charAt,Ae=function(t,e,n){return e+(n?Te(t,e).length:1)},_e=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==S(t))throw TypeError("RegExp#exec called on incompatible receiver");return Xt.call(t,e)},Re=qt.UNSUPPORTED_Y,ke=[].push,Ie=Math.min;be("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,o,i=String(j(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!A(r=t)||!(void 0!==(o=r[we])?o:"RegExp"==S(r)))return e.call(i,t,c);for(var a,u,l,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=new RegExp(t.source,f+"g");(a=Xt.call(d,i))&&!((u=d.lastIndex)>p&&(s.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&ke.apply(s,a.slice(1)),l=a[0].length,p=u,s.length>=c));)d.lastIndex===a.index&&d.lastIndex++;return p===i.length?!l&&d.test("")||s.push(""):s.push(i.slice(p)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=j(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=N(t),a=String(this),u=Ee(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Re?"g":"y"),f=new u(Re?"^(?:"+c.source+")":c,s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===_e(f,a)?[a]:[];for(var d=0,v=0,h=[];v<a.length;){f.lastIndex=Re?0:v;var g,y=_e(f,Re?a.slice(v):a);if(null===y||(g=Ie(bt(f.lastIndex+(Re?v:0)),a.length))===d)v=Ae(a,v,l);else{if(h.push(a.slice(d,v)),h.length===p)return h;for(var m=1;m<=y.length-1;m++)if(h.push(y[m]),h.length===p)return h;v=d=g}}return h.push(a.slice(d)),h}]}),Re);var Pe,$e=Object.keys||function(t){return jt(t,Tt)},Ce=g?Object.defineProperties:function(t,e){N(t);for(var n,r=$e(e),o=r.length,i=0;o>i;)z.f(t,n=r[i++],e[n]);return t},Le=vt("document","documentElement"),Me=nt("IE_PROTO"),Ue=function(){},Ne=function(t){return"<script>"+t+"<\/script>"},De=function(){try{Pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=Pe?function(t){t.write(Ne("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Pe):((e=C("iframe")).style.display="none",Le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ne("document.F=Object")),t.close(),t.F);for(var n=Tt.length;n--;)delete De.prototype[Tt[n]];return De()};rt[Me]=!0;var ze=Object.create||function(t,e){var n;return null!==t?(Ue.prototype=N(t),n=new Ue,Ue.prototype=null,n[Me]=t):n=De(),void 0===e?n:Ce(n,e)},Fe=[].slice,Be={},Ge=function(t,e,n){if(!(e in Be)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Be[e]=Function("C,a","return new C("+r.join(",")+")")}return Be[e](t,n)},We=Function.bind||function(t){var e=xe(this),n=Fe.call(arguments,1),r=function(){var o=n.concat(Fe.call(arguments));return this instanceof r?Ge(e,o.length,o):e.apply(t,o)};return A(e.prototype)&&(r.prototype=e.prototype),r},qe=vt("Reflect","construct"),He=h((function(){function t(){}return!(qe((function(){}),[],t)instanceof t)})),Ye=!h((function(){qe((function(){}))})),Ke=He||Ye;function Ve(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}zt({target:"Reflect",stat:!0,forced:Ke,sham:Ke},{construct:function(t,e){xe(t),N(e);var n=arguments.length<3?t:xe(arguments[2]);if(Ye&&!He)return qe(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(We.apply(t,r))}var o=n.prototype,i=ze(A(o)?o:Object.prototype),c=Function.apply.call(t,i,e);return A(c)?c:i}});var Qe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xe=function(t,e,n){if(xe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ze=Array.isArray||function(t){return"Array"==S(t)},tn=fe("species"),en=function(t,e){var n;return Ze(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[tn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},nn=[].push,rn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,l,s,f){for(var p,d,v=R(u),h=O(v),g=Xe(l,s,3),y=bt(h.length),m=0,b=f||en,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in h)&&(d=g(p=h[m],m,v),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:nn.call(w,p)}else switch(t){case 4:return!1;case 7:nn.call(w,p)}return i?-1:r||o?o:w}},on={forEach:rn(0),map:rn(1),filter:rn(2),some:rn(3),every:rn(4),find:rn(5),findIndex:rn(6),filterOut:rn(7)},cn=function(t,e){var n=[][t];return!!n&&h((function(){n.call(null,e||function(){throw 1},1)}))},an=on.forEach,un=cn("forEach")?[].forEach:function(t){return an(this,t,arguments.length>1?arguments[1]:void 0)};for(var ln in Qe){var sn=v[ln],fn=sn&&sn.prototype;if(fn&&fn.forEach!==un)try{F(fn,"forEach",un)}catch(t){fn.forEach=un}}var pn=h((function(){$e(1)}));zt({target:"Object",stat:!0,forced:pn},{keys:function(t){return $e(R(t))}});var dn=function(t,e,n){var r=_(e);r in t?z.f(t,r,w(0,n)):t[r]=n},vn=fe("species"),hn=function(t){return ie>=51||!h((function(){var e=[];return(e.constructor={})[vn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=hn("slice"),yn=fe("species"),mn=[].slice,bn=Math.max;zt({target:"Array",proto:!0,forced:!gn},{slice:function(t,e){var n,r,o,i=T(this),c=bt(i.length),a=St(t,c),u=St(void 0===e?c:e,c);if(Ze(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[yn])&&(n=void 0):n=void 0,n===Array||void 0===n))return mn.call(i,a,u);for(r=new(void 0===n?Array:n)(bn(u-a,0)),o=0;a<u;a++,o++)a in i&&dn(r,o,i[a]);return r.length=o,r}});var wn=fe("unscopables"),xn=Array.prototype;null==xn[wn]&&z.f(xn,wn,{configurable:!0,value:ze(null)});var Sn,En,On,jn=function(t){xn[wn][t]=!0},Tn={},An=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_n=nt("IE_PROTO"),Rn=Object.prototype,kn=An?Object.getPrototypeOf:function(t){return t=R(t),I(t,_n)?t[_n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Rn:null},In=fe("iterator"),Pn=!1;[].keys&&("next"in(On=[].keys())?(En=kn(kn(On)))!==Object.prototype&&(Sn=En):Pn=!0),(null==Sn||h((function(){var t={};return Sn[In].call(t)!==t})))&&(Sn={}),I(Sn,In)||F(Sn,In,(function(){return this}));var $n={IteratorPrototype:Sn,BUGGY_SAFARI_ITERATORS:Pn},Cn=z.f,Ln=fe("toStringTag"),Mn=function(t,e,n){t&&!I(t=n?t:t.prototype,Ln)&&Cn(t,Ln,{configurable:!0,value:e})},Un=$n.IteratorPrototype,Nn=function(){return this},Dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return N(n),function(t){if(!A(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),zn=$n.IteratorPrototype,Fn=$n.BUGGY_SAFARI_ITERATORS,Bn=fe("iterator"),Gn=function(){return this},Wn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=ze(Un,{next:w(1,n)}),Mn(t,r,!1),Tn[r]=Nn}(n,e,r);var a,u,l,s=function(t){if(t===o&&h)return h;if(!Fn&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[Bn]||d["@@iterator"]||o&&d[o],h=!Fn&&v||s(o),g="Array"==e&&d.entries||v;if(g&&(a=kn(g.call(new t)),zn!==Object.prototype&&a.next&&(kn(a)!==zn&&(Dn?Dn(a,zn):"function"!=typeof a[Bn]&&F(a,Bn,Gn)),Mn(a,f,!0))),"values"==o&&v&&"values"!==v.name&&(p=!0,h=function(){return v.call(this)}),d[Bn]!==h&&F(d,Bn,h),Tn[e]=h,o)if(u={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},c)for(l in u)(Fn||p||!(l in d))&&ft(d,l,u[l]);else zt({target:e,proto:!0,forced:Fn||p},u);return u},qn=st.set,Hn=st.getterFor("Array Iterator"),Yn=Wn(Array,"Array",(function(t,e){qn(this,{type:"Array Iterator",target:T(t),index:0,kind:e})}),(function(){var t=Hn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Tn.Arguments=Tn.Array,jn("keys"),jn("values"),jn("entries");var Kn={};Kn[fe("toStringTag")]="z";var Vn="[object z]"===String(Kn),Jn=fe("toStringTag"),Qn="Arguments"==S(function(){return arguments}()),Xn=Vn?S:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Jn))?n:Qn?S(e):"Object"==(r=S(e))&&"function"==typeof e.callee?"Arguments":r},Zn=Vn?{}.toString:function(){return"[object "+Xn(this)+"]"};Vn||ft(Object.prototype,"toString",Zn,{unsafe:!0});var tr=!h((function(){return Object.isExtensible(Object.preventExtensions({}))})),er=p((function(t){var e=z.f,n=tt("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},c=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!A(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!I(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!I(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return tr&&c.REQUIRED&&o(t)&&!I(t,n)&&i(t),t}};rt[n]=!0}));er.REQUIRED,er.fastKey,er.getWeakData,er.onFreeze;var nr=fe("iterator"),rr=Array.prototype,or=function(t){return void 0!==t&&(Tn.Array===t||rr[nr]===t)},ir=fe("iterator"),cr=function(t){if(null!=t)return t[ir]||t["@@iterator"]||Tn[Xn(t)]},ar=function(t){var e=t.return;if(void 0!==e)return N(e.call(t)).value},ur=function(t,e){this.stopped=t,this.result=e},lr=function(t,e,n){var r,o,i,c,a,u,l,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=Xe(e,s,1+f+d),h=function(t){return r&&ar(r),new ur(!0,t)},g=function(t){return f?(N(t),d?v(t[0],t[1],h):v(t[0],t[1])):d?v(t,h):v(t)};if(p)r=t;else{if("function"!=typeof(o=cr(t)))throw TypeError("Target is not iterable");if(or(o)){for(i=0,c=bt(t.length);c>i;i++)if((a=g(t[i]))&&a instanceof ur)return a;return new ur(!1)}r=o.call(t)}for(u=r.next;!(l=u.call(r)).done;){try{a=g(l.value)}catch(t){throw ar(r),t}if("object"==typeof a&&a&&a instanceof ur)return a}return new ur(!1)},sr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},fr=fe("iterator"),pr=!1;try{var dr=0,vr={next:function(){return{done:!!dr++}},return:function(){pr=!0}};vr[fr]=function(){return this},Array.from(vr,(function(){throw 2}))}catch(t){}var hr=function(t,e){if(!e&&!pr)return!1;var n=!1;try{var r={};r[fr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},gr=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",c=v[t],a=c&&c.prototype,u=c,l={},s=function(t){var e=a[t];ft(a,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!A(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Nt(t,"function"!=typeof c||!(o||a.forEach&&!h((function(){(new c).entries().next()})))))u=n.getConstructor(e,t,r,i),er.REQUIRED=!0;else if(Nt(t,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,d=h((function(){f.has(1)})),g=hr((function(t){new c(t)})),y=!o&&h((function(){for(var t=new c,e=5;e--;)t[i](e,e);return!t.has(-0)}));g||((u=e((function(e,n){sr(e,u,t);var o=function(t,e,n){var r,o;return Dn&&"function"==typeof(r=e.constructor)&&r!==n&&A(o=r.prototype)&&o!==n.prototype&&Dn(t,o),t}(new c,e,u);return null!=n&&lr(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(d||y)&&(s("delete"),s("has"),r&&s("get")),(y||p)&&s(i),o&&a.clear&&delete a.clear}return l[t]=u,zt({global:!0,forced:u!=c},l),Mn(u,t),o||n.setStrong(u,t,r),u},yr=function(t,e,n){for(var r in e)ft(t,r,e[r],n);return t},mr=fe("species"),br=function(t){var e=vt(t),n=z.f;g&&e&&!e[mr]&&n(e,mr,{configurable:!0,get:function(){return this}})},wr=z.f,xr=er.fastKey,Sr=st.set,Er=st.getterFor,Or={getConstructor:function(t,e,n,r){var o=t((function(t,i){sr(t,o,e),Sr(t,{type:e,index:ze(null),first:void 0,last:void 0,size:0}),g||(t.size=0),null!=i&&lr(i,t[r],{that:t,AS_ENTRIES:n})})),i=Er(e),c=function(t,e,n){var r,o,c=i(t),u=a(t,e);return u?u.value=n:(c.last=u={index:o=xr(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),g?c.size++:t.size++,"F"!==o&&(c.index[o]=u)),t},a=function(t,e){var n,r=i(t),o=xr(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return yr(o.prototype,{clear:function(){for(var t=i(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,g?t.size=0:this.size=0},delete:function(t){var e=i(this),n=a(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),g?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=Xe(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),yr(o.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return c(this,0===t?0:t,e)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),g&&wr(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Er(e),i=Er(r);Wn(t,e,(function(t,e){Sr(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),br(e)}};gr("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var jr=je.charAt,Tr=st.set,Ar=st.getterFor("String Iterator");Wn(String,"String",(function(t){Tr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ar(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jr(n,r),e.index+=t.length,{value:t,done:!1})}));var _r=fe("iterator"),Rr=fe("toStringTag"),kr=Yn.values;for(var Ir in Qe){var Pr=v[Ir],$r=Pr&&Pr.prototype;if($r){if($r[_r]!==kr)try{F($r,_r,kr)}catch(t){$r[_r]=kr}if($r[Rr]||F($r,Rr,Ir),Qe[Ir])for(var Cr in Yn)if($r[Cr]!==Yn[Cr])try{F($r,Cr,Yn[Cr])}catch(t){$r[Cr]=Yn[Cr]}}}var Lr=fe("isConcatSpreadable"),Mr=ie>=51||!h((function(){var t=[];return t[Lr]=!1,t.concat()[0]!==t})),Ur=hn("concat"),Nr=function(t){if(!A(t))return!1;var e=t[Lr];return void 0!==e?!!e:Ze(t)};zt({target:"Array",proto:!0,forced:!Mr||!Ur},{concat:function(t){var e,n,r,o,i,c=R(this),a=en(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Nr(i=-1===e?c:arguments[e])){if(u+(o=bt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&dn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");dn(a,u++,i)}return a.length=u,a}});var Dr,zr,Fr,Br=v.Promise,Gr=/(?:iphone|ipod|ipad).*applewebkit/i.test(ee),Wr="process"==S(v.process),qr=v.location,Hr=v.setImmediate,Yr=v.clearImmediate,Kr=v.process,Vr=v.MessageChannel,Jr=v.Dispatch,Qr=0,Xr={},Zr=function(t){if(Xr.hasOwnProperty(t)){var e=Xr[t];delete Xr[t],e()}},to=function(t){return function(){Zr(t)}},eo=function(t){Zr(t.data)},no=function(t){v.postMessage(t+"",qr.protocol+"//"+qr.host)};Hr&&Yr||(Hr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Xr[++Qr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Dr(Qr),Qr},Yr=function(t){delete Xr[t]},Wr?Dr=function(t){Kr.nextTick(to(t))}:Jr&&Jr.now?Dr=function(t){Jr.now(to(t))}:Vr&&!Gr?(Fr=(zr=new Vr).port2,zr.port1.onmessage=eo,Dr=Xe(Fr.postMessage,Fr,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts&&qr&&"file:"!==qr.protocol&&!h(no)?(Dr=no,v.addEventListener("message",eo,!1)):Dr="onreadystatechange"in C("script")?function(t){Le.appendChild(C("script")).onreadystatechange=function(){Le.removeChild(this),Zr(t)}}:function(t){setTimeout(to(t),0)});var ro,oo,io,co,ao,uo,lo,so,fo={set:Hr,clear:Yr},po=/web0s(?!.*chrome)/i.test(ee),vo=U.f,ho=fo.set,go=v.MutationObserver||v.WebKitMutationObserver,yo=v.document,mo=v.process,bo=v.Promise,wo=vo(v,"queueMicrotask"),xo=wo&&wo.value;xo||(ro=function(){var t,e;for(Wr&&(t=mo.domain)&&t.exit();oo;){e=oo.fn,oo=oo.next;try{e()}catch(t){throw oo?co():io=void 0,t}}io=void 0,t&&t.enter()},Gr||Wr||po||!go||!yo?bo&&bo.resolve?((lo=bo.resolve(void 0)).constructor=bo,so=lo.then,co=function(){so.call(lo,ro)}):co=Wr?function(){mo.nextTick(ro)}:function(){ho.call(v,ro)}:(ao=!0,uo=yo.createTextNode(""),new go(ro).observe(uo,{characterData:!0}),co=function(){uo.data=ao=!ao}));var So,Eo,Oo,jo,To=xo||function(t){var e={fn:t,next:void 0};io&&(io.next=e),oo||(oo=e,co()),io=e},Ao=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=xe(e),this.reject=xe(n)},_o={f:function(t){return new Ao(t)}},Ro=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ko="object"==typeof window,Io=fo.set,Po=fe("species"),$o="Promise",Co=st.get,Lo=st.set,Mo=st.getterFor($o),Uo=Br&&Br.prototype,No=Br,Do=Uo,zo=v.TypeError,Fo=v.document,Bo=v.process,Go=_o.f,Wo=Go,qo=!!(Fo&&Fo.createEvent&&v.dispatchEvent),Ho="function"==typeof PromiseRejectionEvent,Yo=!1,Ko=Nt($o,(function(){var t=K(No)!==String(No);if(!t&&66===ie)return!0;if(ie>=51&&/native code/.test(No))return!1;var e=new No((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Po]=n,!(Yo=e.then((function(){}))instanceof n)||!t&&ko&&!Ho})),Vo=Ko||!hr((function(t){No.all(t).catch((function(){}))})),Jo=function(t){var e;return!(!A(t)||"function"!=typeof(e=t.then))&&e},Qo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;To((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,l=n[i++],s=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{s?(o||(2===t.rejection&&ei(t),t.rejection=1),!0===s?c=r:(d&&d.enter(),c=s(r),d&&(d.exit(),u=!0)),c===l.promise?p(zo("Promise-chain cycle")):(a=Jo(c))?a.call(c,f,p):f(c)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Zo(t)}))}},Xo=function(t,e,n){var r,o;qo?((r=Fo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),v.dispatchEvent(r)):r={promise:e,reason:n},!Ho&&(o=v["on"+t])?o(r):"unhandledrejection"===t&&function(t,e){var n=v.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Zo=function(t){Io.call(v,(function(){var e,n=t.facade,r=t.value;if(ti(t)&&(e=Ro((function(){Wr?Bo.emit("unhandledRejection",r,n):Xo("unhandledrejection",n,r)})),t.rejection=Wr||ti(t)?2:1,e.error))throw e.value}))},ti=function(t){return 1!==t.rejection&&!t.parent},ei=function(t){Io.call(v,(function(){var e=t.facade;Wr?Bo.emit("rejectionHandled",e):Xo("rejectionhandled",e,t.value)}))},ni=function(t,e,n){return function(r){t(e,r,n)}},ri=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Qo(t,!0))},oi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw zo("Promise can't be resolved itself");var r=Jo(e);r?To((function(){var n={done:!1};try{r.call(e,ni(oi,n,t),ni(ri,n,t))}catch(e){ri(n,e,t)}})):(t.value=e,t.state=1,Qo(t,!1))}catch(e){ri({done:!1},e,t)}}};if(Ko&&(Do=(No=function(t){sr(this,No,$o),xe(t),So.call(this);var e=Co(this);try{t(ni(oi,e),ni(ri,e))}catch(t){ri(e,t)}}).prototype,(So=function(t){Lo(this,{type:$o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=yr(Do,{then:function(t,e){var n=Mo(this),r=Go(Ee(this,No));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Wr?Bo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Eo=function(){var t=new So,e=Co(t);this.promise=t,this.resolve=ni(oi,e),this.reject=ni(ri,e)},_o.f=Go=function(t){return t===No||t===Oo?new Eo(t):Wo(t)},"function"==typeof Br&&Uo!==Object.prototype)){jo=Uo.then,Yo||(ft(Uo,"then",(function(t,e){var n=this;return new No((function(t,e){jo.call(n,t,e)})).then(t,e)}),{unsafe:!0}),ft(Uo,"catch",Do.catch,{unsafe:!0}));try{delete Uo.constructor}catch(t){}Dn&&Dn(Uo,Do)}zt({global:!0,wrap:!0,forced:Ko},{Promise:No}),Mn(No,$o,!1),br($o),Oo=vt($o),zt({target:$o,stat:!0,forced:Ko},{reject:function(t){var e=Go(this);return e.reject.call(void 0,t),e.promise}}),zt({target:$o,stat:!0,forced:Ko},{resolve:function(t){return function(t,e){if(N(t),A(e)&&e.constructor===t)return e;var n=_o.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),zt({target:$o,stat:!0,forced:Vo},{all:function(t){var e=this,n=Go(e),r=n.resolve,o=n.reject,i=Ro((function(){var n=xe(e.resolve),i=[],c=0,a=1;lr(t,(function(t){var u=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Go(e),r=n.reject,o=Ro((function(){var o=xe(e.resolve);lr(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),zt({target:"Object",stat:!0,sham:!g},{getOwnPropertyDescriptors:function(t){for(var e,n,r=T(t),o=U.f,i=kt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&dn(c,e,n);return c}});var ii=function(t,e,n,r){try{return r?e(N(n)[0],n[1]):e(n)}catch(e){throw ar(t),e}},ci=!hr((function(t){Array.from(t)}));zt({target:"Array",stat:!0,forced:ci},{from:function(t){var e,n,r,o,i,c,a=R(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=cr(a),d=0;if(f&&(s=Xe(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&or(p))for(n=new u(e=bt(a.length));e>d;d++)c=f?s(a[d],d):a[d],dn(n,d,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;d++)c=f?ii(o,s,[r.value,d],!0):r.value,dn(n,d,c);return n.length=d,n}});var ai=z.f,ui=Function.prototype,li=ui.toString,si=/^\s*function ([^ (]*)/;g&&!("name"in ui)&&ai(ui,"name",{configurable:!0,get:function(){try{return li.call(this).match(si)[1]}catch(t){return""}}});var fi=hn("splice"),pi=Math.max,di=Math.min;zt({target:"Array",proto:!0,forced:!fi},{splice:function(t,e){var n,r,o,i,c,a,u=R(this),l=bt(u.length),s=St(t,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-s):(n=f-2,r=di(pi(yt(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=en(u,r),i=0;i<r;i++)(c=s+i)in u&&dn(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<l-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:delete u[a];for(i=l;i>l-r+n;i--)delete u[i-1]}else if(n>r)for(i=l-r;i>s;i--)a=i+n-1,(c=i+r-1)in u?u[a]=u[c]:delete u[a];for(i=0;i<n;i++)u[i+s]=arguments[i+2];return u.length=l-r+n,o}});var vi=on.map,hi=hn("map");zt({target:"Array",proto:!0,forced:!hi},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var gi=on.filter,yi=hn("filter");zt({target:"Array",proto:!0,forced:!yi},{filter:function(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=[].join,bi=O!=Object,wi=cn("join",",");zt({target:"Array",proto:!0,forced:bi||!wi},{join:function(t){return mi.call(T(this),void 0===t?",":t)}});var xi=/"/g;zt({target:"String",proto:!0,forced:function(t){return h((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",n="name",r=t,o=String(j(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(xi,""")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}}),gr("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var Si=Object.assign,Ei=Object.defineProperty,Oi=!Si||h((function(){if(g&&1!==Si({b:1},Si(Ei({},"a",{enumerable:!0,get:function(){Ei(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Si({},t)[n]||"abcdefghijklmnopqrst"!=$e(Si({},e)).join("")}))?function(t,e){for(var n=R(t),r=arguments.length,o=1,i=Rt.f,c=b.f;r>o;)for(var a,u=O(arguments[o++]),l=i?$e(u).concat(i(u)):$e(u),s=l.length,f=0;s>f;)a=l[f++],g&&!c.call(u,a)||(n[a]=u[a]);return n}:Si;zt({target:"Object",stat:!0,forced:Object.assign!==Oi},{assign:Oi});var ji=Math.floor,Ti="".replace,Ai=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_i=/\$([$&'`]|\d{1,2})/g,Ri=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=_i;return void 0!==o&&(o=R(o),u=Ai),Ti.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var f=ji(s/10);return 0===f?i:f<=a?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[s-1]}return void 0===l?"":l}))},ki=Math.max,Ii=Math.min;be("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=j(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=N(t),l=String(this),s="function"==typeof r;s||(r=String(r));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var v=_e(u,l);if(null===v)break;if(d.push(v),!f)break;""===String(v[0])&&(u.lastIndex=Ae(l,bt(u.lastIndex),p))}for(var h,g="",y=0,m=0;m<d.length;m++){v=d[m];for(var b=String(v[0]),w=ki(Ii(yt(v.index),l.length),0),x=[],S=1;S<v.length;S++)x.push(void 0===(h=v[S])?h:String(h));var E=v.groups;if(s){var O=[b].concat(x,w,l);void 0!==E&&O.push(E);var j=String(r.apply(void 0,O))}else j=Ri(b,l,w,x,E,r);w>=y&&(g+=l.slice(y,w)+j,y=w+b.length)}return g+l.slice(y)}]}));zt({target:"Array",proto:!0},{fill:function(t){for(var e=R(this),n=bt(e.length),r=arguments.length,o=St(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:St(i,n);c>o;)e[o++]=t;return e}}),jn("fill");var Pi=_t.f,$i={}.toString,Ci="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Li={f:function(t){return Ci&&"[object Window]"==$i.call(t)?function(t){try{return Pi(t)}catch(t){return Ci.slice()}}(t):Pi(T(t))}},Mi={f:fe},Ui=z.f,Ni=function(t){var e=pt.Symbol||(pt.Symbol={});I(e,t)||Ui(e,t,{value:Mi.f(t)})},Di=on.forEach,zi=nt("hidden"),Fi=fe("toPrimitive"),Bi=st.set,Gi=st.getterFor("Symbol"),Wi=Object.prototype,qi=v.Symbol,Hi=vt("JSON","stringify"),Yi=U.f,Ki=z.f,Vi=Li.f,Ji=b.f,Qi=Q("symbols"),Xi=Q("op-symbols"),Zi=Q("string-to-symbol-registry"),tc=Q("symbol-to-string-registry"),ec=Q("wks"),nc=v.QObject,rc=!nc||!nc.prototype||!nc.prototype.findChild,oc=g&&h((function(){return 7!=ze(Ki({},"a",{get:function(){return Ki(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Yi(Wi,e);r&&delete Wi[e],Ki(t,e,n),r&&t!==Wi&&Ki(Wi,e,r)}:Ki,ic=function(t,e){var n=Qi[t]=ze(qi.prototype);return Bi(n,{type:"Symbol",tag:t,description:e}),g||(n.description=e),n},cc=ae?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof qi},ac=function(t,e,n){t===Wi&&ac(Xi,e,n),N(t);var r=_(e,!0);return N(n),I(Qi,r)?(n.enumerable?(I(t,zi)&&t[zi][r]&&(t[zi][r]=!1),n=ze(n,{enumerable:w(0,!1)})):(I(t,zi)||Ki(t,zi,w(1,{})),t[zi][r]=!0),oc(t,r,n)):Ki(t,r,n)},uc=function(t,e){N(t);var n=T(e),r=$e(n).concat(pc(n));return Di(r,(function(e){g&&!lc.call(n,e)||ac(t,e,n[e])})),t},lc=function(t){var e=_(t,!0),n=Ji.call(this,e);return!(this===Wi&&I(Qi,e)&&!I(Xi,e))&&(!(n||!I(this,e)||!I(Qi,e)||I(this,zi)&&this[zi][e])||n)},sc=function(t,e){var n=T(t),r=_(e,!0);if(n!==Wi||!I(Qi,r)||I(Xi,r)){var o=Yi(n,r);return!o||!I(Qi,r)||I(n,zi)&&n[zi][r]||(o.enumerable=!0),o}},fc=function(t){var e=Vi(T(t)),n=[];return Di(e,(function(t){I(Qi,t)||I(rt,t)||n.push(t)})),n},pc=function(t){var e=t===Wi,n=Vi(e?Xi:T(t)),r=[];return Di(n,(function(t){!I(Qi,t)||e&&!I(Wi,t)||r.push(Qi[t])})),r};if(ce||(ft((qi=function(){if(this instanceof qi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=tt(t),n=function(t){this===Wi&&n.call(Xi,t),I(this,zi)&&I(this[zi],e)&&(this[zi][e]=!1),oc(this,e,w(1,t))};return g&&rc&&oc(Wi,e,{configurable:!0,set:n}),ic(e,t)}).prototype,"toString",(function(){return Gi(this).tag})),ft(qi,"withoutSetter",(function(t){return ic(tt(t),t)})),b.f=lc,z.f=ac,U.f=sc,_t.f=Li.f=fc,Rt.f=pc,Mi.f=function(t){return ic(fe(t),t)},g&&(Ki(qi.prototype,"description",{configurable:!0,get:function(){return Gi(this).description}}),ft(Wi,"propertyIsEnumerable",lc,{unsafe:!0}))),zt({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:qi}),Di($e(ec),(function(t){Ni(t)})),zt({target:"Symbol",stat:!0,forced:!ce},{for:function(t){var e=String(t);if(I(Zi,e))return Zi[e];var n=qi(e);return Zi[e]=n,tc[n]=e,n},keyFor:function(t){if(!cc(t))throw TypeError(t+" is not a symbol");if(I(tc,t))return tc[t]},useSetter:function(){rc=!0},useSimple:function(){rc=!1}}),zt({target:"Object",stat:!0,forced:!ce,sham:!g},{create:function(t,e){return void 0===e?ze(t):uc(ze(t),e)},defineProperty:ac,defineProperties:uc,getOwnPropertyDescriptor:sc}),zt({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:fc,getOwnPropertySymbols:pc}),zt({target:"Object",stat:!0,forced:h((function(){Rt.f(1)}))},{getOwnPropertySymbols:function(t){return Rt.f(R(t))}}),Hi){var dc=!ce||h((function(){var t=qi();return"[null]"!=Hi([t])||"{}"!=Hi({a:t})||"{}"!=Hi(Object(t))}));zt({target:"JSON",stat:!0,forced:dc},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(A(e)||void 0!==t)&&!cc(t))return Ze(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!cc(e))return e}),o[1]=e,Hi.apply(null,o)}})}qi.prototype[Fi]||F(qi.prototype,Fi,qi.prototype.valueOf),Mn(qi,"Symbol"),rt[zi]=!0;var vc,hc=z.f,gc=v.Symbol;if(g&&"function"==typeof gc&&(!("description"in gc.prototype)||void 0!==gc().description)){var yc={},mc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mc?new gc(t):void 0===t?gc():gc(t);return""===t&&(yc[e]=!0),e};It(mc,gc);var bc=mc.prototype=gc.prototype;bc.constructor=mc;var wc=bc.toString,xc="Symbol(test)"==String(gc("test")),Sc=/^Symbol\((.*)\)[^)]+$/;hc(bc,"description",{configurable:!0,get:function(){var t=A(this)?this.valueOf():this,e=wc.call(t);if(I(yc,t))return"";var n=xc?e.slice(7,-1):e.replace(Sc,"$1");return""===n?void 0:n}}),zt({global:!0,forced:!0},{Symbol:mc})}function Ec(){}function Oc(t){return t()}function jc(){return Object.create(null)}function Tc(t){t.forEach(Oc)}function Ac(t){return"function"==typeof t}function _c(t,e){return t!=t?e==e:t!==e||t&&"object"===i(t)||"function"==typeof t}function Rc(t,e){t.appendChild(e)}function kc(t,e,n){t.insertBefore(e,n||null)}function Ic(t){t.parentNode.removeChild(t)}function Pc(t){return document.createElement(t)}function $c(t){return document.createTextNode(t)}function Cc(){return $c(" ")}function Lc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Mc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Uc(t){return Array.from(t.childNodes)}function Nc(t,e,n){t.classList[n?"add":"remove"](e)}function Dc(t){vc=t}Ni("iterator");var zc=[],Fc=[],Bc=[],Gc=[],Wc=Promise.resolve(),qc=!1;function Hc(t){Bc.push(t)}var Yc=!1,Kc=new Set;function Vc(){if(!Yc){Yc=!0;do{for(var t=0;t<zc.length;t+=1){var e=zc[t];Dc(e),Jc(e.$$)}for(Dc(null),zc.length=0;Fc.length;)Fc.pop()();for(var n=0;n<Bc.length;n+=1){var r=Bc[n];Kc.has(r)||(Kc.add(r),r())}Bc.length=0}while(zc.length);for(;Gc.length;)Gc.pop()();qc=!1,Yc=!1,Kc.clear()}}function Jc(t){if(null!==t.fragment){t.update(),Tc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Hc)}}var Qc=new Set;function Xc(t,e){t&&t.i&&(Qc.delete(t),t.i(e))}function Zc(t,e,n,r){if(t&&t.o){if(Qc.has(t))return;Qc.add(t),(void 0).c.push((function(){Qc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var ta="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ea(t){t&&t.c()}function na(t,e,n,r){var o=t.$$,i=o.fragment,c=o.on_mount,a=o.on_destroy,u=o.after_update;i&&i.m(e,n),r||Hc((function(){var e=c.map(Oc).filter(Ac);a?a.push.apply(a,Ve(e)):Tc(e),t.$$.on_mount=[]})),u.forEach(Hc)}function ra(t,e){var n=t.$$;null!==n.fragment&&(Tc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function oa(t,e){-1===t.$$.dirty[0]&&(zc.push(t),qc||(qc=!0,Wc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ia(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=vc;Dc(t);var u=t.$$={fragment:null,ctx:null,props:i,update:Ec,not_equal:o,bound:jc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:jc(),dirty:c,skip_bound:!1},l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&oa(t,e)),n})):[],u.update(),l=!0,Tc(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var s=Uc(e.target);u.fragment&&u.fragment.l(s),s.forEach(Ic)}else u.fragment&&u.fragment.c();e.intro&&Xc(t.$$.fragment),na(t,e.target,e.anchor,e.customElement),Vc()}Dc(a)}var ca=function(){function t(){e(this,t)}var n,r,o;return n=t,(r=[{key:"$destroy",value:function(){ra(this,1),this.$destroy=Ec}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&Je(n.prototype,r),o&&Je(n,o),t}();function aa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function ua(t){var e,n,r;return{c:function(){(e=Pc("p")).textContent="Please make sure that the script tag has 'id=\"chatbot\"' and the attribute\n 'data-server' with the full qualified URL to the chatbot-server.",n=Cc(),(r=Pc("pre")).innerHTML='<code class="svelte-1ril8w"><script\n <br class="svelte-1ril8w"/>\n id="chatbot"\n <br class="svelte-1ril8w"/>\n data-server="https://server.com/webclient"\n <br class="svelte-1ril8w"/>\n defer\n <br class="svelte-1ril8w"/>\n src="https://server.com/webclient/embed/bundle.js"> </script></code>',Mc(e,"class","svelte-1ril8w"),Mc(r,"class","svelte-1ril8w")},m:function(t,o){kc(t,e,o),kc(t,n,o),kc(t,r,o)},p:Ec,d:function(t){t&&Ic(e),t&&Ic(n),t&&Ic(r)}}}function la(t){var e,n,r,o,i,c,a,u,l,s,f,p;return{c:function(){e=Pc("div"),n=Pc("div"),r=Pc("img"),i=Cc(),(c=Pc("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-1ril8w"><path d="M0,0L20,20M20,0L0,20" class="svelte-1ril8w"></path></svg>',a=Cc(),u=Pc("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),Mc(r,"alt","Logo"),Mc(r,"class","svelte-1ril8w"),Mc(c,"aria-label","Close chat window"),Mc(c,"role","button"),Mc(c,"class","bot-border-close-icon svelte-1ril8w"),Mc(c,"tabindex",0),Mc(n,"class","header svelte-1ril8w"),Mc(u,"id","chat-frame"),Mc(u,"title","Chat"),Mc(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&Mc(u,"src",l),Mc(u,"frameborder","0"),Mc(u,"allow","microphone"),u.allowFullscreen="",Mc(e,"class","bot-border svelte-1ril8w"),Mc(e,"aria-hidden",s=t[1]?"false":"true"),Nc(e,"closed",!t[1])},m:function(o,l){kc(o,e,l),Rc(e,n),Rc(n,r),Rc(n,i),Rc(n,c),Rc(e,a),Rc(e,u),f||(p=[Lc(c,"click",(function(){Ac(t[3])&&t[3].apply(this,arguments)})),Lc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),1&i&&u.src!==(l=t[0])&&Mc(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&Mc(e,"aria-hidden",s),2&i&&Nc(e,"closed",!t[1])},d:function(t){t&&Ic(e),f=!1,Tc(p)}}}function sa(t){var e;function n(t,e){return t[0]?la:ua}var r=n(t),o=r(t);return{c:function(){o.c(),e=$c("")},m:function(t,n){o.m(t,n),kc(t,e,n)},p:function(t,i){var c=s(i,1)[0];r===(r=n(t))&&o?o.p(t,c):(o.d(1),(o=r(t))&&(o.c(),o.m(e.parentNode,e)))},i:Ec,o:Ec,d:function(t){o.d(t),t&&Ic(e)}}}function fa(t,e,n){var r=e.server,o=e.open,i=e.assetsUrl,c=e.onToggle;return t.$$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open),"assetsUrl"in t&&n(2,i=t.assetsUrl),"onToggle"in t&&n(3,c=t.onToggle)},[r,o,i,c,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),c())}]}var pa=function(t){o(i,t);var r=aa(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-1ril8w-style")||((c=Pc("style")).id="svelte-1ril8w-style",c.textContent=".svelte-1ril8w.svelte-1ril8w,.svelte-1ril8w.svelte-1ril8w:before,.svelte-1ril8w.svelte-1ril8w:after{box-sizing:border-box}.bot-border.svelte-1ril8w.svelte-1ril8w{position:fixed !important;display:flex;flex-direction:column;bottom:0;height:85vh;width:100%;border-width:0;border-radius:12px;box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms, opacity 100ms 100ms, all 150ms;z-index:1000}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(85vh);opacity:0}.header.svelte-1ril8w.svelte-1ril8w{display:flex;justify-content:space-between;width:100%;height:3.5em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-1ril8w.svelte-1ril8w{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-1ril8w.svelte-1ril8w{height:38em;max-height:calc(100vh - 2rem);width:23em;right:1em;bottom:1em;left:auto}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(38em);opacity:0}}.bot-border-close-icon.svelte-1ril8w.svelte-1ril8w{height:100%}img.svelte-1ril8w.svelte-1ril8w{display:block;height:100%}svg.svelte-1ril8w.svelte-1ril8w{height:100%;padding:0.4em;cursor:pointer}svg.svelte-1ril8w path.svelte-1ril8w{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-1ril8w:hover path.svelte-1ril8w{stroke-width:3px}p.svelte-1ril8w.svelte-1ril8w,pre.svelte-1ril8w.svelte-1ril8w{max-width:300px}pre.svelte-1ril8w.svelte-1ril8w{font-size:0.6em;line-height:0.5}",Rc(document.head,c)),ia(n(o),t,fa,sa,_c,{server:0,open:1,assetsUrl:2,onToggle:3}),o}return i}(ca);function da(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function va(t){var e,n,r,o,i;return{c:function(){e=Pc("div"),Mc(n=Pc("img"),"class","chat-button svelte-xlhtz"),Mc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r),Mc(e,"class","chat-button-wrapper svelte-xlhtz"),Mc(e,"tabindex","0"),Mc(e,"role","button"),Mc(e,"aria-label","Open chat window")},m:function(r,c){kc(r,e,c),Rc(e,n),o||(i=[Lc(e,"click",(function(){Ac(t[1])&&t[1].apply(this,arguments)})),Lc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=s(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r)},i:Ec,o:Ec,d:function(t){t&&Ic(e),o=!1,Tc(i)}}}function ha(t,e,n){var r=e.assetsUrl,o=e.onToggle;return t.$$set=function(t){"assetsUrl"in t&&n(0,r=t.assetsUrl),"onToggle"in t&&n(1,o=t.onToggle)},[r,o,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),o())}]}var ga=function(t){o(i,t);var r=da(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-xlhtz-style")||((c=Pc("style")).id="svelte-xlhtz-style",c.textContent=".svelte-xlhtz,.svelte-xlhtz:before,.svelte-xlhtz:after{box-sizing:border-box}.chat-button-wrapper.svelte-xlhtz{position:fixed !important;right:2em;bottom:2em;width:6em;height:6em;z-index:999}.chat-button.svelte-xlhtz{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms, box-shadow 100ms}.chat-button.svelte-xlhtz:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}",Rc(document.head,c)),ia(n(o),t,ha,va,_c,{assetsUrl:0,onToggle:1}),o}return i}(ca),ya=function(t,e){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",(function(n){var r,o=n.data;switch(o.type){case"webclient.expand.window":t(o.devices);break;case"webclient.change.url":e(o.url);break;case"google.tag.event":r=o.payload,window.gtag?window.gtag("event","",r):window.dataLayer&&window.dataLayer.push(r)}}),!1)},ma=p((function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=e+"="+n+a}}function c(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(a[0]);if(u=(r.read||r)(u,l)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[l]=u,t===l)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return c(t,!1)},o.getJSON=function(t){return c(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},t.exports=n()})),ba=function(){switch(ma.get("bot-window")){case"open":return!0;case"closed":default:return!1}},wa=function(t){ma.set("bot-window",t)},xa=!1;var Sa=[],Ea=ba();function Oa(){Ea=!0,wa("open"),Sa.forEach((function(t){t.call(window,Ea)}))}function ja(){Ea=!1,wa("closed"),Sa.forEach((function(t){t.call(window,Ea)}))}function Ta(){Ea?ja():Oa()}function Aa(t){document.getElementById("chat-frame").contentWindow.postMessage(t,"*")}function _a(t,e){switch(t){case"ON_CHAT_WINDOW_STATE_CHANGE":Sa.push(e);break;default:throw new Error("Unsupported event "+t)}}be("match",1,(function(t,e,n){return[function(e){var n=j(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=N(t),i=String(this);if(!o.global)return _e(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=_e(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=Ae(i,bt(o.lastIndex),c)),l++}return 0===l?null:u}]}));var Ra=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))};function ka(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}var Ia=ta.document;function Pa(t){var e,n,r,o,i,c,a,u;return i=new ga({props:{server:t[0],assetsUrl:t[1],onToggle:Ta}}),a=new pa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:Ta}}),{c:function(){e=Pc("link"),r=Cc(),o=Pc("div"),ea(i.$$.fragment),c=Cc(),ea(a.$$.fragment),Mc(e,"rel","stylesheet"),Mc(e,"href",n="".concat(t[1],"/embed/custom.css")),Mc(o,"id","chatbot-window"),Mc(o,"class","svelte-sr5aex")},m:function(t,n){Rc(Ia.head,e),kc(t,r,n),kc(t,o,n),na(i,o,null),Rc(o,c),na(a,o,null),u=!0},p:function(t,r){var o=s(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&Mc(e,"href",n);var c={};1&o&&(c.server=t[0]),2&o&&(c.assetsUrl=t[1]),i.$set(c);var l={};1&o&&(l.server=t[0]),2&o&&(l.assetsUrl=t[1]),4&o&&(l.open=t[2]),a.$set(l)},i:function(t){u||(Xc(i.$$.fragment,t),Xc(a.$$.fragment,t),u=!0)},o:function(t){Zc(i.$$.fragment,t),Zc(a.$$.fragment,t),u=!1},d:function(t){Ic(e),t&&Ic(r),t&&Ic(o),ra(i),ra(a)}}}function $a(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;Ra();var c=ba();return _a("ON_CHAT_WINDOW_STATE_CHANGE",(function(t){n(2,c=t)})),ya((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&Oa()}),(function(t){window.innerWidth<768&&ja(),document.location.href=t})),t.$$set=function(t){"server"in t&&n(0,r=t.server),"assetsUrl"in t&&n(1,i=t.assetsUrl)},[r,i,c]}var Ca=function(t){o(i,t);var r=ka(i);function i(t){var o,c;return e(this,i),o=r.call(this),Ia.getElementById("svelte-sr5aex-style")||((c=Pc("style")).id="svelte-sr5aex-style",c.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",Rc(Ia.head,c)),ia(n(o),t,$a,Pa,_c,{server:0,assetsUrl:1}),o}return i}(ca),La=function(t){if(t&&void 0!==t.src)return function(t){return t.dataset&&t.dataset.server}(t)||function(t){return t.src.replace(/\/embed\/bundle\.js/,"")}(t)}(document.querySelector("script#chatbot")),Ma=function(){console.log("Chatbot is loading from",La),new Ca({target:document.body,props:{server:La}}),xa=!0};return window.addEventListener("load",(function(){return setTimeout(Ma,3e3)})),t.closeChatWindow=ja,t.enterGuestMessage=function(t){Aa({type:"CHAT_MESSAGE_FROM_GUEST",text:t})},t.isChatbotLoaded=function(){return xa},t.openChatWindow=Oa,t.subscribe=_a,t.toggleChatWindow=Ta,t.triggerStory=function(t){Aa({type:"TRIGGER_STORY",story:t})},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
2
2
|
//# sourceMappingURL=bundle.js.map
|