byt-lingxiao-ai 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["index"]=n():t["index"]=n()})("undefined"!==typeof self?self:this,function(){return function(){"use strict";var t={34:function(t,n,e){var r=e(4901);t.exports=function(t){return"object"==typeof t?null!==t: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")}},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,s=e(3706),f=e(1181),p=f.enforce,l=f.get,d=String,v=Object.defineProperty,h=r("".slice),y=r("".replace),w=r([].join),b=u&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),g=String(String).split("String"),m=t.exports=function(t,n,e){"Symbol("===h(d(n),0,7)&&(n="["+y(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),b&&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=w(g,"string"==typeof n?n:"")),t};Function.prototype.toString=m(function(){return i(this)&&l(this).source||s(this)},"toString")},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,s=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},397:function(t,n,e){var r=e(7751);t.exports=r("document","documentElement")},421:function(t){t.exports={}},616:function(t,n,e){var r=e(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},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")}},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)}},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))}},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)]}},1072:function(t,n,e){var r=e(1828),o=e(8727);t.exports=Object.keys||function(t){return r(t,o)}},1181:function(t,n,e){var r,o,i,c=e(8622),u=e(4576),a=e(34),s=e(6699),f=e(9297),p=e(7629),l=e(6119),d=e(421),v="Object already initialized",h=u.TypeError,y=u.WeakMap,w=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return e}};if(c||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,n){if(g.has(t))throw new h(v);return n.facade=t,g.set(t,n),n},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=l("state");d[m]=!0,r=function(t,n){if(f(t,m))throw new h(v);return n.facade=t,s(t,m,n),n},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:w,getterFor:b}},1291:function(t,n,e){var r=e(741);t.exports=function(t){var n=+t;return n!==n||0===n?0:r(n)}},1625:function(t,n,e){var r=e(9504);t.exports=r({}.isPrototypeOf)},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},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),s=0,f=[];for(e in r)!o(u,e)&&o(r,e)&&a(f,e);while(n.length>s)o(r,e=n[s++])&&(~c(f,e)||a(f,e));return f}},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)}},2140:function(t,n,e){var r=e(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},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)}},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})},2360:function(t,n,e){var r,o=e(8551),i=e(6801),c=e(8727),u=e(421),a=e(397),s=e(4055),f=e(6119),p=">",l="<",d="prototype",v="script",h=f("IE_PROTO"),y=function(){},w=function(t){return l+v+p+t+l+"/"+v+p},b=function(t){t.write(w("")),t.close();var n=t.parentWindow.Object;return t=null,n},g=function(){var t,n=s("iframe"),e="java"+v+":";return n.style.display="none",a.appendChild(n),n.src=String(e),t=n.contentWindow.document,t.open(),t.write(w("document.F=Object")),t.close(),t.F},m=function(){try{r=new ActiveXObject("htmlfile")}catch(n){}m="undefined"!=typeof document?document.domain&&r?b(r):g():b(r);var t=c.length;while(t--)delete m[d][c[t]];return m()};u[h]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(y[d]=o(t),e=new y,y[d]=null,e[h]=t):e=m(),void 0===n?e:i.f(e,n)}},2652:function(t,n,e){var r=e(6080),o=e(9565),i=e(8551),c=e(6823),u=e(4209),a=e(6198),s=e(1625),f=e(81),p=e(851),l=e(9539),d=TypeError,v=function(t,n){this.stopped=t,this.result=n},h=v.prototype;t.exports=function(t,n,e){var y,w,b,g,m,x,C,O=e&&e.that,S=!(!e||!e.AS_ENTRIES),j=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),_=r(n,O),P=function(t){return y&&l(y,"normal"),new v(!0,t)},I=function(t){return S?(i(t),T?_(t[0],t[1],P):_(t[0],t[1])):T?_(t,P):_(t)};if(j)y=t.iterator;else if(E)y=t;else{if(w=p(t),!w)throw new d(c(t)+" is not iterable");if(u(w)){for(b=0,g=a(t);g>b;b++)if(m=I(t[b]),m&&s(h,m))return m;return new v(!1)}y=f(t,w)}x=j?t.next:y.next;while(!(C=o(x,y)).done){try{m=I(C.value)}catch(k){l(y,"throw",k)}if("object"==typeof m&&m&&s(h,m))return m}return new v(!1)}},2777:function(t,n,e){var r=e(9565),o=e(34),i=e(757),c=e(5966),u=e(4270),a=e(8227),s=TypeError,f=a("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var e,a=c(t,f);if(a){if(void 0===n&&(n="default"),e=r(a,t,n),!o(e)||i(e))return e;throw new s("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(t,n)}},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"),s=Object,f=s.prototype;t.exports=u?s.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 s?f:null}},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===f||e!==s&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},2839:function(t,n,e){var r=e(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},3392:function(t,n,e){var r=e(9504),o=0,i=Math.random(),c=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},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},3717:function(t,n){n.f=Object.getOwnPropertySymbols},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):{}}},4117:function(t){t.exports=function(t){return null===t||void 0===t}},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)}},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")}},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})},4549:function(t,n,e){var r=e(4576);t.exports=function(t,n){var e=r.Iterator,o=e&&e.prototype,i=o&&o[t],c=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){c=!0}},-1)}catch(u){u instanceof n||(c=!1)}if(!c)return i}},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")()},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}},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}},4913:function(t,n,e){var r=e(3724),o=e(5917),i=e(8686),c=e(8551),u=e(6969),a=TypeError,s=Object.defineProperty,f=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=f(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 s(t,n,e)}:s:function(t,n,e){if(c(t),n=u(n),c(e),o)try{return s(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}},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}},5397:function(t,n,e){var r=e(7055),o=e(7750);t.exports=function(t){return r(o(t))}},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)}},5745:function(t,n,e){var r=e(7629);t.exports=function(t,n){return r[t]||(r[t]=n||{})}},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})},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)}},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)}}},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))}},6198:function(t,n,e){var r=e(8014);t.exports=function(t){return r(t.length)}},6269:function(t){t.exports={}},6395:function(t){t.exports=!1},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),s=e(2796);t.exports=function(t,n){var e,f,p,l,d,v,h=t.target,y=t.global,w=t.stat;if(f=y?r:w?r[h]||u(h,{}):r[h]&&r[h].prototype,f)for(p in n){if(d=n[p],t.dontCallGetSet?(v=o(f,p),l=v&&v.value):l=f[p],e=s(y?p:h+(w?".":"#")+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(f,p,d,t)}}},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}},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),s=o.length,f=0;while(s>f)i.f(t,e=o[f++],r[e]);return t}},6823:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},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,s=void 0!==u.name?u.name:n;if(r(e)&&i(e,s,u),u.global)a?t[n]=e:c(n,e);else{try{u.unsafe?t[n]&&(a=!0):delete t[n]}catch(f){}a?t[n]=e:o.f(t,n,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6955:function(t,n,e){var r=e(2140),o=e(4901),i=e(2195),c=e(8227),u=c("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}()),f=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=f(n=a(t),u))?e:s?i(n):"Object"===(r=i(n))&&o(n.callee)?"Arguments":r}},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+""}},6980:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},7040:function(t,n,e){var r=e(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},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},7347:function(t,n,e){var r=e(3724),o=e(9565),i=e(8773),c=e(6980),u=e(5397),a=e(6969),s=e(9297),f=e(5917),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(t,n){if(t=u(t),n=a(n),f)try{return p(t,n)}catch(e){}if(s(t,n))return c(!o(i.f,t,n),t[n])}},7476:function(t,n,e){var r=e(2195),o=e(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},7588:function(t,n,e){var r=e(6518),o=e(9565),i=e(2652),c=e(9306),u=e(8551),a=e(1767),s=e(9539),f=e(4549),p=f("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:p},{forEach:function(t){u(this);try{c(t)}catch(r){s(this,"throw",r)}if(p)return o(p,this,t);var n=a(this),e=0;i(n,function(n){t(n,e++)},{IS_RECORD:!0})}})},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.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:function(t,n,e){var r,o,i,c=e(9039),u=e(4901),a=e(34),s=e(2360),f=e(2787),p=e(6840),l=e(8227),d=e(6395),v=l("iterator"),h=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(r=o)):h=!0);var y=!a(r)||c(function(){var t={};return r[v].call(t)!==t});y?r={}:d&&(r=s(r)),u(r[v])||p(r,v,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},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,s=i.f,f=0;f<u.length;f++){var p=u[f];r(t,p)||e&&r(e,p)||a(t,p,s(n,p))}}},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}},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]}},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}},8111:function(t,n,e){var r=e(6518),o=e(4576),i=e(679),c=e(8551),u=e(4901),a=e(2787),s=e(2106),f=e(4659),p=e(9039),l=e(9297),d=e(8227),v=e(7657).IteratorPrototype,h=e(3724),y=e(6395),w="constructor",b="Iterator",g=d("toStringTag"),m=TypeError,x=o[b],C=y||!u(x)||x.prototype!==v||!p(function(){x({})}),O=function(){if(i(this,v),a(this)===v)throw new m("Abstract class Iterator not directly constructable")},S=function(t,n){h?s(v,t,{configurable:!0,get:function(){return n},set:function(n){if(c(this),this===v)throw new m("You can't redefine this property");l(this,t)?this[t]=n:f(this,t,n)}}):v[t]=n};l(v,g)||S(g,b),!C&&l(v,w)&&v[w]!==Object||S(w,O),O.prototype=v,r({global:!0,constructor:!0,forced:C},{Iterator:O})},8227:function(t,n,e){var r=e(4576),o=e(5745),i=e(9297),c=e(3392),u=e(4495),a=e(7040),s=r.Symbol,f=o("wks"),p=a?s["for"]||s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},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)}},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")}},8622:function(t,n,e){var r=e(4576),o=e(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},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})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},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},8981:function(t,n,e){var r=e(7750),o=Object;t.exports=function(t){return o(r(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(n){return!0}}},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)}},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")}},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}},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)}}},9519:function(t,n,e){var r,o,i=e(4576),c=e(2839),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(r=f.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},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}},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)}},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 s,f=o(c,a);if(t&&e!==e){while(a>f)if(s=u[f++],s!==s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}!function(){e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){e.p=""}();var r={};if(e.r(r),e.d(r,{ChatWindow:function(){return l},default:function(){return y}}),"undefined"!==typeof window){var o=window.document.currentScript,i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(e.p=i[1])}e(8111),e(7588);var c=function(){var t=this,n=t._self._c;return n("div",{staticClass:"chat"},[n("div",{staticClass:"chat-ai",on:{click:t.toggleWindow}},[n("div",{staticClass:"chat-ai-avater"}),n("div",{staticClass:"chat-ai-text"},[t._v("凌霄AI")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat-overlay",on:{click:t.handleOverlayClick}},[n("div",{staticClass:"chat-window",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"chat-window-header"},[n("div",{staticClass:"chat-window-header-title"},[t._v("凌霄大模型AI对话")]),n("div",{staticClass:"chat-window-header-close",on:{click:function(n){t.visible=!1}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[n("path",{attrs:{d:"M5.50002 5.5L18.5 18.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}}),n("path",{attrs:{d:"M5.50002 18.5L18.5 5.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),n("div",{ref:"chatArea",staticClass:"chat-window-content scrollbar-hide"},t._l(t.messages,function(e){return n("div",{key:e.id,staticClass:"chat-window-message"},["user"===e.type?n("div",{staticClass:"chat-window-message-user"},[n("div",{staticClass:"user-message"},[t._v(t._s(e.content))])]):n("div",{staticClass:"chat-window-message-ai"},[n("div",{staticClass:"ai-message"},[t._v(t._s(e.content))])])])}),0),n("div",{staticClass:"chat-window-footer"},[n("div",{staticClass:"chat-window-textarea"},[n("el-input",{staticClass:"chat-window-input",attrs:{type:"textarea",placeholder:"有什么我能帮您的吗?",rows:"2",resize:"none"},on:{keydown:t.handleKeyDown},model:{value:t.inputMessage,callback:function(n){t.inputMessage=n},expression:"inputMessage"}}),n("div",{staticClass:"chat-window-bar"},[n("div",{staticClass:"chat-window-send"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}},[n("g",{attrs:{"clip-path":"url(#clip0_640_2107)"}},[n("path",{attrs:{d:"M18.6427 2.37822C19.3253 2.47432 19.8025 3.10738 19.7065 3.79002C19.6871 3.97072 19.5381 4.41327 19.5403 4.41161L14.9673 17.8079L14.9632 17.8093C14.7858 18.3838 14.212 18.7607 13.5971 18.6744C13.4173 18.6492 13.2504 18.5862 13.1055 18.4949L13.0973 18.4977L9.83449 16.3686C9.58371 16.2584 9.4276 15.9939 9.46729 15.7115C9.5154 15.3691 9.83278 15.1317 10.1751 15.1798C10.293 15.1964 10.3988 15.2448 10.4853 15.3161L13.4054 17.2314L13.4073 17.2317C13.4452 17.2566 13.4882 17.2746 13.5364 17.2814C13.6911 17.3029 13.8371 17.2052 13.8793 17.0593L18.0469 4.89796L8.27396 14.3367L7.77435 17.8916C7.72706 18.2281 7.41369 18.464 7.07727 18.4169C6.74073 18.3696 6.50469 18.0564 6.55198 17.7198L7.07633 13.9889C7.08231 13.9464 7.09382 13.9066 7.10727 13.867C7.13549 13.7645 7.19079 13.6657 7.27291 13.5866L17.0754 4.12041L2.68514 8.17767L2.68487 8.1796C2.58481 8.21873 2.50686 8.31058 2.49042 8.42643C2.47412 8.5424 2.52417 8.65007 2.6093 8.71729L2.60903 8.71922L3.28261 9.16101L3.28013 9.16461C3.47505 9.29254 3.58819 9.52563 3.55386 9.77111C3.50575 10.1134 3.18836 10.3509 2.84602 10.3028C2.75512 10.29 2.6708 10.2584 2.59833 10.2127L2.59806 10.2147L1.37843 9.42001L1.37951 9.41227C1.02215 9.14901 0.816644 8.70195 0.882687 8.23203C0.951867 7.74096 1.29791 7.35545 1.73968 7.21445L1.73995 7.21251L17.7833 2.57104C18.0287 2.41036 18.3294 2.3342 18.6427 2.37822Z",fill:"#013378"}}),n("path",{attrs:{d:"M3.1309 10.9936C3.2178 10.5684 3.82528 10.5684 3.91218 10.9936C4.10411 11.9326 4.83794 12.6664 5.77697 12.8584C6.20213 12.9453 6.20213 13.5527 5.77697 13.6397C4.83794 13.8316 4.10411 14.5654 3.91218 15.5044C3.82528 15.9296 3.2178 15.9296 3.1309 15.5044C2.93897 14.5654 2.20513 13.8316 1.26611 13.6397C0.840944 13.5527 0.840944 12.9453 1.26611 12.8584C2.20513 12.6664 2.93897 11.9326 3.1309 10.9936Z",fill:"#2B80F6"}}),n("path",{attrs:{d:"M6.20382 8.56242C6.25596 8.30732 6.62045 8.30732 6.67259 8.56242C6.78775 9.12583 7.22805 9.56613 7.79146 9.68129C8.04656 9.73343 8.04656 10.0979 7.79146 10.1501C7.22805 10.2652 6.78775 10.7055 6.67259 11.2689C6.62045 11.524 6.25596 11.524 6.20382 11.2689C6.08866 10.7055 5.64836 10.2652 5.08495 10.1501C4.82985 10.0979 4.82985 9.73343 5.08495 9.68129C5.64836 9.56613 6.08866 9.12583 6.20382 8.56242Z",fill:"#2B80F6"}})]),n("defs",[n("clipPath",{attrs:{id:"clip0_640_2107"}},[n("rect",{attrs:{width:"20",height:"20",fill:"white"}})])])])])])],1)])])])])},u=[],a={name:"ChatWindow",props:{appendToBody:{type:Boolean,default:!0}},data(){return{wsUrl:"",inputMessage:"",visible:!1,messages:[{id:1,type:"user",sender:"",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"},{id:2,type:"ai",sender:"AI",time:"",content:"欢迎来到凌霄大模型AI对话。"},{id:3,type:"ai",sender:"AI",time:"",content:"请输入您的问题。"},{id:4,type:"user",sender:"用户",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"}]}},mounted(){this.scrollToBottom(),this.appendToBody&&this.appendToBodyHandler()},beforeDestroy(){this.appendToBody&&this.$el.parentElement===document.body&&document.body.removeChild(this.$el)},methods:{initWebSocket(){},initAudio(){},handleSend(){},toggleWindow(){this.visible=!this.visible},showWindow(){this.visible=!0},hideWindow(){this.visible=!1},scrollToBottom(){this.$nextTick(()=>{const t=this.$refs.chatArea;t&&(t.scrollTop=t.scrollHeight)})},handleKeyDown(t){"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.handleSend())},appendToBodyHandler(){this.$nextTick(()=>{this.$el.parentElement!==document.body&&document.body.appendChild(this.$el)})},handleOverlayClick(){this.visible=!1}},watch:{messages:{handler(){this.scrollToBottom()},deep:!0}}},s=a;function f(t,n,e,r,o,i,c,u){var a,s="function"===typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,n){return a.call(n),f(t,n)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,a):[a]}return{exports:t,options:s}}var p=f(s,c,u,!1,null,"0171ee1c",null),l=p.exports;const d={ChatWindow:l},v=function(t){v.installed||(v.installed=!0,Object.keys(d).forEach(n=>{t.component(n,d[n])}))};"undefined"!==typeof window&&window.Vue&&v(window.Vue);var h={install:v,...d},y=h;return r}()});
1
+ (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["index"]=n(require("vue")):t["index"]=n(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(){"use strict";var n={34:function(t,n,e){var r=e(4901);t.exports=function(t){return"object"==typeof t?null!==t: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")}},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,s=e(3706),f=e(1181),p=f.enforce,l=f.get,d=String,v=Object.defineProperty,h=r("".slice),y=r("".replace),w=r([].join),b=u&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),g=String(String).split("String"),m=t.exports=function(t,n,e){"Symbol("===h(d(n),0,7)&&(n="["+y(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),b&&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=w(g,"string"==typeof n?n:"")),t};Function.prototype.toString=m(function(){return i(this)&&l(this).source||s(this)},"toString")},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,s=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},397:function(t,n,e){var r=e(7751);t.exports=r("document","documentElement")},421:function(t){t.exports={}},616:function(t,n,e){var r=e(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},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")}},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)}},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))}},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)]}},1072:function(t,n,e){var r=e(1828),o=e(8727);t.exports=Object.keys||function(t){return r(t,o)}},1181:function(t,n,e){var r,o,i,c=e(8622),u=e(4576),a=e(34),s=e(6699),f=e(9297),p=e(7629),l=e(6119),d=e(421),v="Object already initialized",h=u.TypeError,y=u.WeakMap,w=function(t){return i(t)?o(t):r(t,{})},b=function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return e}};if(c||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,n){if(g.has(t))throw new h(v);return n.facade=t,g.set(t,n),n},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=l("state");d[m]=!0,r=function(t,n){if(f(t,m))throw new h(v);return n.facade=t,s(t,m,n),n},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:w,getterFor:b}},1291:function(t,n,e){var r=e(741);t.exports=function(t){var n=+t;return n!==n||0===n?0:r(n)}},1625:function(t,n,e){var r=e(9504);t.exports=r({}.isPrototypeOf)},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},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),s=0,f=[];for(e in r)!o(u,e)&&o(r,e)&&a(f,e);while(n.length>s)o(r,e=n[s++])&&(~c(f,e)||a(f,e));return f}},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)}},2140:function(t,n,e){var r=e(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},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)}},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})},2360:function(t,n,e){var r,o=e(8551),i=e(6801),c=e(8727),u=e(421),a=e(397),s=e(4055),f=e(6119),p=">",l="<",d="prototype",v="script",h=f("IE_PROTO"),y=function(){},w=function(t){return l+v+p+t+l+"/"+v+p},b=function(t){t.write(w("")),t.close();var n=t.parentWindow.Object;return t=null,n},g=function(){var t,n=s("iframe"),e="java"+v+":";return n.style.display="none",a.appendChild(n),n.src=String(e),t=n.contentWindow.document,t.open(),t.write(w("document.F=Object")),t.close(),t.F},m=function(){try{r=new ActiveXObject("htmlfile")}catch(n){}m="undefined"!=typeof document?document.domain&&r?b(r):g():b(r);var t=c.length;while(t--)delete m[d][c[t]];return m()};u[h]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(y[d]=o(t),e=new y,y[d]=null,e[h]=t):e=m(),void 0===n?e:i.f(e,n)}},2652:function(t,n,e){var r=e(6080),o=e(9565),i=e(8551),c=e(6823),u=e(4209),a=e(6198),s=e(1625),f=e(81),p=e(851),l=e(9539),d=TypeError,v=function(t,n){this.stopped=t,this.result=n},h=v.prototype;t.exports=function(t,n,e){var y,w,b,g,m,x,C,O=e&&e.that,S=!(!e||!e.AS_ENTRIES),j=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),_=r(n,O),P=function(t){return y&&l(y,"normal"),new v(!0,t)},I=function(t){return S?(i(t),T?_(t[0],t[1],P):_(t[0],t[1])):T?_(t,P):_(t)};if(j)y=t.iterator;else if(E)y=t;else{if(w=p(t),!w)throw new d(c(t)+" is not iterable");if(u(w)){for(b=0,g=a(t);g>b;b++)if(m=I(t[b]),m&&s(h,m))return m;return new v(!1)}y=f(t,w)}x=j?t.next:y.next;while(!(C=o(x,y)).done){try{m=I(C.value)}catch(k){l(y,"throw",k)}if("object"==typeof m&&m&&s(h,m))return m}return new v(!1)}},2777:function(t,n,e){var r=e(9565),o=e(34),i=e(757),c=e(5966),u=e(4270),a=e(8227),s=TypeError,f=a("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var e,a=c(t,f);if(a){if(void 0===n&&(n="default"),e=r(a,t,n),!o(e)||i(e))return e;throw new s("Can't convert object to primitive value")}return void 0===n&&(n="number"),u(t,n)}},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"),s=Object,f=s.prototype;t.exports=u?s.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 s?f:null}},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===f||e!==s&&(o(n)?r(n):!!n)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},2839:function(t,n,e){var r=e(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},3392:function(t,n,e){var r=e(9504),o=0,i=Math.random(),c=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},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},3717:function(t,n){n.f=Object.getOwnPropertySymbols},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):{}}},4117:function(t){t.exports=function(t){return null===t||void 0===t}},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)}},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")}},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})},4549:function(t,n,e){var r=e(4576);t.exports=function(t,n){var e=r.Iterator,o=e&&e.prototype,i=o&&o[t],c=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){c=!0}},-1)}catch(u){u instanceof n||(c=!1)}if(!c)return i}},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")()},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}},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}},4913:function(t,n,e){var r=e(3724),o=e(5917),i=e(8686),c=e(8551),u=e(6969),a=TypeError,s=Object.defineProperty,f=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=f(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 s(t,n,e)}:s:function(t,n,e){if(c(t),n=u(n),c(e),o)try{return s(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}},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}},5397:function(t,n,e){var r=e(7055),o=e(7750);t.exports=function(t){return r(o(t))}},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)}},5745:function(t,n,e){var r=e(7629);t.exports=function(t,n){return r[t]||(r[t]=n||{})}},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})},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)}},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)}}},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))}},6198:function(t,n,e){var r=e(8014);t.exports=function(t){return r(t.length)}},6269:function(t){t.exports={}},6319:function(t,n,e){t.exports=e.p+"img/normal.13f08ecb.png"},6395:function(t){t.exports=!1},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),s=e(2796);t.exports=function(t,n){var e,f,p,l,d,v,h=t.target,y=t.global,w=t.stat;if(f=y?r:w?r[h]||u(h,{}):r[h]&&r[h].prototype,f)for(p in n){if(d=n[p],t.dontCallGetSet?(v=o(f,p),l=v&&v.value):l=f[p],e=s(y?p:h+(w?".":"#")+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(f,p,d,t)}}},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}},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),s=o.length,f=0;while(s>f)i.f(t,e=o[f++],r[e]);return t}},6823:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},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,s=void 0!==u.name?u.name:n;if(r(e)&&i(e,s,u),u.global)a?t[n]=e:c(n,e);else{try{u.unsafe?t[n]&&(a=!0):delete t[n]}catch(f){}a?t[n]=e:o.f(t,n,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},6955:function(t,n,e){var r=e(2140),o=e(4901),i=e(2195),c=e(8227),u=c("toStringTag"),a=Object,s="Arguments"===i(function(){return arguments}()),f=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=f(n=a(t),u))?e:s?i(n):"Object"===(r=i(n))&&o(n.callee)?"Arguments":r}},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+""}},6980:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},7040:function(t,n,e){var r=e(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},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},7347:function(t,n,e){var r=e(3724),o=e(9565),i=e(8773),c=e(6980),u=e(5397),a=e(6969),s=e(9297),f=e(5917),p=Object.getOwnPropertyDescriptor;n.f=r?p:function(t,n){if(t=u(t),n=a(n),f)try{return p(t,n)}catch(e){}if(s(t,n))return c(!o(i.f,t,n),t[n])}},7476:function(t,n,e){var r=e(2195),o=e(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},7588:function(t,n,e){var r=e(6518),o=e(9565),i=e(2652),c=e(9306),u=e(8551),a=e(1767),s=e(9539),f=e(4549),p=f("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:p},{forEach:function(t){u(this);try{c(t)}catch(r){s(this,"throw",r)}if(p)return o(p,this,t);var n=a(this),e=0;i(n,function(n){t(n,e++)},{IS_RECORD:!0})}})},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.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7657:function(t,n,e){var r,o,i,c=e(9039),u=e(4901),a=e(34),s=e(2360),f=e(2787),p=e(6840),l=e(8227),d=e(6395),v=l("iterator"),h=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(r=o)):h=!0);var y=!a(r)||c(function(){var t={};return r[v].call(t)!==t});y?r={}:d&&(r=s(r)),u(r[v])||p(r,v,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},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,s=i.f,f=0;f<u.length;f++){var p=u[f];r(t,p)||e&&r(e,p)||a(t,p,s(n,p))}}},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}},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]}},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}},8111:function(t,n,e){var r=e(6518),o=e(4576),i=e(679),c=e(8551),u=e(4901),a=e(2787),s=e(2106),f=e(4659),p=e(9039),l=e(9297),d=e(8227),v=e(7657).IteratorPrototype,h=e(3724),y=e(6395),w="constructor",b="Iterator",g=d("toStringTag"),m=TypeError,x=o[b],C=y||!u(x)||x.prototype!==v||!p(function(){x({})}),O=function(){if(i(this,v),a(this)===v)throw new m("Abstract class Iterator not directly constructable")},S=function(t,n){h?s(v,t,{configurable:!0,get:function(){return n},set:function(n){if(c(this),this===v)throw new m("You can't redefine this property");l(this,t)?this[t]=n:f(this,t,n)}}):v[t]=n};l(v,g)||S(g,b),!C&&l(v,w)&&v[w]!==Object||S(w,O),O.prototype=v,r({global:!0,constructor:!0,forced:C},{Iterator:O})},8227:function(t,n,e){var r=e(4576),o=e(5745),i=e(9297),c=e(3392),u=e(4495),a=e(7040),s=r.Symbol,f=o("wks"),p=a?s["for"]||s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},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)}},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")}},8622:function(t,n,e){var r=e(4576),o=e(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},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})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},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},8981:function(t,n,e){var r=e(7750),o=Object;t.exports=function(t){return o(r(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(n){return!0}}},9274:function(n){n.exports=t},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)}},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")}},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}},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)}}},9519:function(t,n,e){var r,o,i=e(4576),c=e(2839),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(r=f.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},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}},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)}},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 s,f=o(c,a);if(t&&e!==e){while(a>f)if(s=u[f++],s!==s)return!0}else for(;a>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}}},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,{ChatWindow:function(){return w},default:function(){return x}}),"undefined"!==typeof window){var i=window.document.currentScript,c=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(r.p=c[1])}r(8111),r(7588);var u=function(){var t=this,n=t._self._c;return n("div",{staticClass:"chat"},[n("div",{staticClass:"chat-ai",on:{click:t.toggleWindow}},[n("div",{staticClass:"chat-ai-avater"}),n("div",{staticClass:"chat-ai-text"},[t._v("凌霄AI")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat-overlay",on:{click:t.handleOverlayClick}},[n("div",{staticClass:"chat-window",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"chat-window-header"},[n("div",{staticClass:"chat-window-header-title"},[t._v("凌霄大模型AI对话")]),n("div",{staticClass:"chat-window-header-close",on:{click:function(n){t.visible=!1}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[n("path",{attrs:{d:"M5.50002 5.5L18.5 18.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}}),n("path",{attrs:{d:"M5.50002 18.5L18.5 5.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),n("div",{ref:"chatArea",staticClass:"chat-window-content scrollbar-hide"},t._l(t.messages,function(e){return n("div",{key:e.id,staticClass:"chat-window-message"},["user"===e.type?n("div",{staticClass:"chat-window-message-user"},[n("div",{staticClass:"user-message"},[t._v(t._s(e.content))])]):n("div",{staticClass:"chat-window-message-ai"},[n("div",{staticClass:"ai-message"},[t._v(t._s(e.content))])])])}),0),n("div",{staticClass:"chat-window-footer"},[n("div",{staticClass:"chat-window-textarea"},[n("el-input",{staticClass:"chat-window-input",attrs:{type:"textarea",placeholder:"有什么我能帮您的吗?",rows:"2",resize:"none"},on:{keydown:t.handleKeyDown},model:{value:t.inputMessage,callback:function(n){t.inputMessage=n},expression:"inputMessage"}}),n("div",{staticClass:"chat-window-bar"},[n("div",{staticClass:"chat-window-send"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}},[n("g",{attrs:{"clip-path":"url(#clip0_640_2107)"}},[n("path",{attrs:{d:"M18.6427 2.37822C19.3253 2.47432 19.8025 3.10738 19.7065 3.79002C19.6871 3.97072 19.5381 4.41327 19.5403 4.41161L14.9673 17.8079L14.9632 17.8093C14.7858 18.3838 14.212 18.7607 13.5971 18.6744C13.4173 18.6492 13.2504 18.5862 13.1055 18.4949L13.0973 18.4977L9.83449 16.3686C9.58371 16.2584 9.4276 15.9939 9.46729 15.7115C9.5154 15.3691 9.83278 15.1317 10.1751 15.1798C10.293 15.1964 10.3988 15.2448 10.4853 15.3161L13.4054 17.2314L13.4073 17.2317C13.4452 17.2566 13.4882 17.2746 13.5364 17.2814C13.6911 17.3029 13.8371 17.2052 13.8793 17.0593L18.0469 4.89796L8.27396 14.3367L7.77435 17.8916C7.72706 18.2281 7.41369 18.464 7.07727 18.4169C6.74073 18.3696 6.50469 18.0564 6.55198 17.7198L7.07633 13.9889C7.08231 13.9464 7.09382 13.9066 7.10727 13.867C7.13549 13.7645 7.19079 13.6657 7.27291 13.5866L17.0754 4.12041L2.68514 8.17767L2.68487 8.1796C2.58481 8.21873 2.50686 8.31058 2.49042 8.42643C2.47412 8.5424 2.52417 8.65007 2.6093 8.71729L2.60903 8.71922L3.28261 9.16101L3.28013 9.16461C3.47505 9.29254 3.58819 9.52563 3.55386 9.77111C3.50575 10.1134 3.18836 10.3509 2.84602 10.3028C2.75512 10.29 2.6708 10.2584 2.59833 10.2127L2.59806 10.2147L1.37843 9.42001L1.37951 9.41227C1.02215 9.14901 0.816644 8.70195 0.882687 8.23203C0.951867 7.74096 1.29791 7.35545 1.73968 7.21445L1.73995 7.21251L17.7833 2.57104C18.0287 2.41036 18.3294 2.3342 18.6427 2.37822Z",fill:"#013378"}}),n("path",{attrs:{d:"M3.1309 10.9936C3.2178 10.5684 3.82528 10.5684 3.91218 10.9936C4.10411 11.9326 4.83794 12.6664 5.77697 12.8584C6.20213 12.9453 6.20213 13.5527 5.77697 13.6397C4.83794 13.8316 4.10411 14.5654 3.91218 15.5044C3.82528 15.9296 3.2178 15.9296 3.1309 15.5044C2.93897 14.5654 2.20513 13.8316 1.26611 13.6397C0.840944 13.5527 0.840944 12.9453 1.26611 12.8584C2.20513 12.6664 2.93897 11.9326 3.1309 10.9936Z",fill:"#2B80F6"}}),n("path",{attrs:{d:"M6.20382 8.56242C6.25596 8.30732 6.62045 8.30732 6.67259 8.56242C6.78775 9.12583 7.22805 9.56613 7.79146 9.68129C8.04656 9.73343 8.04656 10.0979 7.79146 10.1501C7.22805 10.2652 6.78775 10.7055 6.67259 11.2689C6.62045 11.524 6.25596 11.524 6.20382 11.2689C6.08866 10.7055 5.64836 10.2652 5.08495 10.1501C4.82985 10.0979 4.82985 9.73343 5.08495 9.68129C5.64836 9.56613 6.08866 9.12583 6.20382 8.56242Z",fill:"#2B80F6"}})]),n("defs",[n("clipPath",{attrs:{id:"clip0_640_2107"}},[n("rect",{attrs:{width:"20",height:"20",fill:"white"}})])])])])])],1)])])])])},a=[],s=r(9274);const f={name:"ChatWindow",props:{appendToBody:{type:Boolean,default:!0}},data(){return{wsUrl:"",inputMessage:"",visible:!1,normalPng:r(6319),messages:[{id:1,type:"user",sender:"",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"},{id:2,type:"ai",sender:"AI",time:"",content:"欢迎来到凌霄大模型AI对话。"},{id:3,type:"ai",sender:"AI",time:"",content:"请输入您的问题。"},{id:4,type:"user",sender:"用户",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"}]}},mounted(){this.scrollToBottom(),this.appendToBody&&this.appendToBodyHandler()},beforeDestroy(){this.appendToBody&&this.$el.parentElement===document.body&&document.body.removeChild(this.$el)},methods:{initWebSocket(){},initAudio(){},handleSend(){},toggleWindow(){this.visible=!this.visible},showWindow(){this.visible=!0},hideWindow(){this.visible=!1},scrollToBottom(){this.$nextTick(()=>{const t=this.$refs.chatArea;t&&(t.scrollTop=t.scrollHeight)})},handleKeyDown(t){"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.handleSend())},appendToBodyHandler(){this.$nextTick(()=>{this.$el.parentElement!==document.body&&document.body.appendChild(this.$el)})},handleOverlayClick(){this.visible=!1}},watch:{messages:{handler(){this.scrollToBottom()},deep:!0}}},p=()=>{(0,s.useCssVars)((t,n)=>({35221950:t.normalPng}))},l=f.setup;f.setup=l?(t,n)=>(p(),l(t,n)):p;var d=f,v=d;function h(t,n,e,r,o,i,c,u){var a,s="function"===typeof t?t.options:t;if(n&&(s.render=n,s.staticRenderFns=e,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,n){return a.call(n),f(t,n)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,a):[a]}return{exports:t,options:s}}var y=h(v,u,a,!1,null,"550cc70e",null),w=y.exports;const b={ChatWindow:w},g=function(t){g.installed||(g.installed=!0,Object.keys(b).forEach(n=>{t.component(n,b[n])}))};"undefined"!==typeof window&&window.Vue&&g(window.Vue);var m={install:g,...b},x=m;return o}()});
2
2
  //# sourceMappingURL=index.umd.min.js.map