Spaces:
Running
Running
Commit
•
5b8f207
1
Parent(s):
bda1417
Upload 13 files
Browse files
static/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
static/css/2.c20e0e7f.chunk.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/js/2.4aac219c.chunk.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/js/3.c34f4129.chunk.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(this.webpackJsonpchatchan=this.webpackJsonpchatchan||[]).push([[3],{1472:function(n,e,t){"use strict";t.r(e);var r=t(1513),i=t(1512);t.d(e,"__wbg_set_wasm",(function(){return i.c})),t.d(e,"get_encoding",(function(){return i.k})),t.d(e,"encoding_for_model",(function(){return i.j})),t.d(e,"Tiktoken",(function(){return i.a})),t.d(e,"__wbindgen_object_drop_ref",(function(){return i.g})),t.d(e,"__wbindgen_is_undefined",(function(){return i.f})),t.d(e,"__wbg_stringify_029a979dfb73aa17",(function(){return i.d})),t.d(e,"__wbindgen_string_get",(function(){return i.h})),t.d(e,"__wbindgen_error_new",(function(){return i.e})),t.d(e,"__wbg_parse_3ac95b51fc312db8",(function(){return i.b})),t.d(e,"__wbindgen_throw",(function(){return i.i})),Object(i.c)(r)},1512:function(n,e,t){"use strict";(function(n){t.d(e,"c",(function(){return o})),t.d(e,"k",(function(){return q})),t.d(e,"j",(function(){return S})),t.d(e,"a",(function(){return z})),t.d(e,"g",(function(){return W})),t.d(e,"f",(function(){return j})),t.d(e,"d",(function(){return O})),t.d(e,"h",(function(){return T})),t.d(e,"e",(function(){return P})),t.d(e,"b",(function(){return J})),t.d(e,"i",(function(){return D}));var r,i=t(11),_=t(12);function o(n){r=n}var d=new Array(128).fill(void 0);function a(n){return d[n]}d.push(void 0,null,!0,!1);var u=d.length;function c(n){var e=a(n);return function(n){n<132||(d[n]=u,u=n)}(n),e}var f=0,l=null;function b(){return null!==l&&0!==l.byteLength||(l=new Uint8Array(r.memory.buffer)),l}var w=new("undefined"===typeof TextEncoder?(0,n.require)("util").TextEncoder:TextEncoder)("utf-8"),p="function"===typeof w.encodeInto?function(n,e){return w.encodeInto(n,e)}:function(n,e){var t=w.encode(n);return e.set(t),{read:n.length,written:t.length}};function s(n,e,t){if(void 0===t){var r=w.encode(n),i=e(r.length);return b().subarray(i,i+r.length).set(r),f=r.length,i}for(var _=n.length,o=e(_),d=b(),a=0;a<_;a++){var u=n.charCodeAt(a);if(u>127)break;d[o+a]=u}if(a!==_){0!==a&&(n=n.slice(a)),o=t(o,_,_=a+3*n.length);var c=b().subarray(o+a,o+_);a+=p(n,c).written}return f=a,o}var k=null;function y(){return null!==k&&0!==k.byteLength||(k=new Int32Array(r.memory.buffer)),k}var g=new("undefined"===typeof TextDecoder?(0,n.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function h(n,e){return g.decode(b().subarray(n,n+e))}function v(n){u===d.length&&d.push(d.length+1);var e=u;return u=d[e],d[e]=n,e}g.decode();var x=null;function A(){return null!==x&&0!==x.byteLength||(x=new Uint32Array(r.memory.buffer)),x}function E(n,e){return A().subarray(n/4,n/4+e)}function m(n,e){return b().subarray(n/1,n/1+e)}function q(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var t=r.__wbindgen_add_to_stack_pointer(-16),i=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),_=f;r.get_encoding(t,i,_,v(e));var o=y()[t/4+0],d=y()[t/4+1];if(y()[t/4+2])throw c(d);return z.__wrap(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function S(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var t=r.__wbindgen_add_to_stack_pointer(-16),i=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),_=f;r.encoding_for_model(t,i,_,v(e));var o=y()[t/4+0],d=y()[t/4+1];if(y()[t/4+2])throw c(d);return z.__wrap(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function M(n,e){try{return n.apply(this,e)}catch(t){r.__wbindgen_export_3(v(t))}}var z=function(){function n(e,t,_){if(Object(i.a)(this,n),null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var o=s(e,r.__wbindgen_export_0,r.__wbindgen_export_1),d=f,a=s(_,r.__wbindgen_export_0,r.__wbindgen_export_1),u=f,c=r.tiktoken_new(o,d,v(t),a,u);return n.__wrap(c)}return Object(_.a)(n,[{key:"__destroy_into_raw",value:function(){var n=this.ptr;return this.ptr=0,n}},{key:"free",value:function(){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var n=this.__destroy_into_raw();r.__wbg_tiktoken_free(n)}},{key:"name",get:function(){try{var n=r.__wbindgen_add_to_stack_pointer(-16);r.tiktoken_name(n,this.ptr);var e,t=y()[n/4+0],i=y()[n/4+1];return 0!==t&&(e=h(t,i).slice(),r.__wbindgen_export_2(t,1*i)),e}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode",value:function(n,e,t){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var i=r.__wbindgen_add_to_stack_pointer(-16),_=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),o=f;r.tiktoken_encode(i,this.ptr,_,o,v(e),v(t));var d=y()[i/4+0],a=y()[i/4+1],u=y()[i/4+2];if(y()[i/4+3])throw c(u);var l=E(d,a).slice();return r.__wbindgen_export_2(d,4*a),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_ordinary",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16),t=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),i=f;r.tiktoken_encode_ordinary(e,this.ptr,t,i);var _=y()[e/4+0],o=y()[e/4+1],d=E(_,o).slice();return r.__wbindgen_export_2(_,4*o),d}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_with_unstable",value:function(n,e,t){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var i=r.__wbindgen_add_to_stack_pointer(-16),_=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),o=f;r.tiktoken_encode_with_unstable(i,this.ptr,_,o,v(e),v(t));var d=y()[i/4+0],a=y()[i/4+1];if(y()[i/4+2])throw c(a);return c(d)}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_single_token",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var e=function(n,e){var t=e(1*n.length);return b().set(n,t/1),f=n.length,t}(n,r.__wbindgen_export_0),t=f;return r.tiktoken_encode_single_token(this.ptr,e,t)>>>0}},{key:"decode",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16),t=function(n,e){var t=e(4*n.length);return A().set(n,t/4),f=n.length,t}(n,r.__wbindgen_export_0),i=f;r.tiktoken_decode(e,this.ptr,t,i);var _=y()[e/4+0],o=y()[e/4+1],d=m(_,o).slice();return r.__wbindgen_export_2(_,1*o),d}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"decode_single_token_bytes",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16);r.tiktoken_decode_single_token_bytes(e,this.ptr,n);var t=y()[e/4+0],i=y()[e/4+1],_=m(t,i).slice();return r.__wbindgen_export_2(t,1*i),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"token_byte_values",value:function(){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");return c(r.tiktoken_token_byte_values(this.ptr))}}],[{key:"__wrap",value:function(e){var t=Object.create(n.prototype);return t.ptr=e,t}}]),n}();function W(n){c(n)}function j(n){return void 0===a(n)}function O(){return M((function(n){return v(JSON.stringify(a(n)))}),arguments)}function T(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var t,i=a(e),_="string"===typeof i?i:void 0,o=void 0===(t=_)||null===t?0:s(_,r.__wbindgen_export_0,r.__wbindgen_export_1),d=f;y()[n/4+1]=d,y()[n/4+0]=o}function P(n,e){return v(new Error(h(n,e)))}function J(){return M((function(n,e){return v(JSON.parse(h(n,e)))}),arguments)}function D(n,e){throw new Error(h(n,e))}}).call(this,t(1514)(n))},1513:function(n,e,t){"use strict";var r=t.w[n.i];for(var i in t.r(e),r)"__webpack_init__"!=i&&(e[i]=r[i]);t(1512);r.__webpack_init__()},1514:function(n,e){n.exports=function(n){if(!n.webpackPolyfill){var e=Object.create(n);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}}]);
|
static/js/main.550dac88.chunk.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/js/runtime-main.2cb82efa.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
!function(e){function n(n){for(var r,u,a=n[0],s=n[1],c=n[2],f=0,l=[];f<a.length;f++)u=a[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&l.push(o[u][0]),o[u]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(p&&p(n);l.length;)l.shift()();return i.push.apply(i,c||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],r=!0,u=1;u<t.length;u++){var a=t[u];0!==o[a]&&(r=!1)}r&&(i.splice(n--,1),e=s(s.s=t[0]))}return e}var r={},o={1:0},i=[];var u={};var a={1513:function(){return{"./tiktoken_bg.js":{__wbindgen_object_drop_ref:function(e){return r[1512].exports.g(e)},__wbindgen_is_undefined:function(e){return r[1512].exports.f(e)},__wbg_stringify_029a979dfb73aa17:function(e){return r[1512].exports.d(e)},__wbindgen_string_get:function(e,n){return r[1512].exports.h(e,n)},__wbindgen_error_new:function(e,n){return r[1512].exports.e(e,n)},__wbg_parse_3ac95b51fc312db8:function(e,n){return r[1512].exports.b(e,n)},__wbindgen_throw:function(e,n){return r[1512].exports.i(e,n)}}}}};function s(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var r=new Promise((function(n,r){t=o[e]=[n,r]}));n.push(t[2]=r);var i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.src=function(e){return s.p+"static/js/"+({}[e]||e)+"."+{3:"c34f4129"}[e]+".chunk.js"}(e);var f=new Error;i=function(n){c.onerror=c.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",f.name="ChunkLoadError",f.type=r,f.request=i,t[1](f)}o[e]=void 0}};var l=setTimeout((function(){i({type:"timeout",target:c})}),12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return({3:[1513]}[e]||[]).forEach((function(e){var t=u[e];if(t)n.push(t);else{var r,o=a[e](),i=fetch(s.p+""+{1513:"f33e25812ae60a8ad926"}[e]+".module.wasm");if(o instanceof Promise&&"function"===typeof WebAssembly.compileStreaming)r=Promise.all([WebAssembly.compileStreaming(i),o]).then((function(e){return WebAssembly.instantiate(e[0],e[1])}));else if("function"===typeof WebAssembly.instantiateStreaming)r=WebAssembly.instantiateStreaming(i,o);else{r=i.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,o)}))}n.push(u[e]=r.then((function(n){return s.w[e]=(n.instance||n).exports})))}})),Promise.all(n)},s.m=e,s.c=r,s.d=function(e,n,t){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)s.d(t,r,function(n){return e[n]}.bind(null,r));return t},s.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="./",s.oe=function(e){throw console.error(e),e},s.w={};var c=this.webpackJsonpchatchan=this.webpackJsonpchatchan||[],f=c.push.bind(c);c.push=n,c=c.slice();for(var l=0;l<c.length;l++)n(c[l]);var p=f;t()}([]);
|