@botfabrik/engine-webclient 4.17.1 → 4.18.0
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 +6 -0
- package/dist/client/asset-manifest.json +10 -10
- package/dist/client/index.html +1 -1
- package/dist/client/static/css/main.621c2cc2.chunk.css +2 -0
- package/dist/client/static/css/main.621c2cc2.chunk.css.map +1 -0
- package/dist/client/static/js/{2.1c49bcd9.chunk.js → 2.d04a9171.chunk.js} +2 -2
- package/dist/client/static/js/{2.1c49bcd9.chunk.js.map → 2.d04a9171.chunk.js.map} +1 -1
- package/dist/client/static/js/main.fee78212.chunk.js +2 -0
- package/dist/client/static/js/main.fee78212.chunk.js.map +1 -0
- package/dist/embed/bundle.js +1 -1
- package/dist/embed/bundle.js.map +1 -1
- package/dist/loadPreviousConversation.d.ts +1 -1
- package/dist/speechToText.js.map +1 -1
- package/package.json +7 -6
- package/dist/client/static/css/main.46df3134.chunk.css +0 -2
- package/dist/client/static/css/main.46df3134.chunk.css.map +0 -1
- package/dist/client/static/js/main.6bfed136.chunk.js +0 -2
- package/dist/client/static/js/main.6bfed136.chunk.js.map +0 -1
- /package/dist/client/static/js/{2.1c49bcd9.chunk.js.LICENSE.txt → 2.d04a9171.chunk.js.LICENSE.txt} +0 -0
package/dist/embed/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var app=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,u={f:a&&!c.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,f=function(t){return s.call(t).slice(8,-1)},p="".split,d=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==f(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return d(v(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,b=function(t,e){return m.call(t,e)},w=r.document,x=g(w)&&g(w.createElement),S=function(t){return x?w.createElement(t):{}},E=!i&&!o((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,j={f:i?O:function(t,e){if(t=h(t),e=y(e,!0),E)try{return O(t,e)}catch(t){}if(b(t,e))return l(!u.f.call(t,e),t[e])}},A=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},T=Object.defineProperty,R={f:i?T:function(t,e,n){if(A(t),e=y(e,!0),A(n),E)try{return T(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}},k=i?function(t,e,n){return R.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},P=function(t,e){try{k(r,t,e)}catch(n){r[t]=e}return e},I=r["__core-js_shared__"]||P("__core-js_shared__",{}),_=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(t){return _.call(t)});var C,$,L,M=I.inspectSource,U=r.WeakMap,D="function"==typeof U&&/native code/.test(M(U)),z=e((function(t){(t.exports=function(t,e){return I[t]||(I[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),N=0,F=Math.random(),B=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+F).toString(36)},q=z("keys"),G=function(t){return q[t]||(q[t]=B(t))},W={},K=r.WeakMap;if(D){var V=new K,Y=V.get,H=V.has,J=V.set;C=function(t,e){return J.call(V,t,e),e},$=function(t){return Y.call(V,t)||{}},L=function(t){return H.call(V,t)}}else{var Q=G("state");W[Q]=!0,C=function(t,e){return k(t,Q,e),e},$=function(t){return b(t,Q)?t[Q]:{}},L=function(t){return b(t,Q)}}var X={set:C,get:$,has:L,enforce:function(t){return L(t)?$(t):C(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=$(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Z=e((function(t){var e=X.get,n=X.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,l=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||b(i,"name")||k(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=i:k(t,e,i)):u?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||M(this)}))})),tt=r,et=function(t){return"function"==typeof t?t:void 0},nt=function(t,e){return arguments.length<2?et(tt[t])||et(r[t]):tt[t]&&tt[t][e]||r[t]&&r[t][e]},rt=Math.ceil,ot=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?ot:rt)(t)},ct=Math.min,at=function(t){return t>0?ct(it(t),9007199254740991):0},ut=Math.max,lt=Math.min,st=function(t,e){var n=it(t);return n<0?ut(n+e,0):lt(n,e)},ft=function(t){return function(e,n,r){var o,i=h(e),c=at(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}},pt={includes:ft(!0),indexOf:ft(!1)},dt=pt.indexOf,vt=function(t,e){var n,r=h(t),o=0,i=[];for(n in r)!b(W,n)&&b(r,n)&&i.push(n);for(;e.length>o;)b(r,n=e[o++])&&(~dt(i,n)||i.push(n));return i},ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gt=ht.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return vt(t,gt)}},mt={f:Object.getOwnPropertySymbols},bt=nt("Reflect","ownKeys")||function(t){var e=yt.f(A(t)),n=mt.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=bt(e),r=R.f,o=j.f,i=0;i<n.length;i++){var c=n[i];b(t,c)||r(t,c,o(e,c))}},xt=/#|\.prototype\./,St=function(t,e){var n=Ot[Et(t)];return n==At||n!=jt&&("function"==typeof e?o(e):!!e)},Et=St.normalize=function(t){return String(t).replace(xt,".").toLowerCase()},Ot=St.data={},jt=St.NATIVE="N",At=St.POLYFILL="P",Tt=St,Rt=j.f,kt=function(t,e){var n,o,i,c,a,u=t.target,l=t.global,s=t.stat;if(n=l?r:s?r[u]||P(u,{}):(r[u]||{}).prototype)for(o in e){if(c=e[o],i=t.noTargetGet?(a=Rt(n,o))&&a.value:n[o],!Tt(l?o:u+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;wt(c,i)}(t.sham||i&&i.sham)&&k(c,"sham",!0),Z(n,o,c,t)}},Pt=function(){var t=A(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 It(t,e){return RegExp(t,e)}var _t,Ct,$t={UNSUPPORTED_Y:o((function(){var t=It("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=It("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Lt=RegExp.prototype.exec,Mt=String.prototype.replace,Ut=Lt,Dt=(_t=/a/,Ct=/b*/g,Lt.call(_t,"a"),Lt.call(Ct,"a"),0!==_t.lastIndex||0!==Ct.lastIndex),zt=$t.UNSUPPORTED_Y||$t.BROKEN_CARET,Nt=void 0!==/()??/.exec("")[1];(Dt||Nt||zt)&&(Ut=function(t){var e,n,r,o,i=this,c=zt&&i.sticky,a=Pt.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)),Nt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Dt&&(e=i.lastIndex),r=Lt.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:Dt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Nt&&r&&r.length>1&&Mt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Ft=Ut;kt({target:"RegExp",proto:!0,forced:/./.exec!==Ft},{exec:Ft});var Bt=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),qt=Bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=z("wks"),Wt=r.Symbol,Kt=qt?Wt:Wt&&Wt.withoutSetter||B,Vt=function(t){return b(Gt,t)||(Bt&&b(Wt,t)?Gt[t]=Wt[t]:Gt[t]=Kt("Symbol."+t)),Gt[t]},Yt=Vt("species"),Ht=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Jt="$0"==="a".replace(/./,"$0"),Qt=Vt("replace"),Xt=!!/./[Qt]&&""===/./[Qt]("a","$0"),Zt=!o((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]})),te=function(t,e,n,r){var i=Vt(t),c=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=c&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Yt]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!c||!a||"replace"===t&&(!Ht||!Jt||Xt)||"split"===t&&!Zt){var u=/./[i],l=n(i,""[t],(function(t,e,n,r,o){return e.exec===Ft?c&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Jt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xt}),s=l[0],f=l[1];Z(String.prototype,t,s),Z(RegExp.prototype,i,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)})}r&&k(RegExp.prototype[i],"sham",!0)},ee=Vt("match"),ne=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},re=Vt("species"),oe=function(t,e){var n,r=A(t).constructor;return void 0===r||null==(n=A(r)[re])?e:ne(n)},ie=function(t){return function(e,n){var r,o,i=String(v(e)),c=it(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}},ce={codeAt:ie(!1),charAt:ie(!0)},ae=ce.charAt,ue=function(t,e,n){return e+(n?ae(t,e).length:1)},le=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"!==f(t))throw TypeError("RegExp#exec called on incompatible receiver");return Ft.call(t,e)},se=[].push,fe=Math.min,pe=!o((function(){return!RegExp(4294967295,"y")}));function de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ve(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function he(t,e){return(he=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ge(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&&he(t,e)}function ye(t){return(ye="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 me(t,e){return!e||"object"!==ye(e)&&"function"!=typeof e?ve(t):e}function be(t){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function we(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 xe(t,e){if(t){if("string"==typeof t)return we(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)?we(t,e):void 0}}function Se(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,e)||xe(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.")}()}te("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(v(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!g(r=t)||!(void 0!==(o=r[ee])?o:"RegExp"==f(r)))return e.call(i,t,c);for(var a,u,l,s=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,h=new RegExp(t.source,p+"g");(a=Ft.call(h,i))&&!((u=h.lastIndex)>d&&(s.push(i.slice(d,a.index)),a.length>1&&a.index<i.length&&se.apply(s,a.slice(1)),l=a[0].length,d=u,s.length>=c));)h.lastIndex===a.index&&h.lastIndex++;return d===i.length?!l&&h.test("")||s.push(""):s.push(i.slice(d)),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=v(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=A(t),a=String(this),u=oe(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(pe?"y":"g"),f=new u(pe?c:"^(?:"+c.source+")",s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===le(f,a)?[a]:[];for(var d=0,v=0,h=[];v<a.length;){f.lastIndex=pe?v:0;var g,y=le(f,pe?a:a.slice(v));if(null===y||(g=fe(at(f.lastIndex+(pe?0:v)),a.length))===d)v=ue(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}]}),!pe);var Ee,Oe=Array.isArray||function(t){return"Array"==f(t)},je=function(t){return Object(v(t))},Ae=Object.keys||function(t){return vt(t,ht)},Te=i?Object.defineProperties:function(t,e){A(t);for(var n,r=Ae(e),o=r.length,i=0;o>i;)R.f(t,n=r[i++],e[n]);return t},Re=nt("document","documentElement"),ke=G("IE_PROTO"),Pe=function(){},Ie=function(t){return"<script>"+t+"<\/script>"},_e=function(){try{Ee=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;_e=Ee?function(t){t.write(Ie("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ee):((e=S("iframe")).style.display="none",Re.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ie("document.F=Object")),t.close(),t.F);for(var n=ht.length;n--;)delete _e.prototype[ht[n]];return _e()};W[ke]=!0;var Ce=Object.create||function(t,e){var n;return null!==t?(Pe.prototype=A(t),n=new Pe,Pe.prototype=null,n[ke]=t):n=_e(),void 0===e?n:Te(n,e)},$e=yt.f,Le={}.toString,Me="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ue={f:function(t){return Me&&"[object Window]"==Le.call(t)?function(t){try{return $e(t)}catch(t){return Me.slice()}}(t):$e(h(t))}},De={f:Vt},ze=R.f,Ne=function(t){var e=tt.Symbol||(tt.Symbol={});b(e,t)||ze(e,t,{value:De.f(t)})},Fe=R.f,Be=Vt("toStringTag"),qe=function(t,e,n){t&&!b(t=n?t:t.prototype,Be)&&Fe(t,Be,{configurable:!0,value:e})},Ge=function(t,e,n){if(ne(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)}},We=Vt("species"),Ke=function(t,e){var n;return Oe(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Oe(n.prototype)?g(n)&&null===(n=n[We])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ve=[].push,Ye=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,l,s){for(var f,p,v=je(a),h=d(v),g=Ge(u,l,3),y=at(h.length),m=0,b=s||Ke,w=e?b(a,y):n?b(a,0):void 0;y>m;m++)if((c||m in h)&&(p=g(f=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:Ve.call(w,f)}else if(o)return!1;return i?-1:r||o?o:w}},He={forEach:Ye(0),map:Ye(1),filter:Ye(2),some:Ye(3),every:Ye(4),find:Ye(5),findIndex:Ye(6)},Je=He.forEach,Qe=G("hidden"),Xe=Vt("toPrimitive"),Ze=X.set,tn=X.getterFor("Symbol"),en=Object.prototype,nn=r.Symbol,rn=nt("JSON","stringify"),on=j.f,cn=R.f,an=Ue.f,un=u.f,ln=z("symbols"),sn=z("op-symbols"),fn=z("string-to-symbol-registry"),pn=z("symbol-to-string-registry"),dn=z("wks"),vn=r.QObject,hn=!vn||!vn.prototype||!vn.prototype.findChild,gn=i&&o((function(){return 7!=Ce(cn({},"a",{get:function(){return cn(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=on(en,e);r&&delete en[e],cn(t,e,n),r&&t!==en&&cn(en,e,r)}:cn,yn=function(t,e){var n=ln[t]=Ce(nn.prototype);return Ze(n,{type:"Symbol",tag:t,description:e}),i||(n.description=e),n},mn=qt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof nn},bn=function(t,e,n){t===en&&bn(sn,e,n),A(t);var r=y(e,!0);return A(n),b(ln,r)?(n.enumerable?(b(t,Qe)&&t[Qe][r]&&(t[Qe][r]=!1),n=Ce(n,{enumerable:l(0,!1)})):(b(t,Qe)||cn(t,Qe,l(1,{})),t[Qe][r]=!0),gn(t,r,n)):cn(t,r,n)},wn=function(t,e){A(t);var n=h(e),r=Ae(n).concat(On(n));return Je(r,(function(e){i&&!xn.call(n,e)||bn(t,e,n[e])})),t},xn=function(t){var e=y(t,!0),n=un.call(this,e);return!(this===en&&b(ln,e)&&!b(sn,e))&&(!(n||!b(this,e)||!b(ln,e)||b(this,Qe)&&this[Qe][e])||n)},Sn=function(t,e){var n=h(t),r=y(e,!0);if(n!==en||!b(ln,r)||b(sn,r)){var o=on(n,r);return!o||!b(ln,r)||b(n,Qe)&&n[Qe][r]||(o.enumerable=!0),o}},En=function(t){var e=an(h(t)),n=[];return Je(e,(function(t){b(ln,t)||b(W,t)||n.push(t)})),n},On=function(t){var e=t===en,n=an(e?sn:h(t)),r=[];return Je(n,(function(t){!b(ln,t)||e&&!b(en,t)||r.push(ln[t])})),r};if(Bt||(Z((nn=function(){if(this instanceof nn)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=B(t),n=function(t){this===en&&n.call(sn,t),b(this,Qe)&&b(this[Qe],e)&&(this[Qe][e]=!1),gn(this,e,l(1,t))};return i&&hn&&gn(en,e,{configurable:!0,set:n}),yn(e,t)}).prototype,"toString",(function(){return tn(this).tag})),Z(nn,"withoutSetter",(function(t){return yn(B(t),t)})),u.f=xn,R.f=bn,j.f=Sn,yt.f=Ue.f=En,mt.f=On,De.f=function(t){return yn(Vt(t),t)},i&&(cn(nn.prototype,"description",{configurable:!0,get:function(){return tn(this).description}}),Z(en,"propertyIsEnumerable",xn,{unsafe:!0}))),kt({global:!0,wrap:!0,forced:!Bt,sham:!Bt},{Symbol:nn}),Je(Ae(dn),(function(t){Ne(t)})),kt({target:"Symbol",stat:!0,forced:!Bt},{for:function(t){var e=String(t);if(b(fn,e))return fn[e];var n=nn(e);return fn[e]=n,pn[n]=e,n},keyFor:function(t){if(!mn(t))throw TypeError(t+" is not a symbol");if(b(pn,t))return pn[t]},useSetter:function(){hn=!0},useSimple:function(){hn=!1}}),kt({target:"Object",stat:!0,forced:!Bt,sham:!i},{create:function(t,e){return void 0===e?Ce(t):wn(Ce(t),e)},defineProperty:bn,defineProperties:wn,getOwnPropertyDescriptor:Sn}),kt({target:"Object",stat:!0,forced:!Bt},{getOwnPropertyNames:En,getOwnPropertySymbols:On}),kt({target:"Object",stat:!0,forced:o((function(){mt.f(1)}))},{getOwnPropertySymbols:function(t){return mt.f(je(t))}}),rn){var jn=!Bt||o((function(){var t=nn();return"[null]"!=rn([t])||"{}"!=rn({a:t})||"{}"!=rn(Object(t))}));kt({target:"JSON",stat:!0,forced:jn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(g(e)||void 0!==t)&&!mn(t))return Oe(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!mn(e))return e}),o[1]=e,rn.apply(null,o)}})}nn.prototype[Xe]||k(nn.prototype,Xe,nn.prototype.valueOf),qe(nn,"Symbol"),W[Qe]=!0;var An=R.f,Tn=r.Symbol;if(i&&"function"==typeof Tn&&(!("description"in Tn.prototype)||void 0!==Tn().description)){var Rn={},kn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof kn?new Tn(t):void 0===t?Tn():Tn(t);return""===t&&(Rn[e]=!0),e};wt(kn,Tn);var Pn=kn.prototype=Tn.prototype;Pn.constructor=kn;var In=Pn.toString,_n="Symbol(test)"==String(Tn("test")),Cn=/^Symbol\((.*)\)[^)]+$/;An(Pn,"description",{configurable:!0,get:function(){var t=g(this)?this.valueOf():this,e=In.call(t);if(b(Rn,t))return"";var n=_n?e.slice(7,-1):e.replace(Cn,"$1");return""===n?void 0:n}}),kt({global:!0,forced:!0},{Symbol:kn})}Ne("iterator");var $n,Ln,Mn=function(t,e,n){var r=y(e);r in t?R.f(t,r,l(0,n)):t[r]=n},Un=nt("navigator","userAgent")||"",Dn=r.process,zn=Dn&&Dn.versions,Nn=zn&&zn.v8;Nn?Ln=($n=Nn.split("."))[0]+$n[1]:Un&&(!($n=Un.match(/Edge\/(\d+)/))||$n[1]>=74)&&($n=Un.match(/Chrome\/(\d+)/))&&(Ln=$n[1]);var Fn=Ln&&+Ln,Bn=Vt("species"),qn=function(t){return Fn>=51||!o((function(){var e=[];return(e.constructor={})[Bn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Gn=Vt("isConcatSpreadable"),Wn=Fn>=51||!o((function(){var t=[];return t[Gn]=!1,t.concat()[0]!==t})),Kn=qn("concat"),Vn=function(t){if(!g(t))return!1;var e=t[Gn];return void 0!==e?!!e:Oe(t)};kt({target:"Array",proto:!0,forced:!Wn||!Kn},{concat:function(t){var e,n,r,o,i,c=je(this),a=Ke(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Vn(i=-1===e?c:arguments[e])){if(u+(o=at(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&Mn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mn(a,u++,i)}return a.length=u,a}});var Yn=Vt("unscopables"),Hn=Array.prototype;null==Hn[Yn]&&R.f(Hn,Yn,{configurable:!0,value:Ce(null)});var Jn=function(t){Hn[Yn][t]=!0};kt({target:"Array",proto:!0},{fill:function(t){for(var e=je(this),n=at(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 Qn=Object.defineProperty,Xn={},Zn=function(t){throw t},tr=function(t,e){if(b(Xn,t))return Xn[t];e||(e={});var n=[][t],r=!!b(e,"ACCESSORS")&&e.ACCESSORS,c=b(e,0)?e[0]:Zn,a=b(e,1)?e[1]:void 0;return Xn[t]=!!n&&!o((function(){if(r&&!i)return!0;var t={length:-1};r?Qn(t,1,{enumerable:!0,get:Zn}):t[1]=1,n.call(t,c,a)}))},er=He.filter,nr=qn("filter"),rr=tr("filter");kt({target:"Array",proto:!0,forced:!nr||!rr},{filter:function(t){return er(this,t,arguments.length>1?arguments[1]:void 0)}});var or=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},ir=He.forEach,cr=or("forEach"),ar=tr("forEach"),ur=cr&&ar?[].forEach:function(t){return ir(this,t,arguments.length>1?arguments[1]:void 0)};kt({target:"Array",proto:!0,forced:[].forEach!=ur},{forEach:ur});var lr=function(t,e,n,r){try{return r?e(A(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&A(o.call(t)),e}},sr={},fr=Vt("iterator"),pr=Array.prototype,dr=function(t){return void 0!==t&&(sr.Array===t||pr[fr]===t)},vr={};vr[Vt("toStringTag")]="z";var hr="[object z]"===String(vr),gr=Vt("toStringTag"),yr="Arguments"==f(function(){return arguments}()),mr=hr?f: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),gr))?n:yr?f(e):"Object"==(r=f(e))&&"function"==typeof e.callee?"Arguments":r},br=Vt("iterator"),wr=function(t){if(null!=t)return t[br]||t["@@iterator"]||sr[mr(t)]},xr=Vt("iterator"),Sr=!1;try{var Er=0,Or={next:function(){return{done:!!Er++}},return:function(){Sr=!0}};Or[xr]=function(){return this},Array.from(Or,(function(){throw 2}))}catch(t){}var jr=function(t,e){if(!e&&!Sr)return!1;var n=!1;try{var r={};r[xr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Ar=!jr((function(t){Array.from(t)}));kt({target:"Array",stat:!0,forced:Ar},{from:function(t){var e,n,r,o,i,c,a=je(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=wr(a),d=0;if(f&&(s=Ge(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&dr(p))for(n=new u(e=at(a.length));e>d;d++)c=f?s(a[d],d):a[d],Mn(n,d,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;d++)c=f?lr(o,s,[r.value,d],!0):r.value,Mn(n,d,c);return n.length=d,n}});var Tr=pt.indexOf,Rr=[].indexOf,kr=!!Rr&&1/[1].indexOf(1,-0)<0,Pr=or("indexOf"),Ir=tr("indexOf",{ACCESSORS:!0,1:0});kt({target:"Array",proto:!0,forced:kr||!Pr||!Ir},{indexOf:function(t){return kr?Rr.apply(this,arguments)||0:Tr(this,t,arguments.length>1?arguments[1]:void 0)}});var _r,Cr,$r,Lr=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Mr=G("IE_PROTO"),Ur=Object.prototype,Dr=Lr?Object.getPrototypeOf:function(t){return t=je(t),b(t,Mr)?t[Mr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Ur:null},zr=Vt("iterator"),Nr=!1;[].keys&&("next"in($r=[].keys())?(Cr=Dr(Dr($r)))!==Object.prototype&&(_r=Cr):Nr=!0),null==_r&&(_r={}),b(_r,zr)||k(_r,zr,(function(){return this}));var Fr={IteratorPrototype:_r,BUGGY_SAFARI_ITERATORS:Nr},Br=Fr.IteratorPrototype,qr=function(){return this},Gr=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 A(n),function(t){if(!g(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),Wr=Fr.IteratorPrototype,Kr=Fr.BUGGY_SAFARI_ITERATORS,Vr=Vt("iterator"),Yr=function(){return this},Hr=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Ce(Br,{next:l(1,n)}),qe(t,r,!1),sr[r]=qr}(n,e,r);var a,u,s,f=function(t){if(t===o&&g)return g;if(!Kr&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",d=!1,v=t.prototype,h=v[Vr]||v["@@iterator"]||o&&v[o],g=!Kr&&h||f(o),y="Array"==e&&v.entries||h;if(y&&(a=Dr(y.call(new t)),Wr!==Object.prototype&&a.next&&(Dr(a)!==Wr&&(Gr?Gr(a,Wr):"function"!=typeof a[Vr]&&k(a,Vr,Yr)),qe(a,p,!0))),"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return h.call(this)}),v[Vr]!==g&&k(v,Vr,g),sr[e]=g,o)if(u={values:f("values"),keys:i?g:f("keys"),entries:f("entries")},c)for(s in u)(Kr||d||!(s in v))&&Z(v,s,u[s]);else kt({target:e,proto:!0,forced:Kr||d},u);return u},Jr=X.set,Qr=X.getterFor("Array Iterator"),Xr=Hr(Array,"Array",(function(t,e){Jr(this,{type:"Array Iterator",target:h(t),index:0,kind:e})}),(function(){var t=Qr(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");sr.Arguments=sr.Array,Jn("keys"),Jn("values"),Jn("entries");var Zr=[].join,to=d!=Object,eo=or("join",",");kt({target:"Array",proto:!0,forced:to||!eo},{join:function(t){return Zr.call(h(this),void 0===t?",":t)}});var no=He.map,ro=qn("map"),oo=tr("map");kt({target:"Array",proto:!0,forced:!ro||!oo},{map:function(t){return no(this,t,arguments.length>1?arguments[1]:void 0)}});var io=qn("slice"),co=tr("slice",{ACCESSORS:!0,0:0,1:2}),ao=Vt("species"),uo=[].slice,lo=Math.max;kt({target:"Array",proto:!0,forced:!io||!co},{slice:function(t,e){var n,r,o,i=h(this),c=at(i.length),a=st(t,c),u=st(void 0===e?c:e,c);if(Oe(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Oe(n.prototype)?g(n)&&null===(n=n[ao])&&(n=void 0):n=void 0,n===Array||void 0===n))return uo.call(i,a,u);for(r=new(void 0===n?Array:n)(lo(u-a,0)),o=0;a<u;a++,o++)a in i&&Mn(r,o,i[a]);return r.length=o,r}});var so=qn("splice"),fo=tr("splice",{ACCESSORS:!0,0:0,1:2}),po=Math.max,vo=Math.min;kt({target:"Array",proto:!0,forced:!so||!fo},{splice:function(t,e){var n,r,o,i,c,a,u=je(this),l=at(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=vo(po(it(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Ke(u,r),i=0;i<r;i++)(c=s+i)in u&&Mn(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 ho=R.f,go=Function.prototype,yo=go.toString,mo=/^\s*function ([^ (]*)/;i&&!("name"in go)&&ho(go,"name",{configurable:!0,get:function(){try{return yo.call(this).match(mo)[1]}catch(t){return""}}});var bo=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),wo=e((function(t){var e=R.f,n=B("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(!g(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!b(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!b(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return bo&&c.REQUIRED&&o(t)&&!b(t,n)&&i(t),t}};W[n]=!0})),xo=(wo.REQUIRED,wo.fastKey,wo.getWeakData,wo.onFreeze,e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,l,s,f,p,d=Ge(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=wr(t)))throw TypeError("Target is not iterable");if(dr(a)){for(u=0,l=at(t.length);l>u;u++)if((s=o?d(A(p=t[u])[0],p[1]):d(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(f=c.next;!(p=f.call(c)).done;)if("object"==typeof(s=lr(c,d,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),So=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},Eo=function(t,e,n){var i=-1!==t.indexOf("Map"),c=-1!==t.indexOf("Weak"),a=i?"set":"add",u=r[t],l=u&&u.prototype,s=u,f={},p=function(t){var e=l[t];Z(l,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(c&&!g(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return c&&!g(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(c&&!g(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Tt(t,"function"!=typeof u||!(c||l.forEach&&!o((function(){(new u).entries().next()})))))s=n.getConstructor(e,t,i,a),wo.REQUIRED=!0;else if(Tt(t,!0)){var d=new s,v=d[a](c?{}:-0,1)!=d,h=o((function(){d.has(1)})),y=jr((function(t){new u(t)})),m=!c&&o((function(){for(var t=new u,e=5;e--;)t[a](e,e);return!t.has(-0)}));y||((s=e((function(e,n){So(e,s,t);var r=function(t,e,n){var r,o;return Gr&&"function"==typeof(r=e.constructor)&&r!==n&&g(o=r.prototype)&&o!==n.prototype&&Gr(t,o),t}(new u,e,s);return null!=n&&xo(n,r[a],r,i),r}))).prototype=l,l.constructor=s),(h||m)&&(p("delete"),p("has"),i&&p("get")),(m||v)&&p(a),c&&l.clear&&delete l.clear}return f[t]=s,kt({global:!0,forced:s!=u},f),qe(s,t),c||n.setStrong(s,t,i),s},Oo=function(t,e,n){for(var r in e)Z(t,r,e[r],n);return t},jo=Vt("species"),Ao=function(t){var e=nt(t),n=R.f;i&&e&&!e[jo]&&n(e,jo,{configurable:!0,get:function(){return this}})},To=R.f,Ro=wo.fastKey,ko=X.set,Po=X.getterFor,Io={getConstructor:function(t,e,n,r){var o=t((function(t,c){So(t,o,e),ko(t,{type:e,index:Ce(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=c&&xo(c,t[r],t,n)})),c=Po(e),a=function(t,e,n){var r,o,a=c(t),l=u(t,e);return l?l.value=n:(a.last=l={index:o=Ro(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=l),r&&(r.next=l),i?a.size++:t.size++,"F"!==o&&(a.index[o]=l)),t},u=function(t,e){var n,r=c(t),o=Ro(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return Oo(o.prototype,{clear:function(){for(var t=c(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,i?t.size=0:this.size=0},delete:function(t){var e=c(this),n=u(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),i?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=c(this),r=Ge(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!!u(this,t)}}),Oo(o.prototype,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),i&&To(o.prototype,"size",{get:function(){return c(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Po(e),i=Po(r);Hr(t,e,(function(t,e){ko(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),Ao(e)}},_o=(Eo("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Io),Object.assign),Co=Object.defineProperty,$o=!_o||o((function(){if(i&&1!==_o({b:1},_o(Co({},"a",{enumerable:!0,get:function(){Co(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!=_o({},t)[n]||"abcdefghijklmnopqrst"!=Ae(_o({},e)).join("")}))?function(t,e){for(var n=je(t),r=arguments.length,o=1,c=mt.f,a=u.f;r>o;)for(var l,s=d(arguments[o++]),f=c?Ae(s).concat(c(s)):Ae(s),p=f.length,v=0;p>v;)l=f[v++],i&&!a.call(s,l)||(n[l]=s[l]);return n}:_o;kt({target:"Object",stat:!0,forced:Object.assign!==$o},{assign:$o}),kt({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=h(t),o=j.f,i=bt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&Mn(c,e,n);return c}});var Lo=o((function(){Ae(1)}));kt({target:"Object",stat:!0,forced:Lo},{keys:function(t){return Ae(je(t))}});var Mo=hr?{}.toString:function(){return"[object "+mr(this)+"]"};hr||Z(Object.prototype,"toString",Mo,{unsafe:!0});var Uo,Do,zo,No=r.Promise,Fo=/(iphone|ipod|ipad).*applewebkit/i.test(Un),Bo=r.location,qo=r.setImmediate,Go=r.clearImmediate,Wo=r.process,Ko=r.MessageChannel,Vo=r.Dispatch,Yo=0,Ho={},Jo=function(t){if(Ho.hasOwnProperty(t)){var e=Ho[t];delete Ho[t],e()}},Qo=function(t){return function(){Jo(t)}},Xo=function(t){Jo(t.data)},Zo=function(t){r.postMessage(t+"",Bo.protocol+"//"+Bo.host)};qo&&Go||(qo=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Ho[++Yo]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Uo(Yo),Yo},Go=function(t){delete Ho[t]},"process"==f(Wo)?Uo=function(t){Wo.nextTick(Qo(t))}:Vo&&Vo.now?Uo=function(t){Vo.now(Qo(t))}:Ko&&!Fo?(zo=(Do=new Ko).port2,Do.port1.onmessage=Xo,Uo=Ge(zo.postMessage,zo,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Zo)||"file:"===Bo.protocol?Uo="onreadystatechange"in S("script")?function(t){Re.appendChild(S("script")).onreadystatechange=function(){Re.removeChild(this),Jo(t)}}:function(t){setTimeout(Qo(t),0)}:(Uo=Zo,r.addEventListener("message",Xo,!1)));var ti,ei,ni,ri,oi,ii,ci,ai,ui={set:qo,clear:Go},li=j.f,si=ui.set,fi=r.MutationObserver||r.WebKitMutationObserver,pi=r.process,di=r.Promise,vi="process"==f(pi),hi=li(r,"queueMicrotask"),gi=hi&&hi.value;gi||(ti=function(){var t,e;for(vi&&(t=pi.domain)&&t.exit();ei;){e=ei.fn,ei=ei.next;try{e()}catch(t){throw ei?ri():ni=void 0,t}}ni=void 0,t&&t.enter()},vi?ri=function(){pi.nextTick(ti)}:fi&&!Fo?(oi=!0,ii=document.createTextNode(""),new fi(ti).observe(ii,{characterData:!0}),ri=function(){ii.data=oi=!oi}):di&&di.resolve?(ci=di.resolve(void 0),ai=ci.then,ri=function(){ai.call(ci,ti)}):ri=function(){si.call(r,ti)});var yi,mi,bi,wi,xi=gi||function(t){var e={fn:t,next:void 0};ni&&(ni.next=e),ei||(ei=e,ri()),ni=e},Si=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=ne(e),this.reject=ne(n)},Ei={f:function(t){return new Si(t)}},Oi=function(t,e){if(A(t),g(e)&&e.constructor===t)return e;var n=Ei.f(t);return(0,n.resolve)(e),n.promise},ji=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ai=ui.set,Ti=Vt("species"),Ri="Promise",ki=X.get,Pi=X.set,Ii=X.getterFor(Ri),_i=No,Ci=r.TypeError,$i=r.document,Li=r.process,Mi=nt("fetch"),Ui=Ei.f,Di=Ui,zi="process"==f(Li),Ni=!!($i&&$i.createEvent&&r.dispatchEvent),Fi=Tt(Ri,(function(){if(!(M(_i)!==String(_i))){if(66===Fn)return!0;if(!zi&&"function"!=typeof PromiseRejectionEvent)return!0}if(Fn>=51&&/native code/.test(_i))return!1;var t=_i.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[Ti]=e,!(t.then((function(){}))instanceof e)})),Bi=Fi||!jr((function(t){_i.all(t).catch((function(){}))})),qi=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Gi=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;xi((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,l,s=r[c++],f=i?s.ok:s.fail,p=s.resolve,d=s.reject,v=s.domain;try{f?(i||(2===e.rejection&&Yi(t,e),e.rejection=1),!0===f?a=o:(v&&v.enter(),a=f(o),v&&(v.exit(),l=!0)),a===s.promise?d(Ci("Promise-chain cycle")):(u=qi(a))?u.call(a,p,d):p(a)):d(o)}catch(t){v&&!l&&v.exit(),d(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ki(t,e)}))}},Wi=function(t,e,n){var o,i;Ni?((o=$i.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ki=function(t,e){Ai.call(r,(function(){var n,r=e.value;if(Vi(e)&&(n=ji((function(){zi?Li.emit("unhandledRejection",r,t):Wi("unhandledrejection",t,r)})),e.rejection=zi||Vi(e)?2:1,n.error))throw n.value}))},Vi=function(t){return 1!==t.rejection&&!t.parent},Yi=function(t,e){Ai.call(r,(function(){zi?Li.emit("rejectionHandled",t):Wi("rejectionhandled",t,e.value)}))},Hi=function(t,e,n,r){return function(o){t(e,n,o,r)}},Ji=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Gi(t,e,!0))},Qi=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw Ci("Promise can't be resolved itself");var o=qi(n);o?xi((function(){var r={done:!1};try{o.call(n,Hi(Qi,t,r,e),Hi(Ji,t,r,e))}catch(n){Ji(t,r,n,e)}})):(e.value=n,e.state=1,Gi(t,e,!1))}catch(n){Ji(t,{done:!1},n,e)}}};Fi&&(_i=function(t){So(this,_i,Ri),ne(t),yi.call(this);var e=ki(this);try{t(Hi(Qi,this,e),Hi(Ji,this,e))}catch(t){Ji(this,e,t)}},(yi=function(t){Pi(this,{type:Ri,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Oo(_i.prototype,{then:function(t,e){var n=Ii(this),r=Ui(oe(this,_i));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=zi?Li.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Gi(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),mi=function(){var t=new yi,e=ki(t);this.promise=t,this.resolve=Hi(Qi,t,e),this.reject=Hi(Ji,t,e)},Ei.f=Ui=function(t){return t===_i||t===bi?new mi(t):Di(t)},"function"==typeof No&&(wi=No.prototype.then,Z(No.prototype,"then",(function(t,e){var n=this;return new _i((function(t,e){wi.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof Mi&&kt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Oi(_i,Mi.apply(r,arguments))}}))),kt({global:!0,wrap:!0,forced:Fi},{Promise:_i}),qe(_i,Ri,!1),Ao(Ri),bi=nt(Ri),kt({target:Ri,stat:!0,forced:Fi},{reject:function(t){var e=Ui(this);return e.reject.call(void 0,t),e.promise}}),kt({target:Ri,stat:!0,forced:Fi},{resolve:function(t){return Oi(this,t)}}),kt({target:Ri,stat:!0,forced:Bi},{all:function(t){var e=this,n=Ui(e),r=n.resolve,o=n.reject,i=ji((function(){var n=ne(e.resolve),i=[],c=0,a=1;xo(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=Ui(e),r=n.reject,o=ji((function(){var o=ne(e.resolve);xo(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});Eo("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Io);var Xi=ce.charAt,Zi=X.set,tc=X.getterFor("String Iterator");Hr(String,"String",(function(t){Zi(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=tc(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Xi(n,r),e.index+=t.length,{value:t,done:!1})}));var ec=Math.max,nc=Math.min,rc=Math.floor,oc=/\$([$&'`]|\d\d?|<[^>]*>)/g,ic=/\$([$&'`]|\d\d?)/g;te("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=v(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 u=n(e,t,this,r);if(u.done)return u.value}var l=A(t),s=String(this),f="function"==typeof r;f||(r=String(r));var p=l.global;if(p){var d=l.unicode;l.lastIndex=0}for(var v=[];;){var h=le(l,s);if(null===h)break;if(v.push(h),!p)break;""===String(h[0])&&(l.lastIndex=ue(s,at(l.lastIndex),d))}for(var g,y="",m=0,b=0;b<v.length;b++){h=v[b];for(var w=String(h[0]),x=ec(nc(it(h.index),s.length),0),S=[],E=1;E<h.length;E++)S.push(void 0===(g=h[E])?g:String(g));var O=h.groups;if(f){var j=[w].concat(S,x,s);void 0!==O&&j.push(O);var T=String(r.apply(void 0,j))}else T=a(w,s,x,S,O,r);x>=m&&(y+=s.slice(m,x)+T,m=x+w.length)}return y+s.slice(m)}];function a(t,n,r,o,i,c){var a=r+t.length,u=o.length,l=ic;return void 0!==i&&(i=je(i),l=oc),e.call(c,l,(function(e,c){var l;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":l=i[c.slice(1,-1)];break;default:var s=+c;if(0===s)return e;if(s>u){var f=rc(s/10);return 0===f?e:f<=u?void 0===o[f-1]?c.charAt(1):o[f-1]+c.charAt(1):e}l=o[s-1]}return void 0===l?"":l}))}}));var cc=/"/g;kt({target:"String",proto:!0,forced:function(t){return o((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(v(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(cc,""")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}});var ac={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};for(var uc in ac){var lc=r[uc],sc=lc&&lc.prototype;if(sc&&sc.forEach!==ur)try{k(sc,"forEach",ur)}catch(t){sc.forEach=ur}}var fc,pc=Vt("iterator"),dc=Vt("toStringTag"),vc=Xr.values;for(var hc in ac){var gc=r[hc],yc=gc&&gc.prototype;if(yc){if(yc[pc]!==vc)try{k(yc,pc,vc)}catch(t){yc[pc]=vc}if(yc[dc]||k(yc,dc,hc),ac[hc])for(var mc in Xr)if(yc[mc]!==Xr[mc])try{k(yc,mc,Xr[mc])}catch(t){yc[mc]=Xr[mc]}}}function bc(t){return function(t){if(Array.isArray(t))return we(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||xe(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 wc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xc(){}function Sc(t){return t()}function Ec(){return Object.create(null)}function Oc(t){t.forEach(Sc)}function jc(t){return"function"==typeof t}function Ac(t,e){return t!=t?e==e:t!==e||t&&"object"===ye(t)||"function"==typeof t}function Tc(t,e){t.appendChild(e)}function Rc(t,e,n){t.insertBefore(e,n||null)}function kc(t){t.parentNode.removeChild(t)}function Pc(t){return document.createElement(t)}function Ic(t){return document.createTextNode(t)}function _c(){return Ic(" ")}function Cc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function $c(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Lc(t){return Array.from(t.childNodes)}function Mc(t,e,n){t.classList[n?"add":"remove"](e)}function Uc(t){fc=t}var Dc=[],zc=[],Nc=[],Fc=[],Bc=Promise.resolve(),qc=!1;function Gc(t){Nc.push(t)}var Wc=!1,Kc=new Set;function Vc(){if(!Wc){Wc=!0;do{for(var t=0;t<Dc.length;t+=1){var e=Dc[t];Uc(e),Yc(e.$$)}for(Dc.length=0;zc.length;)zc.pop()();for(var n=0;n<Nc.length;n+=1){var r=Nc[n];Kc.has(r)||(Kc.add(r),r())}Nc.length=0}while(Dc.length);for(;Fc.length;)Fc.pop()();qc=!1,Wc=!1,Kc.clear()}}function Yc(t){if(null!==t.fragment){t.update(),Oc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Gc)}}var Hc=new Set;function Jc(t,e){t&&t.i&&(Hc.delete(t),t.i(e))}function Qc(t,e,n,r){if(t&&t.o){if(Hc.has(t))return;Hc.add(t),(void 0).c.push((function(){Hc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var Xc="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Zc(t){t&&t.c()}function ta(t,e,n){var r=t.$$,o=r.fragment,i=r.on_mount,c=r.on_destroy,a=r.after_update;o&&o.m(e,n),Gc((function(){var e=i.map(Sc).filter(jc);c?c.push.apply(c,bc(e)):Oc(e),t.$$.on_mount=[]})),a.forEach(Gc)}function ea(t,e){var n=t.$$;null!==n.fragment&&(Oc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function na(t,e){-1===t.$$.dirty[0]&&(Dc.push(t),qc||(qc=!0,Bc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ra(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=fc;Uc(t);var u=e.props||{},l=t.$$={fragment:null,ctx:null,props:i,update:xc,not_equal:o,bound:Ec(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:Ec(),dirty:c},s=!1;if(l.ctx=n?n(t,u,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return l.ctx&&o(l.ctx[e],l.ctx[e]=r)&&(l.bound[e]&&l.bound[e](r),s&&na(t,e)),n})):[],l.update(),s=!0,Oc(l.before_update),l.fragment=!!r&&r(l.ctx),e.target){if(e.hydrate){var f=Lc(e.target);l.fragment&&l.fragment.l(f),f.forEach(kc)}else l.fragment&&l.fragment.c();e.intro&&Jc(t.$$.fragment),ta(t,e.target,e.anchor),Vc()}Uc(a)}var oa=function(){function t(){de(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){ea(this,1),this.$destroy=xc}},{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(){}}])&&wc(e.prototype,n),r&&wc(e,r),t}();function ia(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function ca(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=_c(),(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>',$c(e,"class","svelte-1ril8w"),$c(r,"class","svelte-1ril8w")},m:function(t,o){Rc(t,e,o),Rc(t,n,o),Rc(t,r,o)},p:xc,d:function(t){t&&kc(e),t&&kc(n),t&&kc(r)}}}function aa(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=_c(),(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=_c(),u=Pc("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&$c(r,"src",o),$c(r,"alt","Logo"),$c(r,"class","svelte-1ril8w"),$c(c,"aria-label","Close chat window"),$c(c,"role","button"),$c(c,"class","bot-border-close-icon svelte-1ril8w"),$c(c,"tabindex",0),$c(n,"class","header svelte-1ril8w"),$c(u,"id","chat-frame"),$c(u,"title","Chat"),$c(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&$c(u,"src",l),$c(u,"frameborder","0"),$c(u,"allow","microphone"),u.allowFullscreen="",$c(e,"class","bot-border svelte-1ril8w"),$c(e,"aria-hidden",s=t[1]?"false":"true"),Mc(e,"closed",!t[1])},m:function(o,l){Rc(o,e,l),Tc(e,n),Tc(n,r),Tc(n,i),Tc(n,c),Tc(e,a),Tc(e,u),f||(p=[Cc(c,"click",(function(){jc(t[3])&&t[3].apply(this,arguments)})),Cc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&$c(r,"src",o),1&i&&u.src!==(l=t[0])&&$c(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&$c(e,"aria-hidden",s),2&i&&Mc(e,"closed",!t[1])},d:function(t){t&&kc(e),f=!1,Oc(p)}}}function ua(t){var e;function n(t,e){return t[0]?aa:ca}var r=n(t),o=r(t);return{c:function(){o.c(),e=Ic("")},m:function(t,n){o.m(t,n),Rc(t,e,n)},p:function(t,i){var c=Se(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:xc,o:xc,d:function(t){o.d(t),t&&kc(e)}}}function la(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 sa=function(t){ge(n,t);var e=ia(n);function n(t){var r,o;return de(this,n),r=e.call(this),document.getElementById("svelte-1ril8w-style")||((o=Pc("style")).id="svelte-1ril8w-style",o.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}",Tc(document.head,o)),ra(ve(r),t,la,ua,Ac,{server:0,open:1,assetsUrl:2,onToggle:3}),r}return n}(oa);function fa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function pa(t){var e,n,r,o,i;return{c:function(){e=Pc("div"),$c(n=Pc("img"),"class","chat-button svelte-xlhtz"),$c(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&$c(n,"src",r),$c(e,"class","chat-button-wrapper svelte-xlhtz"),$c(e,"tabindex","0"),$c(e,"role","button"),$c(e,"aria-label","Open chat window")},m:function(r,c){Rc(r,e,c),Tc(e,n),o||(i=[Cc(e,"click",(function(){jc(t[1])&&t[1].apply(this,arguments)})),Cc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=Se(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&$c(n,"src",r)},i:xc,o:xc,d:function(t){t&&kc(e),o=!1,Oc(i)}}}function da(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 va=function(t){ge(n,t);var e=fa(n);function n(t){var r,o;return de(this,n),r=e.call(this),document.getElementById("svelte-xlhtz-style")||((o=Pc("style")).id="svelte-xlhtz-style",o.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)}",Tc(document.head,o)),ra(ve(r),t,da,pa,Ac,{assetsUrl:0,onToggle:1}),r}return n}(oa),ha=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)};te("match",1,(function(t,e,n){return[function(e){var n=v(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=A(t),i=String(this);if(!o.global)return le(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=le(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=ue(i,at(o.lastIndex),c)),l++}return 0===l?null:u}]}));var ga=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))},ya=e((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()})),ma=function(t){ya.set("bot-window",t)};function ba(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}var wa=Xc.document;function xa(t){var e,n,r,o,i,c,a,u;return i=new va({props:{server:t[0],assetsUrl:t[1],onToggle:t[3]}}),a=new sa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:t[3]}}),{c:function(){e=Pc("link"),r=_c(),o=Pc("div"),Zc(i.$$.fragment),c=_c(),Zc(a.$$.fragment),$c(e,"rel","stylesheet"),$c(e,"href",n="".concat(t[1],"/embed/custom.css")),$c(o,"id","chatbot-window"),$c(o,"class","svelte-sr5aex")},m:function(t,n){Tc(wa.head,e),Rc(t,r,n),Rc(t,o,n),ta(i,o,null),Tc(o,c),ta(a,o,null),u=!0},p:function(t,r){var o=Se(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&$c(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||(Jc(i.$$.fragment,t),Jc(a.$$.fragment,t),u=!0)},o:function(t){Qc(i.$$.fragment,t),Qc(a.$$.fragment,t),u=!1},d:function(t){kc(e),t&&kc(r),t&&kc(o),ea(i),ea(a)}}}function Sa(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;ga();var c=function(){switch(ya.get("bot-window")){case"open":return!0;case"closed":default:return!1}}();function a(){n(2,c=!0),ma("open")}function u(){n(2,c=!1),ma("closed")}return ha((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&a()}),(function(t){window.innerWidth<768&&u(),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,function(){c?u():a()}]}var Ea=function(t){ge(n,t);var e=ba(n);function n(t){var r,o;return de(this,n),r=e.call(this),wa.getElementById("svelte-sr5aex-style")||((o=Pc("style")).id="svelte-sr5aex-style",o.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",Tc(wa.head,o)),ra(ve(r),t,Sa,xa,Ac,{server:0,assetsUrl:1}),r}return n}(oa),Oa=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"));return console.log("Chatbot is loading from",Oa),new Ea({target:document.body,props:{server:Oa}})}();
|
|
1
|
+
!function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(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&&n(t,e)}function o(t){return(o="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 i(t,n){return!n||"object"!==o(n)&&"function"!=typeof n?e(t):n}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(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 u(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}function l(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)||u(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 s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t){return t&&t.Math==Math&&t},v=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof s&&s)||function(){return this}()||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,m={f:y&&!g.call({1:2},1)?function(t){var e=y(this,t);return!!e&&e.enumerable}:g},b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w={}.toString,x=function(t){return w.call(t).slice(8,-1)},S="".split,E=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?S.call(t,""):Object(t)}:Object,O=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},j=function(t){return E(O(t))},T=function(t){return"object"==typeof t?null!==t:"function"==typeof t},A=function(t,e){if(!T(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!T(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},k=function(t){return Object(O(t))},R={}.hasOwnProperty,P=function(t,e){return R.call(k(t),e)},I=v.document,_=T(I)&&T(I.createElement),$=function(t){return _?I.createElement(t):{}},C=!h&&!d((function(){return 7!=Object.defineProperty($("div"),"a",{get:function(){return 7}}).a})),L=Object.getOwnPropertyDescriptor,U={f:h?L:function(t,e){if(t=j(t),e=A(e,!0),C)try{return L(t,e)}catch(t){}if(P(t,e))return b(!m.f.call(t,e),t[e])}},M=function(t){if(!T(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,N={f:h?D:function(t,e,n){if(M(t),e=A(e,!0),M(n),C)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}},z=h?function(t,e,n){return N.f(t,e,b(1,n))}:function(t,e,n){return t[e]=n,t},F=function(t,e){try{z(v,t,e)}catch(n){v[t]=e}return e},B=v["__core-js_shared__"]||F("__core-js_shared__",{}),q=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(t){return q.call(t)});var G,W,K,Y=B.inspectSource,V=v.WeakMap,H="function"==typeof V&&/native code/.test(Y(V)),J=f((function(t){(t.exports=function(t,e){return B[t]||(B[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Q=0,X=Math.random(),Z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Q+X).toString(36)},tt=J("keys"),et=function(t){return tt[t]||(tt[t]=Z(t))},nt={},rt=v.WeakMap;if(H||B.state){var ot=B.state||(B.state=new rt),it=ot.get,ct=ot.has,at=ot.set;G=function(t,e){if(ct.call(ot,t))throw new TypeError("Object already initialized");return e.facade=t,at.call(ot,t,e),e},W=function(t){return it.call(ot,t)||{}},K=function(t){return ct.call(ot,t)}}else{var ut=et("state");nt[ut]=!0,G=function(t,e){if(P(t,ut))throw new TypeError("Object already initialized");return e.facade=t,z(t,ut,e),e},W=function(t){return P(t,ut)?t[ut]:{}},K=function(t){return P(t,ut)}}var lt={set:G,get:W,has:K,enforce:function(t){return K(t)?W(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!T(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=f((function(t){var e=lt.get,n=lt.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||P(o,"name")||z(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:z(t,e,o)):u?t[e]=o:F(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y(this)}))})),ft=v,pt=function(t){return"function"==typeof t?t:void 0},vt=function(t,e){return arguments.length<2?pt(ft[t])||pt(v[t]):ft[t]&&ft[t][e]||v[t]&&v[t][e]},dt=Math.ceil,ht=Math.floor,gt=function(t){return isNaN(t=+t)?0:(t>0?ht:dt)(t)},yt=Math.min,mt=function(t){return t>0?yt(gt(t),9007199254740991):0},bt=Math.max,wt=Math.min,xt=function(t,e){var n=gt(t);return n<0?bt(n+e,0):wt(n,e)},St=function(t){return function(e,n,r){var o,i=j(e),c=mt(i.length),a=xt(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}},Et={includes:St(!0),indexOf:St(!1)}.indexOf,Ot=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!P(nt,n)&&P(r,n)&&i.push(n);for(;e.length>o;)P(r,n=e[o++])&&(~Et(i,n)||i.push(n));return i},jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=jt.concat("length","prototype"),At={f:Object.getOwnPropertyNames||function(t){return Ot(t,Tt)}},kt={f:Object.getOwnPropertySymbols},Rt=vt("Reflect","ownKeys")||function(t){var e=At.f(M(t)),n=kt.f;return n?e.concat(n(t)):e},Pt=function(t,e){for(var n=Rt(e),r=N.f,o=U.f,i=0;i<n.length;i++){var c=n[i];P(t,c)||r(t,c,o(e,c))}},It=/#|\.prototype\./,_t=function(t,e){var n=Ct[$t(t)];return n==Ut||n!=Lt&&("function"==typeof e?d(e):!!e)},$t=_t.normalize=function(t){return String(t).replace(It,".").toLowerCase()},Ct=_t.data={},Lt=_t.NATIVE="N",Ut=_t.POLYFILL="P",Mt=_t,Dt=U.f,Nt=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]||F(a,{}):(v[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Dt(n,r))&&c.value:n[r],!Mt(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(t.sham||o&&o.sham)&&z(i,"sham",!0),st(n,r,i,t)}},zt=function(){var t=M(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 Ft(t,e){return RegExp(t,e)}var Bt,qt,Gt={UNSUPPORTED_Y:d((function(){var t=Ft("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:d((function(){var t=Ft("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Wt=RegExp.prototype.exec,Kt=J("native-string-replace",String.prototype.replace),Yt=Wt,Vt=(Bt=/a/,qt=/b*/g,Wt.call(Bt,"a"),Wt.call(qt,"a"),0!==Bt.lastIndex||0!==qt.lastIndex),Ht=Gt.UNSUPPORTED_Y||Gt.BROKEN_CARET,Jt=void 0!==/()??/.exec("")[1];(Vt||Jt||Ht)&&(Yt=function(t){var e,n,r,o,i=this,c=Ht&&i.sticky,a=zt.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)),Jt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Vt&&(e=i.lastIndex),r=Wt.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),Jt&&r&&r.length>1&&Kt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Qt=Yt;Nt({target:"RegExp",proto:!0,forced:/./.exec!==Qt},{exec:Qt});var Xt,Zt,te=vt("navigator","userAgent")||"",ee=v.process,ne=ee&&ee.versions,re=ne&&ne.v8;re?Zt=(Xt=re.split("."))[0]<4?1:Xt[0]+Xt[1]:te&&(!(Xt=te.match(/Edge\/(\d+)/))||Xt[1]>=74)&&(Xt=te.match(/Chrome\/(\d+)/))&&(Zt=Xt[1]);var oe=Zt&&+Zt,ie=!!Object.getOwnPropertySymbols&&!d((function(){return!String(Symbol())||!Symbol.sham&&oe&&oe<41})),ce=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=J("wks"),ue=v.Symbol,le=ce?ue:ue&&ue.withoutSetter||Z,se=function(t){return P(ae,t)&&(ie||"string"==typeof ae[t])||(ie&&P(ue,t)?ae[t]=ue[t]:ae[t]=le("Symbol."+t)),ae[t]},fe=se("species"),pe=RegExp.prototype,ve=!d((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),de="$0"==="a".replace(/./,"$0"),he=se("replace"),ge=!!/./[he]&&""===/./[he]("a","$0"),ye=!d((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]})),me=function(t,e,n,r){var o=se(t),i=!d((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!d((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[fe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!ve||!de||ge)||"split"===t&&!ye){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Qt||c===pe.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:de,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ge}),l=u[0],s=u[1];st(String.prototype,t,l),st(pe,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&z(pe[o],"sham",!0)},be=se("match"),we=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},xe=se("species"),Se=function(t,e){var n,r=M(t).constructor;return void 0===r||null==(n=M(r)[xe])?e:we(n)},Ee=function(t){return function(e,n){var r,o,i=String(O(e)),c=gt(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}},Oe={codeAt:Ee(!1),charAt:Ee(!0)},je=Oe.charAt,Te=function(t,e,n){return e+(n?je(t,e).length:1)},Ae=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"!==x(t))throw TypeError("RegExp#exec called on incompatible receiver");return Qt.call(t,e)},ke=Gt.UNSUPPORTED_Y,Re=[].push,Pe=Math.min;me("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(O(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!T(r=t)||!(void 0!==(o=r[be])?o:"RegExp"==x(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,v=new RegExp(t.source,f+"g");(a=Qt.call(v,i))&&!((u=v.lastIndex)>p&&(s.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&Re.apply(s,a.slice(1)),l=a[0].length,p=u,s.length>=c));)v.lastIndex===a.index&&v.lastIndex++;return p===i.length?!l&&v.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=O(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=M(t),a=String(this),u=Se(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(ke?"g":"y"),f=new u(ke?"^(?:"+c.source+")":c,s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===Ae(f,a)?[a]:[];for(var v=0,d=0,h=[];d<a.length;){f.lastIndex=ke?0:d;var g,y=Ae(f,ke?a.slice(d):a);if(null===y||(g=Pe(mt(f.lastIndex+(ke?d:0)),a.length))===v)d=Te(a,d,l);else{if(h.push(a.slice(v,d)),h.length===p)return h;for(var m=1;m<=y.length-1;m++)if(h.push(y[m]),h.length===p)return h;d=v=g}}return h.push(a.slice(v)),h}]}),ke);var Ie,_e=Object.keys||function(t){return Ot(t,jt)},$e=h?Object.defineProperties:function(t,e){M(t);for(var n,r=_e(e),o=r.length,i=0;o>i;)N.f(t,n=r[i++],e[n]);return t},Ce=vt("document","documentElement"),Le=et("IE_PROTO"),Ue=function(){},Me=function(t){return"<script>"+t+"<\/script>"},De=function(){try{Ie=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=Ie?function(t){t.write(Me("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ie):((e=$("iframe")).style.display="none",Ce.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Me("document.F=Object")),t.close(),t.F);for(var n=jt.length;n--;)delete De.prototype[jt[n]];return De()};nt[Le]=!0;var Ne=Object.create||function(t,e){var n;return null!==t?(Ue.prototype=M(t),n=new Ue,Ue.prototype=null,n[Le]=t):n=De(),void 0===e?n:$e(n,e)},ze=[].slice,Fe={},Be=function(t,e,n){if(!(e in Fe)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Fe[e]=Function("C,a","return new C("+r.join(",")+")")}return Fe[e](t,n)},qe=Function.bind||function(t){var e=we(this),n=ze.call(arguments,1),r=function(){var o=n.concat(ze.call(arguments));return this instanceof r?Be(e,o.length,o):e.apply(t,o)};return T(e.prototype)&&(r.prototype=e.prototype),r},Ge=vt("Reflect","construct"),We=d((function(){function t(){}return!(Ge((function(){}),[],t)instanceof t)})),Ke=!d((function(){Ge((function(){}))})),Ye=We||Ke;function Ve(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(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 He(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)}}Nt({target:"Reflect",stat:!0,forced:Ye,sham:Ye},{construct:function(t,e){we(t),M(e);var n=arguments.length<3?t:we(arguments[2]);if(Ke&&!We)return Ge(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(qe.apply(t,r))}var o=n.prototype,i=Ne(T(o)?o:Object.prototype),c=Function.apply.call(t,i,e);return T(c)?c:i}});var Je={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},Qe=function(t,e,n){if(we(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)}},Xe=Array.isArray||function(t){return"Array"==x(t)},Ze=se("species"),tn=function(t,e){var n;return Xe(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Xe(n.prototype)?T(n)&&null===(n=n[Ze])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},en=[].push,nn=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,v,d=k(u),h=E(d),g=Qe(l,s,3),y=mt(h.length),m=0,b=f||tn,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in h)&&(v=g(p=h[m],m,d),t))if(e)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:en.call(w,p)}else switch(t){case 4:return!1;case 7:en.call(w,p)}return i?-1:r||o?o:w}},rn={forEach:nn(0),map:nn(1),filter:nn(2),some:nn(3),every:nn(4),find:nn(5),findIndex:nn(6),filterOut:nn(7)},on=function(t,e){var n=[][t];return!!n&&d((function(){n.call(null,e||function(){throw 1},1)}))},cn=rn.forEach,an=on("forEach")?[].forEach:function(t){return cn(this,t,arguments.length>1?arguments[1]:void 0)};for(var un in Je){var ln=v[un],sn=ln&&ln.prototype;if(sn&&sn.forEach!==an)try{z(sn,"forEach",an)}catch(t){sn.forEach=an}}var fn=d((function(){_e(1)}));Nt({target:"Object",stat:!0,forced:fn},{keys:function(t){return _e(k(t))}});var pn=function(t,e,n){var r=A(e);r in t?N.f(t,r,b(0,n)):t[r]=n},vn=se("species"),dn=function(t){return oe>=51||!d((function(){var e=[];return(e.constructor={})[vn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},hn=dn("slice"),gn=se("species"),yn=[].slice,mn=Math.max;Nt({target:"Array",proto:!0,forced:!hn},{slice:function(t,e){var n,r,o,i=j(this),c=mt(i.length),a=xt(t,c),u=xt(void 0===e?c:e,c);if(Xe(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Xe(n.prototype)?T(n)&&null===(n=n[gn])&&(n=void 0):n=void 0,n===Array||void 0===n))return yn.call(i,a,u);for(r=new(void 0===n?Array:n)(mn(u-a,0)),o=0;a<u;a++,o++)a in i&&pn(r,o,i[a]);return r.length=o,r}});var bn=se("unscopables"),wn=Array.prototype;null==wn[bn]&&N.f(wn,bn,{configurable:!0,value:Ne(null)});var xn,Sn,En,On=function(t){wn[bn][t]=!0},jn={},Tn=!d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),An=et("IE_PROTO"),kn=Object.prototype,Rn=Tn?Object.getPrototypeOf:function(t){return t=k(t),P(t,An)?t[An]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?kn:null},Pn=se("iterator"),In=!1;[].keys&&("next"in(En=[].keys())?(Sn=Rn(Rn(En)))!==Object.prototype&&(xn=Sn):In=!0),(null==xn||d((function(){var t={};return xn[Pn].call(t)!==t})))&&(xn={}),P(xn,Pn)||z(xn,Pn,(function(){return this}));var _n={IteratorPrototype:xn,BUGGY_SAFARI_ITERATORS:In},$n=N.f,Cn=se("toStringTag"),Ln=function(t,e,n){t&&!P(t=n?t:t.prototype,Cn)&&$n(t,Cn,{configurable:!0,value:e})},Un=_n.IteratorPrototype,Mn=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 M(n),function(t){if(!T(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),Nn=_n.IteratorPrototype,zn=_n.BUGGY_SAFARI_ITERATORS,Fn=se("iterator"),Bn=function(){return this},qn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Ne(Un,{next:b(1,n)}),Ln(t,r,!1),jn[r]=Mn}(n,e,r);var a,u,l,s=function(t){if(t===o&&h)return h;if(!zn&&t in v)return v[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,v=t.prototype,d=v[Fn]||v["@@iterator"]||o&&v[o],h=!zn&&d||s(o),g="Array"==e&&v.entries||d;if(g&&(a=Rn(g.call(new t)),Nn!==Object.prototype&&a.next&&(Rn(a)!==Nn&&(Dn?Dn(a,Nn):"function"!=typeof a[Fn]&&z(a,Fn,Bn)),Ln(a,f,!0))),"values"==o&&d&&"values"!==d.name&&(p=!0,h=function(){return d.call(this)}),v[Fn]!==h&&z(v,Fn,h),jn[e]=h,o)if(u={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},c)for(l in u)(zn||p||!(l in v))&&st(v,l,u[l]);else Nt({target:e,proto:!0,forced:zn||p},u);return u},Gn=lt.set,Wn=lt.getterFor("Array Iterator"),Kn=qn(Array,"Array",(function(t,e){Gn(this,{type:"Array Iterator",target:j(t),index:0,kind:e})}),(function(){var t=Wn(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");jn.Arguments=jn.Array,On("keys"),On("values"),On("entries");var Yn={};Yn[se("toStringTag")]="z";var Vn="[object z]"===String(Yn),Hn=se("toStringTag"),Jn="Arguments"==x(function(){return arguments}()),Qn=Vn?x: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),Hn))?n:Jn?x(e):"Object"==(r=x(e))&&"function"==typeof e.callee?"Arguments":r},Xn=Vn?{}.toString:function(){return"[object "+Qn(this)+"]"};Vn||st(Object.prototype,"toString",Xn,{unsafe:!0});var Zn=!d((function(){return Object.isExtensible(Object.preventExtensions({}))})),tr=f((function(t){var e=N.f,n=Z("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(!T(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!P(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!P(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Zn&&c.REQUIRED&&o(t)&&!P(t,n)&&i(t),t}};nt[n]=!0}));tr.REQUIRED,tr.fastKey,tr.getWeakData,tr.onFreeze;var er=se("iterator"),nr=Array.prototype,rr=function(t){return void 0!==t&&(jn.Array===t||nr[er]===t)},or=se("iterator"),ir=function(t){if(null!=t)return t[or]||t["@@iterator"]||jn[Qn(t)]},cr=function(t){var e=t.return;if(void 0!==e)return M(e.call(t)).value},ar=function(t,e){this.stopped=t,this.result=e},ur=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),v=!(!n||!n.INTERRUPTED),d=Qe(e,s,1+f+v),h=function(t){return r&&cr(r),new ar(!0,t)},g=function(t){return f?(M(t),v?d(t[0],t[1],h):d(t[0],t[1])):v?d(t,h):d(t)};if(p)r=t;else{if("function"!=typeof(o=ir(t)))throw TypeError("Target is not iterable");if(rr(o)){for(i=0,c=mt(t.length);c>i;i++)if((a=g(t[i]))&&a instanceof ar)return a;return new ar(!1)}r=o.call(t)}for(u=r.next;!(l=u.call(r)).done;){try{a=g(l.value)}catch(t){throw cr(r),t}if("object"==typeof a&&a&&a instanceof ar)return a}return new ar(!1)},lr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},sr=se("iterator"),fr=!1;try{var pr=0,vr={next:function(){return{done:!!pr++}},return:function(){fr=!0}};vr[sr]=function(){return this},Array.from(vr,(function(){throw 2}))}catch(t){}var dr=function(t,e){if(!e&&!fr)return!1;var n=!1;try{var r={};r[sr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},hr=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];st(a,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!T(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!T(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!T(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Mt(t,"function"!=typeof c||!(o||a.forEach&&!d((function(){(new c).entries().next()})))))u=n.getConstructor(e,t,r,i),tr.REQUIRED=!0;else if(Mt(t,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,h=d((function(){f.has(1)})),g=dr((function(t){new c(t)})),y=!o&&d((function(){for(var t=new c,e=5;e--;)t[i](e,e);return!t.has(-0)}));g||((u=e((function(e,n){lr(e,u,t);var o=function(t,e,n){var r,o;return Dn&&"function"==typeof(r=e.constructor)&&r!==n&&T(o=r.prototype)&&o!==n.prototype&&Dn(t,o),t}(new c,e,u);return null!=n&&ur(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(h||y)&&(s("delete"),s("has"),r&&s("get")),(y||p)&&s(i),o&&a.clear&&delete a.clear}return l[t]=u,Nt({global:!0,forced:u!=c},l),Ln(u,t),o||n.setStrong(u,t,r),u},gr=function(t,e,n){for(var r in e)st(t,r,e[r],n);return t},yr=se("species"),mr=function(t){var e=vt(t),n=N.f;h&&e&&!e[yr]&&n(e,yr,{configurable:!0,get:function(){return this}})},br=N.f,wr=tr.fastKey,xr=lt.set,Sr=lt.getterFor,Er={getConstructor:function(t,e,n,r){var o=t((function(t,i){lr(t,o,e),xr(t,{type:e,index:Ne(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=i&&ur(i,t[r],{that:t,AS_ENTRIES:n})})),i=Sr(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=wr(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),h?c.size++:t.size++,"F"!==o&&(c.index[o]=u)),t},a=function(t,e){var n,r=i(t),o=wr(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return gr(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,h?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),h?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=Qe(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)}}),gr(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)}}),h&&br(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Sr(e),i=Sr(r);qn(t,e,(function(t,e){xr(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),mr(e)}};hr("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Er);var Or=Oe.charAt,jr=lt.set,Tr=lt.getterFor("String Iterator");qn(String,"String",(function(t){jr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Tr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Or(n,r),e.index+=t.length,{value:t,done:!1})}));var Ar=se("iterator"),kr=se("toStringTag"),Rr=Kn.values;for(var Pr in Je){var Ir=v[Pr],_r=Ir&&Ir.prototype;if(_r){if(_r[Ar]!==Rr)try{z(_r,Ar,Rr)}catch(t){_r[Ar]=Rr}if(_r[kr]||z(_r,kr,Pr),Je[Pr])for(var $r in Kn)if(_r[$r]!==Kn[$r])try{z(_r,$r,Kn[$r])}catch(t){_r[$r]=Kn[$r]}}}var Cr=se("isConcatSpreadable"),Lr=oe>=51||!d((function(){var t=[];return t[Cr]=!1,t.concat()[0]!==t})),Ur=dn("concat"),Mr=function(t){if(!T(t))return!1;var e=t[Cr];return void 0!==e?!!e:Xe(t)};Nt({target:"Array",proto:!0,forced:!Lr||!Ur},{concat:function(t){var e,n,r,o,i,c=k(this),a=tn(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Mr(i=-1===e?c:arguments[e])){if(u+(o=mt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&pn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pn(a,u++,i)}return a.length=u,a}});var Dr,Nr,zr,Fr=v.Promise,Br=/(?:iphone|ipod|ipad).*applewebkit/i.test(te),qr="process"==x(v.process),Gr=v.location,Wr=v.setImmediate,Kr=v.clearImmediate,Yr=v.process,Vr=v.MessageChannel,Hr=v.Dispatch,Jr=0,Qr={},Xr=function(t){if(Qr.hasOwnProperty(t)){var e=Qr[t];delete Qr[t],e()}},Zr=function(t){return function(){Xr(t)}},to=function(t){Xr(t.data)},eo=function(t){v.postMessage(t+"",Gr.protocol+"//"+Gr.host)};Wr&&Kr||(Wr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Qr[++Jr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Dr(Jr),Jr},Kr=function(t){delete Qr[t]},qr?Dr=function(t){Yr.nextTick(Zr(t))}:Hr&&Hr.now?Dr=function(t){Hr.now(Zr(t))}:Vr&&!Br?(zr=(Nr=new Vr).port2,Nr.port1.onmessage=to,Dr=Qe(zr.postMessage,zr,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts&&Gr&&"file:"!==Gr.protocol&&!d(eo)?(Dr=eo,v.addEventListener("message",to,!1)):Dr="onreadystatechange"in $("script")?function(t){Ce.appendChild($("script")).onreadystatechange=function(){Ce.removeChild(this),Xr(t)}}:function(t){setTimeout(Zr(t),0)});var no,ro,oo,io,co,ao,uo,lo,so={set:Wr,clear:Kr},fo=/web0s(?!.*chrome)/i.test(te),po=U.f,vo=so.set,ho=v.MutationObserver||v.WebKitMutationObserver,go=v.document,yo=v.process,mo=v.Promise,bo=po(v,"queueMicrotask"),wo=bo&&bo.value;wo||(no=function(){var t,e;for(qr&&(t=yo.domain)&&t.exit();ro;){e=ro.fn,ro=ro.next;try{e()}catch(t){throw ro?io():oo=void 0,t}}oo=void 0,t&&t.enter()},Br||qr||fo||!ho||!go?mo&&mo.resolve?((uo=mo.resolve(void 0)).constructor=mo,lo=uo.then,io=function(){lo.call(uo,no)}):io=qr?function(){yo.nextTick(no)}:function(){vo.call(v,no)}:(co=!0,ao=go.createTextNode(""),new ho(no).observe(ao,{characterData:!0}),io=function(){ao.data=co=!co}));var xo,So,Eo,Oo,jo=wo||function(t){var e={fn:t,next:void 0};oo&&(oo.next=e),ro||(ro=e,io()),oo=e},To=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=we(e),this.reject=we(n)},Ao={f:function(t){return new To(t)}},ko=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ro="object"==typeof window,Po=so.set,Io=se("species"),_o="Promise",$o=lt.get,Co=lt.set,Lo=lt.getterFor(_o),Uo=Fr&&Fr.prototype,Mo=Fr,Do=Uo,No=v.TypeError,zo=v.document,Fo=v.process,Bo=Ao.f,qo=Bo,Go=!!(zo&&zo.createEvent&&v.dispatchEvent),Wo="function"==typeof PromiseRejectionEvent,Ko=!1,Yo=Mt(_o,(function(){var t=Y(Mo)!==String(Mo);if(!t&&66===oe)return!0;if(oe>=51&&/native code/.test(Mo))return!1;var e=new Mo((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Io]=n,!(Ko=e.then((function(){}))instanceof n)||!t&&Ro&&!Wo})),Vo=Yo||!dr((function(t){Mo.all(t).catch((function(){}))})),Ho=function(t){var e;return!(!T(t)||"function"!=typeof(e=t.then))&&e},Jo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;jo((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,v=l.domain;try{s?(o||(2===t.rejection&&ti(t),t.rejection=1),!0===s?c=r:(v&&v.enter(),c=s(r),v&&(v.exit(),u=!0)),c===l.promise?p(No("Promise-chain cycle")):(a=Ho(c))?a.call(c,f,p):f(c)):p(r)}catch(t){v&&!u&&v.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Xo(t)}))}},Qo=function(t,e,n){var r,o;Go?((r=zo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),v.dispatchEvent(r)):r={promise:e,reason:n},!Wo&&(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)},Xo=function(t){Po.call(v,(function(){var e,n=t.facade,r=t.value;if(Zo(t)&&(e=ko((function(){qr?Fo.emit("unhandledRejection",r,n):Qo("unhandledrejection",n,r)})),t.rejection=qr||Zo(t)?2:1,e.error))throw e.value}))},Zo=function(t){return 1!==t.rejection&&!t.parent},ti=function(t){Po.call(v,(function(){var e=t.facade;qr?Fo.emit("rejectionHandled",e):Qo("rejectionhandled",e,t.value)}))},ei=function(t,e,n){return function(r){t(e,r,n)}},ni=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Jo(t,!0))},ri=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw No("Promise can't be resolved itself");var r=Ho(e);r?jo((function(){var n={done:!1};try{r.call(e,ei(ri,n,t),ei(ni,n,t))}catch(e){ni(n,e,t)}})):(t.value=e,t.state=1,Jo(t,!1))}catch(e){ni({done:!1},e,t)}}};if(Yo&&(Do=(Mo=function(t){lr(this,Mo,_o),we(t),xo.call(this);var e=$o(this);try{t(ei(ri,e),ei(ni,e))}catch(t){ni(e,t)}}).prototype,(xo=function(t){Co(this,{type:_o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gr(Do,{then:function(t,e){var n=Lo(this),r=Bo(Se(this,Mo));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=qr?Fo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Jo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),So=function(){var t=new xo,e=$o(t);this.promise=t,this.resolve=ei(ri,e),this.reject=ei(ni,e)},Ao.f=Bo=function(t){return t===Mo||t===Eo?new So(t):qo(t)},"function"==typeof Fr&&Uo!==Object.prototype)){Oo=Uo.then,Ko||(st(Uo,"then",(function(t,e){var n=this;return new Mo((function(t,e){Oo.call(n,t,e)})).then(t,e)}),{unsafe:!0}),st(Uo,"catch",Do.catch,{unsafe:!0}));try{delete Uo.constructor}catch(t){}Dn&&Dn(Uo,Do)}Nt({global:!0,wrap:!0,forced:Yo},{Promise:Mo}),Ln(Mo,_o,!1),mr(_o),Eo=vt(_o),Nt({target:_o,stat:!0,forced:Yo},{reject:function(t){var e=Bo(this);return e.reject.call(void 0,t),e.promise}}),Nt({target:_o,stat:!0,forced:Yo},{resolve:function(t){return function(t,e){if(M(t),T(e)&&e.constructor===t)return e;var n=Ao.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Nt({target:_o,stat:!0,forced:Vo},{all:function(t){var e=this,n=Bo(e),r=n.resolve,o=n.reject,i=ko((function(){var n=we(e.resolve),i=[],c=0,a=1;ur(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=Bo(e),r=n.reject,o=ko((function(){var o=we(e.resolve);ur(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Nt({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,n,r=j(t),o=U.f,i=Rt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&pn(c,e,n);return c}});var oi=function(t,e,n,r){try{return r?e(M(n)[0],n[1]):e(n)}catch(e){throw cr(t),e}},ii=!dr((function(t){Array.from(t)}));Nt({target:"Array",stat:!0,forced:ii},{from:function(t){var e,n,r,o,i,c,a=k(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=ir(a),v=0;if(f&&(s=Qe(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&rr(p))for(n=new u(e=mt(a.length));e>v;v++)c=f?s(a[v],v):a[v],pn(n,v,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;v++)c=f?oi(o,s,[r.value,v],!0):r.value,pn(n,v,c);return n.length=v,n}});var ci=N.f,ai=Function.prototype,ui=ai.toString,li=/^\s*function ([^ (]*)/;h&&!("name"in ai)&&ci(ai,"name",{configurable:!0,get:function(){try{return ui.call(this).match(li)[1]}catch(t){return""}}});var si=dn("splice"),fi=Math.max,pi=Math.min;Nt({target:"Array",proto:!0,forced:!si},{splice:function(t,e){var n,r,o,i,c,a,u=k(this),l=mt(u.length),s=xt(t,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-s):(n=f-2,r=pi(fi(gt(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=tn(u,r),i=0;i<r;i++)(c=s+i)in u&&pn(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=rn.map,di=dn("map");Nt({target:"Array",proto:!0,forced:!di},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var hi=rn.filter,gi=dn("filter");Nt({target:"Array",proto:!0,forced:!gi},{filter:function(t){return hi(this,t,arguments.length>1?arguments[1]:void 0)}});var yi=[].join,mi=E!=Object,bi=on("join",",");Nt({target:"Array",proto:!0,forced:mi||!bi},{join:function(t){return yi.call(j(this),void 0===t?",":t)}});var wi=/"/g;Nt({target:"String",proto:!0,forced:function(t){return d((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(O(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(wi,""")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}}),hr("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Er);var xi=Object.assign,Si=Object.defineProperty,Ei=!xi||d((function(){if(h&&1!==xi({b:1},xi(Si({},"a",{enumerable:!0,get:function(){Si(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!=xi({},t)[n]||"abcdefghijklmnopqrst"!=_e(xi({},e)).join("")}))?function(t,e){for(var n=k(t),r=arguments.length,o=1,i=kt.f,c=m.f;r>o;)for(var a,u=E(arguments[o++]),l=i?_e(u).concat(i(u)):_e(u),s=l.length,f=0;s>f;)a=l[f++],h&&!c.call(u,a)||(n[a]=u[a]);return n}:xi;Nt({target:"Object",stat:!0,forced:Object.assign!==Ei},{assign:Ei});var Oi=Math.floor,ji="".replace,Ti=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ai=/\$([$&'`]|\d{1,2})/g,ki=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=Ai;return void 0!==o&&(o=k(o),u=Ti),ji.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=Oi(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}))},Ri=Math.max,Pi=Math.min;me("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=O(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=M(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 v=[];;){var d=Ae(u,l);if(null===d)break;if(v.push(d),!f)break;""===String(d[0])&&(u.lastIndex=Te(l,mt(u.lastIndex),p))}for(var h,g="",y=0,m=0;m<v.length;m++){d=v[m];for(var b=String(d[0]),w=Ri(Pi(gt(d.index),l.length),0),x=[],S=1;S<d.length;S++)x.push(void 0===(h=d[S])?h:String(h));var E=d.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=ki(b,l,w,x,E,r);w>=y&&(g+=l.slice(y,w)+j,y=w+b.length)}return g+l.slice(y)}]}));Nt({target:"Array",proto:!0},{fill:function(t){for(var e=k(this),n=mt(e.length),r=arguments.length,o=xt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:xt(i,n);c>o;)e[o++]=t;return e}}),On("fill");var Ii=At.f,_i={}.toString,$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ci={f:function(t){return $i&&"[object Window]"==_i.call(t)?function(t){try{return Ii(t)}catch(t){return $i.slice()}}(t):Ii(j(t))}},Li={f:se},Ui=N.f,Mi=function(t){var e=ft.Symbol||(ft.Symbol={});P(e,t)||Ui(e,t,{value:Li.f(t)})},Di=rn.forEach,Ni=et("hidden"),zi=se("toPrimitive"),Fi=lt.set,Bi=lt.getterFor("Symbol"),qi=Object.prototype,Gi=v.Symbol,Wi=vt("JSON","stringify"),Ki=U.f,Yi=N.f,Vi=Ci.f,Hi=m.f,Ji=J("symbols"),Qi=J("op-symbols"),Xi=J("string-to-symbol-registry"),Zi=J("symbol-to-string-registry"),tc=J("wks"),ec=v.QObject,nc=!ec||!ec.prototype||!ec.prototype.findChild,rc=h&&d((function(){return 7!=Ne(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ki(qi,e);r&&delete qi[e],Yi(t,e,n),r&&t!==qi&&Yi(qi,e,r)}:Yi,oc=function(t,e){var n=Ji[t]=Ne(Gi.prototype);return Fi(n,{type:"Symbol",tag:t,description:e}),h||(n.description=e),n},ic=ce?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Gi},cc=function(t,e,n){t===qi&&cc(Qi,e,n),M(t);var r=A(e,!0);return M(n),P(Ji,r)?(n.enumerable?(P(t,Ni)&&t[Ni][r]&&(t[Ni][r]=!1),n=Ne(n,{enumerable:b(0,!1)})):(P(t,Ni)||Yi(t,Ni,b(1,{})),t[Ni][r]=!0),rc(t,r,n)):Yi(t,r,n)},ac=function(t,e){M(t);var n=j(e),r=_e(n).concat(fc(n));return Di(r,(function(e){h&&!uc.call(n,e)||cc(t,e,n[e])})),t},uc=function(t){var e=A(t,!0),n=Hi.call(this,e);return!(this===qi&&P(Ji,e)&&!P(Qi,e))&&(!(n||!P(this,e)||!P(Ji,e)||P(this,Ni)&&this[Ni][e])||n)},lc=function(t,e){var n=j(t),r=A(e,!0);if(n!==qi||!P(Ji,r)||P(Qi,r)){var o=Ki(n,r);return!o||!P(Ji,r)||P(n,Ni)&&n[Ni][r]||(o.enumerable=!0),o}},sc=function(t){var e=Vi(j(t)),n=[];return Di(e,(function(t){P(Ji,t)||P(nt,t)||n.push(t)})),n},fc=function(t){var e=t===qi,n=Vi(e?Qi:j(t)),r=[];return Di(n,(function(t){!P(Ji,t)||e&&!P(qi,t)||r.push(Ji[t])})),r};if(ie||(st((Gi=function(){if(this instanceof Gi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Z(t),n=function(t){this===qi&&n.call(Qi,t),P(this,Ni)&&P(this[Ni],e)&&(this[Ni][e]=!1),rc(this,e,b(1,t))};return h&&nc&&rc(qi,e,{configurable:!0,set:n}),oc(e,t)}).prototype,"toString",(function(){return Bi(this).tag})),st(Gi,"withoutSetter",(function(t){return oc(Z(t),t)})),m.f=uc,N.f=cc,U.f=lc,At.f=Ci.f=sc,kt.f=fc,Li.f=function(t){return oc(se(t),t)},h&&(Yi(Gi.prototype,"description",{configurable:!0,get:function(){return Bi(this).description}}),st(qi,"propertyIsEnumerable",uc,{unsafe:!0}))),Nt({global:!0,wrap:!0,forced:!ie,sham:!ie},{Symbol:Gi}),Di(_e(tc),(function(t){Mi(t)})),Nt({target:"Symbol",stat:!0,forced:!ie},{for:function(t){var e=String(t);if(P(Xi,e))return Xi[e];var n=Gi(e);return Xi[e]=n,Zi[n]=e,n},keyFor:function(t){if(!ic(t))throw TypeError(t+" is not a symbol");if(P(Zi,t))return Zi[t]},useSetter:function(){nc=!0},useSimple:function(){nc=!1}}),Nt({target:"Object",stat:!0,forced:!ie,sham:!h},{create:function(t,e){return void 0===e?Ne(t):ac(Ne(t),e)},defineProperty:cc,defineProperties:ac,getOwnPropertyDescriptor:lc}),Nt({target:"Object",stat:!0,forced:!ie},{getOwnPropertyNames:sc,getOwnPropertySymbols:fc}),Nt({target:"Object",stat:!0,forced:d((function(){kt.f(1)}))},{getOwnPropertySymbols:function(t){return kt.f(k(t))}}),Wi){var pc=!ie||d((function(){var t=Gi();return"[null]"!=Wi([t])||"{}"!=Wi({a:t})||"{}"!=Wi(Object(t))}));Nt({target:"JSON",stat:!0,forced:pc},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(T(e)||void 0!==t)&&!ic(t))return Xe(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ic(e))return e}),o[1]=e,Wi.apply(null,o)}})}Gi.prototype[zi]||z(Gi.prototype,zi,Gi.prototype.valueOf),Ln(Gi,"Symbol"),nt[Ni]=!0;var vc,dc=N.f,hc=v.Symbol;if(h&&"function"==typeof hc&&(!("description"in hc.prototype)||void 0!==hc().description)){var gc={},yc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof yc?new hc(t):void 0===t?hc():hc(t);return""===t&&(gc[e]=!0),e};Pt(yc,hc);var mc=yc.prototype=hc.prototype;mc.constructor=yc;var bc=mc.toString,wc="Symbol(test)"==String(hc("test")),xc=/^Symbol\((.*)\)[^)]+$/;dc(mc,"description",{configurable:!0,get:function(){var t=T(this)?this.valueOf():this,e=bc.call(t);if(P(gc,t))return"";var n=wc?e.slice(7,-1):e.replace(xc,"$1");return""===n?void 0:n}}),Nt({global:!0,forced:!0},{Symbol:yc})}function Sc(){}function Ec(t){return t()}function Oc(){return Object.create(null)}function jc(t){t.forEach(Ec)}function Tc(t){return"function"==typeof t}function Ac(t,e){return t!=t?e==e:t!==e||t&&"object"===o(t)||"function"==typeof t}function kc(t,e){t.appendChild(e)}function Rc(t,e,n){t.insertBefore(e,n||null)}function Pc(t){t.parentNode.removeChild(t)}function Ic(t){return document.createElement(t)}function _c(t){return document.createTextNode(t)}function $c(){return _c(" ")}function Cc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Lc(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 Mc(t,e,n){t.classList[n?"add":"remove"](e)}function Dc(t){vc=t}Mi("iterator");var Nc=[],zc=[],Fc=[],Bc=[],qc=Promise.resolve(),Gc=!1;function Wc(t){Fc.push(t)}var Kc=!1,Yc=new Set;function Vc(){if(!Kc){Kc=!0;do{for(var t=0;t<Nc.length;t+=1){var e=Nc[t];Dc(e),Hc(e.$$)}for(Dc(null),Nc.length=0;zc.length;)zc.pop()();for(var n=0;n<Fc.length;n+=1){var r=Fc[n];Yc.has(r)||(Yc.add(r),r())}Fc.length=0}while(Nc.length);for(;Bc.length;)Bc.pop()();Gc=!1,Kc=!1,Yc.clear()}}function Hc(t){if(null!==t.fragment){t.update(),jc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wc)}}var Jc=new Set;function Qc(t,e){t&&t.i&&(Jc.delete(t),t.i(e))}function Xc(t,e,n,r){if(t&&t.o){if(Jc.has(t))return;Jc.add(t),(void 0).c.push((function(){Jc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var Zc="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ta(t){t&&t.c()}function ea(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||Wc((function(){var e=c.map(Ec).filter(Tc);a?a.push.apply(a,Ve(e)):jc(e),t.$$.on_mount=[]})),u.forEach(Wc)}function na(t,e){var n=t.$$;null!==n.fragment&&(jc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ra(t,e){-1===t.$$.dirty[0]&&(Nc.push(t),Gc||(Gc=!0,qc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function oa(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:Sc,not_equal:o,bound:Oc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:Oc(),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&&ra(t,e)),n})):[],u.update(),l=!0,jc(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(Pc)}else u.fragment&&u.fragment.c();e.intro&&Qc(t.$$.fragment),ea(t,e.target,e.anchor,e.customElement),Vc()}Dc(a)}var ia=function(){function e(){t(this,e)}var n,r,o;return n=e,(r=[{key:"$destroy",value:function(){na(this,1),this.$destroy=Sc}},{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)}}])&&He(n.prototype,r),o&&He(n,o),e}();function ca(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=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function aa(t){var e,n,r;return{c:function(){(e=Ic("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=$c(),(r=Ic("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>',Lc(e,"class","svelte-1ril8w"),Lc(r,"class","svelte-1ril8w")},m:function(t,o){Rc(t,e,o),Rc(t,n,o),Rc(t,r,o)},p:Sc,d:function(t){t&&Pc(e),t&&Pc(n),t&&Pc(r)}}}function ua(t){var e,n,r,o,i,c,a,u,l,s,f,p;return{c:function(){e=Ic("div"),n=Ic("div"),r=Ic("img"),i=$c(),(c=Ic("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-1ril8w"><path d="M0,0L20,20M20,0L0,20" class="svelte-1ril8w"></path></svg>',a=$c(),u=Ic("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Lc(r,"src",o),Lc(r,"alt","Logo"),Lc(r,"class","svelte-1ril8w"),Lc(c,"aria-label","Close chat window"),Lc(c,"role","button"),Lc(c,"class","bot-border-close-icon svelte-1ril8w"),Lc(c,"tabindex",0),Lc(n,"class","header svelte-1ril8w"),Lc(u,"id","chat-frame"),Lc(u,"title","Chat"),Lc(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&Lc(u,"src",l),Lc(u,"frameborder","0"),Lc(u,"allow","microphone"),u.allowFullscreen="",Lc(e,"class","bot-border svelte-1ril8w"),Lc(e,"aria-hidden",s=t[1]?"false":"true"),Mc(e,"closed",!t[1])},m:function(o,l){Rc(o,e,l),kc(e,n),kc(n,r),kc(n,i),kc(n,c),kc(e,a),kc(e,u),f||(p=[Cc(c,"click",(function(){Tc(t[3])&&t[3].apply(this,arguments)})),Cc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Lc(r,"src",o),1&i&&u.src!==(l=t[0])&&Lc(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&Lc(e,"aria-hidden",s),2&i&&Mc(e,"closed",!t[1])},d:function(t){t&&Pc(e),f=!1,jc(p)}}}function la(t){var e;function n(t,e){return t[0]?ua:aa}var r=n(t),o=r(t);return{c:function(){o.c(),e=_c("")},m:function(t,n){o.m(t,n),Rc(t,e,n)},p:function(t,i){var c=l(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:Sc,o:Sc,d:function(t){o.d(t),t&&Pc(e)}}}function sa(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 fa=function(n){r(i,n);var o=ca(i);function i(n){var r,c;return t(this,i),r=o.call(this),document.getElementById("svelte-1ril8w-style")||((c=Ic("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}",kc(document.head,c)),oa(e(r),n,sa,la,Ac,{server:0,open:1,assetsUrl:2,onToggle:3}),r}return i}(ia);function pa(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=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function va(t){var e,n,r,o,i;return{c:function(){e=Ic("div"),Lc(n=Ic("img"),"class","chat-button svelte-xlhtz"),Lc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Lc(n,"src",r),Lc(e,"class","chat-button-wrapper svelte-xlhtz"),Lc(e,"tabindex","0"),Lc(e,"role","button"),Lc(e,"aria-label","Open chat window")},m:function(r,c){Rc(r,e,c),kc(e,n),o||(i=[Cc(e,"click",(function(){Tc(t[1])&&t[1].apply(this,arguments)})),Cc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=l(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Lc(n,"src",r)},i:Sc,o:Sc,d:function(t){t&&Pc(e),o=!1,jc(i)}}}function da(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 ha=function(n){r(i,n);var o=pa(i);function i(n){var r,c;return t(this,i),r=o.call(this),document.getElementById("svelte-xlhtz-style")||((c=Ic("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)}",kc(document.head,c)),oa(e(r),n,da,va,Ac,{assetsUrl:0,onToggle:1}),r}return i}(ia),ga=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)};me("match",1,(function(t,e,n){return[function(e){var n=O(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=M(t),i=String(this);if(!o.global)return Ae(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=Ae(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=Te(i,mt(o.lastIndex),c)),l++}return 0===l?null:u}]}));var ya=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))},ma=f((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(t){ma.set("bot-window",t)};function wa(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=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}var xa=Zc.document;function Sa(t){var e,n,r,o,i,c,a,u;return i=new ha({props:{server:t[0],assetsUrl:t[1],onToggle:t[3]}}),a=new fa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:t[3]}}),{c:function(){e=Ic("link"),r=$c(),o=Ic("div"),ta(i.$$.fragment),c=$c(),ta(a.$$.fragment),Lc(e,"rel","stylesheet"),Lc(e,"href",n="".concat(t[1],"/embed/custom.css")),Lc(o,"id","chatbot-window"),Lc(o,"class","svelte-sr5aex")},m:function(t,n){kc(xa.head,e),Rc(t,r,n),Rc(t,o,n),ea(i,o,null),kc(o,c),ea(a,o,null),u=!0},p:function(t,r){var o=l(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&Lc(e,"href",n);var c={};1&o&&(c.server=t[0]),2&o&&(c.assetsUrl=t[1]),i.$set(c);var s={};1&o&&(s.server=t[0]),2&o&&(s.assetsUrl=t[1]),4&o&&(s.open=t[2]),a.$set(s)},i:function(t){u||(Qc(i.$$.fragment,t),Qc(a.$$.fragment,t),u=!0)},o:function(t){Xc(i.$$.fragment,t),Xc(a.$$.fragment,t),u=!1},d:function(t){Pc(e),t&&Pc(r),t&&Pc(o),na(i),na(a)}}}function Ea(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;ya();var c=function(){switch(ma.get("bot-window")){case"open":return!0;case"closed":default:return!1}}();function a(){n(2,c=!0),ba("open")}function u(){n(2,c=!1),ba("closed")}return ga((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&a()}),(function(t){window.innerWidth<768&&u(),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,function(){c?u():a()}]}var Oa=function(n){r(i,n);var o=wa(i);function i(n){var r,c;return t(this,i),r=o.call(this),xa.getElementById("svelte-sr5aex-style")||((c=Ic("style")).id="svelte-sr5aex-style",c.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",kc(xa.head,c)),oa(e(r),n,Ea,Sa,Ac,{server:0,assetsUrl:1}),r}return i}(ia),ja=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")),Ta=function(){console.log("Chatbot is loading from",ja),new Oa({target:document.body,props:{server:ja}})};window.addEventListener("load",(function(){return setTimeout(Ta,3e3)}))}();
|
|
2
2
|
//# sourceMappingURL=bundle.js.map
|