jdny-embed-chatbot
Version:
npm i jdny-embed-chatbot
2 lines • 21.9 kB
JavaScript
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n(require("vue")):"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["dist"]=n(require("vue")):t["dist"]=n(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){"use strict";var n={9274:function(n){n.exports=t},9306:function(t,n,e){var r=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},679:function(t,n,e){var r=e(1625),o=TypeError;t.exports=function(t,n){if(r(n,t))return t;throw new o("Incorrect invocation")}},8551:function(t,n,e){var r=e(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,n,e){var r=e(5397),o=e(5610),i=e(6198),c=function(t){return function(n,e,c){var u=r(n),a=i(u);if(0===a)return!t&&-1;var f,s=o(c,a);if(t&&e!==e){while(a>s)if(f=u[s++],f!==f)return!0}else for(;a>s;s++)if((t||s in u)&&u[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},2195:function(t,n,e){var r=e(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,n,e){var r=e(2140),o=e(4901),i=e(2195),c=e(8227),u=c("toStringTag"),a=Object,f="Arguments"===i(function(){return arguments}()),s=function(t,n){try{return t[n]}catch(e){}};t.exports=r?i:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=s(n=a(t),u))?e:f?i(n):"Object"===(r=i(n))&&o(n.callee)?"Arguments":r}},7740:function(t,n,e){var r=e(9297),o=e(5031),i=e(7347),c=e(4913);t.exports=function(t,n,e){for(var u=o(n),a=c.f,f=i.f,s=0;s<u.length;s++){var p=u[s];r(t,p)||e&&r(e,p)||a(t,p,f(n,p))}}},2211:function(t,n,e){var r=e(9039);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},6699:function(t,n,e){var r=e(3724),o=e(4913),i=e(6980);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},6980:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},4659:function(t,n,e){var r=e(3724),o=e(4913),i=e(6980);t.exports=function(t,n,e){r?o.f(t,n,i(0,e)):t[n]=e}},2106:function(t,n,e){var r=e(283),o=e(4913);t.exports=function(t,n,e){return e.get&&r(e.get,n,{getter:!0}),e.set&&r(e.set,n,{setter:!0}),o.f(t,n,e)}},6840:function(t,n,e){var r=e(4901),o=e(4913),i=e(283),c=e(9433);t.exports=function(t,n,e,u){u||(u={});var a=u.enumerable,f=void 0!==u.name?u.name:n;if(r(e)&&i(e,f,u),u.global)a?t[n]=e:c(n,e);else{try{u.unsafe?t[n]&&(a=!0):delete t[n]}catch(s){}a?t[n]=e:o.f(t,n,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},9433:function(t,n,e){var r=e(4576),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},3724:function(t,n,e){var r=e(9039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,n,e){var r=e(4576),o=e(34),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,n,e){var r=e(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519:function(t,n,e){var r,o,i=e(4576),c=e(2839),u=i.process,a=i.Deno,f=u&&u.versions||a&&a.version,s=f&&f.v8;s&&(r=s.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(r=c.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},6518:function(t,n,e){var r=e(4576),o=e(7347).f,i=e(6699),c=e(6840),u=e(9433),a=e(7740),f=e(2796);t.exports=function(t,n){var e,s,p,l,d,v,y=t.target,h=t.global,b=t.stat;if(s=h?r:b?r[y]||u(y,{}):r[y]&&r[y].prototype,s)for(p in n){if(d=n[p],t.dontCallGetSet?(v=o(s,p),l=v&&v.value):l=s[p],e=f(h?p:y+(b?".":"#")+p,t.forced),!e&&void 0!==l){if(typeof d==typeof l)continue;a(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),c(s,p,d,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(n){return!0}}},6080:function(t,n,e){var r=e(7476),o=e(9306),i=e(616),c=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?c(t,n):function(){return t.apply(n,arguments)}}},616:function(t,n,e){var r=e(9039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,n,e){var r=e(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,n,e){var r=e(3724),o=e(9297),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,f=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:f}},7476:function(t,n,e){var r=e(2195),o=e(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,n,e){var r=e(616),o=Function.prototype,i=o.call,c=r&&o.bind.bind(i,i);t.exports=r?c:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,n,e){var r=e(4576),o=e(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,n,e){var r=e(6955),o=e(5966),i=e(4117),c=e(6269),u=e(8227),a=u("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||c[r(t)]}},81:function(t,n,e){var r=e(9565),o=e(9306),i=e(8551),c=e(6823),u=e(851),a=TypeError;t.exports=function(t,n){var e=arguments.length<2?u(t):n;if(o(e))return i(r(e,t));throw new a(c(t)+" is not iterable")}},5966:function(t,n,e){var r=e(9306),o=e(4117);t.exports=function(t,n){var e=t[n];return o(e)?void 0:r(e)}},4576:function(t,n,e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e.g&&e.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,n,e){var r=e(9504),o=e(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},421:function(t){t.exports={}},397:function(t,n,e){var r=e(7751);t.exports=r("document","documentElement")},5917:function(t,n,e){var r=e(3724),o=e(9039),i=e(4055);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,n,e){var r=e(9504),o=e(9039),i=e(2195),c=Object,u=r("".split);t.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):c(t)}:c},3706:function(t,n,e){var r=e(9504),o=e(4901),i=e(7629),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},1181:function(t,n,e){var r,o,i,c=e(8622),u=e(4576),a=e(34),f=e(6699),s=e(9297),p=e(7629),l=e(6119),d=e(421),v="Object already initialized",y=u.TypeError,h=u.WeakMap,b=function(t){return i(t)?o(t):r(t,{})},g=function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw new y("Incompatible receiver, "+t+" required");return e}};if(c||p.state){var m=p.state||(p.state=new h);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,n){if(m.has(t))throw new y(v);return n.facade=t,m.set(t,n),n},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var x=l("state");d[x]=!0,r=function(t,n){if(s(t,x))throw new y(v);return n.facade=t,f(t,x,n),n},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:b,getterFor:g}},4209:function(t,n,e){var r=e(8227),o=e(6269),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},4901:function(t){var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},2796:function(t,n,e){var r=e(9039),o=e(4901),i=/#|\.prototype\./,c=function(t,n){var e=a[u(t)];return e===s||e!==f&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},f=c.NATIVE="N",s=c.POLYFILL="P";t.exports=c},4117:function(t){t.exports=function(t){return null===t||void 0===t}},34:function(t,n,e){var r=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,n,e){var r=e(7751),o=e(4901),i=e(1625),c=e(7040),u=Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return o(n)&&i(n.prototype,u(t))}},2652:function(t,n,e){var r=e(6080),o=e(9565),i=e(8551),c=e(6823),u=e(4209),a=e(6198),f=e(1625),s=e(81),p=e(851),l=e(9539),d=TypeError,v=function(t,n){this.stopped=t,this.result=n},y=v.prototype;t.exports=function(t,n,e){var h,b,g,m,x,w,O,S=e&&e.that,j=!(!e||!e.AS_ENTRIES),E=!(!e||!e.IS_RECORD),T=!(!e||!e.IS_ITERATOR),P=!(!e||!e.INTERRUPTED),I=r(n,S),C=function(t){return h&&l(h,"normal",t),new v(!0,t)},R=function(t){return j?(i(t),P?I(t[0],t[1],C):I(t[0],t[1])):P?I(t,C):I(t)};if(E)h=t.iterator;else if(T)h=t;else{if(b=p(t),!b)throw new d(c(t)+" is not iterable");if(u(b)){for(g=0,m=a(t);m>g;g++)if(x=R(t[g]),x&&f(y,x))return x;return new v(!1)}h=s(t,b)}w=E?t.next:h.next;while(!(O=o(w,h)).done){try{x=R(O.value)}catch(A){l(h,"throw",A)}if("object"==typeof x&&x&&f(y,x))return x}return new v(!1)}},9539:function(t,n,e){var r=e(9565),o=e(8551),i=e(5966);t.exports=function(t,n,e){var c,u;o(t);try{if(c=i(t,"return"),!c){if("throw"===n)throw e;return e}c=r(c,t)}catch(a){u=!0,c=a}if("throw"===n)throw e;if(u)throw c;return o(c),e}},7657:function(t,n,e){var r,o,i,c=e(9039),u=e(4901),a=e(34),f=e(2360),s=e(2787),p=e(6840),l=e(8227),d=e(6395),v=l("iterator"),y=!1;[].keys&&(i=[].keys(),"next"in i?(o=s(s(i)),o!==Object.prototype&&(r=o)):y=!0);var h=!a(r)||c((function(){var t={};return r[v].call(t)!==t}));h?r={}:d&&(r=f(r)),u(r[v])||p(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},6269:function(t){t.exports={}},6198:function(t,n,e){var r=e(8014);t.exports=function(t){return r(t.length)}},283:function(t,n,e){var r=e(9504),o=e(9039),i=e(4901),c=e(9297),u=e(3724),a=e(350).CONFIGURABLE,f=e(3706),s=e(1181),p=s.enforce,l=s.get,d=String,v=Object.defineProperty,y=r("".slice),h=r("".replace),b=r([].join),g=u&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,n,e){"Symbol("===y(d(n),0,7)&&(n="["+h(d(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!c(t,"name")||a&&t.name!==n)&&(u?v(t,"name",{value:n,configurable:!0}):t.name=n),g&&e&&c(e,"arity")&&t.length!==e.arity&&v(t,"length",{value:e.arity});try{e&&c(e,"constructor")&&e.constructor?u&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=p(t);return c(r,"source")||(r.source=b(m,"string"==typeof n?n:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||f(this)}),"toString")},741:function(t){var n=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?e:n)(r)}},2360:function(t,n,e){var r,o=e(8551),i=e(6801),c=e(8727),u=e(421),a=e(397),f=e(4055),s=e(6119),p=">",l="<",d="prototype",v="script",y=s("IE_PROTO"),h=function(){},b=function(t){return l+v+p+t+l+"/"+v+p},g=function(t){t.write(b("")),t.close();var n=t.parentWindow.Object;return t=null,n},m=function(){var t,n=f("iframe"),e="java"+v+":";return n.style.display="none",a.appendChild(n),n.src=String(e),t=n.contentWindow.document,t.open(),t.write(b("document.F=Object")),t.close(),t.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(n){}x="undefined"!=typeof document?document.domain&&r?g(r):m():g(r);var t=c.length;while(t--)delete x[d][c[t]];return x()};u[y]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(h[d]=o(t),e=new h,h[d]=null,e[y]=t):e=x(),void 0===n?e:i.f(e,n)}},6801:function(t,n,e){var r=e(3724),o=e(8686),i=e(4913),c=e(8551),u=e(5397),a=e(1072);n.f=r&&!o?Object.defineProperties:function(t,n){c(t);var e,r=u(n),o=a(n),f=o.length,s=0;while(f>s)i.f(t,e=o[s++],r[e]);return t}},4913:function(t,n,e){var r=e(3724),o=e(5917),i=e(8686),c=e(8551),u=e(6969),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";n.f=r?i?function(t,n,e){if(c(t),n=u(n),c(e),"function"===typeof t&&"prototype"===n&&"value"in e&&d in e&&!e[d]){var r=s(t,n);r&&r[d]&&(t[n]=e.value,e={configurable:l in e?e[l]:r[l],enumerable:p in e?e[p]:r[p],writable:!1})}return f(t,n,e)}:f:function(t,n,e){if(c(t),n=u(n),c(e),o)try{return f(t,n,e)}catch(r){}if("get"in e||"set"in e)throw new a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},7347:function(t,n,e){var r=e(3724),o=e(9565),i=e(8773),c=e(6980),u=e(5397),a=e(6969),f=e(9297),s=e(5917),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(t,n){if(t=u(t),n=a(n),s)try{return p(t,n)}catch(e){}if(f(t,n))return c(!o(i.f,t,n),t[n])}},8480:function(t,n,e){var r=e(1828),o=e(8727),i=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3717:function(t,n){n.f=Object.getOwnPropertySymbols},2787:function(t,n,e){var r=e(9297),o=e(4901),i=e(8981),c=e(6119),u=e(2211),a=c("IE_PROTO"),f=Object,s=f.prototype;t.exports=u?f.getPrototypeOf:function(t){var n=i(t);if(r(n,a))return n[a];var e=n.constructor;return o(e)&&n instanceof e?e.prototype:n instanceof f?s:null}},1625:function(t,n,e){var r=e(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,n,e){var r=e(9504),o=e(9297),i=e(5397),c=e(9617).indexOf,u=e(421),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(u,e)&&o(r,e)&&a(s,e);while(n.length>f)o(r,e=n[f++])&&(~c(s,e)||a(s,e));return s}},1072:function(t,n,e){var r=e(1828),o=e(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,n){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!e.call({1:2},1);n.f=o?function(t){var n=r(this,t);return!!n&&n.enumerable}:e},4270:function(t,n,e){var r=e(9565),o=e(4901),i=e(34),c=TypeError;t.exports=function(t,n){var e,u;if("string"===n&&o(e=t.toString)&&!i(u=r(e,t)))return u;if(o(e=t.valueOf)&&!i(u=r(e,t)))return u;if("string"!==n&&o(e=t.toString)&&!i(u=r(e,t)))return u;throw new c("Can't convert object to primitive value")}},5031:function(t,n,e){var r=e(7751),o=e(9504),i=e(8480),c=e(3717),u=e(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(u(t)),e=c.f;return e?a(n,e(t)):n}},7750:function(t,n,e){var r=e(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,n,e){var r=e(5745),o=e(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,n,e){var r=e(6395),o=e(4576),i=e(9433),c="__core-js_shared__",u=t.exports=o[c]||i(c,{});(u.versions||(u.versions=[])).push({version:"3.39.0",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,n,e){var r=e(7629);t.exports=function(t,n){return r[t]||(r[t]=n||{})}},4495:function(t,n,e){var r=e(9519),o=e(9039),i=e(4576),c=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!c(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},5610:function(t,n,e){var r=e(1291),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},5397:function(t,n,e){var r=e(7055),o=e(7750);t.exports=function(t){return r(o(t))}},1291:function(t,n,e){var r=e(741);t.exports=function(t){var n=+t;return n!==n||0===n?0:r(n)}},8014:function(t,n,e){var r=e(1291),o=Math.min;t.exports=function(t){var n=r(t);return n>0?o(n,9007199254740991):0}},8981:function(t,n,e){var r=e(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,n,e){var r=e(9565),o=e(34),i=e(757),c=e(5966),u=e(4270),a=e(8227),f=TypeError,s=a("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var e,a=c(t,s);if(a){if(void 0===n&&(n="default"),e=r(a,t,n),!o(e)||i(e))return e;throw new f("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(t,n)}},6969:function(t,n,e){var r=e(2777),o=e(757);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},2140:function(t,n,e){var r=e(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},6823:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},3392:function(t,n,e){var r=e(9504),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},7040:function(t,n,e){var r=e(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,n,e){var r=e(3724),o=e(9039);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,n,e){var r=e(4576),o=e(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:function(t,n,e){var r=e(4576),o=e(5745),i=e(9297),c=e(3392),u=e(4495),a=e(7040),f=r.Symbol,s=o("wks"),p=a?f["for"]||f:f&&f.withoutSetter||c;t.exports=function(t){return i(s,t)||(s[t]=u&&i(f,t)?f[t]:p("Symbol."+t)),s[t]}},8111:function(t,n,e){var r=e(6518),o=e(4576),i=e(679),c=e(8551),u=e(4901),a=e(2787),f=e(2106),s=e(4659),p=e(9039),l=e(9297),d=e(8227),v=e(7657).IteratorPrototype,y=e(3724),h=e(6395),b="constructor",g="Iterator",m=d("toStringTag"),x=TypeError,w=o[g],O=h||!u(w)||w.prototype!==v||!p((function(){w({})})),S=function(){if(i(this,v),a(this)===v)throw new x("Abstract class Iterator not directly constructable")},j=function(t,n){y?f(v,t,{configurable:!0,get:function(){return n},set:function(n){if(c(this),this===v)throw new x("You can't redefine this property");l(this,t)?this[t]=n:s(this,t,n)}}):v[t]=n};l(v,m)||j(m,g),!O&&l(v,b)&&v[b]!==Object||j(b,S),S.prototype=v,r({global:!0,constructor:!0,forced:O},{Iterator:S})},7588:function(t,n,e){var r=e(6518),o=e(2652),i=e(9306),c=e(8551),u=e(1767);r({target:"Iterator",proto:!0,real:!0},{forEach:function(t){c(this),i(t);var n=u(this),e=0;o(n,(function(n){t(n,e++)}),{IS_RECORD:!0})}})},8992:function(t,n,e){e(8111)},3949:function(t,n,e){e(7588)}},e={};function r(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return n[t].call(i.exports,i,i.exports,r),i.exports}!function(){r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var o={};if(r.r(o),r.d(o,{default:function(){return h}}),"undefined"!==typeof window){var i=window.document.currentScript,c=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(r.p=c[1])}r(8992),r(3949);var u=r(9274);function a(t,n,e,r,o="POST",i,c,u="window",a="#2259FD"){if(t.style.display="none",n&&r)if(console.log("chatEle",t),"window"==u){const t=document.createElement("div");t.id="chat-btn-open",t.style.cssText="position: fixed; bottom: 60px; right: 30px; width: 68px; height: 68px; cursor: pointer; z-index: 2147483647; transition: 0;",t.style.background=`url(${c}) no-repeat`,t.style.backgroundSize="100% 100%";let e={api:r,method:o,title:i,avatar:c,theme:a};for(let r in e)n+="&"+r+"="+encodeURIComponent(e[r]);n=n.replace("&","?");let u=document.createElement("iframe");u.src=n,u.id="fastgpt-chatbot-iframe",u.title=i,u.frameBorder="no",u.style.cssText="position: fixed; bottom: 60px; right: 98px;width: 460px;height: 700px;visibility:hidden;z-index:9999;",document.body.appendChild(u),t.addEventListener("click",(function(){const t=document.getElementById("fastgpt-chatbot-iframe");if("hidden"===t.style.visibility){const n=[{transform:"translateY(600px)",opacity:0},{transform:"translateY(0px)",opacity:1}],e=new KeyframeEffect(t,n,{duration:300,fill:"forwards"}),r=new Animation(e);r.play(),t.style.visibility="visible"}else console.log("close",t.style.visibility),t.style.visibility="hidden"})),document.body.appendChild(t)}else{let t={api:r,method:o,title:i,avatar:c,theme:a};for(let r in t)n+="&"+r+"="+encodeURIComponent(t[r]);n=n.replace("&","?"),console.log(n);let e=document.createElement("iframe");e.src=n,e.id="fastgpt-chatbot-iframe",e.title=i,e.style.height="100%",e.style.width="100%",e.style.border="none",document.body.appendChild(e)}else console.error("Can't find appid")}const f=["data-src","data-api","data-method","data-title","data-open-icon","data-open-origin","style-theme-color"];var s=Object.assign({name:"EmbedChatbot"},{__name:"index",props:{dataSrc:{type:String},dataApi:{type:String},dataMethod:{type:String},dataTitle:{type:String},dataOpenIcon:{type:String},dataOpenOrigin:{type:String},styleThemeColor:{type:String}},setup(t){const n=t,e=(0,u.ref)(null);return(0,u.nextTick)((()=>{a(e.value,n.dataSrc,n.dataApi,n.dataMethod,n.dataTitle,n.dataOpenIcon,n.dataOpenOrigin,n.styleThemeColor)})),(n,r)=>((0,u.openBlock)(),(0,u.createElementBlock)("iframe",{"data-src":t.dataSrc,"data-api":t.dataApi,"data-method":t.dataMethod,ref_key:"chatbotIframe",ref:e,"data-title":t.dataTitle,"data-open-icon":t.dataOpenIcon,"data-open-origin":t.dataOpenOrigin,"style-theme-color":t.styleThemeColor},null,8,f))}});const p=s;var l=p;const d=[l],v=t=>{d.forEach((n=>{t.component(n.name,n)}))};"undefined"!==typeof window&&window.Vue&&v(window.Vue);var y={install:v},h=y;return o}()}));
//# sourceMappingURL=dist.umd.min.js.map