!function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.KerasJS=n():e.KerasJS=n()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function e(){return t.default}:function e(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=169)}([function(t,e,n){var r=n(3),o=n(34),i=n(13),a=n(22),s=n(19),u="prototype",c=function(t,e,n){var l=t&c.F,p=t&c.G,h=t&c.S,f=t&c.P,d=t&c.B,m=p?r:h?r[e]||(r[e]={}):(r[e]||{})[u],y=p?o:o[e]||(o[e]={}),v=y[u]||(y[u]={}),g,_,b,x;p&&(n=e);for(g in n)_=!l&&m&&void 0!==m[g],b=(_?m:n)[g],x=d&&_?s(b,r):f&&"function"==typeof b?s(Function.call,b):b,m&&a(m,g,b,t&c.U),y[g]!=b&&i(y,g,x),f&&v[g]!=b&&(v[g]=b)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){"use strict";function r(t){if(!t)return s;for(var e=0;e>",rrshift:">>>"};!function(){for(var t in u){var n=u[t];e[t]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+n+"c"},funcName:t}),e[t+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a"+n+"=b"},rvalue:!0,funcName:t+"eq"}),e[t+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+n+"s"},funcName:t+"s"}),e[t+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a"+n+"=s"},rvalue:!0,funcName:t+"seq"})}}();var c={not:"!",bnot:"~",neg:"-",recip:"1.0/"};!function(){for(var t in c){var n=c[t];e[t]=i({args:["array","array"],body:{args:["a","b"],body:"a="+n+"b"},funcName:t}),e[t+"eq"]=i({args:["array"],body:{args:["a"],body:"a="+n+"a"},rvalue:!0,count:2,funcName:t+"eq"})}}();var l={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};!function(){for(var t in l){var n=l[t];e[t]=i({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+n+"c"},funcName:t}),e[t+"s"]=i({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+n+"s"},funcName:t+"s"}),e[t+"eq"]=i({args:["array","array"],body:{args:["a","b"],body:"a=a"+n+"b"},rvalue:!0,count:2,funcName:t+"eq"}),e[t+"seq"]=i({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+n+"s"},rvalue:!0,count:2,funcName:t+"seq"})}}();var p=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];!function(){for(var t=0;tthis_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),e.norm1=a({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),e.sup=a({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),e.inf=a({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),e.random=i({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),e.assign=i({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),e.assigns=i({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),e.equals=a({args:["array","array"],pre:s,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(84)("wks"),o=n(27),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(4),o=n(110),i=n(47),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function t(e,n,s){if(r(e),n=i(n,!0),r(s),o)try{return a(e,n,s)}catch(t){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(e[n]=s.value),e}},function(t,e,n){"use strict";function r(t){for(var e in t)a.indexOf(e)<0&&s.indexOf(e)<0&&console.warn("cwise: Unknown argument '"+e+"' passed to expression compiler");for(var n=0;n0?o(r(t),9007199254740991):0}},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";function r(t){return"[object Array]"===T.call(t)}function o(t){return"[object ArrayBuffer]"===T.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function c(t){return void 0===t}function l(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===T.call(t)}function h(t){return"[object File]"===T.call(t)}function f(t){return"[object Blob]"===T.call(t)}function d(t){return"[object Function]"===T.call(t)}function m(t){return l(t)&&d(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function v(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;nn;)o[n]=e[n++];return o},Rt=function(t,e,n){N(t,e,{get:function(){return this._d[n]}})},Dt=function t(e){var n=w(e),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o,a=k(n),s,u,l,p,h,f;if(void 0!=a&&!S(a)){for(f=a.call(n),l=[],s=0;!(h=f.next()).done;s++)l.push(h.value);n=l}for(i&&r>2&&(o=c(o,arguments[2],2)),s=0,u=m(n.length),p=At(this,u);u>s;s++)p[s]=i?o(n[s],s):n[s];return p},It=function t(){for(var e=0,n=arguments.length,r=At(this,n);n>e;)r[e]=arguments[e++];return r},Lt=!!H&&i(function(){vt.call(new H(1))}),zt=function t(){return vt.apply(Lt?mt.call(jt(this)):jt(this),arguments)},Ut={copyWithin:function t(e,n){return z.call(jt(this),e,n,arguments.length>2?arguments[2]:void 0)},every:function t(e){return nt(jt(this),e,arguments.length>1?arguments[1]:void 0)},fill:function t(e){return L.apply(jt(this),arguments)},filter:function t(e){return Ft(this,tt(jt(this),e,arguments.length>1?arguments[1]:void 0))},find:function t(e){return rt(jt(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function t(e){return ot(jt(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function t(e){Z(jt(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function t(e){return at(jt(this),e,arguments.length>1?arguments[1]:void 0)},includes:function t(e){return it(jt(this),e,arguments.length>1?arguments[1]:void 0)},join:function t(e){return ft.apply(jt(this),arguments)},lastIndexOf:function t(e){return lt.apply(jt(this),arguments)},map:function t(e){return Ct(jt(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function t(e){return pt.apply(jt(this),arguments)},reduceRight:function t(e){return ht.apply(jt(this),arguments)},reverse:function t(){for(var e=this,n=jt(e).length,r=Math.floor(n/2),o=0,i;o1?arguments[1]:void 0)},sort:function t(e){return dt.call(jt(this),e)},subarray:function t(e,n){var r=jt(this),o=r.length,i=v(e,o);return new(F(r,r[xt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,m((void 0===n?o:v(n,o))-i))}},Gt=function t(e,n){return Ft(this,mt.call(jt(this),e,n))},Nt=function t(e){jt(this);var n=Et(arguments[1],1),r=this.length,o=w(e),i=m(o.length),a=0;if(i+n>r)throw q(Pt);for(;a255?255:255&r),o.v[f](n*e+o.o,r,kt)},E=function(t,e){N(t,e,{get:function(){return k(this,e)},set:function(t){return O(this,e,t)},enumerable:!0})};_?(d=n(function(t,n,r,o){l(t,d,c,"_d");var i=0,a=0,s,u,p,f;if(x(n)){if(!(n instanceof J||(f=b(n))==W||f==X))return St in n?Mt(d,n):Dt.call(d,n);s=n,a=Et(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw q(Pt);if((u=v-a)<0)throw q(Pt)}else if((u=m(o)*e)+a>v)throw q(Pt);p=u/e}else p=y(n),u=p*e,s=new J(u);for(h(t,"_d",{b:s,o:a,l:u,e:p,v:new Q(s)});i0?r:n)(t)}},function(t,e,n){var r=n(113),o=n(85);t.exports=Object.keys||function t(e){return r(e,o)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(310),i=n(313);t.exports=r},function(t,e,n){var r=n(413),o=r();t.exports=o},function(t,e,n){"use strict";(function(t){function r(t,e,n){for(var r=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function t(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=t.dcodeIO&&t.dcodeIO.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function t(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function t(e,n){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,n):r.toNumber(Boolean(n))},i.merge=r,i.lcFirst=function t(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function t(e){for(var n={},r=0;r-1;--e)if(1===n[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},i.oneOfSetter=function t(e){return function(t){for(var n=0;n",a;for(t.style.display="none",n(114).appendChild(t),t.src="proxy.php?url=javascript:",a=t.contentWindow.document,a.open(),a.write("